Help - Search - Members - Calendar
Full Version: [VX] Random Treasure
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
Reshiram//Exe
Hello to my First How to Tutorial. This tutorial Covers everything you Will need to Make random Treasure.
What is "Random Treasure?
In some RPG games, treasure chests have random contents. This is more a realism thing as you wouldn't find "THAT" sword able to kill a dragon in a treasure chest in real life. it would be probably full of junk. Making random treasure is surprisingly easy, and you only have to make it once. As you can copy and paste your random Treasure chests wherever you desire.


Basic Method to making a random treasure chest
Fortunately, Enterbrain slipped in a quick treasure chest generator. This can be the base for our random chest. See the event command:
Change items:+__[____] Or something along those lines? This is were we need to edit this for Randomness. How? go into the database and create a new Variable or common event if you have already made your random chest. You can call it whatever you like. "Treasure Gen" or "Random Treasure" would be a sensible idea, Or something along those lines.So you don't delete this variable.

Now, Remember, what ever you want to NOT Get out of a treasure chest, put on a really high number so it is not inconvenient so you have to make multiple random generators, But not specify any of the number ID'S of the items. Such items would be quest items. Unless it is a random collection quest laugh.gif now when the player opens the chest, randomly set the variable, then reward the item in that number slot.


Junk Items
want the Player to get nothing but junk out of some chests? Create a item that does nothing or something very useless and Name it "Junk" or "Rubbish" Whatever. This can be added into the items and got out of the chest at random.


Please add this to your post.

Was this guide useful?:
did you notice any spelling/Grammar errors(Please say what):
do you want me to make more guides in the future?
Alt_Jack
I tried this and it gave me a random quantity, not item number. huh.gif
The variable controls how many of something you get, and would work better for random amounts of gold.
The "operand" (number of) has 2 options: set or variable.
I'm guessing it's supposed to say:
QUOTE
Play SE: "Chest" 80,100
Set move route: this event (wait)
direction fix off
turn left
wait 3 frames
turn right
wait: 3 frames
control self switch A = ON
control variables {0005:random treasure] = Random No, (1.....20)
change items: [potion] + variable [05. random treasure]
text: \ v[5 ] was found!

The text part shows the result of the variable (it gave me 2, rather than item #2). The part where it says "potion" is unavoidable.
Otherwise it'd work fine. Best try a script instead.
MajinBangFlash
An example of the event would be nice dry.gif
rayvales
tis event gave me some ideas to think about, thank you smile.gif
RzrBladeMontage
Ray please don't necro. Verbal warn.
Tsukihime
No idea is "old". I wouldn't have come across such an idea if it was buried.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.