PRC8/nwn/nwnprc/trunk/spells/sp_fire_trap.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

54 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//::///////////////////////////////////////////////
//:: Name Fire Trap
//:: FileName sp_fire_trap.nss
//:://////////////////////////////////////////////
/**@file Fire Trap
Abjuration [Fire]
Level: Drd 2, Sor/Wiz 4
Components: V, S, M
Range: Touch
Target: Area
Duration: Permanent until discharged (D)
Saving Throw: Reflex half; see text
Spell Resistance: Yes
Fire trap creates a fiery explosion when an intruder
enters the area that the trap protects.
When casting fire trap, you select a point as the spells
center. When someone other than you gets too close to that
point, a fiery explosion fills the area within a 5-foot radius around
the spells center. The flames deal 1d4 points of fire damage +1
point per caster level (maximum +20).
An unsuccessful dispel magic spell does not detonate the
spell.
Underwater, this ward deals half damage and creates a
large cloud of steam.
Material Component: A half-pound of gold dust (cost 25 gp)
sprinkled on the warded object.
Author: Tenjac
Created: 7/6/07
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
if(!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_ABJURATION);
object oPC = OBJECT_SELF;
location lTarget = PRCGetSpellTargetLocation();
effect eAoE = EffectAreaOfEffect(AOE_PER_FIRE_TRAP);
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eAoE, lTarget);
PRCSetSchool();
}