Trigger help
-
I am trying to emulate some triggers from the warcraft map, but it isn't working. I am making units create other units for a single turn, but they aren't disappearing like the should.
Thanks for any help!
Warcraft code that i used as a model
<attachment name="conditionEveryTurn" attachTo="Nature" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="rounds" value="1-+"/> </attachment> <attachment name="triggerAttachment_The_Judgment-Spell_is_packed_away" attachTo="Humans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionEveryTurn"/> <option name="when" value="after:HumansBattle"/> <option name="removeUnits" value="all:Judgment-Spell" count="1"/> <option name="players" value="$AllPlayers$"/> </attachment>
The code i think should work
<attachment name="conditionEveryTurn" attachTo="XCOM" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="rounds" value="1-+"/> </attachment> <attachment name="triggerAttachment_Unused_XCOM_grenades" attachTo="XCOM" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionEveryTurn"/> <option name="when" value="after:XCOMBattle"/> <option name="removeUnits" value="all:grenade" count="10000"/> </attachment>
-
@ff03k64 said in Trigger help:
the only thing I see is you don't have "players"
<option name="players" value="$AllPlayers$"/>
Idk if u need it or not but u could try it
-
If there are no players, then the trigger will take the 'attachTo' information. The only thing I can think of is 'count="10000"' being to high. Maybe try with a lower number like 99.
Also check your properties for:
<property name="Use Triggers" value="true" editable="true"> <boolean/> </property>
Cheers...
-
It was even easier than either of those two, it was capitalization
Thanks for your help though!
-
Is there a good guide beyond the POS map for triggers?
-
@ff03k64 @RogerCooper might have idk
-
@beelee I have found no better source than POS2.