• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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