Hi, @TheDog
Thanks a lot for your response!
I made the following changes:
-added the variable list all players/all sz.
-added your code:
<attachment foreach="$All-Players$^$All-SZ$" name="conditionAttachment_SZ_@All-Players@@All-SZ@" attachTo="@All-Players@" javaClass="RulesAttachment" type="player">
<option name="directOwnershipTerritories" value="@All-SZ@" count="0"/>
</attachment>
<attachment foreach="$All-Players$^$All-SZ$" name="triggerAttachment_SZ@All-Players@@All-SZ@" attachTo="@All-Players@" javaClass="TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_SZ@All-Players@_@All-SZ@"/>
<option name="territories" value="@All-SZ@"/>
<option name="territoryAttachmentName" value="TerritoryAttachment" count="territoryAttachment"/>
<option name="territoryProperty" value="originalOwner" count="@All-Players@"/>
<option name="when" value="before:@All-Players@1EndTurn"/>
</attachment>
However i'm not getting it to work correctly.
The seazones flips to the occupier as intended, but the PUs do not transfer (the original owner does lose the PUs)
for reference, each sea zone is defined like this:
each sz is defined like this:
<territoryOwner territory="Sea Zone 1 Hudson Bay" owner="British"/>
<territory name="Sea Zone 1 Hudson Bay" water="true"/>
<attachment name="territoryAttachment" attachTo="Sea Zone 1 Hudson Bay" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
<option name="production" value="1"/>
<option name="blockadeZone" value="true"/>
</attachment>
am i missing something, or could this be due to the map being outdated?
Cheers!