Alangara_PRC8/_removed/NW_T1_COLDSTR3.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

36 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Strong Frost Trap
//:: NW_T1_ColdMinC
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Strikes the entering object with a blast of
cold for 3d4 damage. Fortitude save to avoid
being paralyzed for 3 rounds.
*/
//:://////////////////////////////////////////////
//:: 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(20), DAMAGE_TYPE_COLD);
effect eParal = EffectPetrify();
effect eVis = EffectVisualEffect(VFX_IMP_FROST_S);
effect eFreeze = EffectVisualEffect(VFX_DUR_BLUR);
effect eLink = EffectLinkEffects(eParal, eFreeze);
if(!MySavingThrow(SAVING_THROW_FORT,oTarget, 25, SAVING_THROW_TYPE_TRAP))
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(3));
}
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}