FANDOM


Dimension Door Spell Script Edit

What it Does Edit

The script transports caster from one location to another.

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

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 Edit

// 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));
            }
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.