Extra Chapter 1a: Open From Front

Extra Chapter 1a: Open From Front

Continuing with the Chest Tutorials, the next set of tutorials either enhance existing tutorials or adds some extra features to chests.

This is a series of extra chapters, which have either been suggested or I’ve been inspired on my own.

Creating The Chest

To add some realism, you won’t necessarily be able to open a chest from behind, only from the front. This is how it can be achieved in RPG Maker.

In "Conditional Branch", there is an option to determine which direction the player is facing (the second tab under "Event").

The complete code is:

RM2K3RMXPRMVX/VXA
<>Branch if Hero Up Facing
  <>Play Sound: open1
  <>Message: The chest opens!
  <>Move Event: This Event, Face Right
  <>Wait: 0.2 Sec
  <>Move Event: This Event, Face Up
  <>Wait: 0.2 Sec
  <>Move Event: This Event, Face Left
  <>Wait: 0.2 Sec
  <>Change Items: Potion 1 Add
  <>Message: Potion received.
  <>Switch Operation: [0011:Chest E1 Opened] ON
  <>
: Else Handler
  <>Message: Try opening it from the front!
: End
Coming soon!
Coming soon!

So, if you try opening the chest from the sides or back, a message will tell you to open it from the front.

Next Chapter

We’re ready to move onto Extra Chapter 2: Random Gold.