generated from Jaysyn/ModuleTemplate
23 lines
722 B
Plaintext
23 lines
722 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Rolls three dices for the dealer in the Skull Dice game.
|
|
/////////////////////////////////////
|
|
void main()
|
|
{
|
|
int nDice1 = d6();
|
|
int nDice2 = d6();
|
|
int nDice3 = d6();
|
|
|
|
SetLocalInt(OBJECT_SELF, "nMyDice1", nDice1);
|
|
SetLocalInt(OBJECT_SELF, "nMyDice2", nDice2);
|
|
SetLocalInt(OBJECT_SELF, "nMyDice3", nDice3);
|
|
SetLocalInt(OBJECT_SELF, "nMyTotalDice", nDice1 + nDice2 + nDice3);
|
|
|
|
SetCustomToken(611, IntToString(nDice1));
|
|
SetCustomToken(612, IntToString(nDice2));
|
|
SetCustomToken(613, IntToString(nDice3));
|
|
SetCustomToken(614, IntToString(nDice1 + nDice2 + nDice3));
|
|
}
|