• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Searching for many items quest

Status
Not open for further replies.
Level 11
Joined
Jan 3, 2022
Messages
98
Hi Everyone!
I've been stuck on one question for a long time... How to make a Quest, the condition of which is to find items, but it doesn't matter in what order they will be found?
In general, something like the search for ingredients for Chen's drink in the first chapter of the Horde Campaign "Founding of Darotar" - it didn't matter in what sequence the items would be found.
Unfortunately, I couldn’t find any information on how to do this using triggers! :(
I would be very grateful if anyone could help! :)
 
Level 29
Joined
Aug 29, 2012
Messages
1,344
There are several ways to handle that, here's one pretty straightforward. You need 1 trigger per item, and 1 trigger to complete the quest

  • Item 1
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Shimmerweed
    • Actions
      • Set VariableSet ShimmerWeed_Obtained = True
      • Trigger - Run Quest Complete <gen> (checking conditions)
  • Item 2
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Thunder Lizard Egg
    • Actions
      • Set VariableSet LizardEgg_Obtained = True
      • Trigger - Run Quest Complete <gen> (checking conditions)

  • Item 3
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Thunder Phoenix Egg
    • Actions
      • Set VariableSet PhoenixEgg_Obtained = True
      • Trigger - Run Quest Complete <gen> (checking conditions)

  • Quest Complete
    • Events
    • Conditions
      • LizardEgg_Obtained Equal to True
      • PhoenixEgg_Obtained Equal to True
      • ShimmerWeed_Obtained Equal to True
    • Actions
      • -------- < Your actions here > --------
Everytime you pick up one of the quest items, it will attempt to complete the quest but only if all conditions are met, in this case, all my boolean variables must be set to true before that

You can probably combine all item pick up triggers into a single one with several if/then/elses, that was just for the sake of the example
 
Status
Not open for further replies.
Top