Persistent Quest update

Persistent Quest update & bugfixes.
This commit is contained in:
Jaysyn904
2022-06-29 23:13:47 -04:00
parent 99a8071aeb
commit 5bb45371fc
22 changed files with 567 additions and 218 deletions

View File

@@ -0,0 +1,30 @@
//::///////////////////////////////////////////////
//:: qst_ch_kupra01
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Checks for the "Kupra" quest having been
started.
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20220617
//:://////////////////////////////////////////////
#include "pqj_inc"
int StartingConditional()
{
//Declare major variables
object oPC = GetPCSpeaker();
int nInt;
nInt = RetrieveQuestState("kupra", oPC);
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYkupra");
if (!nInt == 1)
return FALSE;
return TRUE;
}

View File

@@ -0,0 +1,29 @@
//::///////////////////////////////////////////////
//:: qst_chk_outcst01.nss
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Checks for start of the "Outcasts" quest.
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20220628
//:://////////////////////////////////////////////
#include "pqj_inc"
int StartingConditional()
{
//: Declare major variables
object oPC = GetPCSpeaker();
int nInt;
//:: Inspect quest state
nInt = RetrieveQuestState("outcasts", oPC);
if (!nInt == 1)
return FALSE;
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYoutcasts");
return TRUE;
}

View File

@@ -0,0 +1,29 @@
//::///////////////////////////////////////////////
//:: qst_chk_outcst02.nss
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Checks that the "Outcasts" was refused.
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20220628
//:://////////////////////////////////////////////
#include "pqj_inc"
int StartingConditional()
{
//: Declare major variables
object oPC = GetPCSpeaker();
int nInt;
//:: Inspect quest state
nInt = RetrieveQuestState("outcasts", oPC);
if (!nInt == 2)
return FALSE;
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYoutcasts");
return TRUE;
}

View File

@@ -14,13 +14,16 @@
int StartingConditional()
{
object oPC = GetPCSpeaker();
//: Declare major variables
object oPC = GetPCSpeaker();
int nInt;
int nInt;
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYoutcasts");
nInt = RetrieveQuestState("outcasts", oPC);
if (nInt >= 3)
return TRUE;
//:: Inspect quest state
nInt = RetrieveQuestState("outcasts", oPC);
if (!nInt == 3)
return FALSE;
return FALSE;
//nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYoutcasts");
return TRUE;
}

View File

@@ -26,7 +26,7 @@ int StartingConditional()
nInt = RetrieveQuestState("spiders", oPC);
// nInt=GetLocalInt(oPC, "NW_JOURNAL_ENTRYspiders");
if (nInt >= 3) return TRUE;
if (!nInt == 3) return FALSE;
return FALSE;
return TRUE;
}