//:://///////////////////////////////////////////// //:: Acid Fog: On Exit //:: NW_S0_AcidFogB.nss //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* All creatures within the AoE take 2d6 acid damage per round and upon entering if they fail a Fort Save their movement is halved. */ //::////////////////////////////////////////////// //:: Created By: Preston Watamaniuk //:: Created On: May 17, 2001 //::////////////////////////////////////////////// //:: Update Pass By: Preston W, On: July 20, 2001 #include "x2_inc_spellhook" void main() { //Declare major variables //Get the object that is exiting the AOE object oTarget = GetExitingObject(); int bValid = FALSE; effect eAOE; //Search through the valid effects on the target. eAOE = GetFirstEffect(oTarget); while (GetIsEffectValid(eAOE) && bValid == FALSE) { if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator()) { if(GetEffectType(eAOE) == EFFECT_TYPE_POISON) { RemoveEffect(oTarget, eAOE); bValid = TRUE; } } //Get next effect on the target eAOE = GetNextEffect(oTarget); } }