RATDOG/_module/nss/vamp_gas_form_hb.nss
Jaysyn904 6b1ac72a5d Added updated ProjectQ troll chief model
Added updated ProjectQ troll chief model. Created encounter table for Great Northern Desert.  Created or imported several pnp creature UTCs: vampire spawn, spectre, mohrg, basilisk, monstrous scorpions, air & earth elementals, ankhegs.  Created pnp attacks for vampire & spectre.  Full compile.

Co-Authored-By: Draygoth <65428430+Draygoth@users.noreply.github.com>
2022-12-17 23:51:16 -05:00

42 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name vamp_gas_form_hb
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
Make the Vampire's onDeath Gaseous Form flee
& vanish
*/
//:://////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 20221207
//:://////////////////////////////////////////////
void main()
{
object oNPC = OBJECT_SELF;
location lSelf = GetLocation(oNPC);
object oAttacker = GetNearestCreature(CREATURE_TYPE_REPUTATION , REPUTATION_TYPE_ENEMY, oNPC, 1, CREATURE_TYPE_IS_ALIVE, TRUE);
string sResRef = GetResRef(oNPC);
//:: Set destroyable.
SetIsDestroyable(TRUE, FALSE, FALSE);
//:: Remove plot/immoral/lootable flags JUST in case.
SetPlotFlag(oNPC, TRUE);
SetImmortal(oNPC, FALSE);
SetLootable(oNPC, FALSE);
//:: Clear Actions & run away
//AssignCommand(oNPC, ClearAllActions());
ClearAllActions();
ActionMoveAwayFromObject(oAttacker, TRUE, 10.0f);
//DelayCommand(0.2f, ActionMoveAwayFromObject(oAttacker, TRUE, 10.0f));
//:: Destroy ourselves after fleeing the scene
DelayCommand(4.0f, DestroyObject(oNPC));
}