The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: alex on September 26, 2006, 12:11:50 AM

Title: How Do I Make a Quest?
Post by: alex on September 26, 2006, 12:11:50 AM
Ok I'm nearly finished my first 'quest', if you can even call it that. It involves the main character talking to an old guy who has lost his book. You then find the book in the town and return it to him. He rewards you with 200 gold. Simple. So far, this is what I've got. Obviously it's not working the way it should, otherwise I wouldn't be asking for help. Can anyone help?

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi97.photobucket.com%2Falbums%2Fl204%2Falex23_23%2Fquest1a.jpg&hash=590b6a848cf1915e9e801e57b05fbb70e096c7b5)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi97.photobucket.com%2Falbums%2Fl204%2Falex23_23%2Fquest1b.jpg&hash=95e6f4946355c42152c2021c534658bd1210258d)
Title: Re: How Do I Make a Quest?
Post by: alex on September 26, 2006, 12:18:33 AM
What ends up happening is that you can keep getting 200 coins from the man, even if you don't have the book, and also if you have already given him the book.  >:(


I'm using RPG Maker XP, by the way.
Title: Re: How Do I Make a Quest?
Post by: coolkid25344 on September 26, 2006, 12:43:57 AM
Your problem is that on the sencond page you have to take out the variable part, and make it a requinment on the side below the switches, you should also take out the yes I have it and no i dont, and just make it so that if you have it he gives you the gold.
Title: Re: How Do I Make a Quest?
Post by: alex on September 26, 2006, 12:53:06 AM
Ok.. that almost works. But not quite. Now what happens is that he keeps saying the first thing over again when I talk to him, even if I have the book.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi97.photobucket.com%2Falbums%2Fl204%2Falex23_23%2Fquest1.png&hash=74ba8f8bdb9e0ddf0eae5ad003e77e64fde65f5f)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi97.photobucket.com%2Falbums%2Fl204%2Falex23_23%2Fquest2.png&hash=3ac8fbec2e426dd60851f97a5b94d1e254319e51)

I think the problem is that my variable isn't correct, mainly because I have no clue how to use variables and I didn't set anything up...
Title: Re: How Do I Make a Quest?
Post by: King Anesis on September 26, 2006, 01:42:46 AM
Wait, put a new page on it (Page 3) just to clear the final confusion.

On Page 2, you should have the switch  Old Man's Book is on precondition. Here he should say Please find my book soon.

On Page 3, you should have both the switch Old Man's Book and the Variable on. That's when he should say the last part.

For the variable to work, you need to edit the event that gives the character the book. Once you receive the book (as an item), make sure you use Variable Operation (Page 1 of event commands window), and make it look like this.

<> Variable  [0001: Old Man's Book] += 1

On the second page of the same event (the one that GIVES YOU THE ITEM), make it activate on the same variable precondition you used in the third page of the Quest 1 event. On the page, make it say, there is nothing more here.

That should make it work.
Title: Re: How Do I Make a Quest?
Post by: alex on September 26, 2006, 02:00:45 AM
Ok thanks, that helps quite a bit. It works perfectly, except for one thing: after you return the book, you get 200 gold, and then he says 'Please find my book soon' over again every time you talk to him, and you can keep getting 200 coins again and again, and now that the chest (where you find the book) is controlled by the same variable, every time you talk to the old man the chest opens again and you can keep getting books out of there. :(
Title: Re: How Do I Make a Quest?
Post by: alex on September 26, 2006, 02:09:41 AM
 :D Perhaps you could just give me an example of the quest, because I think I messed it up too much now...  ???

I'm way in over my head now...

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi97.photobucket.com%2Falbums%2Fl204%2Falex23_23%2Fquest.png&hash=4caff087f83b2244a816512ecef2fc010c7b47fd)
Title: Re: How Do I Make a Quest?
Post by: Blizzard on September 26, 2006, 11:45:16 AM
*calls Zeriab to add this here into RMXP FAQ*
Title: Re: How Do I Make a Quest?
Post by: Zeriab on September 26, 2006, 03:25:59 PM
*is summoned*

Hmm... It doesn't look right alex.
You shouldn't have to trigger the chest after it has opened.
Copy the variable operation on page 2 of the event chest to the end of page 1. (Just above Local Switch A = On)
Then delete it from the second page.
I think this will work, though I am not sure.

@Blizzard: What do you want added? There already is a section about making a quest. Do you think as an example?

 - Zeriab
Title: Re: How Do I Make a Quest?
Post by: King Anesis on September 26, 2006, 08:23:26 PM
Simple seeming. Just add a switch to activate on the last page of the event that gives you the money. Then make a new page activated by that switch. Just make it empty.

Make a new page on the chest event as well. Have it activate on the SAME switch precondition.
Title: Re: How Do I Make a Quest?
Post by: alex on September 27, 2006, 11:58:34 PM
Thanks to everyone who replied, I've got it up and running smoothly now. I deleted the whole thing and did it from scratch and now it works, thanks to my increased knowledge of switches and conditional branches.