RPG Maker Forums

I was wondering if someone could help me with this:

You can imagine this like prize pools.
Im rolling a variable to get random numbers, for multiple purposes. Lets suppose i want to get a number between 1-5
So first i create the following array into the variable #1:
Code:
$gameVariables.setValue(1,[1,2,3,4,5])
After that, i need to pick one of those numbers randomly and set it as value of the variable #2; with this one i do some conditional branching. At the end, i need to remove that number from the array, since it was used; so, what im needing advice with is the following:

-Getting a value from one of the numbers within the array, setting it as value of certain variable, in this case, variable #2
- After using it to whatever, remove it from the array, to prevent getting the same number again ( thats the full purpose of this, otherwise i would just roll one variable between the numbers..)

Thanks in advance.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top