There isn't an easy way to do that within the traits section themselves - unless you just want to give them only to the faction leader and heir - otherwise there isn't a way to limit the number of people that have trait, if trigger conditions are met other generals will get it.How can I make a script that allows only two family members at a time have a certain trait?
For example, I have added the Army_Consul Trait for the Romans, now I want only 2 consuls at a time, like in historical fact. I assume it would look something like the scripts/triggers for faction leader and heir, but i cant find those either. I have read through the scripting tutorials, but I cannot copy them because I dont have access to the net on my compy.
It's vaguely possible that it could be done within campaign script, but you'd need to make sure that it could check the number of generals that have trait already (and I'm not sure you can), you'd then need to give trait via script and not normal trigger - again I'm not sure how that works.
If a scripting expert doesn't come up with answers to the above I would suggest you use the ancillary system instead. You can't set an ancillary to be used only twice but you can set it to be used once per faction only so you'd make two ancillaries that have different internal name, but look like same thing in game and set them to be mutually exclusive so same guy couldn't get both.
so in trigger you'd need
and in ancillary itselfTrigger trigger_consul2
WhenToTest CharacterTurnEnd
Condition FactionType ......
and not FactionwideAncillaryExists consul2
the FactionwideAncillaryExists only appears in BI but I think it should work in RTW, you can also try and not WorldwideAncillaryExists if you want it to apply to more than one roman faction.Ancillary consul2
Image ......tga
ExcludedAncillaries consul1
no that won't do that but if you include the lineSecondly, If i put my version of the imp campaign in a separate campaign folder, does this automatically disable the marian reforms? because i want to get rid of them.
below the campaign dates in your descr_strat file that should work, you'll probably want to adjust the requirements for the units in EDB to suit, otherwise you'll never get the better units, remove all references likestart_date 666 summer
end_date 999 summer
marian_reforms_disabled
;rebelling_characters_active
gladiator_uprising_disabled
"and marian_reforms" or "and not marian_reforms" from the unit recruitment lines and you should get them all available whenever appropriate barracks is built. If RTW doesn't like including the disabled line you could try taking out the "italy" hidden resource from all regions in descr_regions.txt
Bookmarks