Difference between revisions of "ScriptEffectFinish"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>ShadowDancer
(updating note with new info)
imported>Quetzilla
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Usage'''
'''Usage'''
   begin ScriptEffectFinish  
   Begin ScriptEffectFinish  


Special block type used only by Magic Effect scripts. This block will run only once, after the scripted spell effect has ended.  
Special block type used only by Magic Effect scripts. This block will run only once, after the scripted spell effect has ended.  


'''Note:'''
'''Note:'''
* When the '''ScriptEffectUpdate''' block is placed before the '''ScriptEffectFinish''' block,  it ''<u>will</u>'' be processed before the '''ScriptEffectFinish''' block in the script as the spell ends. In this instance, if there is an active '''Return''' statement in '''ScriptEffectUpdate''', then the '''ScriptEffectFinish''' block will never run.
* A '''ScriptEffectUpdate''' block with an active '''Return''' statement placed before a '''ScriptEffectFinish''' block in a Magic Effect script will prevent the '''ScriptEffectFinish''' block from running when the Magic Effect script ends.


== Constant Enchantments ==
Unfortunately, this block won't fire when used as a scripted effect for constant (apparel) enchantments.  If you have access to the item script, you can emulate the functionality by using the OnUnequip block of the item itself.


==See Also==
==See Also==

Latest revision as of 23:48, 7 February 2008

Usage

 Begin ScriptEffectFinish 

Special block type used only by Magic Effect scripts. This block will run only once, after the scripted spell effect has ended.

Note:

  • A ScriptEffectUpdate block with an active Return statement placed before a ScriptEffectFinish block in a Magic Effect script will prevent the ScriptEffectFinish block from running when the Magic Effect script ends.


Constant Enchantments[edit | edit source]

Unfortunately, this block won't fire when used as a scripted effect for constant (apparel) enchantments. If you have access to the item script, you can emulate the functionality by using the OnUnequip block of the item itself.

See Also[edit | edit source]

ScriptEffectStart

ScriptEffectUpdate