So im making achievements for my map and the issue is that if more than one player is killing units at the same time, the _Integer Variable_ runs more than once. So I tried with player 1 and player 2 killing units at the same time. And the achievements procced more than one time. Player 1 got rank 1 achievement 3 times. EDIT: Added test map to advert the issue more clearly.
-
Gnoll Killer
-
Events
- Unit - A unit owned by Player 12 (Brown) Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Gnoll
- (Unit-type of (Triggering unit)) Equal to Gnoll Poacher
- (Unit-type of (Triggering unit)) Equal to Gnoll Mage
- (Unit-type of (Triggering unit)) Equal to Gnoll Assassin
- (Unit-type of (Triggering unit)) Equal to Gnoll Brute
- (Unit-type of (Triggering unit)) Equal to Gnoll Lord
- (Owner of (Killing unit)) Not equal to Player 9 (Gray)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- If ((Owner of (Killing unit)) Equal to Player 1 (Red)) then do (Set GnollKiller_Ach[1] = (GnollKiller_Ach[1] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 2 (Blue)) then do (Set GnollKiller_Ach[2] = (GnollKiller_Ach[2] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 3 (Teal)) then do (Set GnollKiller_Ach[3] = (GnollKiller_Ach[3] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 4 (Purple)) then do (Set GnollKiller_Ach[4] = (GnollKiller_Ach[4] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 5 (Yellow)) then do (Set GnollKiller_Ach[5] = (GnollKiller_Ach[5] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 6 (Orange)) then do (Set GnollKiller_Ach[6] = (GnollKiller_Ach[6] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 7 (Green)) then do (Set GnollKiller_Ach[7] = (GnollKiller_Ach[7] + 1)) else do (Do nothing)
- If ((Owner of (Killing unit)) Equal to Player 8 (Pink)) then do (Set GnollKiller_Ach[8] = (GnollKiller_Ach[8] + 1)) else do (Do nothing)
- Trigger - Run Gnoll Killer Check <gen> (checking conditions)
-
Events
-
Gnoll Killer Check
- Events
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[1] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 1 (Red)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 1 (Red) Current lumber
- Player - Add 150 to Player 1 (Red) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[1] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 1 (Red)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 1 (Red) Current lumber
- Player - Add 200 to Player 1 (Red) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[1] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 1 (Red)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 1 (Red) Current lumber
- Player - Add 300 to Player 1 (Red) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[2] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 2 (Blue)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 2 (Blue) Current lumber
- Player - Add 150 to Player 2 (Blue) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[2] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 2 (Blue)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 2 (Blue) Current lumber
- Player - Add 200 to Player 2 (Blue) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[2] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 2 (Blue)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 2 (Blue) Current lumber
- Player - Add 300 to Player 2 (Blue) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[3] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 3 (Teal)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 3 (Teal) Current lumber
- Player - Add 150 to Player 3 (Teal) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[3] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 3 (Teal)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 3 (Teal) Current lumber
- Player - Add 200 to Player 3 (Teal) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[3] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 3 (Teal)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 3 (Teal) Current lumber
- Player - Add 300 to Player 3 (Teal) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[4] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 4 (Purple)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 4 (Purple) Current lumber
- Player - Add 150 to Player 4 (Purple) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[4] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 4 (Purple)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 4 (Purple) Current lumber
- Player - Add 200 to Player 4 (Purple) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[4] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 4 (Purple)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 4 (Purple) Current lumber
- Player - Add 300 to Player 4 (Purple) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[5] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 5 (Yellow)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 5 (Yellow) Current lumber
- Player - Add 150 to Player 5 (Yellow) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[5] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 5 (Yellow)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 5 (Yellow) Current lumber
- Player - Add 200 to Player 5 (Yellow) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[5] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 5 (Yellow)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 5 (Yellow) Current lumber
- Player - Add 300 to Player 5 (Yellow) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[6] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 6 (Orange)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 6 (Orange) Current lumber
- Player - Add 150 to Player 6 (Orange) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[6] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 6 (Orange)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 6 (Orange) Current lumber
- Player - Add 200 to Player 6 (Orange) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[6] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 6 (Orange)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 6 (Orange) Current lumber
- Player - Add 300 to Player 6 (Orange) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[7] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 7 (Green)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 7 (Green) Current lumber
- Player - Add 150 to Player 7 (Green) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[7] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 7 (Green)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 7 (Green) Current lumber
- Player - Add 200 to Player 7 (Green) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[7] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 7 (Green)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 7 (Green) Current lumber
- Player - Add 300 to Player 7 (Green) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[8] Equal to 10
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 1 for player + (Name of Player 8 (Pink)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+150 Gold...
- Player - Add 1 to Player 8 (Pink) Current lumber
- Player - Add 150 to Player 8 (Pink) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[8] Equal to 25
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 2 for player + (Name of Player 8 (Pink)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+200 Gold...
- Player - Add 1 to Player 8 (Pink) Current lumber
- Player - Add 200 to Player 8 (Pink) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GnollKiller_Ach[8] Equal to 50
-
Then - Actions
- Game - Display to (All players) for 10.00 seconds the text: (|c0020C000Achievement Unlocked:|r Gnoll Killer Rank 3 for player + (Name of Player 8 (Pink)))
- Game - Display to (All players) for 10.00 seconds the text: |c00FFFC01+300 Gold...
- Player - Add 1 to Player 8 (Pink) Current lumber
- Player - Add 300 to Player 8 (Pink) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Attachments
Last edited: