Thanks in advance.
import gameimport utilitybool NotLooping = truefunction skillLoop() if NotLooping ; Prevents doing it more than once NotLooping = false while true Debug.Notification("One-Handed Skill: " + Game.GetPlayer().GetAV("OneHanded")) Wait(5.0) endwhile endifendfunctionEvent OnUpdate SkillLoop()EndEvent
import Gameimport Utilitybool NotLooping = trueauto State Waiting Function SkillLoop() GoToState("Busy") If (NotLooping) ; Prevents doing it more than once NotLooping = false While (true) Debug.Notification("One-Handed Skill: " + GetPlayer().GetAV("OneHanded")) Wait(5.0) EndWhile EndIf GoToState("Waiting") Endfunction Event OnUpdate() SkillLoop() EndEventEndStateState Busy ; Go away, I'm busy!EndState
Scriptname LevelChecker extends Quest Conditional{Checks level every 5 seconds}Function StartChecking() RegisterForSingleUpdate(5)EndFunctionEvent OnUpdate() Debug.MessageBox("Your One Handed skill level is " + Game.GetPlayer().GetActorValue("onehanded")) RegisterForSingleUpdate(5)EndEvent