Treasure Chest Tutorial

Introduction To This Guide:
The purpose of this guide will help you how to make a treasure chest that functions like in RPG Maker VX and VX Ace without using a switch, but a self switch. The guide won't be long, but it will be short enough to understand how to make one. Anyways, let's begin!

Making The Trasure Chest:
The first thing you will have to do is make an event. Name the event Treasure Chest if it helps. Next, change the event's graphic to a
treasure chest that's closed. Have the event's options set to Direction Fix (so you can see the chest open without it facing you) and trigger set to Action Button (so you can open the chest while in front of it.). Now, we are going to edit the List of Event Commands section. The first command that you should put in is Play SE (Sound Effect), select 044-Chest as the sound effect. Next, put in the Set Move Route command after the sound effect. In Set Move Route, set it to This Event (instead of seeing the player move rather than the chest itself.). After that, set the route to this order:

1. Direction Fix Off
2. Turn Left
3. Wait: 3 frame(s)
4. Turn Right
5. Wait: 3 frame(s)
6. Turn Up
7. Wait: 3 frame(s)


Now, you have made the animation of the treasure chest opening. Now, insert the command Control Self Switch to A is on.
The next part you'll have to do is getting the item from the chest. What's in the treasure chest is totally up to you, it could be Gold, an Item, Weapon, or Armor. To do that, insert Change Gold (Item, Weapon, or Armor) and set it to increase. Next, create a message (from Show Text) saying what you got from the chest. For example, You found 50 G! After that, create a new event page and set the graphic of the treasure chest opened (on the new event page), then, set it's conditions to Self Switch A is on. And there you go! You have made a treasure chest.

SteamTutorial1Picture1.png
Or you could just use the chest function in the quick event thing and it will do all that for you
Oddball, there's no quick event in RMXP, which this tutorial is for.
Oddball, there's no quick event in RMXP, which this tutorial is for.
oops. I'm an idiot! 😛 lol
Oddball, there's no quick event in RMXP, which this tutorial is for.
 Even so, i feel like you could use the quick event from the others rpg makers to guide you. (I mean, the process ins't really different)

 The tutorial itself works, i can't deny that. It's simple, thought and i feel like you could add a lot of other thing if you want (from a sprite of the hero holding something Zelda style to a few sounds here and there) however it work like it has to if you make it this simple.
 Even so, i feel like you could use the quick event from the others rpg makers to guide you. (I mean, the process ins't really different)

 The tutorial itself works, i can't deny that. It's simple, thought and i feel like you could add a lot of other thing if you want (from a sprite of the hero holding something Zelda style to a few sounds here and there) however it work like it has to if you make it this simple.
don't forget eventing randomized chests pick-ups, dynamic chests, interactive chests, and other chest events

although, it looks like he is aiming this tutorial at beginners. If that's the case, it works perfectly for his purpose. Because beginners have a steep learning curve, and every little bit of help helps
I don't know if this is still active, but I can reopen the chests and get whats inside again, is there any way to make it so that it doesn't do that?
@mrkipz There is a command missing at the end of that event.

The last command should be
Control Self Switch (top right of tab one of the event command menu). Select A.
Create new blank event page with just the graphic of the open chest, so that the player knows they have already looted this chest.
Check the condition box on the left 'Self Switch' and select A again.

Once you open the chest, the self switch activates, the second page becomes the one which is running.
This is how you ensure that any event moves on - e.g. an NPC who says different things. Just pick the next self-switch up for any further pages. You have up to 4 for each event, A-D.
Thank you Kes, I needed it
works for a bit... but the character moves and the chest doesn't open. help?
@SalyaDarken you have made a mistake. Please post screenshots of your event.
works for a bit... but the character moves and the chest doesn't open. help?

I've got my suspicions here.
It seems like you forgot to remove the walking animation condition from your chest. I mean the one to your left right below the page graphic. Remove it and it will not move forward or in any other direction.

Original thread: https://forums.rpgmakerweb.com/threads/treasure-chest-tutorial.37608/