Ancordia_PRC8/_module/nss/quest_available2.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

15 lines
453 B
Plaintext

#include "x4_inc_functions"
int StartingConditional()
{
if (GetLocalInt(GetArea(OBJECT_SELF), "ClientSpawned") == TRUE) 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;
}