Difference between revisions of "Dispel"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
(updating Notes:)
imported>Fella
 
Line 24: Line 24:


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Functions (CS 1.0)]]
[[Category: Magic Functions]]
[[Category: Magic Functions]]

Latest revision as of 11:18, 23 January 2008

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 Also[edit | edit source]

DispelAllSpells