Prevent player from leaving the first conversation with Jespar

This commit is contained in:
Eddoursul 2024-01-21 02:53:21 +01:00
parent 0f7fde96b4
commit b0b4f3195f
2 changed files with 4 additions and 5 deletions

Binary file not shown.

View File

@ -15,7 +15,7 @@ Function MovePlayerAndJesparToStart()
_00E_MC_JesparREF.Disable()
FadeToBlackHoldImod.Apply()
ForceFirstPerson()
DisablePlayerControls(true, true, true, true, true, true, true)
DisablePlayerControls(true, true, true, false, true, true, true)
_00E_TimeControl.SkipTimeToHour(5.5)
_00E_MC_JesparREF.Enable()
_00E_MC_JesparREF.MoveTo(MQ02_D0_JesparSpawnMarker)
@ -32,7 +32,6 @@ Function WakeUpPlayer()
_00E_MQ02_WakeUp.Apply()
Self.SetCurrentStageID(20)
RequestAutoSave()
EnablePlayerControls()
_00E_SilenceLongTransitionHighPriority.Remove()
_00E_Music_Special_Character_Jespar.Add()
@ -51,15 +50,14 @@ Function FadeOutAndBack()
FadeToBlackAndBackIMOD.Apply()
SkyrimClear.SetActive()
Wait(3.3)
_00E_MC_JesparREF.Disable()
_00E_MC_JesparREF.DisableNoWait()
_00E_TimeControl.SkipTimeToHour(6.5)
Wait(0.5)
; Jespar may snap to player's position after EnableAI, so we ensure he is in the correct position.
; Plus, he acts weird and wants to go somewhere without this.
_00E_MC_JesparREF.EnableAI(true)
_00E_MC_JesparREF.Enable()
_00E_MC_JesparREF.EnableNoWait()
_00E_MC_JesparREF.MoveTo(MQ02_D0_JesparSpawnMarker)
EnablePlayerControls()
SetCurrentStageID(30)
ShowFirstPersonGeometry(true)
@ -74,6 +72,7 @@ EndFunction
Function ShowQuestDifficultyTutorial()
EnablePlayerControls()
MQ02_CampBanditREF.Enable()
If _00E_DisableQuestTutorials.GetValueInt() == 0
_00E_Tutorial_QuestDifficulty.Show()