UFO-Scripts/campaign.ufo
From UFO:AI
Contents |
Campaigns
- name V_STRING
name of campaign
example: "_Standard Campaign"
- text V_STRING
example: "_txt_standard_campaign"
campaign description
- team V_STRING
example: human
which team?
- soldiers V_INT
how many soldiers in this campaign?
example: 12
- difficulty V_INT
what is the difficulty of this campaign? 0 is standard, the greater the harder.
example: 0
- minhappiness V_FLOAT
if more than half the nations have a happiness below this value, game will be lost.
example: 0.30
- maxdebts V_INT
the maximum money you can borrow before loosing game.
example: 20000
- xvirate V_INT
maximum average XVI rate of nations before the game is lost.
example: 70
- researched V_STRING
list of researched topic when the game starts.
example: rslist_human
- ugvs V_INT
number of UVGs you start the game with.
example: 2
- equipment V_STRING
which equipment to use
example: campaign_player
- market V_STRING
which market definition to use. This is an equipment definition, too
example: campaign_market
- credits V_INT
how much credits at start
example: 500000
- map V_STRING
which map to use for geoscape? The maps are in base/pics/menu. There need to be three different maps, a version for day, night and a mask for base building. Have a look at the existing ones for more information.
example: map_earth
- visible V_BOOL
is this campaign visible in campaign list
example: true
- date V_DATE
starting date
example: "2000 0 7"
Salary definitions
You can define the salary values for each campaign. Valid identifiers are:
- soldier_base V_INT:
- soldier_rankbonus V_INT:
- worker_base V_INT:
- worker_rankbonus V_INT:
- scientist_base V_INT:
- scientist_rankbonus V_INT:
- medic_base V_INT:
- medic_rankbonus V_INT:
- robot_base V_INT:
- robot_rankbonus V_INT:
- aircraft_factor V_INT:
- aircraft_divisor V_INT:
- base_upkeep V_INT:
- admin_initial V_INT:
- admin_soldier V_INT:
- admin_worker V_INT:
- admin_scientist V_INT:
- admin_medic V_INT:
- admin_robot V_INT:
- debt_interest V_FLOAT:
Example
salary {
soldier_base 3200
}
Example
campaign main
{
name "_Standard Campaign"
text "_txt_standard_campaign"
team human
soldiers 9
scientists 6
workers 14
medics 2
difficulty 0
minhappiness 0.30
maxdebts 200000
xvirate 70
salary {
soldier_rankbonus 500;
}
researched rslist_human
ugvs 2
equipment campaign_player
market campaign_market
credits 1350000
map map_earth
visible true
date "2084 79 6"
}

