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