Moved the GetNewGameCount() check to the init quest
This commit is contained in:
parent
b880f158bf
commit
11b6e15e66
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,35 +3,27 @@ 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 _00E_QuickStartPrompt.Show() > 0
|
||||||
if EnderalFunctions.GetNewGameCount() > 1
|
MQP01.CompleteAllObjectives()
|
||||||
Game.QuitToMainMenu()
|
MQP01.CompleteQuest()
|
||||||
Debug.MessageBox("Due to an engine bug, new game should not be started after quitting to the main menu. Please, restart Enderal first.")
|
MQP02.CompleteAllObjectives()
|
||||||
return
|
MQP02.CompleteQuest()
|
||||||
endif
|
Utility.wait(0.5)
|
||||||
|
If _00E_VideoSkip.GetValueInt() == 0
|
||||||
if _00E_QuickStartPrompt.Show() > 0
|
Game.PlayBink("MQP03NearDeathExperience.bik", true)
|
||||||
MQP01.CompleteAllObjectives()
|
EndIf
|
||||||
MQP01.CompleteQuest()
|
PlayerREF.MoveTo(_00E_ClassMenuOrigin)
|
||||||
MQP02.CompleteAllObjectives()
|
Debug.SendAnimationEvent(PlayerRef, "IdleForceDefaultState")
|
||||||
MQP02.CompleteQuest()
|
Game.ShowRaceMenu()
|
||||||
Utility.wait(0.5)
|
Game.DisablePlayerControls(false, true, true, false, true, false, false, true)
|
||||||
If _00E_VideoSkip.GetValueInt() == 0
|
MQP03.SetCurrentStageID(15)
|
||||||
Game.PlayBink("MQP03NearDeathExperience.bik", true)
|
(MQP02 as _00E_MQP02_Functions).AddRacialAbilites()
|
||||||
EndIf
|
else
|
||||||
PlayerREF.MoveTo(_00E_ClassMenuOrigin)
|
MQP01.SetCurrentStageID(10)
|
||||||
Debug.SendAnimationEvent(PlayerRef, "IdleForceDefaultState")
|
endif
|
||||||
Game.ShowRaceMenu()
|
|
||||||
Game.DisablePlayerControls(false, true, true, false, true, false, false, true)
|
|
||||||
MQP03.SetCurrentStageID(15)
|
|
||||||
(MQP02 as _00E_MQP02_Functions).AddRacialAbilites()
|
|
||||||
else
|
|
||||||
MQP01.SetCurrentStageID(10)
|
|
||||||
endif
|
|
||||||
EndIf
|
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
@ -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…
Reference in New Issue
Block a user