How do you get a random chance event?

So, I want to get a random chance event. I'm making an item called Mystery Box that you can obtain or buy from a Merchant.


The problem is there's no RANDOM CHANCE stuff. There no pre-made plugins, and without that there is no Mystery boxes.


So how?


I mean something like, 1 in three chance of sword & one in four chance of... I'm still working on this game so use your imagination.


Point is, how do I do it? Thanks for your time.


-Actual
You would use a variable switch, select random 1-4.  Then a conditional branch e.g. if 1 give a sword, if 2 give a sword, if 3 give nothing, if 4 give an Mighty Axe.


However, "How to...?" questions such as this belong in the Support forum for whichever engine you are using.  So...


I've moved this thread to RPGMaker MV. Please be sure to post your threads in the correct forum next time. Thank you.
You would use a variable switch, select random 1-4.  Then a conditional branch e.g. if 1 give a sword, if 2 give a sword, if 3 give nothing, if 4 give an Mighty Axe.


However, "How to...?" questions such as this belong in the Support forum for whichever engine you are using.  So...


I've moved this thread to RPGMaker MV. Please be sure to post your threads in the correct forum next time. Thank you.


Thank you. Though, I don't know what you mean by a variable switch though. I may sound like a noob and that's kind of fine.
control variable command (ksjip17 mistyped) contains an option to select a random number. That is one of the basic event commands used everywhere.


If you're new to the program, I suggest you follow the link to the starting point in my signature and work through the tutorials listed there.


The event commands (especially the control variable command) are extremely powerfull, that is why you don't find plugins for simple things like a random box.
control variable command (ksjip17 mistyped) contains an option to select a random number. That is one of the basic event commands used everywhere.


If you're new to the program, I suggest you follow the link to the starting point in my signature and work through the tutorials listed there.


The event commands (especially the control variable command) are extremely powerfull, that is why you don't find plugins for simple things like a random box.

Hey, thanks! I might actually credit you for helping making the item possible in the game... hmm.


Well thanks.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-get-a-random-chance-event.63758/