Difference between revisions of "MessageBox Tutorial/Quest Scripts"
Fixed
imported>Speedo (Add errors tag - see Talk) |
imported>Haama (Fixed) |
||
|
==Some background==
Quest scripts are very similar to the activator script. However, just like the activator script the quest script will require a bit of extra coding.
Short Choice
Short Working
Float fQuestDelayTime
If (Choosing == 0) ;meaning it shouldn't be running
;Add anything that needs to be re-initialized
Return
# Make sure to save the script as a Quest Script.
# Attach the script to the quest.
# You can start your menus from any script with
set YourMenu.Working to 1
StartQuest YourMenu</pre>▼
==Notes on using StartQuest/StopQuest==
The other option is to let the script run all the time. Use the same scripts as above but get rid of the StartQuest and StopQuest lines and set the quest to '''Start Game Enabled'''.
▲ StopQuest YourMenu
▲<pre>set YourMenu.Working to 1
▲StartQuest YourMenu</pre>
[[Category:Scripting Tutorials]]
| |||