18 lines
429 B
Plaintext
Raw Permalink Normal View History

int StartingConditional()
{
int iResult;
// this returns TRUE if more than two days have passed since the last time the player delivered the drugs
iResult = (GetLocalInt(GetPCSpeaker(), "drugs" + GetTag(OBJECT_SELF))<(GetCalendarDay()));
if (GetLocalInt(GetPCSpeaker(), "drugs" + GetTag(OBJECT_SELF))==0)
{
SetLocalInt(GetPCSpeaker(), "drugs" + GetTag(OBJECT_SELF),GetCalendarDay());
}
return iResult;
}