Ancordia_PRC8/_module/nss/quest_available.nss

15 lines
464 B
Plaintext
Raw Normal View History

2023-09-21 19:51:32 -04:00
#include "quest_inc"
int StartingConditional()
{
if (GetLocalInt(GetArea(OBJECT_SELF), "ClientSpawned") == TRUE || Random(2) == 0) return FALSE;
object oPC = GetPCSpeaker();
string sDB = CharacterDB(oPC);
int nJournalEntry = GetCampaignInt(sDB, "QUEST_JOURNAL");
if (nJournalEntry != 0) return FALSE;
//let's check the PC DB for quest availability
if (GetCampaignInt(sDB, "QUEST_AVAILABLE") == FALSE) return FALSE;
return TRUE;
}