I'm trying to make minigame where random variables are used, which is sort of a spin-a-wheel thing depending on the actors in the current party. It goes along these lines:
1) Random variable X rolled between 1-6
2) If actor X is in the current party, win a prize
3) Else, remove X from the possible pool of numbers
4) Roll again and repeat until X is an actor in the current party
I want to make it such that the pool of prizes change depending on your current party members (3 at a time, 6 total).
I know it is possible through brute force methods, which will require 6C3 = 20 conditionals. Is there a more elegant way to do this?
1) Random variable X rolled between 1-6
2) If actor X is in the current party, win a prize
3) Else, remove X from the possible pool of numbers
4) Roll again and repeat until X is an actor in the current party
I want to make it such that the pool of prizes change depending on your current party members (3 at a time, 6 total).
I know it is possible through brute force methods, which will require 6C3 = 20 conditionals. Is there a more elegant way to do this?