Almost exactly what This Thread's Trying to achieve.
Mechanical explanation
I need to have a system where 3 random values are picked out of (10 right now, more later.) with no repeats. Based on the value chosen, Different things will happen when a button is pressed.
(Less helpful?) Regular explanation
I am using Sang Hendrix's Picture UI creator plugin to attempt to make Random Upgrade Choices. The plugin is paid so i dont expect any knowledge of it, but Show Choices Won't work.
Past Attempt
What i tried doing was making 3 events, spawning in succession.
event 1 picks a random number between 1, and 10, then changes a unique variable for each one to [1] based on the number, and spawns event 2. after that, when the okay button is pressed on event 1's choice, it then looks if each unique variable is 1. once it finds the variable that's value is 1, it creates an upgrade effect that has been tested and has worked outside of this event. it then despawns itself and the other events.
event 2 has a loop, where it picks a number like event 1, then checks to see if that choice's unique variable is 1, if it is, nothing happens and it loops again. if it isn't, it change's that upgrade's unique variable to 2 and spawns event 3. after that, it does the same thing as event 1 does when the button is pressed, but checks to see if the variable is 2 or not.
3 is basically the same as 2, but it checks if the unique variable is greater than or equal to 1 to see if it has to reroll, and it checks if the unique variable is 3 for the effect.
When i tried it and fixed the ton of other bugs it had, the only one remaining that i couldn't figure out was that most of the upgrade effects wouldn't trigger. It's not a problem with the UI plugin since all of the other things that happen when the OK button is pressed worked fine, its just that.
So i looked at my events again and... yeah i probably need something better. Is there any help or advice you could give me?
Mechanical explanation
I need to have a system where 3 random values are picked out of (10 right now, more later.) with no repeats. Based on the value chosen, Different things will happen when a button is pressed.
(Less helpful?) Regular explanation
I am using Sang Hendrix's Picture UI creator plugin to attempt to make Random Upgrade Choices. The plugin is paid so i dont expect any knowledge of it, but Show Choices Won't work.
Past Attempt
What i tried doing was making 3 events, spawning in succession.
event 1 picks a random number between 1, and 10, then changes a unique variable for each one to [1] based on the number, and spawns event 2. after that, when the okay button is pressed on event 1's choice, it then looks if each unique variable is 1. once it finds the variable that's value is 1, it creates an upgrade effect that has been tested and has worked outside of this event. it then despawns itself and the other events.
event 2 has a loop, where it picks a number like event 1, then checks to see if that choice's unique variable is 1, if it is, nothing happens and it loops again. if it isn't, it change's that upgrade's unique variable to 2 and spawns event 3. after that, it does the same thing as event 1 does when the button is pressed, but checks to see if the variable is 2 or not.
3 is basically the same as 2, but it checks if the unique variable is greater than or equal to 1 to see if it has to reroll, and it checks if the unique variable is 3 for the effect.
When i tried it and fixed the ton of other bugs it had, the only one remaining that i couldn't figure out was that most of the upgrade effects wouldn't trigger. It's not a problem with the UI plugin since all of the other things that happen when the OK button is pressed worked fine, its just that.
So i looked at my events again and... yeah i probably need something better. Is there any help or advice you could give me?