Hi @andrewthree
This is from World War II Global 1940 2nd Edition
<attachment name="conditionAttachment_False" attachTo="Germans" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="switch" value="false"/>
</attachment>
This still a little confusing to me how it all works but basically the "conditionAttachmentFalse" acts as an on/off switch. It's attached to the "Germans" who go first, so I guess try attaching it to the first player in WAW for starters.
<attachment name="conditionAttachment_Mongolia_May_Change_To_Russians_Control_Switch" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="conditions" value="conditionAttachment_Mongolia_Not_At_War_With_Allies"/>
<option name="switch" value="true"/>
</attachment>
I didn't list the condition for this one but "conditionAttachment_Mongolia_May_Change_To_Russians_Control_Switch" means if the Allies aren't at war with Mongolia it can be activated when it's conditions are met.
<attachment name="conditionAttachment_Russians_Conquer_Japanese_Territory_By_Mongolia" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="battle" value="Russians:Japanese:any:currentRound:Manchuria:Jehol:Chahar:Suiyuyan:Kansu:Korea"/>
</attachment>
This does it a little different than what you have. "battle" means those territories just need to be attacked. Doesn't need to be conquered.
<attachment name="triggerAttachment_Russians_Conquer_Japanese_Territory_By_Mongolia" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Russians_Conquer_Japanese_Territory_By_Mongolia"/>
<option name="when" value="after:russiansBattle"/>
<option name="uses" value="1"/>
<option name="players" value="Russians"/>
<option name="playerAttachmentName" value="RulesAttachment" count="conditionAttachment_Mongolia_May_Change_To_Russians_Control_Switch"/>
<option name="playerProperty" value="switch" count="false"/>
</attachment>
This part is still a bit confusing as well for me but I think <option name="playerAttachmentName" value="RulesAttachment" activates the first switch "conditionAttachment_False" if conditionAttachment_Russians_Conquer_Japanese_Territory_By_Mongolia" is true.
<attachment name="triggerAttachment_Japanese_Conquer_Russians_Territory_By_Mongolia_2" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachment_False"/> <option name="when" value="before:japaneseNonCombatMove"/> <option name="uses" value="1"/> <option name="changeOwnership" value="Olgiy:Mongolians:Russians:true"/> <option name="changeOwnership" value="Dzavhan:Mongolians:Russians:true"/> <option name="changeOwnership" value="Tsagaan Olom:Mongolians:Russians:true"/> <option name="changeOwnership" value="Central Mongolia:Mongolians:Russians:true"/> <option name="changeOwnership" value="Buyant-Uhaa:Mongolians:Russians:true"/> <option name="changeOwnership" value="Ulaanbaatar:Mongolians:Russians:true"/> </attachment>So now that "conditionAttachment_False" is activated, the trigger changes Ownership.
<attachment name="triggerAttachment_Japanese_Conquer_Russians_Territory_By_Mongolia_3" attachTo="Russians" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Japanese_Conquer_Russians_Territory_By_Mongolia"/>
<option name="when" value="after:japaneseNonCombatMove"/>
<option name="uses" value="1"/>
<option name="removeUnits" value="Ulaanbaatar:infantry" count="1"/>
<option name="removeUnits" value="Buyant-Uhaa:infantry" count="2"/>
<option name="removeUnits" value="Olgiy:infantry" count="2"/>
<option name="removeUnits" value="Dzavhan:infantry" count="1"/>
<option name="placement" value="Ulaanbaatar:Russian_infantry" count="1"/>
<option name="placement" value="Buyant-Uhaa:Russian_infantry" count="2"/>
<option name="placement" value="Olgiy:Russian_infantry" count="2"/>
<option name="placement" value="Dzavhan:Russian_infantry" count="1"/>
</attachment>
And now they change units. Also you want to use "conditions" not "trigger" for <option name="trigger"
At any rate, what this all means is, if Mongolia is not at war with the Allies and Japan attacks one of the listed Territories, Mongolia will turn into Russian Territories and units.
Hope it's not oo confusing. I think I confused myself already 🙂