Bet

The Bet block will let you introduce betting in game. A player can encounter a character a bet within a game of dice throwing. This block can be accessed through the twelveth button in the add block buttons area.

After clicking, a new block will be added, with the following inputs:

  1. The number of dice to be thrown;

  2. The maximum bet the player can make (in gold coins);

  3. The minimum bet the player can make (in gold coins);

  4. The names of the game characters the player will bet against;

  5. The function triggered if losing or winning (see Functions);

  6. The value associated with the function (it will be positive if the bet is won and negative if lost so here is always positive).

Last updated