Quest persistence work
Quest persistence work.
This commit is contained in:
37
_module/nss/qst_altar_2nd.nss
Normal file
37
_module/nss/qst_altar_2nd.nss
Normal 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user