Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
20
_module/nss/qst_evilqstchk.nss
Normal file
20
_module/nss/qst_evilqstchk.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
int iResult;
|
||||
object oPC;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
iResult = FALSE;
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF,"TotalQuests") == 0)
|
||||
SetLocalInt(OBJECT_SELF,"TotalQuests",Random(3)+2);
|
||||
|
||||
if (GetLocalInt(oPC,GetTag(OBJECT_SELF)) < GetLocalInt(OBJECT_SELF,"TotalQuests"))
|
||||
iResult = TRUE;
|
||||
|
||||
//Debug
|
||||
//SendMessageToPC(GetFirstPC(),"TotalQuests = " + IntToString(GetLocalInt(OBJECT_SELF,"TotalQuests")));
|
||||
//SendMessageToPC(GetFirstPC(),GetTag(OBJECT_SELF) + " Quests = " + IntToString(GetLocalInt(oPC,GetTag(OBJECT_SELF))));
|
||||
|
||||
return iResult;
|
||||
}
|
Reference in New Issue
Block a user