[General] Quest Update Message

Status
Not open for further replies.
Hello, if i have a quest which has 5 quest requirements like this :
-Kill Ghoul
-Kill Fiend
-Kill Gargoyle
-Kill Abomination
-Kill Necromancer
And every time i kill one of these i receive an update message that says like this if i kill only the ghoul:
-Kill Ghoul (Completed)
-Kill Fiend
-Kill Gargoyle
-Kill Abomination
-Kill Necromancer
If i kill Ghoul then i kill Necromancer it says this:
-Kill Ghoul (Completed)
-Kill Fiend
-Kill Gargoyle
-Kill Abomination
-Kill Necromancer (Completed)

The thing is, i can kill them without following the requirements' order. eq: i kill Fiend then Ghoul then Necromancer then Abomination and every time i receive a quest update message for those who i killed already (as completed) and the ones that i didnt kill. I can make this trigger with alot of conditions and it can get complicated (if Ghoul dead and Fiend dead and ...). Thanx
 
Last edited:
Level 29
Joined
Sep 26, 2009
Messages
2,594
You could use a string array. Each array would have one requrement written into it. When you complete specific requirement, you change the corresponding array.

e.g.
  • Set Requirement[1] = - Kill Ghoul
  • Set Requirement[2] = - Kill Gargoyle
  • Set Requirement[3] = - Kill Crypt Fiend
Now let's say you complete requirement 1, then you change that string like this:
  • Set Requirement[1] = |c007d7d7d- Kill Ghoul (Completed)|r
And whenever you update any requirement, you loop it:
  • For each (Integer LoopInteger) from 1 to 3, do (Actions)
    • Loop - Actions
      • Game - Display to (All players) the text: Requirement[LoopInteger]
 
Status
Not open for further replies.
Top