Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: vytong on July 17, 2008, 04:31:52 AM

Title: How Do you make a treasure box stop....
Post by: vytong on July 17, 2008, 04:31:52 AM
How Do you make a treasure box stop giving items i want like 1 item and you can keep getting items from it over and over again.... :-X
Title: Re: How Do you make a treasure box stop....
Post by: A Forgotten Legend on July 17, 2008, 04:38:06 AM
Switches.

GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.

So it'll look something like this:

Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Make the second page an action key event.  If you want you can add a message saying that the chest has nothing inside or etc.
Title: Re: How Do you make a treasure box stop....
Post by: vytong on July 17, 2008, 05:05:05 AM
Switches.

GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.

So it'll look something like this:

Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Make the second page an action key event.  If you want you can add a message saying that the chest has nothing inside or etc.
sorry for all that but i got lost on this part: GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.
Title: Re: How Do you make a treasure box stop....
Post by: A Forgotten Legend on July 17, 2008, 05:13:06 AM
...that was my entire explanation. o.o

Ok.

Go to your chest event and open it up.
You'll see a button at the top that says 'new page' or something of the like.
Click it.
You'll will now have a new page in the event.
In that page, choose the graphic you would like to see when the chest has already opened.
Next, there with be a part above that that says Switch.  Click the check box, and then the "..." (I think...).
Then, click on an empty switch blank. 
Name it.
Now, Click Ok.
Make this page and action key event.
If you want a message that says that this chest has already been opened put it there now.
Go back to the original page of the event. 
Go to the end of what you have, and create a new part to that page.
Choose Switch Operations. 
Choose the switch you have just created.
Set it to ON.

This is what your original page may look like:
Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Your event should work now.

Got it?
Title: Re: How Do you make a treasure box stop....
Post by: Rahl on July 17, 2008, 12:06:24 PM
Heres a simple solution that for all treasure chests.

(http://i43.photobucket.com/albums/e354/hellroc/treasure.jpg)

(http://i43.photobucket.com/albums/e354/hellroc/treasure2.jpg)

make this event in your game on page 1 and 2. Change the item name and the item added, and what switch you want the second page to be.
Title: Re: How Do you make a treasure box stop....
Post by: Cerebus on July 17, 2008, 12:13:05 PM
Yeah, but like A Forgotten Legend said, you should add "Move Event: Face Right, Face Up, Face Left" first, so you get some kind of chest opening "animation". Or, just change the graphic if you want the chest to open instantly like in most game.

That's one thing I quite preferred on the PSX version. There were those "Treasure Event" so you didn't need a switch for every chest..
Title: Re: How Do you make a treasure box stop....
Post by: Rahl on July 17, 2008, 12:41:59 PM
yeah so many switches are bad for lagging out games. I try to keep as few switches ON as I can, in my games, just keep that in mind vytong.
Title: Re: How Do you make a treasure box stop....
Post by: A Forgotten Legend on July 18, 2008, 08:36:58 PM
VX has a quick event option for chests and it puts the animation in for you.  *huggles VX*

I've never really had a problem with switches.