Moved the GetNewGameCount() check to the init quest

This commit is contained in:
Eddoursul 2024-02-01 00:08:15 +01:00
parent b880f158bf
commit 11b6e15e66
6 changed files with 26 additions and 30 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -8,7 +8,6 @@ Import Utility
Function SetUpScene() Function SetUpScene()
Game.SetInChargen(true, true, false)
Game.FadeOutGame(false, true, 0.5, 0.5) Game.FadeOutGame(false, true, 0.5, 0.5)
FadeToBlackHoldIMOD.Apply() FadeToBlackHoldIMOD.Apply()
PlayerREF.SetScale(0.85) PlayerREF.SetScale(0.85)

View File

@ -3,16 +3,9 @@ Scriptname _00E_MQP01_StartSC extends ObjectReference
Event OnTriggerEnter (ObjectReference akActionREF) Event OnTriggerEnter (ObjectReference akActionREF)
if akActionRef == PlayerREF && !bDone if akActionRef == PlayerREF && !bDone
bDone = true ; deletion may take some time bDone = true
Delete() Disable()
If !MQ10a.IsRunning() If ! MQP01.IsCompleted() && MQ10a.GetCurrentStageID() != 5 && !MQ10a.IsRunning() && !MQ12c.IsRunning()
If !MQ12c.IsRunning()
if EnderalFunctions.GetNewGameCount() > 1
Game.QuitToMainMenu()
Debug.MessageBox("Due to an engine bug, new game should not be started after quitting to the main menu. Please, restart Enderal first.")
return
endif
if _00E_QuickStartPrompt.Show() > 0 if _00E_QuickStartPrompt.Show() > 0
MQP01.CompleteAllObjectives() MQP01.CompleteAllObjectives()
MQP01.CompleteQuest() MQP01.CompleteQuest()
@ -33,7 +26,6 @@ Event OnTriggerEnter (ObjectReference akActionREF)
endif endif
EndIf EndIf
EndIf EndIf
EndIf
EndEvent EndEvent

View File

@ -25,6 +25,11 @@ Function Fragment_332()
;BEGIN CODE ;BEGIN CODE
game.GetPlayer().RemoveAllItems(none, false, false) game.GetPlayer().RemoveAllItems(none, false, false)
game.GetPlayer().MoveTo(Alias_StartMarkerRef.GetReference(), 0.000000, 0.000000, 0.000000, true) game.GetPlayer().MoveTo(Alias_StartMarkerRef.GetReference(), 0.000000, 0.000000, 0.000000, true)
if EnderalFunctions.GetNewGameCount() > 1
Game.QuitToMainMenu()
Debug.MessageBox("Due to an engine bug, new game should not be started after quitting to the main menu. Please, restart Enderal first.")
endif
;END CODE ;END CODE
EndFunction EndFunction
;END FRAGMENT ;END FRAGMENT