The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Seoxultima on March 03, 2006, 12:43:05 AM

Title: Randomness help
Post by: Seoxultima on March 03, 2006, 12:43:05 AM
ok,how do i make an event give you a random item from a set  few?like,in golden sun,the lost age when you give yallam smithy something?

ie:give a guy some iron,he radomly picks somethin and gives.

also,i need help making a mining system,what is the best form of animation i could do?and how could i make rocks give random ore?(see above)

thanks in advance
Title: Randomness help
Post by: Master_of_Time on March 03, 2006, 02:20:58 AM
For the random item thing, go to the change item command but
instead of choosing a specific item, create a variable.
Title: Randomness help
Post by: Seoxultima on March 04, 2006, 02:20:59 PM
ok,could you explain a bit more detailed please?
Title: Randomness help
Post by: monster-doog on March 04, 2006, 05:21:22 PM
Put the variable set from #1-3. Then make a seperate case for each stating that if you land on #1, you get a potion.On #2, a sword. Or what ever you want
the items to be.
Title: Randomness help
Post by: dragonmagna on March 04, 2006, 05:26:12 PM
A bit more easy to understand is-
1.Make a variable
2.when you talk to the guy(give him an item), set that variable to random number between 1&3 or whatever.
3.Use a conditional branch for after that, making it so that 1 giets you a potion or whatever(just as monster doog said).
4. After that, your done.
Title: Randomness help
Post by: Seoxultima on March 05, 2006, 02:40:56 PM
ok,so:
variable of 1-3
make 3 cond. branches,one for each outcome?

EDIT:ok,thanks guys,i figured it out,but with one flaw-i made a tester that said hi-then a number(of the number picked)it worked once,but then it would only say hi,never picking a number again.i wanna make lots of random things,like for a mining system.ihow do i make it repeat the vareiable check?
Title: Randomness help
Post by: Viper on March 05, 2006, 02:43:24 PM
Roger that