One way you could approach this would be to randomize the results far in advance - for example, you could dedicate 100 variables to the Casino and randomize them when the game first starts, with one additional variable cycling (in order) from 1 to 100 to track which variable should be used next.
Whenever the player plays at the casino, it will use the results of one of those 100 variables (the one indicated by the additional variable), and then randomize and overwrite that variable afterwards (which will be used 100 plays later). An extremely long sequence would still create different results from one trial to another, but for people who want to save scum one or two results, they will never be able to because when they load, they will get the same result on those first 1 or 2 (or up to 100) tries, because whenever they last saved their game they will have also saved the results of the next 100 casino attempts.
In other words, the random number "generator" for the casino event would look like:
- Get the value of Variable 101 which tracks which of the first 100 Variables to use and use THAT value to determine which of the first 100 Variables to use, and get the value of that Variable (I think the script line would be: $gameVariables.getValue($gameVariables.getValue(101)); )
- Use the value for whatever casino-related purpose you need to
- Use Variable 102 to pick a new random number that will not be used now, but rather will be populated for later
- Store the value of Variable 102 into the variable that you just pulled from (I think you'd use: $gameVariables.setValue($gameVariables.getValue(101), $gameVariables.getValue(102)); )
- Increase the value of Variable 101 by 1 (and if it's greater than 100, set it back to 1)
By the way,
@Symbol_ I thought I was waiting for you on the commission, but I recently realized I was wrong, and you were actually waiting for me. Really sorry about that! Look out for a PM within the next week.