Added PEPS AI. Updated module name. Set all henchmen to have a random race &/or class based name using a custom version of Markshire's Nomeclature scripts, as well as appearance. Set Constructs, Undead, Outsiders & Elementals to not require food or drink. Full compile.
18 lines
766 B
Plaintext
18 lines
766 B
Plaintext
/*//////////////////////////////////////////////////////////////////////////////
|
|
Script: 0c_if_cntrspell
|
|
Programmer: Philos
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
Text Appears When script that returns TRUE the server allows a henchman to
|
|
use counterspell and if they don't have the counterspell ai script set.
|
|
Param:
|
|
sAIScript - The special combat script to check.
|
|
*///////////////////////////////////////////////////////////////////////////////
|
|
#include "0i_associates"
|
|
int StartingConditional()
|
|
{
|
|
object oHenchman = OBJECT_SELF;
|
|
return (AI_COUNTERSPELLING_ON &&
|
|
ai_CheckClassType(oHenchman, AI_CLASS_TYPE_CASTER) &&
|
|
GetLocalString(oHenchman, AI_COMBAT_SCRIPT) != "ai_a_cntrspell");
|
|
}
|