Amon_PRC8/_module/nss/tormentedcaptai0.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

44 lines
1.6 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name x2_def_spellcast
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Default On Spell Cast At script
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner
//:: Created On: June 11/03
//:://////////////////////////////////////////////
void main()
{
//--------------------------------------------------------------------------
// GZ: 2003-10-16
// Make Plot Creatures Ignore Attacks
//--------------------------------------------------------------------------
if (GetPlotFlag(OBJECT_SELF))
{
return;
}
//--------------------------------------------------------------------------
// Execute old NWN default AI code
//--------------------------------------------------------------------------
SetLocalInt (GetModule(), "tormentedcaptai1", 0);
SetLocalInt (GetModule(), "tormentedcaptai2", 0);
SetLocalInt (GetModule(), "tormentedcaptai3", 0);
SetLocalInt (GetModule(), "tormentedcaptai4", 0);
SetLocalInt (GetModule(), "tormentedcaptai5", 0);
SetLocalInt (GetModule(), "tormentedcaptai6", 0);
DestroyObject (GetObjectByTag("TormentedCaptain1"));
DestroyObject (GetObjectByTag("TormentedCaptain2"));
DestroyObject (GetObjectByTag("TormentedCaptain3"));
DestroyObject (GetObjectByTag("TormentedCaptain4"));
DestroyObject (GetObjectByTag("TormentedCaptain5"));
DestroyObject (GetObjectByTag("TormentedCaptain6"));
ExecuteScript("speakspawn", OBJECT_SELF);
}