I am taking a break from slot programming to work on a couple of table games. Currently I am working on my own version of roulette which I am calling Flamestrike Roulette.
I have two variables created. One for an input number the player chooses and the other is a randomly generated number 1-35.
If the player's number is exactly the same as the randomly generated number, the player is rewarded 20x their bet.
Otherwise the player is rewarded a lower multiplier based on proximity.
For example, if the player's number is within two whole numbers of the winning number, they are rewarded 15x their bet instead. within 4, 10x. and it gets lower until nothing.
It is very easy to set up branches for greater than or less than but there seems to be no way to check if it is within x of another number.
Is there a conditional branch script call that I can use to check whether variable A is within 2, 4, 6, etc from variable B?
I have two variables created. One for an input number the player chooses and the other is a randomly generated number 1-35.
If the player's number is exactly the same as the randomly generated number, the player is rewarded 20x their bet.
Otherwise the player is rewarded a lower multiplier based on proximity.
For example, if the player's number is within two whole numbers of the winning number, they are rewarded 15x their bet instead. within 4, 10x. and it gets lower until nothing.
It is very easy to set up branches for greater than or less than but there seems to be no way to check if it is within x of another number.
Is there a conditional branch script call that I can use to check whether variable A is within 2, 4, 6, etc from variable B?