is it possible to limit the number of an ancillary type a character could carry?
f.e. every general should carry only one military ancillarie.
is it possible to limit the number of an ancillary type a character could carry?
f.e. every general should carry only one military ancillarie.
Yes and no. It's not possible to set a limit in a direct sense. However you could create a trait that is hidden such as "HasMilitaryAncillary", and then set up triggers for the trait to check for all types of military ancillary and is one if found, increase the trait. Then, on the flip side, for every military ancillary include in the conditions "and not Trait HasMilitaryAncillary > 0".
Alternatively, this is more direct but also has room for not being specific. Every Ancillary has a "type". One type is called "military". For every military ancillary you can include in the trigger conditions "and not HasAncType military". This should stop the character from getting more ancillaries typed as military. The problem with this is, obviously either you need to re-classify all the ancillaries considered military to reflect which ones you consider military under your definition, or accept that it may affect other unintended ancillaries in the process.
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
thanks for the fast answer, this was the alternative way i supposed to go if there is no direct way.
another question, is it possible to let an ancillarie be replaced by a new one? if yes how
House of Ward ~ Patron of Eothese, Mythic_Commodore, Wundai, & Saint Nicholas
i give you an excample.
general: got as ancillarie a sword
so i want him get another ancillary, which is also a sword but with better effects. so when this triggers, is there any opportunity to replace the old one instantly.
its kind of similar to the traits you spoke about, but not exactly the same.
You just apply the example that Augustus gave earlier. Set up a hidden trait, HasSwordAncillary. When time comes to give the improved sword, test if he hasswordancillary, and go from there.
test if he has the trait is not the problem. how does i make it then, that the old ancillarie is deleted, when the new one is apllied?
i'm pretty sure it's impossible
Under the Patronage of the Dreadful cedric37!
Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod
![]()
You can remove ancillaries by script, but I dont think you can do it via trigger.
how to remove them via script?
![]()
Under the Patronage of the Dreadful cedric37!
Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod
![]()
You have to have the character physically selected. In my Hire Ancillaries script you can see how its done.
http://www.twcenter.net/forums/showthread.php?t=141695
thank you very much
never seen such thing before, thats exactly what i wanted.
Last edited by Presbiter; March 12, 2009 at 03:03 PM.
Theres a ton of stuff I have written that is free for anyone to use Presbiter. Check here.
http://www.twcenter.net/forums/showthread.php?t=176050