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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login