1
Fork 0

Moved the GetNewGameCount() check to the init quest

development
Eddoursul 4 months ago
parent b880f158bf
commit 11b6e15e66
  1. BIN
      scripts/_00e_mqp01_functions.pex
  2. BIN
      scripts/_00e_mqp01_startsc.pex
  3. BIN
      scripts/qf_mq101_0003372b.pex
  4. 1
      source/scripts/_00e_mqp01_functions.psc
  5. 14
      source/scripts/_00e_mqp01_startsc.psc
  6. 5
      source/scripts/qf_mq101_0003372b.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -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)

@ -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

@ -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

Loading…
Cancel
Save