Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/quest_available2.nss
Normal file
14
_module/nss/quest_available2.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user