Kamikazi's Still Not Working
-
Hey all. The only remaining item on my "to do" list for Adam and my Map is Kamikazis. I've copied the code directly from the Global 1940 XML, but no luck. When the game initiates, you can see in history that Japan is recruiting all of its Kamikazi pilots. And the resources tab shows that Japan has eight suicide tokens. But during combat they just don't work (no prompt to select Kamikazi targets, etc.) Any ideas on this? I'm stumped.
Here is the relevant portion of code:
<resourceList>
<resource name="techTokens"/>
<resource name="PUs"/>
<resource name="SuicideAttackTokens"/>
</resourceList><resourceGiven player="Japanese" resource="SuicideAttackTokens" quantity="8"/>
</resourceInitialize><!-- New Kamikaze Trigger: -->
<attachment name="triggerAttachment_Japanese_Recruit_Kamikaze_Pilots_alpha" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachmentAxisVictory3"/>
<!-- just using a condition that is sure to be true at the start of the game, so that this trigger definitely fires at the beginning of each game -->
<option name="territories" value="6 Sea Zone:7 Sea Zone:20 Sea Zone:21 Sea Zone:36 Sea Zone:22 Sea Zone:23 Sea Zone"/>
<option name="territoryAttachmentName" value="TerritoryAttachment" count="territoryAttachment"/>
<option name="territoryProperty" value="kamikazeZone" count="true"/>
<option name="uses" value="1"/>
<option name="when" value="after:gameInitDelegate"/>
</attachment></property>
<property name="Kamikaze Suicide Attacks Done By Current Territory Owner" value="false" editable="false">
<boolean/>
</property>
<property name="Kamikaze Suicide Attacks Only Where Battles Are" value="true" editable="false">
<boolean/>
</property> -
I figured it out! You have to designate Japan as the initial territoryowner for each of the Kamikaze sea zones! YAAAAAAAAAH