4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
492 B

Scriptname _00E_SetupInitQuestList extends Quest Hidden
Event OnInit()
RegisterForSingleUpdate(1.0) ; Give a few seconds for the game to warm up at the start
EndEvent
Event OnUpdate()
; starts all quests that are in the formlist
Int iIndex = QuestsToStart.GetSize()
While iIndex > 0
iIndex -= 1
Quest kQuest = QuestsToStart.GetAt(iIndex) as Quest
if kQuest && ! kQuest.IsRunning()
kQuest.Start()
endif
endwhile
Stop()
EndEvent
FormList Property QuestsToStart Auto