//:://///////////////////////////////////////////// //:: Minor Frost Trap //:: NW_T1_ColdMinC //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /* Strikes the entering object with a blast of cold for 2d4 damage. Fortitude save to avoid being paralyzed for 1 round. */ //::////////////////////////////////////////////// //:: Created By: Preston Watamaniuk //:: Created On: Nov 16th , 2001 //::////////////////////////////////////////////// #include "NW_I0_SPELLS" void main() { //Declare major variables object oTarget = GetEnteringObject(); effect eDam = EffectDamage(d4(5), DAMAGE_TYPE_COLD); effect eParal = EffectPetrify(); effect eVis = EffectVisualEffect(VFX_IMP_FLAME_S); effect eFreeze = EffectVisualEffect(VFX_DUR_BLUR); effect eLink = EffectLinkEffects(eParal, eFreeze); if(!MySavingThrow(SAVING_THROW_FORT,oTarget, 15, SAVING_THROW_TYPE_TRAP)) { ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(1)); } ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget); ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget); }