44 lines
1.6 KiB
Plaintext
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);
|
||
|
}
|