OnDiceMatchStart
A dice match started.
After StartDiceMatch: the stakes have left both purses and both games are on their way to the table.
Syntax
Section titled “Syntax”function OnDiceMatchStart(id, challenger, opponent, bet, goal) -- ...end| Parameter | Type | |
|---|---|---|
id |
number | the match |
challenger |
number | the player who asked for it (they throw first) |
opponent |
number | the other player |
bet |
number | each player’s stake in Groschen (0 = none) |
goal |
number | the points that win |
Example
Section titled “Example”function OnDiceMatchStart(id, challenger, opponent, bet, goal) local text = string.format("Dice: %s against %s, to %d points.", GetPlayerName(challenger), GetPlayerName(opponent), goal) SendClientMessage(challenger, COLOR_SERVER, text) SendClientMessage(opponent, COLOR_SERVER, text)endSee also
Section titled “See also”OnDiceMatchEnd · StartDiceMatch · the Dice group of the index
