Hi everyone.. I was looking for a lil help on this quest trigger... It s a kill this many units kind of quest... I got the killing to record.. But it does not display how many they killed... Like 1/10 so on... here is my trigger:
thank you!
-
Quest2Killing
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Murloc River Dweller
-
(Owner of (Dying unit)) Equal to Player 12 (Brown)
-
-
Actions
-
Set UnitsKilled = (UnitsKilled + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
UnitsKilled Equal to 10
-
-
Then - Actions
-
Game - Display to (All players) the text: ((Name of (Dying unit)) + ((String(10)) + (String((1 + 1)))))
-
Quest - Display to (All players) the Quest Update message: You have slayin 10 ...
-
Trigger - Turn on Quest2Complete <gen>
-
Trigger - Turn off Quest2Killing <gen>
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Quest2Real
-
Events
-
Unit - Frank Ferden (Male) 0117 <gen> Is selected
-
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Frank Ferden (Male)
-
-
Actions
-
Unit Group - Pick every unit in (Units within 35.00 of (Position of Frank Ferden (Male) 0117 <gen>)) and do (Actions)
-
Loop - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Frank Ferden (Male)
-
-
Then - Actions
-
Game - Display to (All players) the text: Frank: Hello there ...
-
Quest - Create a Optional quest titled River Watcher with the description Slay 10 Murloc rive..., using icon path ReplaceableTextures\CommandButtons\BTNMurloc.blp
-
Set Quest1[1] = (Last created quest)
-
Special Effect - Destroy Questmark
-
Quest - Display to (All players) the Quest Update message: New Quest! River Wa...
-
Special Effect - Create a special effect attached to the overhead of Frank Ferden (Male) 0117 <gen> using Objects\RandomObject\RandomObject.mdl
-
Quest - Create a quest requirement for Quest1[1] with the description Kill 10 Murloc Rive...
-
Set QuestmarkReturn = (Last created special effect)
-
Trigger - Turn on Quest2Killing <gen>
-
Trigger - Turn off Quest2Real <gen>
-
-
Else - Actions
-
-
-
-
Quest2Complete
-
Events
-
Unit - A unit comes within 35.00 of Frank Ferden (Male) 0117 <gen>
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
UnitsKilled Equal to 10
-
-
Then - Actions
-
Quest - Display to (All players) the Quest Completed message: Frank: Thank you fo...
-
Player - Add 100 to Player 1 (Red) Current gold
-
Player - Add 100 to Player 2 (Blue) Current gold
-
Player - Add 100 to Player 3 (Teal) Current gold
-
Player - Add 100 to Player 4 (Purple) Current gold
-
Player - Add 100 to Player 5 (Yellow) Current gold
-
Player - Add 100 to Player 6 (Orange) Current gold
-
Player - Add 100 to Player 7 (Green) Current gold
-
Player - Add 100 to Player 8 (Pink) Current gold
-
Player Group - Pick every player in (All players) and do (Hero - Add 250 experience to (Triggering unit), Show level-up graphics)
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-