How to add an Interactive Treasure Chest in RPG Maker XP

So, what’s an ‘Interactive Treasure Chest’ and how is it different than a regular one?

Well, regular chests just open up when a player loots them and that’s usually all. By contrast, my Interactive Treasure Chests do a little bit more. While the player is interacting with it and the code is being executed, this chest is fully open. After the player is done getting the loot or whatever, the chest remains open a little bit to indicate at a glance from the player that the chest has already been looted. Also, if a player attempts to open the chest again it opens wide and tells the player that it is empty.

So, I guess you could say that my Interactive Treasure Chest just provides the player with more useful feedback using both visual cues and a status message.

Instructions:

  1. In a new Edit Event window, double-click the empty graphic box and select a closed chest graphic facing the direction you want. (These are on the top row of the built-in chest graphics.)
  2. Uncheck Move Animation.
  3. In the Event Commands, add a [Set Move Route…] event from page 2. Change the drop-down box to “This Event”, click [Turn Up], and [OK].
  4. Add a [Play SE…] event from page 2. Choose “055-Right01” from the list and click [OK].
  5. Add a [Show Text…] event from page 1. Type a message to the player indicating what was found. (e.g. “You found some Bread!” Click [OK].
  6. From page 1, add a [Change Items…], [Change Gold…], [Change Weapons…], or [Change Armor…]) event. Choose what you want to give to the player. Set the Operation to Increase and the Operand to Constant. If you are adding gold, set the amount in the Constant box.
  7. Add a [Control Self Switch…] event from page 1. Click [OK] to create an event that sets Self Switch A to ON.
RPG Maker XP - Adding a Treasure Chest, Page 1

How to add an Interactive Treasure Chest in RPG Maker XP - Page 1

  1. Now press the [New Event Page] button at the top of the Edit Event window.
  2. Double-click the empty graphic box and select an open chest graphic facing the direction you want. (These are on the third row of the built-in chest graphics.)
  3. Check Self Switch so that A is ON.
  4. Uncheck Move Animation.
  5. In the Event Commands, add a [Set Move Route…] event from page 2. Change the drop-down box to “This Event”, click [Turn Up], and [OK].
  6. Add a [Show Text…] event from page 1. Type a message to the player indicating the chest is empty. (e.g. “The chest is empty.” Click [OK].
  7. In the Event Commands, add a [Set Move Route…] event from page 2. Change the drop-down box to “This Event”, click [Turn Right], and [OK].
RPG Maker XP - Adding a Treasure Chest, Page 2

How to add an Interactive Treasure Chest in RPG Maker XP - Page 2

10 responses to “How to add an Interactive Treasure Chest in RPG Maker XP

  1. didnt work… when i press the play button, the chest dissapear…

  2. Re: pr4t4m468

    All I can say is double check your settings and make sure you made all the changes and didn’t skip any steps. If you look at the two pictures, you can pretty much just make your two pages look the same as mine. The first image is for the first page and the second for the second.

  3. hey nice tutorial works great for me just need to now know how to close a quest once it has been finished so it doesn’t keep coming back

  4. Re: velentry

    I’m not sure what you mean. If you mean “chest” instead of “quest” then it’s automatic. Using a Control Self Switch will remember that the chest was opened.

  5. pr4t4m468 – Your problem is that you don’t have an image selected for the second page, make sure you have two images, one for the chest on page 1 and one for the chest on page2.

    Great tutorial this really helped me out, I was getting confused with control switches and self switches, but this has cleared it up for me! thanks.

  6. Great tutorial! I used this for my game, and it looks great in it! Thanks!

  7. nice, you should make more tutorials

  8. Thanks for putting this info up on how to get a chest working. I have been trying for 1 and 1/2 days to get a chest to work right. and thanks to the info you put up. It was somthing simple. Thanks Again. :)

  9. You are thinking to hard, just use Self-Switches, that’s easier and it works.

  10. True. I think I wrote out these for an earlier version of the program or before I knew how the self switches worked. Converting the instructions to use self switches would simplify the process a little bit.

Leave a comment