Log in

View Full Version : Adding a unit thats unique to a province



Thurnor
08-27-2005, 19:17
Hi, im new here first post, just like to say Great site!


Ive read a tutorial about making units only available to a certain province, like sparta has Spartans.

But you know that if say, Germania, gets Sparta off the Greeks they cant get Spartans, only the Greeks can right?

Well i want to do something like that, add a unit to a city that canont be recruited anywhere but there, but ony available to a certain faction?

How do i do this, or is there no way?

Stuie
08-27-2005, 19:34
In the export_descr_buildings.txt file, you can specify faction and resource needed to build a unit. So:


recruit "east heavy cataphract2" 0 requires factions { parthia, } and not hidden_resource iran
recruit "iranian nobles" 0 requires factions { parthia, } and hidden_resource iran

"east heavy cataphract2" can only be built by Parthia when the "iran" hidden resource is NOT present, and "iranian nobles" can only be built by Parthia when the "iran" hidden resource IS present. No other faction will be able to build either unit.

Thurnor
08-27-2005, 19:49
Thanks, so its just that simple? Just change where appropiate?

Thanks again

Epistolary Richard
08-27-2005, 20:01
Have a look at this tutorial for more details:

How to limit recruitment & construction by area (hidden resources) (https://forums.totalwar.org/vb/showthread.php?t=43747)
.

Thurnor
08-28-2005, 14:22
thats it, sorry should of checked the site more thourghly (sp?) first, thanks!