- Joined
- Mar 31, 2023
- Messages
- 3
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMZ
I want the potion to just be named a color until the player uses it. Then it's name changes to what type of potion it is. I'm trying
to make a rougelike so I want the potion effects randomized until the player tries it.
My problem is I don't know how to make it random while checking if the potion type is already taken by another color. I tried to have it check if the random number attached to the color is attached to any other color and if so re-roll the variable for that color and loop until it has a unique number.
I have the color potion item trigger the common event and it does produce a random effect, and replaces the color potion with the name of the type of potion.
to make a rougelike so I want the potion effects randomized until the player tries it.
My problem is I don't know how to make it random while checking if the potion type is already taken by another color. I tried to have it check if the random number attached to the color is attached to any other color and if so re-roll the variable for that color and loop until it has a unique number.
I have the color potion item trigger the common event and it does produce a random effect, and replaces the color potion with the name of the type of potion.