A lot of things in UFO:AI can be easily scripted using
simple text files. This topic will tell you where to make changes for different parameters. Only post in this thread to request where to find a parameter you want to change.
All other posts will be removed.
What are script files and how do I change them?UFO:AI's script files can be found in the
/base/ufos/ folder under your installation directory. This is where the game's executable and data is stored.
If you don't have a
/base/ufos/ folder, you probably have several .pk3 files in
/base/. You will need to
unpack 0ufos.pk3 to view and modify the UFO files.
Note: On Windows systems, save games and other data is often stored in a different directory, also under a /base/ folder. This is not the directory you want to look in.
How can I change a weapon's damage, accuracy, etc.?You will find all of the weapons stored in
/base/ufos/weapon_*.ufo files. Our wiki contains
descriptions of weapon script parameters.
How can I reduce/increase the frequency of UFOs?You will find a campaign scripting parameter called
uforeductionrate in
/base/ufos/campaign.ufo. Our wiki contains
further details on how this parameter is used.
Note: This feature is only available in version 2.5 and above. It was added to 2.5's development version on 17 June 2012.
How can I reduce/increase the speed of research?Research is controlled in two places. If you would like to adjust the research time required for a single item, you should look at
/base/ufos/research.ufo, find the appropriate research item and change the
time) parameter. Our wiki contains
further details on research definitions.
If you would like to speed up or slow down all research, you should look at
/base/ufos/campaign.ufo and change the
researchrate parameter. Our wiki contains
further details on how this parameter is used.
Note: The research speed parameter in campaign.ufo is only available in version 2.5 and above. It was added to 2.5's development version on 17 June 2012.
How can I make my new recruits have better stats?You will find character templates stored in
/base/ufos/team_templates.ufo. Our wiki contains further details on
how to set their stats.
How can I change the price and stats of my aircraft?You will find aircraft defined in
/base/ufos/aircraftmanagement.ufo. Our wiki contains further details on
how to set their price and stats.
How can I change the cost of my base buildings and installations?You will find base buildings and external installations defined in
/base/ufos/basemanagement.ufo. Our wiki contains further details on
how to change the costs.
How can I change the layout of my first base?The base template is defined in
/base/ufos/basemanagement.ufo. Our wiki contains further details on
base building parameters.
How can I make a certain map stop appearing in my campaign?The maps are defined in
/base/ufos/maps.ufo. To prevent a map from appearing in the campaign, add a
campaign parameter set to
false. Our wiki contains further details on
map parameters.
Warning: Map usage in the campaign is determined based on a set of culture, terrain and population parameters for every spot on the globe. If you remove the only map available in that combination, you are likely to get the backup ufo_crash map which already appears frequently in the campaign.
How can I change the frequency that alien weapons appear?The percentage chance that weapons will appear in a mission are defined in
/base/ufos/equipment_missions.ufo.