generated from Jaysyn/ModuleTemplate
23 lines
718 B
Plaintext
23 lines
718 B
Plaintext
/////////////////////////////////////
|
|
// Dragon's Edge
|
|
// by Charly Carlos
|
|
/////////////////////////////////////
|
|
// Rolls three dices for the PC in the Skull Dice game.
|
|
/////////////////////////////////////
|
|
void main()
|
|
{
|
|
int nDice1 = d6();
|
|
int nDice2 = d6();
|
|
int nDice3 = d6();
|
|
|
|
SetLocalInt(OBJECT_SELF, "nPCDice1", nDice1);
|
|
SetLocalInt(OBJECT_SELF, "nPCDice2", nDice2);
|
|
SetLocalInt(OBJECT_SELF, "nPCDice3", nDice3);
|
|
SetLocalInt(OBJECT_SELF, "nPCTotalDice", nDice1 + nDice2 + nDice3);
|
|
|
|
SetCustomToken(601, IntToString(nDice1));
|
|
SetCustomToken(602, IntToString(nDice2));
|
|
SetCustomToken(603, IntToString(nDice3));
|
|
SetCustomToken(604, IntToString(nDice1 + nDice2 + nDice3));
|
|
}
|