Is glyphwarding.png
Glyph of Warding
Spell Information
Spell level : Innate level: 3, Cleric: 3
School : Abjuration
Descriptor(s) : Sonic
Components : Verbal and Somatic
Range : Short
Target/Area : Large
Duration : 60 seconds / 2 Level
Save : Reflex 1/2

Description[edit | edit source]

You create a small, magical zone that can detect the passage of enemy creatures. When the field is activated, it explodes, dealng 1d8 points of damage per two caster levels to all creatures within the area of effect (to a maximum of 5d8). After being triggered, the glyph dissipates.

The type of damage is dependant on the casters alignment. If the caster is of good alignment, then the glyph will deal divine damage, if neutral, it deals sonic damage and if evil, it deals negative damage instead.

As shown below:

int nDam = d8(nCasterLevel /2 );
nDam = ApplyMetamagicVariableMods(nDam, 40);
nDam = GetReflexAdjustedDamage(nDam, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_SPELL, oCaster);

effect eGoodDam = EffectDamage( nDam, DAMAGE_TYPE_DIVINE );
effect eEvilDam = EffectDamage( nDam, DAMAGE_TYPE_NEGATIVE );
effect eNeutDam = EffectDamage( nDam, DAMAGE_TYPE_SONIC );    

//Link VFX to Damage
effect eGoodLink = EffectLinkEffects( eGoodVis, eGoodDam );
effect eEvilLink = EffectLinkEffects( eEvilVis, eEvilDam );
effect eNeutLink = EffectLinkEffects( eNeutVis, eNeutDam );
Community content is available under CC-BY-SA unless otherwise noted.