<?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[Trigger not triggering?]]></title><description><![CDATA[<p dir="auto">I have been building a scenario that requires a trigger that will remove a unit in a specific territory and give resources to the player. I want Korea to be able to import oil by moving an "oil tanker" unit into the Sea of Japan; the tanker should disappear at the end of the turn and provide Korea with 5 oil. I've followed the example of others on this forum, but my code doesn't work, and I cannot figure out why. The game runs fine with no bugs or errors, the trigger just doesn't work.</p>
<p dir="auto">Here is the code I'm using for this trigger:</p>
<pre><code>	    &lt;attachment name="conditionAttachmentKoreanPacificOil" attachTo="Korea" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"&gt;
		  &lt;option name="directPresenceTerritories" value="SZ Sea of Japan" count="1"/&gt;
		  &lt;option name="unitPresence" value="oil_tanker" count="1"/&gt;
	    &lt;/attachment&gt;
	    &lt;attachment name="triggerAttachmentKoreanPacificOil" attachTo="Korea" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"&gt;
		  &lt;option name="conditions" value="conditionAttachmentKoreanPacificOil"/&gt;
		  &lt;option name="when" value="after:koreaEndTurn"/&gt;
	          &lt;option name="resource" value="oil"/&gt;
	          &lt;option name="resourceCount" value="5"/&gt;
		  &lt;option name="removeUnits" value="SZ Sea of Japan:oil_tanker" count="1"/&gt;
	    &lt;/attachment&gt;</code></pre>
]]></description><link>https://forums.triplea-game.org/topic/731/trigger-not-triggering</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 14:56:31 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/731.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Apr 2018 11:12:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trigger not triggering? on Fri, 13 Apr 2018 12:06:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forums.triplea-game.org/uid/700">@elreigh</a><br />
Best guess 'Sea Zone' ownership. Water territories do not have ownership, give 'SZ Sea of Japan' an 'originalOwner' option in its 'territoryAttachment' and use 'alliedPresenceTerritories' in the trigger.</p>
<p dir="auto">Also check the property:</p>
<pre><code>        &lt;property name="Use Triggers" value="true" editable="false"&gt;
            &lt;boolean/&gt;
        &lt;/property&gt;
</code></pre>
<p dir="auto">Hope this helps</p>
<p dir="auto">Cheers...</p>
]]></description><link>https://forums.triplea-game.org/post/11031</link><guid isPermaLink="true">https://forums.triplea-game.org/post/11031</guid><dc:creator><![CDATA[wc_sumpton]]></dc:creator><pubDate>Fri, 13 Apr 2018 12:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to Trigger not triggering? on Fri, 13 Apr 2018 11:51:12 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I didn't have that property. I have enabled "Use Triggers" and now the trigger works exactly as I wanted it. Many thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://forums.triplea-game.org/uid/29">@Cernel</a></p>
]]></description><link>https://forums.triplea-game.org/post/11029</link><guid isPermaLink="true">https://forums.triplea-game.org/post/11029</guid><dc:creator><![CDATA[Elreigh]]></dc:creator><pubDate>Fri, 13 Apr 2018 11:51:12 GMT</pubDate></item><item><title><![CDATA[Reply to Trigger not triggering? on Fri, 13 Apr 2018 11:48:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forums.triplea-game.org/uid/700">@elreigh</a> When stuff is ineffective, that probably means it is enabled by a property you don't have true.<br />
In this case, "Use Triggers".</p>
<p dir="auto">If this is not the matter, I cannot see anything strictly wrong; so, I would need your map, or looking better, or testing.</p>
<p dir="auto">A final note would be that Veqryn doesn't want you to use a same trigger to do various different things; so you should, instead, have a trigger removing the units and another different trigger giving the resources, but I guess it now depends if the current developers (mainly <a class="plugin-mentions-user plugin-mentions-a" href="https://forums.triplea-game.org/uid/10">@redrum</a>) feel the same or have no problems with packing all kind of things in a single trigger?</p>
]]></description><link>https://forums.triplea-game.org/post/11028</link><guid isPermaLink="true">https://forums.triplea-game.org/post/11028</guid><dc:creator><![CDATA[Cernel]]></dc:creator><pubDate>Fri, 13 Apr 2018 11:48:30 GMT</pubDate></item></channel></rss>