Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker VX > Treasure chests with Ranodm traps

Treasure chests with Ranodm traps


This tutorial basically lets you have a Treasure Chest containing traps. This means when the player opens the chest they either get the item inside it or a trap.

First of all, create an event with the Graphic as a Chest.

Next, go to the Common Events tab. Create a new common event called Treasure Chest.

Now, create a text event command saying something like: Do you wish to open the chest?.

Now, add some choices saying Yes, No
When [yes]
Control Variables: Random = Random number.(1-5)
Conditional Branch: Variable[Random] == (any number between 1-5)
Text: There was a trap!
Change HP: Entire Party(Allow Knockout)(HP you want to loose)
Text: You lost HP lost
Else
Change Gold: How much cash you want them to find.
Text: Change Gold: what you set to find.
Control Self Switch: A =ON
Branch End

When [No]
Branch End

Now, add an event with the picture as a closed chest.
Call Common Event: Treasure Chest

Add a New Event Page with the graphic as an open chest.
and Self Switch A is ON.


Details
Tutorial: Treasure chests with Ranodm traps
Date Listed: Sun, 11 Oct 2009 01:03:18 -0400
Author: kiwikiwllu
Total Hits: 1321


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal