<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Activate support attachment by trigger?]]></title><description><![CDATA[<p dir="auto">On my World of War Heroes map I have a unit named “Arthur” who is supposed to get a support attachment (Devotion-Aura) activated when he is level 8 (costs 800 XP)</p>
<p dir="auto">So I want this support attachment…</p>
<pre><code>    &lt;attachment name="supportAttachmentDevotion-Aura" attachTo="Arthur" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"&gt;
        &lt;option name="faction" value="allied"/&gt;
        &lt;option name="side" value="defence"/&gt;
        &lt;option name="dice" value="strength"/&gt;
        &lt;option name="bonus" value="1"/&gt;
        &lt;option name="number" value="4"/&gt;
        &lt;option name="unitType" value="$AllLandUnits$:$AllAirUnits$"/&gt;
        &lt;option name="bonusType" value="Devotion Aura"/&gt;
        &lt;option name="players" value="$AllPlayers$"/&gt;
    &lt;/attachment&gt;
</code></pre>
<p dir="auto">To be activated by this 800 XP costing condition / trigger…<br />
(Humans-Level-7 is a unit on map that indicated that "Arthur" is level 7 and can purchase level 8 if he got the XP)</p>
<pre><code>    &lt;attachment name="conditionAttachment_Humans_can_buy_level_8" attachTo="Humans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"&gt;
        &lt;option name="directPresenceTerritories" value="map" count="1"/&gt;
        &lt;option name="unitPresence" value="Humans-Level-7" count="1"/&gt;
    &lt;/attachment&gt;

    &lt;attachment name="triggerAttachment_Arthur_has_reached_level_8_A" attachTo="Humans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"&gt;
        &lt;option name="support" value="supportAttachmentDevotion-Aura"/&gt;
        &lt;option name="when" value="before:HumansPurchase"/&gt;
        &lt;option name="uses" value="1"/&gt;
    &lt;/attachment&gt;
    &lt;attachment name="triggerAttachment_Arthur_has_reached_level_8_B" attachTo="Humans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"&gt;
        &lt;option name="removeUnits" value="Arthur Levels:Humans-Level-7" count="1"/&gt;
        &lt;option name="placement" value="Arthur Levels:Humans-Level-8" count="1"/&gt;
        &lt;option name="uses" value="1"/&gt;
    &lt;/attachment&gt;
    &lt;attachment name="triggerAttachment_Arthur_has_reached_level_8_C" attachTo="Humans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"&gt;
        &lt;option name="notification" value="levelup"/&gt;
        &lt;option name="players" value="$AllPlayers$"/&gt;
        &lt;option name="uses" value="1"/&gt;
    &lt;/attachment&gt;

    &lt;attachment name="userActionAttachment_Humans_buy_level_8" attachTo="Humans" javaClass="games.strategy.triplea.attachments.UserActionAttachment" type="player"&gt;
        &lt;option name="conditions" value="conditionAttachment_Humans_can_buy_level_8"/&gt;
        &lt;option name="activateTrigger" value="triggerAttachment_Arthur_has_reached_level_8_A:1:false:false:false:false"/&gt;
        &lt;option name="activateTrigger" value="triggerAttachment_Arthur_has_reached_level_8_B:1:false:false:false:false"/&gt;
        &lt;option name="activateTrigger" value="triggerAttachment_Arthur_has_reached_level_8_C:1:false:false:false:false"/&gt;
        &lt;option name="text" value="Arthur_Level_8"/&gt;
        &lt;option name="costResources" value="800:XP"/&gt;
        &lt;option name="attemptsPerTurn" value="1"/&gt;
    &lt;/attachment&gt;
</code></pre>
<p dir="auto">Why is the support attachment active on Arthur from game start round 1?</p>
<p dir="auto">The trigger is not supposed to fire/activate before a before "userActionAttachment_Humans_buy_level_8" activates the support attachment. First after this Arthur is supposed to have the support.</p>
<p dir="auto"><img src="/assets/uploads/files/1570608795355-unavngivet.png" alt="Unavngivet.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forums.triplea-game.org/topic/1595/activate-support-attachment-by-trigger</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 05:38:48 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/1595.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Oct 2019 08:13:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Activate support attachment by trigger? on Wed, 09 Oct 2019 11:34:51 GMT]]></title><description><![CDATA[<p dir="auto">Problem fixed (before I have seen @Cernels post)<br />
I removed the line with option name="players" completely from supportAttachment, and then it works fine. I guess it is not needed anyway as only humans have Arthur unit.<br />
Thx <a class="plugin-mentions-user plugin-mentions-a" href="/user/cernel" aria-label="Profile: Cernel">@<bdi>Cernel</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/wc_sumpton" aria-label="Profile: wc_sumpton">@<bdi>wc_sumpton</bdi></a></p>
]]></description><link>https://forums.triplea-game.org/post/27991</link><guid isPermaLink="true">https://forums.triplea-game.org/post/27991</guid><dc:creator><![CDATA[Frostion]]></dc:creator><pubDate>Wed, 09 Oct 2019 11:34:51 GMT</pubDate></item><item><title><![CDATA[Reply to Activate support attachment by trigger? on Wed, 09 Oct 2019 11:08:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frostion" aria-label="Profile: Frostion">@<bdi>Frostion</bdi></a> said in <a href="/post/27989">Activate support attachment by trigger?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cernel" aria-label="Profile: Cernel">@<bdi>Cernel</bdi></a> I changed “$AllPlayers$” to “Humans”. Arthur still has the support from start of game, level 1 not level 8. So noting really changed.</p>
</blockquote>
<p dir="auto">Well, maybe I'm not very good at explaining things. What that trigger is doing is adding "Humans" to the players for that support attachment. So, it should work as you wish as long as "Humans" is not one of the players already assigned. Just delete this line completely:<br />
<code>&lt;option name="players" value="Humans"/&gt;</code><br />
Meaning you will have a support attachment assigned to no players.</p>
]]></description><link>https://forums.triplea-game.org/post/27990</link><guid isPermaLink="true">https://forums.triplea-game.org/post/27990</guid><dc:creator><![CDATA[Cernel]]></dc:creator><pubDate>Wed, 09 Oct 2019 11:08:30 GMT</pubDate></item><item><title><![CDATA[Reply to Activate support attachment by trigger? on Wed, 09 Oct 2019 11:05:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cernel" aria-label="Profile: Cernel">@<bdi>Cernel</bdi></a> I changed “$AllPlayers$” to “Humans”. Arthur still has the support from start of game, level 1 not level 8. So noting really changed.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wc_sumpton" aria-label="Profile: wc_sumpton">@<bdi>wc_sumpton</bdi></a> As I understand, if there is no conditions, then it should not fire before triggered by something like "activateTrigger". Is this not right?</p>
<p dir="auto">I tried moving “userActionAttachment_Humans_buy_level_8” up and before the three triggers, but then there is an error during map loading that prevent the map from starting.</p>
]]></description><link>https://forums.triplea-game.org/post/27989</link><guid isPermaLink="true">https://forums.triplea-game.org/post/27989</guid><dc:creator><![CDATA[Frostion]]></dc:creator><pubDate>Wed, 09 Oct 2019 11:05:09 GMT</pubDate></item><item><title><![CDATA[Reply to Activate support attachment by trigger? on Wed, 09 Oct 2019 08:47:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frostion" aria-label="Profile: Frostion">@<bdi>Frostion</bdi></a> at frist glance the three assignment triggers don't have a 'conditions' option, and so they might be firing at the start of the game giving Arthur the supportAttachment.</p>
<p dir="auto">Just a quick read...</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/27985</link><guid isPermaLink="true">https://forums.triplea-game.org/post/27985</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Wed, 09 Oct 2019 08:47:53 GMT</pubDate></item><item><title><![CDATA[Reply to Activate support attachment by trigger? on Wed, 09 Oct 2019 08:43:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frostion" aria-label="Profile: Frostion">@<bdi>Frostion</bdi></a> I think this is well explained in pos2, actually:</p>
<p dir="auto"><code>support								values: name of support attachment, adds specified player to the list of players a supportAttachment supports.</code></p>
<p dir="auto">Assuming "$AllPlayers$" comprises "Humans", there you are either doing nothing or adding a second occurrence of "Humans" (not sure how it works), for the "players" option of the specified support attachment.</p>
<p dir="auto">Long story short: assuming that is for Arthur only, and Arthur is for Humans only, just remove the "players" option (all the line) from your support attachment, and it should work as you wish.</p>
]]></description><link>https://forums.triplea-game.org/post/27984</link><guid isPermaLink="true">https://forums.triplea-game.org/post/27984</guid><dc:creator><![CDATA[Cernel]]></dc:creator><pubDate>Wed, 09 Oct 2019 08:43:00 GMT</pubDate></item></channel></rss>