2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_MQP01_StartSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter (ObjectReference akActionREF)
|
|
|
|
|
2024-01-11 20:24:54 +00:00
|
|
|
if akActionRef == PlayerREF && !bDone
|
|
|
|
bDone = true ; deletion may take some time
|
|
|
|
Delete()
|
|
|
|
If !MQ10a.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
|
|
|
|
MQP01.CompleteAllObjectives()
|
|
|
|
MQP01.CompleteQuest()
|
|
|
|
MQP02.CompleteAllObjectives()
|
|
|
|
MQP02.CompleteQuest()
|
|
|
|
Utility.wait(0.5)
|
2024-01-20 04:02:25 +00:00
|
|
|
If _00E_VideoSkip.GetValueInt() == 0
|
|
|
|
Game.PlayBink("MQP03NearDeathExperience.bik", true)
|
|
|
|
EndIf
|
2024-01-11 20:24:54 +00:00
|
|
|
PlayerREF.MoveTo(_00E_ClassMenuOrigin)
|
|
|
|
Debug.SendAnimationEvent(PlayerRef, "IdleForceDefaultState")
|
|
|
|
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
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool bDone
|
|
|
|
|
|
|
|
Quest Property MQP01 Auto
|
2024-01-11 20:24:54 +00:00
|
|
|
Quest Property MQP02 Auto
|
|
|
|
Quest Property MQP03 Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
Quest Property MQ12c Auto
|
|
|
|
Quest Property MQ10a Auto
|
|
|
|
|
2024-01-11 20:24:54 +00:00
|
|
|
Actor Property PlayerREF Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-01-11 20:24:54 +00:00
|
|
|
Message Property _00E_QuickStartPrompt Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2024-01-11 20:24:54 +00:00
|
|
|
ObjectReference Property _00E_ClassMenuOrigin Auto
|
2024-01-20 04:02:25 +00:00
|
|
|
|
|
|
|
GlobalVariable Property _00E_VideoSkip Auto
|