Alright you cool af dudes and dudettes (cause it sounded cool in my head).
I am working on a little something where i have a "repeatable" quest going, where it just resets when it is completed, all is well here and its working.
I have just run into a slight "multiplayer" problem, since the quest is slay XX amount of trolls, and i dont want to credit the one getting the killing blow only, but also i want to give "kill credit" to any Hero within 800 "range".
This is the current trigger i am using, and i have tried many versions of it, none that seem to work.
This is as close as i think i have come (it just returns the player number + 1 and i cannot think of why :| Ples help
I am working on a little something where i have a "repeatable" quest going, where it just resets when it is completed, all is well here and its working.
I have just run into a slight "multiplayer" problem, since the quest is slay XX amount of trolls, and i dont want to credit the one getting the killing blow only, but also i want to give "kill credit" to any Hero within 800 "range".
This is the current trigger i am using, and i have tried many versions of it, none that seem to work.
This is as close as i think i have come (it just returns the player number + 1 and i cannot think of why :| Ples help
-
TrollSlayerCounter
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Unit-type of (Dying unit)) Equal to Troll Hunter
-




(Unit-type of (Dying unit)) Equal to Troll Shaman
-




(Unit-type of (Dying unit)) Equal to Troll Chieftain
-




(Unit-type of (Dying unit)) Equal to Troll High Shaman
-
-
-
-

Actions
-


Unit Group - Pick every unit in (Units within 800.00 of (Position of (Dying unit)).) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) is A Hero) Equal to True
-
-





Then - Actions
-






Set VariableSet TrollSlayerCounter[(Player number of (Owner of (Picked unit)))] = (TrollSlayerCounter[(Player number of (Owner of (Picked unit)))] + 1)
-






Game - Display to (All players matching ((Matching player) Equal to (Owner of (Picked unit))).) the text: (You have slain + ((String(TrollSlayerCounter[(Player number of (Owner of (Picked unit)))])) + |cff008000Trolls|r))
-
-





Else - Actions
-
-
-
-
-

