enderalse/source/scripts/_00e_mqp01_startsc.psc

55 lines
1.5 KiB
Plaintext
Raw Normal View History

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)
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
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
Quest Property MQ12c Auto
Quest Property MQ10a Auto
2024-01-11 20:24:54 +00:00
Actor Property PlayerREF Auto
2024-01-11 20:24:54 +00:00
Message Property _00E_QuickStartPrompt Auto
2024-01-11 20:24:54 +00:00
ObjectReference Property _00E_ClassMenuOrigin Auto
GlobalVariable Property _00E_VideoSkip Auto