Difference between revisions of "Magic effect scripts"
Jump to navigation
Jump to search
no edit summary
imported>DragoonWraith m (→Notes: GameMode == ScriptEffectUpdate ''within a scripted spell'') |
imported>UDUN |
||
Line 1: | Line 1: | ||
Magic Effect scripts are special scripts that can be used to create Scripted Magic Effects. They are created using the normal script editing window, but must be marked as Magic Effect scripts in order to be used in this way. Also note that the scripted effects will only run while under Game Mode. | Magic Effect scripts are special scripts that can be used to create Scripted Magic Effects. They are created using the normal script editing window, but must be marked as Magic Effect scripts in order to be used in this way. Also note that the scripted effects will only run while under Game Mode. | ||
These scripts do not use normal begin/end blocks, since they only run while the spell effect is active on a target. They use three special block types and one special function. | These scripts do not use normal begin/end blocks, since they only run while the spell effect is active on a target. They use three special block types and one special function. | ||
Magic Effect block types: | Magic Effect block types: | ||
*[[ScriptEffectStart]] | *[[ScriptEffectStart]] | ||
*[[ScriptEffectFinish]] | *[[ScriptEffectFinish]] | ||
*[[ScriptEffectUpdate]] | *[[ScriptEffectUpdate]] | ||
Magic Effect functions: | |||
*[[ScriptEffectElapsedSeconds]] | |||
In all other ways, Magic Effect scripts act like reference scripts, and can use all normal script functions inside the Magic Effect blocks. Magic Effect scripts would run on what is effected by the effect, so getSelf for instance would give the reference to the the target of the spell. | |||
In all other ways, Magic Effect scripts act like reference scripts, and can use all normal script functions inside the Magic Effect blocks. | |||
==Notes== | ==Notes== |