25 lines
492 B
Plaintext
25 lines
492 B
Plaintext
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
|