Difference between revisions of "MessageBox Tutorial/Spell Scripts"
Jump to navigation
Jump to search
MessageBox Tutorial/Spell Scripts (edit)
Revision as of 07:14, 30 August 2007
, 07:14, 30 August 2007updating script
imported>ShadowDancer (Fixing Script, Return Unnecessary, Would Prevent ScriptEffectFinish from running if -1) |
imported>ShadowDancer (updating script) |
||
Line 15: | Line 15: | ||
<pre>Short Choosing | <pre>Short Choosing | ||
Short Choice | Short Choice | ||
Short DoOnce | |||
Ref TargetRef | Ref TargetRef | ||
Line 34: | Line 35: | ||
set MenuVariables.Choosing to 0 | set MenuVariables.Choosing to 0 | ||
set MenuVariables.Choice 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 | Elseif (Choosing == -1) ;Display your menu |