Fixed corrupted module

Fixed corrupted module.  Added doors.  Checked dungeon / teleporter continuity.  Replaced Message #02 with a magical sending from Werdna.  Removed trash / test areas.
This commit is contained in:
Jaysyn904
2023-04-23 22:07:17 -04:00
parent 22d6119c14
commit 103f315feb
136 changed files with 10430 additions and 31161 deletions

View File

@@ -0,0 +1,38 @@
//:://////////////////////////////////////////////
//:: cv_destselfnofx.nss
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Removes NPCs after rescue or quest completion
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20220618
//:://////////////////////////////////////////////
void main()
{
//: Declare major variables
object oPC = GetPCSpeaker();
object oNPC = OBJECT_SELF;
string sResref = GetResRef(OBJECT_SELF);
//:: Set destroyable.
SetIsDestroyable(TRUE, FALSE, FALSE);
//:: Remove plot/immoral/lootable flags JUST in case.
SetPlotFlag(oNPC, FALSE);
SetImmortal(oNPC, FALSE);
SetLootable(oNPC, FALSE);
//:: Clear Actions & run away
ClearAllActions();
if (sResref != "npc_werdna_send")
{ActionMoveAwayFromObject(oPC, 1);}
//:: Destroy ourselves after fleeing the scene
DelayCommand(6.0f, DestroyObject(oNPC));
}