IIITotal Conquest

Aqueduct for mod makers

Empire resources

data\rtwr_stock.txt

Reload with rtwr_stock_reload. This adds a bar at the top of the campaign map and the Resources window. Goods are kept in towns and used by region (the provinces of rtwr_economy.txt). The player feels shortages. Other factions keep stores with no effects.

A stock: changes each turn

rtwr_stock.txt
bar grain elephants

stock grain
	resource grain
	start 300
	decay 2
	tooltip "Bread for our towns."

produce grain by_size 6 9 12 15 18 21 text "Farmland"
produce grain 5 text "Farms" when building farms
produce grain per_resource grain 15 text "Grain lands"
mod grain +20 text "Irrigation" when building irrigation
use grain per_head 1 text "Townsfolk"
army grain 0.005 per_soldier text "Army rations"
capacity grain by_size 150 300 600 1000 1600 2400 text "Granaries"

stock timber
	resource timber

produce timber per_resource timber 4 text "Logging camps"

A count: how many you hold

rtwr_stock.txt
count elephants
	resource elephants

hold elephants per_resource elephants 1 text "Elephant herds"
unit elephants "carthaginian elephant african" 1

A counter: from a script

rtwr_stock.txt
counter favour my_favour
	title "Favour of the gods"
	letter "F"
	colour 200 160 40

Goods costs

Buildings and units pay in goods, and cards grey out when short.

rtwr_stock.txt
recruit_cost grain 2 unit "roman hastati" text "Rations"
build_cost grain 50 chains market

Trade

rtwr_stock.txt
market_keep 3
routes 1 text "Port" when building port
transport 50 text "Roads" when building roads
price_range 0.5 2
trade_cut 10
trade_reserve 3
trade_drain 20
sea mare_nostrum Arretium Carthage

Hard times

rtwr_stock.txt
starvation grain die 10 leave 20 towns 3
crisis counter my_crisis min 1 decline 2 max 50 title "The Late Crisis"

In other files

Conditions stock grain >= 100, stock_short grain; texts {stock:grain}; buttons stock_cost grain 150.

campaign script
console_command rtwr_stock_use player grain 100 my_counter