I've a script here; I'd like it to be run during gamemode, never stopping; but for some reasons it does not seem to work, even if the script compiles without errors... Here it is:
Scriptname SAGPlayerInChargenMyScript extends QuestQuest Property InChargen AutoSpell Property Rested AutoSPell Property WellRested AutoSpell Property MarriageRested AutoFunction SomeFunction() registerForUpdate(0.5) ; Before we can use onUpdate() we must register.EndFunctionEvent OnUpdate()if Game.GetPlayer().HasSpell(Rested) || Game.GetPlayer().HasSpell(WellRested) || Game.GetPlayer().HasSpell(MarriageRested)Debug.MessageBox("Its okay")registerForUpdate(0.5)elseregisterForUpdate(0.5)Debug.MessageBox("Not Okay")EndifEndEventNo message appear, so that means something is done wrong...



