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

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login