RPG Maker Times

Smile Game Builder and RPG Maker Tutorials, Plugins, Resources, Windowskins

Chapter 4a: Combination Locks (Basic)

Combination locks can be placed on some chests, which will only be opened if the correct combination is entered, otherwise will remain closed. In this two part tutorial, I’ll demonstrate how this can be achieved.

Setting Up The Chest

For the first chest, which sets up a basic 4-digit combination lock, we need to create another chest event, "Chest 4a". On Page 2, set the "Conditions" switch to "Chest 4a Opened".

Here we’ll set up a variable and input option for the combination (in this case 1234), stored in "Combo", determine if the correct combination has been entered and, if so, provide random contents (detailed in Chapter 3). If not, the chest remains closed.

The complete code on Page 1 will look like this:

Chapter 4a: Fig. 1 (RM2K3)
Chapter 4a: Fig. 1 (RM2K3)
Coming soon!
Coming soon!

When you playtest the game, if you try and open the chest with any other combination than 1234, the combination will be incorrect. Trying "1234" will open the chest and give random items.

Adding Non-Randomized Items

If you want to add your own items to the chest, simply delete the Call Event: Random Contents event command and replace them with your own.

Next Chapter

We can now move onto Chapter 4b: Combination Locks (Advanced).



Hi-Tex House Pack Vol. 1

For Smile Game Builder

The Hi-Tex House Pack Vol. 1 contains 297 assets: 284 house wall terrains and 13 models. Get your copy for only $5!

Sponsored Ad

Sponsored Ad

Follow me on Twitter

© 2008-2018, Companion Wulf. All Rights Reserved.