Hello!
So I’ve seen how to roll a value from an array, and I get that I can remove a value from that same array using a splice.
My question is: Once I’m done using that script (I plan on putting it as a common event so I can repeat it over and over again)
How would I script it to reset the complete values without the ones that are taken?
Not sure if I’m making sense so:
if the array is 1-10, I trigger the common event, a random value is taken away, I run the common event again and another value is taken away, now I trigger another event and it reset the values back to 1-10.
So I’ve seen how to roll a value from an array, and I get that I can remove a value from that same array using a splice.
My question is: Once I’m done using that script (I plan on putting it as a common event so I can repeat it over and over again)
How would I script it to reset the complete values without the ones that are taken?
Not sure if I’m making sense so:
if the array is 1-10, I trigger the common event, a random value is taken away, I run the common event again and another value is taken away, now I trigger another event and it reset the values back to 1-10.