Quest persistence work

Quest persistence work.
This commit is contained in:
Jaysyn904
2022-07-06 00:35:22 -04:00
parent 4af27ed685
commit ee912d2da9
55 changed files with 3670 additions and 61 deletions

View File

@@ -0,0 +1,36 @@
//::///////////////////////////////////////////////
//:: qst_ch_door01.nss
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Checks for the "Master of the Door" quest
having been started.
*/
//:://////////////////////////////////////////////
//:: Created By: Tolen
//:: Created On: ???
//:://////////////////////////////////////////////
#include "pqj_inc"
int StartingConditional()
{
//:: Declare major variables
object oPC = GetPCSpeaker();
int nInt;
int nGP = GetGold(oPC);
//:: Check to see if the PC has 1000 gp.
if ( GetGold(oPC) < 1000 )
return FALSE;
//:: Inspect local variables
nInt = RetrieveQuestState("door", oPC);
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYdoor");
if (!nInt == 1)
return FALSE;
return TRUE;
}