- Joined
- Aug 28, 2010
- Messages
- 28
Recently I've been trying to add a Trigger to a map I've made that would create a Quest to kill a certain number of units in order to complete it.
At first sight everything was working properly but now it seems that I can't put the quest in it's final, completed stage. It seems like my array integer doesn't count the kills properly and just never stops to actually complete the quest.
This is the first time I'm doing such quests so I expect the error to be something stupid, but I just can't see it. I've looked up a few guides and none of them helped me. Hope anyone has an idea how to make this work.
Here's the trigger:
At first sight everything was working properly but now it seems that I can't put the quest in it's final, completed stage. It seems like my array integer doesn't count the kills properly and just never stops to actually complete the quest.
This is the first time I'm doing such quests so I expect the error to be something stupid, but I just can't see it. I've looked up a few guides and none of them helped me. Hope anyone has an idea how to make this work.
Here's the trigger:
-
[/B]Lothaleven Kill Q Count
-
Events
-
Unit - A unit owned by Player 12 (Brown) Dies
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
LothalevenPVPQ[(Player number of (Owner of (Killing unit)))] Equal to started
-
((Killing unit) is A Hero) Equal to True
-
(Unit-type of (Dying unit)) Not equal to Healing Ward
-
(Unit-type of (Dying unit)) Not equal to Stasis Trap
-
(Unit-type of (Dying unit)) Not equal to Watcher Ward
-
((Dying unit) is Summoned) Equal to False
-
(Unit-type of (Dying unit)) Not equal to Sentry Ward
-
((Dying unit) is A structure) Equal to False
-
LothalevenKillCount[(Player number of (Owner of (Killing unit)))] Less than 10
-
-
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
LothalevenPVPQ[(Player number of (Owner of (Killing unit)))] Equal to started
-
-
Then - Actions
-
Set LothalevenKillCount[(Player number of (Owner of (Triggering unit)))] = LothalevenKillCount[(LothalevenKillCount[(Player number of (Owner of (Triggering unit)))] + 1)]
-
Game - Display to (Player group((Owner of (Killing unit)))) the text: |c00FFFF00Quest Upd...
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
LothalevenKillCount[(Player number of (Owner of (Killing unit)))] Equal to 10
-
-
Then - Actions
-
Game - Display to (Player group((Owner of (Killing unit)))) the text: |c00FFFF00Quest Upd...
-
Set LothalevenPVPQ[(Player number of (Owner of (Killing unit)))] = completed
-
Cinematic - Ping minimap for (Player group((Owner of (Killing unit)))) at (Position of Expedition Leaders 1061 <gen>) for 10.00 seconds, using a Flashy ping of color (100.00%, 100.00%, 100.00%)
-
-
Else - Actions
-
Skip remaining actions
-
-
-
Do nothing[B][trigger][/B][/INDENT]
-
-
-
-
Last edited: