generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
18
_module/nss/de1_skulldicerd1.nss
Normal file
18
_module/nss/de1_skulldicerd1.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
/////////////////////////////////////
|
||||
// Dragon's Edge
|
||||
// by Charly Carlos
|
||||
/////////////////////////////////////
|
||||
// Rerolls the first dice for the PC in the Skull's Dice game.
|
||||
/////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
int nDice1 = d6();
|
||||
int nDice2 = GetLocalInt(OBJECT_SELF, "nPCDice2");
|
||||
int nDice3 = GetLocalInt(OBJECT_SELF, "nPCDice3");
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "nPCDice1", nDice1);
|
||||
SetLocalInt(OBJECT_SELF, "nPCTotalDice", nDice1 + nDice2 + nDice3);
|
||||
|
||||
SetCustomToken(601, IntToString(nDice1));
|
||||
SetCustomToken(604, IntToString(nDice1 + nDice2 + nDice3));
|
||||
}
|
||||
Reference in New Issue
Block a user