RMXP Chest TutorialUnlike RMVX, XP doesn't come with an easy chest maker system. Never fear, for I am here to show all of you who are new to RMXP how to create chests.
To help those of you who don't know eventing language yet, I will include lots of screenshots. First of all, we need to create a new event, and make its trigger "Action Button." Then we will want to choose the graphic for the chest. Be sure to only pick a graphic from the top of the chest sheet, because we don't want the chest to already be open.

Now it's time to start writing our event code. First, we should display a message saying "Blah blah blah was found!" or something like that. Then we have to actually add the item to the player's inventory by using the "Change Items" command. Finally, we need to make the chest actually open. To do this, you should first play a sound effect, which you can choose. Then we need to change the direction the chest is facing. It sounds odd, but if you look at the chest sheet compared with a character sheet:


You can see that the chests actually have "directions" just like the characters, they're just not actually facing that way on the sheet. Now, in this case, the "open" direction we want is the chest facing up, which is the bottom graphic.

So now we have to add a "Set Move Route" command to make the chest face up.

Last of all, we don't want the player to be able to open the chest again, right? So we need to add a second event page that does nothing, but has the chest in the open position. Add a new event page, and make the graphic the open position of the chest. Now we have to make a self switch that will activate after the rest of the first page is finished. Make the condition for the second page of the event "Self Switch A is On".

Then go back to the first page, and at the end of the code, insert a "Control Self Switch" command, and select self switch A. That's it! Your simple chest is now done. Here is what the final event code should look like:

Well, that's pretty much it. I hope this tutorial helps a bunch of you.
This post has been edited by thesanguinepenguin38: Jun 15 2011, 06:59 PM