Help - Search - Members - Calendar
Full Version: [Events]Chest Tutorial
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion > RPG Maker XP Tutorials
Penguin
RMXP Chest Tutorial

Unlike 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. biggrin.gif
kayden997
Simple tutorial with lots of pictures.
I've seen worse, so good job smile.gif
watermelon_1234
I think it makes more sense to play the SE before the message is displayed.
Also, since the tutorial is pretty simple, you could spice it up a bit by telling the reader how to animate the chest.
Penguin
Watermelon, I agree with you. I'm going to make another tutorial, this time how to make a "complex" chest. Thanks for the suggestion.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.