//:://///////////////////////////////////////////// //:: Name x2_def_endcombat //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Default Combat Round End script */ //::////////////////////////////////////////////// //:: Created By: Keith Warner //:: Created On: June 11/03 //::////////////////////////////////////////////// void main() { //Cast Heal if the NPC has any assigned via X4_EXTRA_HEALS variable and its HP is below 1/3 /*if(GetCurrentHitPoints() < GetMaxHitPoints()/3 && GetLocalInt(OBJECT_SELF, "X4_EXTRA_HEALS") != 0) { ActionCastSpellAtObject(SPELL_HEAL, OBJECT_SELF, METAMAGIC_ANY, TRUE); SetLocalInt(OBJECT_SELF, "X4_EXTRA_HEALS", GetLocalInt(OBJECT_SELF, "X4_EXTRA_HEALS")-1); }*/ if(GetLocalInt(OBJECT_SELF, "X4_VANILLA_AI") == TRUE) ExecuteScript("nw_c2_default3_v", OBJECT_SELF); else ExecuteScript("nw_c2_default3", OBJECT_SELF); }