• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Help - Quest Updating

Status
Not open for further replies.
Level 9
Joined
Sep 15, 2012
Messages
311
I make a quest that asks the player to kill 10 wolves (example).
I've made an integer variable that goes +1 for each wolf killed and when this variable reaches 10 the quest is complete.

But how do I make it so when the player kills a wolf, the quest description updates showing x/10 wolves killed? Do I have to change the description everytime the kill count variable goes up or is there a simple way (a script or so...?)
 
  • Updates
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Wolf
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Q_WolfCount Less than 10
        • Then - Actions
          • Set Q_WolfCount = (Q_WolfCount + 1)
          • Quest - Display to (Player group(Q_WolfAccept)) the Quest Update message: (|cffffcc00Wolves|r - + ((String(Q_WolfCount)) + /10))
          • Quest - Change the description of Q_WolfQuestReq[0] to (Slay + ((String((10 - Q_WolfCount))) + more wolves))
        • Else - Actions
          • Quest - Display to (Player group(Q_WolfAccept)) the Quest Update message: |cffffcc00QUEST UPD...
          • Quest - Change the description of Q_WolfQuestReq[0] to Return to..
          • Set Q_WolfComplete = True
 
Status
Not open for further replies.
Top