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,37 @@
//::///////////////////////////////////////////////
//:: qst_altar_2nd.nss
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Sets stage #2 for the "Lost Altar" quest.
This destroys the altar.
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20220705
//:://////////////////////////////////////////////
#include "pqj_inc"
void main()
{
//:: Declare major variables
object oPC = GetPCSpeaker();
//:: Set quest stage & update DB.
AddPersistentJournalQuestEntry("lostaltar", 2, oPC);
//:: Destroy Altar
//:: Set destroyable.
SetIsDestroyable(TRUE, FALSE, FALSE);
//:: Remove plot/immoral/lootable flags JUST in case.
SetPlotFlag(OBJECT_SELF, FALSE);
SetImmortal(OBJECT_SELF, FALSE);
SetLootable(OBJECT_SELF, FALSE);
//:: Destroy Altar
DestroyObject(OBJECT_SELF);
}