Log in

View Full Version : Conditional export_descr_buildings.txt



lehanyo-test
10-26-2012, 00:42
First of all
Thanks to all of you who have created so great Mods.

Reference :
Rome Total War (Vanilla and or BI and or Alexander)
Files :
export_descr_buildings.txt
descr_strat.txt

1)
In descr_strat.txt
The first city of a faction is the capital city of the faction.
The is a way in the game to change the capital city of your faction to a new city.

2)
In export_descr_buildings.txt
It is "easy" to specify/limit the recruitment of a unit to a region/city/culture/faction
exemple
recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and hidden_resource sparta

QUESTION
How to allow that a specific unit can ONLY be recruited in the capital city of your faction ?
Capital city which could be different from the capital city define at the beginning of the game.

I am looking/expecting something like :
recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and current_capital_faction

<<current_capital_faction>>

1
Let say that my capital city is Sparte
2
I can recruit "Royal Guard" ONLY in Sparte if ...
3
Let say that I conquer Athens
AND
I decide that Athens will be my new capital city
4
I would like to be able to recruit "Royal Guard" in Athens BUT not any more in Sparte

Many Thanks

Ludens
10-26-2012, 09:07
How to allow that a specific unit can ONLY be recruited in the capital city of your faction ?
Capital city which could be different from the capital city define at the beginning of the game.

I am looking/expecting something like :
recruit "greek hoplite spartan" 0 requires factions { greek_cities, } and current_capital_faction

Hello lehanyo-test, welcome to the .Org ~:wave:

I am not an experienced modder, but to the best of my knowledge there is no "conditional" for the capital city. Check out the EDB guide (https://forums.totalwar.org/vb/showthread.php?50439-Guide-The-Complete-EDB-Guide-%28WIP%29) and this thread (https://forums.totalwar.org/vb/showthread.php?39925-Complex-conditionals-for-recruiting-and-building) for more information.