Extending Custodianship in Global 1940 derivatives
-
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. -
@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>
-
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.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. -
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"!
-
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.