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

    Extending Custodianship in Global 1940 derivatives

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 1.1k Views 3 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.
    • S Offline
      simon33
      last edited by

      Hi
      As many of us know, in Global 1940 Java, Sumatra, Borneo and Celebes start out Dutch but UK and Anzac can step on these islands and take ownership. I am interested in extending this move to French territories so USA and perhaps other powers can step on these territories to take ownership of them, providing that Paris has been conquered. The trouble is I can't at all see how this works, nothing at all appears in the XML. Does anyone have any idea? it does seem doubtful that it would be hard coded in the engine or something.

      RogerCooperR B 2 Replies Last reply Reply Quote 1
      • RogerCooperR Offline
        RogerCooper @simon33
        last edited by RogerCooper

        @simon33 Here are relevant code snippets from ww2global40_2nd_edition.xml

        <relationship player1="British" player2="Dutch" type="Custodianship" roundValue="1"/>
        
        <relationshipType name="Custodianship"/>
        
        <attachment name="relationshipTypeAttachment" attachTo="Custodianship" javaClass="games.strategy.triplea.attachments.RelationshipTypeAttachment" type="relationship">
          <option name="archeType" value="allied"/>
          <option name="canTakeOverOwnedTerritory" value="true"/>
        </attachment>
        
        1 Reply Last reply Reply Quote 0
        • B Offline
          beelee @simon33
          last edited by beelee

          @simon33

          Also, I think for what you want, you will need to trigger a "relationshipChange" when Paris is occupied that would change the appropriate Players to "Custodianship" and then change back to "Allied" when liberated.

          I'm not entirely certain how to go about it. I'd look up relationshipChange in POS2. I think there is an example.

          Edit
          Something like this might work.

          Screenshot from 2025-01-21 16-12-52.png

          Change War to Custodianship and the condition for France is conquered.
          Idk if you'd need a second one to revert it when France is free.

          1 Reply Last reply Reply Quote 0
          • S Offline
            simon33
            last edited by

            Does all this mean that when French troops walk into something owned by USA they will also take ownership of the territory? Would I need to set the territory to have an owner that is a power with no units, which would need to be a new power, I guess "Vichy France" or maybe "Non Vichy France"!

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

              @simon33

              That's a good question. Idk. Seems as if it might, although it'd probably be rare but if that's the case, it could happen. Just have to try it.

              I'd try and get it to work taking the french stuff first and then adjust as needed.

              But yea, you could have a trigger that changes ownership once France falls. That's kinda how the Vichy rule works now, so I'd think your idea would work.

              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
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums