Persistent Quest update
Persistent Quest update & bugfixes.
This commit is contained in:
		
							
								
								
									
										30
									
								
								_module/nss/qst_ch_kupra01.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								_module/nss/qst_ch_kupra01.nss
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										29
									
								
								_module/nss/qst_chk_outcst01.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								_module/nss/qst_chk_outcst01.nss
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										29
									
								
								_module/nss/qst_chk_outcst02.nss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								_module/nss/qst_chk_outcst02.nss
									
									
									
									
									
										Normal 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;
 | 
			
		||||
}
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user