Skip to content

OnDiceMatchStart

A dice match started.

After StartDiceMatch: the stakes have left both purses and both games are on their way to the table.

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
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)
end

OnDiceMatchEnd · StartDiceMatch · the Dice group of the index