15 lines
453 B
Plaintext
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;
|
||
|
}
|