<?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[Units that may destroy itself]]></title><description><![CDATA[<p dir="auto">Any way adding a percentage to a unit to destoy itself?</p>
]]></description><link>https://forums.triplea-game.org/topic/2032/units-that-may-destroy-itself</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 18:24:31 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/2032.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Jun 2020 18:28:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Units that may destroy itself on Mon, 08 Jun 2020 18:29:53 GMT]]></title><description><![CDATA[<p dir="auto">A good example file is the pact of steel repo. Download that map and unzip it, then just open up the xml its full of comments about every option available.</p>
<p dir="auto">Or just <a href="https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml" target="_blank" rel="noopener noreferrer">click here</a>.</p>
<p dir="auto">Another good example is the Warcraft_war_heroes beta from Frostion. Although he uses the chance option for fishing you can modify it for whatever.</p>
<p dir="auto">I might be more help if you want to post some code I can look at?</p>
]]></description><link>https://forums.triplea-game.org/post/38914</link><guid isPermaLink="true">https://forums.triplea-game.org/post/38914</guid><dc:creator><![CDATA[Michael Hoover]]></dc:creator><pubDate>Mon, 08 Jun 2020 18:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to Units that may destroy itself on Mon, 08 Jun 2020 17:55:53 GMT]]></title><description><![CDATA[<p dir="auto">I would need more detail or example XML files.</p>
]]></description><link>https://forums.triplea-game.org/post/38910</link><guid isPermaLink="true">https://forums.triplea-game.org/post/38910</guid><dc:creator><![CDATA[Schulz]]></dc:creator><pubDate>Mon, 08 Jun 2020 17:55:53 GMT</pubDate></item><item><title><![CDATA[Reply to Units that may destroy itself on Mon, 08 Jun 2020 13:35:58 GMT]]></title><description><![CDATA[<p dir="auto">I think you could do it via triggers in the current version, using the chance option and the removeUnits option. Something like this perhaps (tweaking as necessary):</p>
<pre><code>&lt;attachment name="triggerAttachment_UnitSep" attachTo="P1" javaClass="TriggerAttachment" type="player"&gt;            
  &lt;option name="conditions" value="[Your_Condition_Here]"/&gt;
  &lt;option name="chance" value="2:10"/&gt;
  &lt;option name="when" value="[When_You_Want]"/&gt;
  &lt;option name="removeUnits" value="[Unit_to_Die]" count="1"/&gt;
&lt;/attachment&gt;
</code></pre>
]]></description><link>https://forums.triplea-game.org/post/38896</link><guid isPermaLink="true">https://forums.triplea-game.org/post/38896</guid><dc:creator><![CDATA[Michael Hoover]]></dc:creator><pubDate>Mon, 08 Jun 2020 13:35:58 GMT</pubDate></item></channel></rss>