HOW DO I MAKE A CHEST? (RMVX) (RESOLVED)
Posts
Pages:
1
I am using vx and I have looked through the tutorials for it, but havent found anything about how to make a chest, or how to make an item spot have a random item (sort of like hero 's realm.) If there is already a topic like this, I would appreciate a link. Please and thank you.
All a chest amounts to is an event "On Hero Level" with an "Action Button" trigger with a message box and a "Change Item" or "Change Money" line. A chest with a random item inside of it would probably have a variable that is set to a random number, then have a bunch of "Conditional Branches" that check the value of the random number, and execute whatever. As a simple example of code:
Was... that too confusing?
CONTROL VARIABLES [0001:num] = Random No (0...5)
CONDITIONAL BRANCH: Variable [0001:num] == 0
{
Text: (-,-, Normal, Bottom)
"You found 50 Gold!"
CHANGE GOLD +50
}
CONDITIONAL BRANCH: Variable [0001:num] == 1
{
Text: (-,-, Normal, Bottom)
"You found a Potion!"
CHANGE ITEMS [Potion] +1
}
COMMENT: etc...
Was... that too confusing?
author=Marrend
Was... that too confusing?
Not all together no, and thank you for taking to time to answer, and just to make sure I got it. I need to have the chest/item spot have an event, that produces a set number of items/gold.
Now do I need to use a switch to end the chest/item spot, so that it wont keep giving an item/gold every time?
Not entirely related to the method Marrend told you, but you can actually create a treasure chest automatically by right clicking on the map tile where you want it, selecting the Quick Event Creation submenu, and choosing "Treasure Chest..." You'll be prompted to select the chest's graphic, and whether it contains gold or an item. This will automatically fill in the event code, but you can edit it afterwards if you want to have more than one item.
The automatic creation will also make the chest turn its own A switch on so that it only gives out its loot once, and automates the opening animation and item gain message.
The automatic creation will also make the chest turn its own A switch on so that it only gives out its loot once, and automates the opening animation and item gain message.
author=Trihan
Not entirely related to the method Marrend told you, but you can actually create a treasure chest automatically by right clicking on the map tile where you want it, selecting the Quick Event Creation submenu, and choosing "Treasure Chest..." You'll be prompted to select the chest's graphic, and whether it contains gold or an item. This will automatically fill in the event code, but you can edit it afterwards if you want to have more than one item.
The automatic creation will also make the chest turn its own A switch on so that it only gives out its loot once, and automates the opening animation and item gain message.
OH.... thats very helpful thank you.
Pages:
1















