Repurposed unused FixStuckConversations quest to start quests from formlist
This commit is contained in:
parent
79b654e8f5
commit
f3605bb8d6
BIN
StartQuests.esp
Normal file
BIN
StartQuests.esp
Normal file
Binary file not shown.
BIN
scripts/_00E_SetupInitQuestList.pex
Normal file
BIN
scripts/_00E_SetupInitQuestList.pex
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
24
source/scripts/_00E_SetupInitQuestList.psc
Normal file
24
source/scripts/_00E_SetupInitQuestList.psc
Normal file
@ -0,0 +1,24 @@
|
||||
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
|
@ -18,14 +18,6 @@ Event OnInit()
|
||||
PlayerREF.SetActorValue("speedMult", 95)
|
||||
PlayerREF.SetActorValue("Healrate", 0)
|
||||
|
||||
; starts all quests that are in the formlist
|
||||
Int iIndex = QuestsToStart.GetSize()
|
||||
While iIndex > 0
|
||||
iIndex -= 1
|
||||
Quest kQuest = QuestsToStart.GetAt(iIndex) as Quest
|
||||
kQuest.Start()
|
||||
endwhile
|
||||
|
||||
EndEvent
|
||||
|
||||
Event OnPlayerLoadGame()
|
||||
@ -70,8 +62,6 @@ Function Maintenance()
|
||||
|
||||
SetAutoSaveInterval()
|
||||
|
||||
SendModEvent("Enderal_GameLoaded")
|
||||
|
||||
EndFunction
|
||||
|
||||
;=====================================================================================
|
||||
@ -79,5 +69,3 @@ EndFunction
|
||||
;=====================================================================================
|
||||
|
||||
Actor Property PlayerREF Auto
|
||||
|
||||
FormList Property QuestsToStart Auto
|
||||
|
@ -1,80 +0,0 @@
|
||||
Scriptname FixStuckConversationsScript extends Quest
|
||||
|
||||
Event OnInit()
|
||||
RegisterForSingleUpdate(1.0) ; Give a few seconds for the game to warm up at the start
|
||||
EndEvent
|
||||
|
||||
Event OnUpdate()
|
||||
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_01)
|
||||
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_02)
|
||||
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_03)
|
||||
ForceStopConversation(Z_Conversations_GossipWomen01)
|
||||
ForceStopConversation(Z_Conversations_GossipWomen02)
|
||||
ForceStopConversation(Z_Conversations_GossipWomen03)
|
||||
ForceStopConversation(Z_Conversations_Guards_Guard02AndGuard01)
|
||||
ForceStopConversation(Z_Conversations_Guards_Guard02AndGuard03)
|
||||
ForceStopConversation(Z_Conversations_Guards_Guard03AndGuard01_01)
|
||||
ForceStopConversation(Z_Conversations_Guards_Guard03AndGuard01_02)
|
||||
ForceStopConversation(Z_Conversations_HunterAndTraveller)
|
||||
ForceStopConversation(Z_Conversations_Keeper01FemaleKeeper02)
|
||||
ForceStopConversation(Z_Conversations_Keeper01Keeper01Female_01)
|
||||
ForceStopConversation(Z_Conversations_Keeper01Keeper02_01)
|
||||
ForceStopConversation(Z_Conversations_Keeper01Keeper02_02)
|
||||
ForceStopConversation(Z_Conversations_Keeper02KeeperFemale_01)
|
||||
ForceStopConversation(Z_Conversations_Keeper02KeeperFemale_02)
|
||||
ForceStopConversation(Z_Conversations_MerchantGossipWoman_01)
|
||||
ForceStopConversation(Z_Conversations_NobleMen_01)
|
||||
ForceStopConversation(Z_Conversations_NobleMen_02)
|
||||
ForceStopConversation(Z_Conversations_NobleMen_03)
|
||||
ForceStopConversation(Z_Conversations_NobleWomanAndCitizen)
|
||||
ForceStopConversation(Z_Conversations_NobleWomen_01)
|
||||
ForceStopConversation(Z_Conversations_NobleWomen_02)
|
||||
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_01)
|
||||
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_02)
|
||||
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_03)
|
||||
ForceStopConversation(Z_Conversations_SailorwomanAndSailor)
|
||||
ForceStopConversation(Z_Conversations_TwoSailors)
|
||||
ForceStopConversation(Z_Conversations_TwoWorkers_01)
|
||||
ForceStopConversation(Z_Conversations_TwoWorkers_02)
|
||||
|
||||
Stop()
|
||||
EndEvent
|
||||
|
||||
Function ForceStopConversation(Quest q)
|
||||
If q.IsRunning()
|
||||
q.Stop()
|
||||
Debug.Trace(self + ": forced stopped " + q)
|
||||
EndIf
|
||||
EndFunction
|
||||
|
||||
Quest Property Z_Conversations_Arcanist02AndRandomVoice_01 Auto
|
||||
Quest Property Z_Conversations_Arcanist02AndRandomVoice_02 Auto
|
||||
Quest Property Z_Conversations_Arcanist02AndRandomVoice_03 Auto
|
||||
Quest Property Z_Conversations_GossipWomen01 Auto
|
||||
Quest Property Z_Conversations_GossipWomen02 Auto
|
||||
Quest Property Z_Conversations_GossipWomen03 Auto
|
||||
Quest Property Z_Conversations_Guards_Guard02AndGuard01 Auto
|
||||
Quest Property Z_Conversations_Guards_Guard02AndGuard03 Auto
|
||||
Quest Property Z_Conversations_Guards_Guard03AndGuard01_01 Auto
|
||||
Quest Property Z_Conversations_Guards_Guard03AndGuard01_02 Auto
|
||||
Quest Property Z_Conversations_HunterAndTraveller Auto
|
||||
Quest Property Z_Conversations_Keeper01FemaleKeeper02 Auto
|
||||
Quest Property Z_Conversations_Keeper01Keeper01Female_01 Auto
|
||||
Quest Property Z_Conversations_Keeper01Keeper02_01 Auto
|
||||
Quest Property Z_Conversations_Keeper01Keeper02_02 Auto
|
||||
Quest Property Z_Conversations_Keeper02KeeperFemale_01 Auto
|
||||
Quest Property Z_Conversations_Keeper02KeeperFemale_02 Auto
|
||||
Quest Property Z_Conversations_MerchantGossipWoman_01 Auto
|
||||
Quest Property Z_Conversations_NobleMen_01 Auto
|
||||
Quest Property Z_Conversations_NobleMen_02 Auto
|
||||
Quest Property Z_Conversations_NobleMen_03 Auto
|
||||
Quest Property Z_Conversations_NobleWomanAndCitizen Auto
|
||||
Quest Property Z_Conversations_NobleWomen_01 Auto
|
||||
Quest Property Z_Conversations_NobleWomen_02 Auto
|
||||
Quest Property Z_Conversations_Novice02AndNoviceFemale02_01 Auto
|
||||
Quest Property Z_Conversations_Novice02AndNoviceFemale02_02 Auto
|
||||
Quest Property Z_Conversations_Novice02AndNoviceFemale02_03 Auto
|
||||
Quest Property Z_Conversations_SailorwomanAndSailor Auto
|
||||
Quest Property Z_Conversations_TwoSailors Auto
|
||||
Quest Property Z_Conversations_TwoWorkers_01 Auto
|
||||
Quest Property Z_Conversations_TwoWorkers_02 Auto
|
Loading…
Reference in New Issue
Block a user