Using -reset- To Change Original Owner
-
I'm thinking this is not possible. I want to change the originalOwner by trigger after game start. This is what I have:
<attachment name="triggerAttachmentNormandyOriginallyNeutral" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="NormandyOriginallyNeutral"/>
<option name="territoryProperty" value="originalOwner" count="-reset-Normandy Bordeaux:Neutral_Allies" />
<option name="uses" value="1"/>
<option name="when" value="after:changerCombatMove"/>
</attachment>POS2 only shows -reset- working with:
Territory Attachments:
changeUnitOwners
captureUnitOnEnteringBy
territoryEffect
whenCapturedByGoesTo
convoyAttached
resourcesso no "originalOwner". Is there a way to do what I want or is a Feature request required ?
Thanks
-
You should be able to do what you want without the -reset. It should overwrite the previous value when ever used.
-reset is required and used when it does not overwrite but adds to a list of values. That's the way I understand anyways.
-
You should be able to do what you want without using a -RESET.
-RESET is utilized with a list of values that continues to add to that list. And sometimes a -RESET is required to clear the values.
originalOwner overwrites the value every time its used, so a -RESET isn't used with it. That's how I understand it anyways.
-
@general_zod Right on !
<attachment name="triggerAttachmentNormandyOriginallyNeutral" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="NormandyOriginallyNeutral"/>
<option name="territories" value="Normandy Bordeaux"/>
<option name="territoryAttachmentName" value="TerritoryAttachment" count="territoryAttachment"/>
<option name="territoryProperty" value="originalOwner" count="Neutral_Allies"/>
<option name="uses" value="1"/>
<option name="when" value="after:changerCombatMove"/>
</attachment>Thanks General