• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Quests, How to make them!

Level 14
Joined
Jan 5, 2009
Messages
1,127

Quests

What Are Quests?

Quests are things that have to achieve to go to the next area or level up, or even gain reputation(as in WoW). But in some certain cases their are opitional quests which you can choose to do or not to. Now in a map up the top left hand corner there is a quest tab although you can only press it if there is any quests.
Warning: In some maps the quest tab the name maybe changed to Info or something else, but its still the same quest tab.

How do you make Quests?

Making a quest is easy! All you need is some skill with GUI triggers( JASS is able to do it ).
If you know what variables are then good your on the right track, if you don't however there is a tutorial on the site that explains everthing! We're going to do this in simple and efficient steps.
1. Open the Trigger Editor

2. Make a new Trigger(name it Quests)
At the momment it should look like this:
  • Quests
    • Events
    • Conditions
    • Actions
3. We now need to make some variables, press the gold X and create one quest variable named Quest1 and another variable that is named Quest1Req( This variable must be a Quest Requirement Type variable )

4. Now we have our variables we can start making the trigger! First we need an event, such as your hero going up to a guard or the king! Its your choice!

5. Conditions are very helpful for quests because they cannot only tell if your character is ok with the quest! But it can also say if have finished the quest!

Its your input( Im not going to show you because you should know how to make conditions! )

6. Actions! This is the bit that we make our quests!
-First we add:
  • Quests
    • Events
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Your Title with the description Your discription, using icon path Your Icon
You see know we have made our quest! But what happens if we have multiple quests? Now we must set it to our variable!
  • Quests
    • Events
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Your Title with the description Your discription, using icon path Your Icon
      • Set Quest1 = (Last created quest)
Now that it is set to a variable we can now access the quest anytime we want!
To add some requirements!
  • Quests
    • Events
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Your Title with the description Your discription, using icon path Your Icon
      • Set Quest1 = (Last created quest)
      • Quest - Create a quest requirement for Quest1 with the description -Do whatever
We also need to set that to a variable because if your having multiple requirements for different quests you might not be able to access it!
  • Quests
    • Events
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Your Title with the description Your discription, using icon path Your Icon
      • Set Quest1 = (Last created quest)
      • Quest - Create a quest requirement for Quest1 with the description -Do whatever
      • Set Quest1req = (Last created quest requirement)
Wasn't that easy!
To make our quest complete we must add a finish! Like if your ordered to steal some items for a bandit then once the bandit has them he gives a reward and the quest is marked as finished!
We need a separate trigger!
Just name it Quest1finish
  • Quest1finish
    • Events
    • Conditions
    • Actions
      • Quest - Mark Quest1 as Completed
      • Quest - Mark Quest1req as Completed
      • -------- Reward Here --------
Oh and one thing you need conditions! I mean you can't run off then come back with nothing and still get the reward! Also you need events because without them the trigger will not activate so when you come back with the stuff nothing happens but if you do have events it will happen!

Other stuff


  • Quest - Display to (All players) the Quest Update message: Displays a message!
  • Quest - Destroy Quest1
  • Quest - Mark (Last created quest) as Failed
  • Quest - Mark (Last created quest) as Discovered
 
Top