21 lines
555 B
Plaintext
21 lines
555 B
Plaintext
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;
|
|
}
|