Dispel
Jump to navigation
Jump to search
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