# 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.

![](https://3935160909-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTY6owb3HC3F6X_pI7d%2F-LeCSBRBOs1KvQgshKvH%2F-LeCSWo0KpVb8UeMIcUA%2F41.jpg?alt=media\&token=52388418-c549-46f8-a7ee-268ae3edc925)

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

![](https://3935160909-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTY6owb3HC3F6X_pI7d%2F-LeCSBRBOs1KvQgshKvH%2F-LeCSd9dil-iXCIUuI9c%2F56.jpg?alt=media\&token=43cccbb9-6c6b-4d05-b799-811e893a2eb8)

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](https://gustaf.gitbook.io/docs/getting-started/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).
