Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Using -reset- To Change Original Owner

    Map Making
    2
    4
    215
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      beelee last edited by

      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
      resources

      so no "originalOwner". Is there a way to do what I want or is a Feature request required ?

      Thanks

      1 Reply Last reply Reply Quote 1
      • General_Zod
        General_Zod Moderators last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • General_Zod
          General_Zod Moderators last edited by

          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.

          B 1 Reply Last reply Reply Quote 1
          • B
            beelee @General_Zod last edited by

            @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 🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums