Bet
Last updated
Last updated
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:
The number of dice to be thrown;
The maximum bet the player can make (in gold coins);
The minimum bet the player can make (in gold coins);
The names of the game characters the player will bet against;
The function triggered if losing or winning (see Functions);
The value associated with the function (it will be positive if the bet is won and negative if lost so here is always positive).