Guide Requirements:
- Computer
- 1+ Hands
- Brain
- Sleeping Pills
Quote:
Originally Posted by cofruben
|
The above quote should take care of all downloading steps. Now, the editor. When you load you will have alot of confusing things. First thing you have to do to start is think, "What do I want my NPC to do?" For right now, we want our NPC to say something, so we are going to hit in the box located on the screenshot below, EVENT_SAY.
Screenshot too big, click here to view
Now what we want to do is add functions, so we need our if statement, so underneath sub EVENT_SAY type if ($text=~/hail/i) {.
To get other if statements, look through the variables section.
Now you are ready to add your quest function. Look in the functions column to add one (top column). Now my quest looks like
Code:
sub EVENT_SAY
{
if ($text=~/hail/i) { quest::say("Hail, young warrior!");
but I can't stop here, if I would like to add more actions to this quest, I would just choose another function, but if I want to end this and go to another section, I would just add a }, so if thats it, it should look like
Code:
sub EVENT_SAY
{
if ($text=~/hail/i) { quest::say("Hail, young warrior!");[
}
Now, if we wanted to have a battle take place, the code would be
Code:
sub EVENT_ATTACK
{
if ($ulevel == 1) { quest::say("Stupid n00bs, DIE!");
quest::attack("$name");
}
See, I clicked EVENT_ATTACK under events, then I selected level for my if statement (variables section) and made the value 1, then I chose say and put it Stupid n00bs, DIE! and then I selected attack and set it to $name, which is the user that goes near it.
ALWAYS USE } AT THE END OF A QUEST AND AT THE END OF A COMMAND!!!!!!
If you are still unclear on how to use this Quest Editor, or any quests in general, feel free to contact me or post it in this thread.[/b][/url]