Dimension Door Spell Script

What it Does
Transports caster from one location to another

Note
This is a spell script, it is quite complicated when it comes to adding custom spells.

And yes, if properly implemented it is learnable and castable by either a level 4 wiz/sorc/bard per 3rd ed. rules.

Come to: AdvancedTrainin near the top of Action to see it. You need at least a level 7 wizard to cast level 4 spells.

The Script
// Invizible420's Dimension Door Spell Script version 1.0 // By: Invizible420 // // This is a spell script is meant to be implemented // through the spells.2da, iprp_spells.2da, and // dialog.tlk files. If you do not understand how to // implement this into your module, then read up on // editting spells.2da files in the custom content forum // --- // Once properly implemented, this spell will allow the // caster to teleport from short to long distances. It // is fairly accurate to 3rd Ed. D&D except that it // doesnt teleport familiars, which will be implemented // soon. Enjoy //-- void main {   object oCaster = OBJECT_SELF; location lTargetLoc = GetSpellTargetLocation; location lCasterLoc = GetLocation(oCaster); if (lCasterLoc != lTargetLoc) {           ApplyEffectAtLocation (DURATION_TYPE_INSTANT, EffectVisualEffect (VFX_FNF_SUMMON_MONSTER_3), lCasterLoc); ApplyEffectAtLocation (DURATION_TYPE_INSTANT, EffectVisualEffect (VFX_FNF_SUMMON_MONSTER_3), lTargetLoc); AssignCommand(oCaster, ActionJumpToLocation(lTargetLoc)); } }