Betting on die roll results

In a module I’m revising, players roll 2 six-sided dice each turn to determine movement. During their turn, they can choose to wager game money on what results other players will roll on their turn–a roll of exactly 4 or 10 pays 2:1, 3 or 11 pays 3:1, and 2 or 12 pays 4:1. The wager lasts until the next time the player goes.

They place their wagered money on a spot on the game board and if the numbers come up before they go again, they collect their winnings and remove the wagered money from the betting space. If no one rolls a 2,3,4,10,11, or 12, then the wager is lost and the money goes to the bank.

Normally, each player needs to watch the other player’s die rolls to check if their wager comes up. However, it would be nice to be able to automate this wagering process, so the module watches the die rolls, automatically informs the player if his wager wins or loses, and pays out (or collects) the right amount of money.

However, I’m completely at a loss how to match the die roll results to winning results, and then automatically draw the right winnings from the bank (or, if he loses, automatically collect the player’s lost wager.)

Any suggestions on how such a thing might be accomplished?

Thanks in advance.

There’s no way for the result of the die roll to automatically trigger something else to happen. The best you could do is used a random text button instead of a die roll, and print the number along with a text reminder that wagers should be paid out on that result. It will still be up to the players to notice this and collect their winnings.

Actually you could automate this. The result of a dice roll is a global
property (see manual). Using a Toolbar Multi action button toolbar GKC to
initiate your sequence you would

  1. Roll the dice
  2. Use triggers on the betting components to compare against the dice roll
    result and execute according triggers that pay back if component has won

Post generated using Mail2Forum (mail2forum.com)