- Joined
- Oct 5, 2008
- Messages
- 15
Hi. I have this trigger...
The idea is that if a player is an Ally of a player (With or without vision), then the income trigger above fires, giving gold to both players. However, a separately triggered command called "-embargo" changes the alliance settings between each player to "Neutral." The idea is, if the players are neutral the trigger doesn't apply when the trigger reaches their player numbers.
However my testing makes it do so anyway, giving players gold regardless of the number of embargoes.
Any ideas on how to fix this? The game uses all 12 players. Thanks for any help.
- [Actions]
- ...
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
- Set porttotal[(Integer A)] = ((Number of living Port units owned by (Player((Integer A)))) + ((Number of living Trade Port units owned by (Player((Integer A)))) x 3))
-
Loop - Actions
-
For each (Integer A) from 1 to 12, do (Actions)
- For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
For each (Integer B) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer A) Not equal to (Integer B)
- ((Player((Integer A))) is an enemy of (Player((Integer B)))) Not equal to True
- ((Player((Integer A))) is an ally of (Player((Integer B)))) Equal to True
-
Then - Actions
- Set tradeincome[(Integer A)] = ((porttotal[(Integer A)] + porttotal[(Integer B)]) x 1)
- Set tradeincome[(Integer B)] = ((porttotal[(Integer A)] + porttotal[(Integer B)]) x 1)
- Player - Add tradeincome[(Integer A)] to (Player((Integer A))) Current gold
- Player - Add tradeincome[(Integer B)] to (Player((Integer B))) Current gold
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer B) from 1 to 12, do (Actions)
The idea is that if a player is an Ally of a player (With or without vision), then the income trigger above fires, giving gold to both players. However, a separately triggered command called "-embargo" changes the alliance settings between each player to "Neutral." The idea is, if the players are neutral the trigger doesn't apply when the trigger reaches their player numbers.
However my testing makes it do so anyway, giving players gold regardless of the number of embargoes.
Any ideas on how to fix this? The game uses all 12 players. Thanks for any help.