Unfortunately i have a bigger problem now. When having more than 1 trigger, they will both fire sometimes. I've tried multiple combinations with "when" and without it. Tried changing the trigger"true:true:false:false" to different combinations. No joy.
This is my latest attempt
<attachment name="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2andON" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Americans_ControlMarianasInvert:conditionAttachmentTurn3"/>
<option name="resource" value="PUs"/>
<option name="resourceCount" value="-1"/>
<option name="uses" value="1"/>
<option name="when" value="before:americansEndTurn"/>
</attachment>
<attachment name="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2" attachTo="Americans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
<option name="conditions" value="conditionAttachment_Americans_LoseEXPMarianasTurn2:conditionAttachmentTurn2"/>
<option name="resource" value="PUs"/>
<option name="resourceCount" value="-1"/>
<option name="uses" value="1"/>
<option name="when" value="after:americansNonCombatMove"/>
<option name="activateTrigger" value="triggerAttachment_USA_Loses_Marianas_Pacific_Expanded_Turn2andON:1:true:true:false:false"/>
</attachment>
I have the same trigger for Paulau Island. Named differently of course.
What I want, is to have the "activate trigger" trigger fire only after the trigger that activates it fires.
What happens is, the USA takes Marianas from JPN. This activates a PU boost. USA gets it.
Next rd, Turn 2, JPN takes Marianas. They now get the PU boost and the USA receives a negative PU boost. This activates the trigger which has Turn 3 as a condition for it to fire, but it fires anyway, even though it's still turn 2.
So when USA takes over Marianas they get a PU boost. When JPN takes it back, the USA gets a negative one. This works correctly.
I want the USA to continue to receive a negative bonus until they take it back. This is not working.
I use "battle" in the conditions for the first trigger, then "directOwnership" invert for the trigger to activate.
Meaning Rd1 USA takes Marianas and gets a PU boost. Then if USA loses control the next turn, which is JPN attacking USA and having a battle
<option name="battle" value="Japanese:Americans:any:2-3:Marianas"/>
it will activate the trigger which should then fire on turn 3 if USA doesn't control Marianas.
So condition Turn 3 and InvertOwnership, that way it would still get the negative bonus without a battle on turn 3.
Hmm ... I don't like how I explained this but I'll just leave it for now.