Navigation

    TripleA Logo

    TripleA Forum

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

    Transfer of Unit Ownership

    Map Making
    2
    3
    126
    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.
    • Stohrm
      Stohrm last edited by

      Re: captureUnitOnEnteringBy , changeUnitOwners and canBeGivenByTerritoryTo , canBeCapturedOnEnteringBy

      Can someone provide me with better clarification on how to use these, please? For instance: I want the UK_Pacific to be able to transfer ownership of Armour units to the Chinese open entering (and remaining in) Yunnan. But I also want the British to be able to transfer all units that it sends to 78 Sea Zone.

      I seem to have 78 Sea Zone working, but not Yunnan.

      So, any guidance someone can give would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • B
        beelee last edited by

        @stohrm in "territoryAttachment" go to Yunnan and make sure you have
        <option name="changeUnitOwners" value="Chinese"/>

        Under "unitAttachment' go to armour and make sure you have

        <option name="canBeGivenByTerritoryTo" value="Chinese"/>

        You will also need to have the "gameProperty" turned on

        <property name="Give Units By Territory" value="true" editable="false">

        and the "playerAttachment' "giveUnitControl"

        <attachment name="playerAttachment" attachTo="British" javaClass="games.strategy.triplea.attachments.PlayerAttachment" type="player">
        <option name="giveUnitControl" value="Chinese"/>
        </attachment>

        This from Pact of Steel2
        <!-- allows a player to give units to another player if true. units must have canBeGivenByTerritory and territories must have changeUnitOwners and the players must have the player attachment giveUnitControl -->
        <property name="Give Units By Territory" value="true" editable="false">
        <boolean/>
        </property>

        1 Reply Last reply Reply Quote 1
        • Stohrm
          Stohrm last edited by

          @beelee said in Transfer of Unit Ownership:

          <option name="changeUnitOwners" value="Chinese"/>

          Thanks, I had everything but the changeUnitOwners value right. It's working now.

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