View Full Version : SettlementBuildingExists condition when modding traits
danio43us67
01-18-2012, 19:05
As the title says I have a question about the SettlementBuildingExists condition.
So let's just say I write this in the triggers:
Condition SettlementBuildingExists >= baths
Does this mean the settlement must have EXACTLY this level of the health building or any above it work as well? I think you need to place a condition for each level, but please someone who knows for sure, clarify.
Thanks a lot.
danio43us67
01-19-2012, 17:52
If anyone knows, please tell me. It's basically a yes/no answer. I'm just not that experienced with the EDCT
I am afraid I cannot answer this question, but have you tried searching the R:TW modding forums (https://forums.totalwar.org/vb/forumdisplay.php?72-R-TW-Modification)? If you can't find it there, you could ask at the TWC (http://www.twcenter.net/forums/forumdisplay.php?f=202).
danio43us67
01-21-2012, 12:59
Now that I look at what I wrote I see that it should be "more or equal to" baths, I think. Unfortunately I couldn't find an answer for this particular question in the forums.
Anyway, unless there is someone who knows for sure, this thread can be locked, since I found (I presume) the right answer myself.
Please let us know if it works.
danio43us67
01-21-2012, 23:46
Yes, I just tested various conditions and it works. To sum up:
= - equal to
> - more than (but not equal)
< - less than (but not equal)
>= - more than or equal to
<= - less than or equal to
These can be used in the conditions throughout the files.
Example of a trigger:
;------------------------------------------
Trigger ABC1
WhenToTest CharacterTurnEnd
Condition Attribute Influence > 4
and Trait Patrician = 1
and FactionType seleucid
and Trait Wealthy > 0
and EndedInSettlement
and Trait NaturalCharisma > 3
and Trait Patronus < 1
and SettlementBuildingExists >= governors_villa
and Trait Selflessness <= 3
Affects ABC 1 Chance 5
;------------------------------------------
danio43us67
01-22-2012, 15:46
Glad to be of help.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.