Difference between revisions of "MessageBox Tutorial/Spell Scripts"

Jump to navigation Jump to search
updating script
imported>ShadowDancer
(Fixing Script, Return Unnecessary, Would Prevent ScriptEffectFinish from running if -1)
imported>ShadowDancer
(updating script)
<pre>Short Choosing
Short Choice
Short DoOnce
Ref TargetRef
 
set MenuVariables.Choosing to 0
set MenuVariables.Choice to 0
;Following section is to add spell effect when choice is made and
 
;to dispel the spell so it doesn't appear to still be active
If (DoOnce == 0)
PlayMagicShaderVisuals ;place effect shader Editor ID here i.e. effectEnchantMysticism
Set DoOnce to 1
Set Timer to 4
ElseIf (Timer > 0)
Set Timer to Timer - GetSecondsPassed
ElseIf (Timer < 0)
StopMagicShaderVisuals ;place effect shader Editor ID here i.e. effectEnchantMysticism
Set Timer to 0
Player.Dispel ;place spell's Editor ID using script here i.e. SplMenuVariables
EndIf
 
Elseif (Choosing == -1) ;Display your menu
Anonymous user

Navigation menu