TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Using -reset- To Change Original Owner

    Scheduled Pinned Locked Moved Map Making
    4 Posts 2 Posters 566 Views 2 Watching
    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 Offline
      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_ZodG Offline
        General_Zod Lobby 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_ZodG Offline
          General_Zod Lobby 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 Offline
            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

            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
            • 1 / 1
            • First post
              Last post
            Powered by NodeBB Forums