Dispel

Revision as of 11:18, 23 January 2008 by imported>Fella
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

[ActorID].Dispel MagicID

Examples:

Dispel ShrineAkatoshSpeedMagicka
NPCRef.Dispel ShrineAkatoshSpeedMagicka

Removes specified spell/magic that is affecting an actor.


Notes:

  • Dispel will act as a return statement if you attempt to dispel the spell you are currently scripting. For instance, in the following example, the messagebox will never show up.
  • If Dispel is acting as an active return statement in a ScriptEffectUpdate block placed before a ScriptEffectFinish block in a Magic Effect script, it will prevent the ScriptEffectFinish block from running and the Magic Effect script will run for the full Duration of the spell.
scn EXSpellScript
Begin ScriptEffectFinish
   player.dispel EXSpell
   messagebox "Will not be seen !"
End

See AlsoEdit

DispelAllSpells