trigger error
Hi this is my trigger but I have multiple of these triggers. What i want is to have them occur in order. So if a hero die the unit or person that killed him gets the gold, but the error is all of these activate at once even when i change the kills P_N to (any # here). How would i fix this plz
Hi this is my trigger but I have multiple of these triggers. What i want is to have them occur in order. So if a hero die the unit or person that killed him gets the gold, but the error is all of these activate at once even when i change the kills P_N to (any # here). How would i fix this plz
Code:
First Blood Copy
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set P_N = (Player number of (Owner of (Killing unit)))
Set Kills[P_N] = (Kills[P_N] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Kills[P_N] Equal to 3
Then - Actions
Player - Add 150 to (Owner of (Killing unit)) Current gold
Sound - Play Double_Kill <gen>
Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + has just been awarded 150 gold for his 2nd hero kill!)
Trigger - Turn off (This trigger)
Else - Actions