Can anyone tell me what is wrong with this trigger? it gives gold for only one player.
Player 1 and Player 6 is computer.
-
Creep gold and exp
-
Events
- Unit - A unit Dies
-
Conditions
- (Owner of (Dying unit)) Equal to Neutral Hostile
-
Actions
- Set CreepKillGold = ((Level of (Dying unit)) x 20)
- Set PlayerT1 = (All players matching (((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)) and (((Matching player) is an ally of Player 1 (Red)) Equal to True)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of players in PlayerT1) Greater than 1
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Then - Actions
-
Player Group - Pick every player in PlayerT1 and do (Actions)
-
Loop - Actions
- Player - Add (CreepKillGold / (Number of players in PlayerT1)) to (Picked player) Current gold
-
Loop - Actions
- Player - Add (0 - (CreepKillGold / (Number of players in PlayerT1))) to (Owner of (Killing unit)) Current gold
-
Player Group - Pick every player in PlayerT1 and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Custom script: call DestroyForce (udg_PlayerT1)
- Set PlayerT2 = (All players matching (((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)) and (((Matching player) is an ally of Player 6 (Orange)) Equal to True)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of players in PlayerT2) Greater than 1
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Killing unit) belongs to an ally of Player 6 (Orange)) Equal to True
-
Then - Actions
-
Player Group - Pick every player in PlayerT2 and do (Actions)
-
Loop - Actions
- Player - Add (CreepKillGold / (Number of players in PlayerT2)) to (Picked player) Current gold
-
Loop - Actions
- Player - Add (0 - (CreepKillGold / (Number of players in PlayerT2))) to (Owner of (Killing unit)) Current gold
-
Player Group - Pick every player in PlayerT2 and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- Custom script: call DestroyForce (udg_PlayerT2)
-
Events