well i got bored and made a quest system, but i cannot for the love of god figure out how to do a feature on it, which would be how to count the number of times a unit of xxx has died. so like you accept the quest, go out and kill 5 necromancers, how can i make the system count up how many you have killed?
here are my triggers, probably alot of bugs ;D
Quest mark (makes the ! mark ontop of unit)
here are my triggers, probably alot of bugs ;D
Quest mark (makes the ! mark ontop of unit)
-
Quest mark
-

Events
-


Time - Elapsed game time is 0.00 seconds
-
-

Conditions
-

Actions
-


Special Effect - Create a special effect attached to the overhead of Pandaren Brewmaster 0051 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
-


Set Quest_One_Mark[1] = (Last created special effect)
-
-
-
Quest one accept
-

Events
-


Unit - A unit Is issued an order targeting an object
-
-

Conditions
-


(Target unit of issued order) Equal to Pandaren Brewmaster 0051 <gen>
-


(Owner of (Triggering unit)) Equal to (Random player from (All allies of Player 1 (Red)))
-
-

Actions
-


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



If - Conditions
-




(Distance between (Position of (Triggering unit)) and (Position of Pandaren Brewmaster 0051 <gen>)) Less than or equal to 10.00
-
-



Then - Actions
-




Special Effect - Destroy Quest_One_Mark[1]
-




Quest - Create a Optional quest titled Test quest one with the description Kill 5 necromancers, using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
-




Set Quest_1 = (Last created quest)
-




Quest - Flash the quest dialog button
-




Trigger - Turn on Quest One KillCount <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
-
Quest One KillCount
-

Events
-


Unit - A unit owned by Player 12 (Brown) Dies
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to Necromancer
-
-

Actions
-


Set Quest_One_Necrokillcount = (Quest_One_Necrokillcount + 1)
-


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



If - Conditions
-




-------if necros killed = to 5(need help here)--------
-
-



Then - Actions
-




Special Effect - Create a special effect attached to the overhead of Pandaren Brewmaster 0051 <gen> using Objects\RandomObject\RandomObject.mdl
-




Set Quest_One_Mark[1] = (Last created special effect)
-




Trigger - Turn on Quest one return <gen>
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
-
Quest one return
-

Events
-


Unit - A unit Is issued an order targeting an object
-
-

Conditions
-


(Target unit of issued order) Equal to Pandaren Brewmaster 0051 <gen>
-


(Owner of (Triggering unit)) Equal to (Random player from (All allies of Player 1 (Red)))
-
-

Actions
-


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



If - Conditions
-




(Distance between (Position of (Triggering unit)) and (Position of Pandaren Brewmaster 0051 <gen>)) Less than or equal to 10.00
-
-



Then - Actions
-




Player - Add 50 to (Triggering player) Current gold
-




Hero - Add 500 experience to (Triggering unit), Hide level-up graphics
-




Quest - Mark Quest_1 as Completed
-
-



Else - Actions
-
-
-





