Subcategories

  • 9
  • 11
  • 4
  • 3
  • 10
  • 1
  • 9
  • 3
  • 3
  • 1
  • 3
  • 2
  • 10
  • 3
  • 2
  • 11
  • 3
  • 4
  • 12
  • 2

Recent Posts

  • W

    @RogerCooper

    The second method is to take control of another players units.
    Screenshot 2026-03-06 153311.png
    To let Germany take control of the 4 units in Bulgaria and the one unit in Varna.
    In the unitAttachment for infantry add <option name="canBeCapturedOnEnteringBy" value="Germans"/>.
    In the territoryAttachment for Bulgaria and Varna add <option name="captureUnitOnEnteringBy" value="Germans"/>.
    In the playerAttachment for Neutral_Player add <option name="captureUnitOnEnteringBy" value="Germans"/>.
    And set <property name="Capture Units On Entering Territory" value="true"/>.
    Then this <option name="changeOwnership" value="Bulgaria:any:Germans:true"/> in a trigger, the 'when' can be any step.
    After Germany's noncombat move.
    Screenshot 2026-03-06 171112.png
    The 4 units changed, but not factory or the Territory and because Germany moved into Varna during noncombat the unit and territory does not change.
    Adding <option name="canTakeOverOwnedTerritory" value="true"/> to the relationshipTypeAttachment between Germany and Neutral_Player to get this.
    Screenshot 2026-03-06 154000.png
    Control of the units happens on the 'true' setting of 'changeOwnership' and changes at the 'when'.

    Cheers...

    read more
  • W

    @RogerCooper

    As I stated above, there are two methods, a player can give control of their units to another player, or a player can take control of another players units.
    Germany wants to give Italians infantry in Venice.
    Screenshot 2026-03-06 153247.png
    In the unitAttachment for infantry add <option name="canBeGivenByTerritoryTo" value="Italians"/>.
    In the territoryAttachment for Venice add <option name="changeUnitOwners" value="Italians"/>.
    In the playerAttachment for Germany add <option name="giveUnitControl" value="Italians"/>.
    And set <property name="Give Units By Territory" value="true" editable="false"/>
    Now German infantry can be given to Italians either by trigger or movement.
    Screenshot 2026-03-06 153734.png
    At the end of Germany's noncombat move there are 2 German infantry in Venice. One moved from Wittenberg another placed by trigger.
    At Germany's endTurn the units will switch to Italian control.
    Screenshot 2026-03-06 154122.png
    There are two things to remember when giving unit control. Territory ownership does not matter. If Germany owns Venice, Italians will still gain control. Change of control only happens on the Giving Player's endTurn.

    Using "canBeGivenByTerritoryTo" to give a Neutral players unit will not work unless the Neutral player has an endTurn/endTurnNoPU step.

    Cheers...

    read more
  • @wc_sumpton That did it! Thank you for your help.

    8d6f6a63-79ef-4c82-a6d7-5394b8877b07-image.png

    To recap this for anyone looking at this in the future.

    <attachment name="triggerAttachmentIrelandSoviet_Union2" attachTo="Non_Aligned" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="players" value="Non_Aligned"/> <option name="uses" value="1"/> <option name="removeUnits" value="Ireland:All"/> </attachment> <attachment name="triggerAttachmentIrelandSoviet_Union" attachTo="Soviet_Union" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentEveryTurn"/> <option name="conditions" value="conditionAttachmentIrelandNon_Aligned"/> <option name="players" value="Soviet_Union"/> <option name="chance" value="80:80"/> <option name="chanceIncrementOnFailure" value="1"/> <option name="when" value="before:Soviet_UnionPurchase"/> <option name="placement" value="Ireland:infantry" /> <option name="changeOwnership" value="Ireland:Non_Aligned:Soviet_Union:false"/> <option name="activateTrigger" value="triggerAttachmentIrelandSoviet_Union2:1:false:false:false:false"/> <option name="uses" value="1"/> </attachment>

    No need make changes anywhere outside of the triggers.

    read more
  • W

    @rogercooper

    Put the called trigger triggerAttachmentIrelandSoviet_Union2 above the calling trigger.

    <attachment name="triggerAttachmentIrelandSoviet_Union2" attachTo="Non_Aligned" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="players" value="Non_Aligned"/> <option name="uses" value="1"/> <option name="removeUnits" value="Ireland:All"/> </attachment> <attachment name="triggerAttachmentIrelandSoviet_Union" attachTo="Soviet_Union" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentEveryTurn"/> <option name="conditions" value="conditionAttachmentIrelandNon_Aligned"/> <option name="players" value="Soviet_Union"/> <option name="chance" value="80:80"/> <option name="chanceIncrementOnFailure" value="1"/> <option name="when" value="before:Soviet_UnionPurchase"/> <option name="placement" value="Ireland:infantry" /> <option name="changeOwnership" value="Ireland:Non_Aligned:Soviet_Union:false"/> <option name="activateTrigger" value="triggerAttachmentIrelandSoviet_Union2:1:false:false:false:false"/> <option name="uses" value="1"/> </attachment>

    Cheers...

    read more