Prevent saving before race menu

This commit is contained in:
Eddoursul 2024-01-11 00:37:14 +01:00
parent 07d10dd9d7
commit eeb35a7dae
17 changed files with 5 additions and 95 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,3 +1,4 @@
Scriptname EnderalSteam Hidden
; Do not call this function directly, use Steam.pex
bool Function CallUnlockAchievement(string name) global native

View File

@ -1,12 +0,0 @@
Scriptname _00E_MQ00_RaceTestTriggBox extends ObjectReference
int DoOnce
Event OnTriggerEnter(ObjectReference akActionRef)
if DoOnce == 0
Game.ShowRaceMenu()
DoOnce = 1
endif
EndEvent

View File

@ -1,31 +0,0 @@
Scriptname _00E_MQ00_TrigBox00Script extends ObjectReference
int DoOnce
Quest Property _00E_MQ00 auto
Race Property NordRaceChild auto
Event OnTriggerEnter(ObjectReference akActionRef)
if ( DoOnce == 0 )
if(akActionRef == Game.GetPlayer())
Game.FadeOutGame(false, true, 2.0, 1.0) ; Fade in after the mainmenu
;Game.SetInChargen(false, true, false) ; Save, Rest, HUD ? Disabled
Game.EnablePlayerControls() ; Enable Player Controls
;Game.ShowTitleSequenceMenu()
Game.GetPlayer().SetScale(0.98) ; Scale the player
Game.GetPlayer().SetRace(NordRaceChild) ; Set player race to child
Debug.MessageBox("Yippee, jetzt bin ich Jorle Rostlöffel!")
_00E_MQ00.SetCurrentStageID(0) ; Starts _00E_MQ00 Quest
DoOnce = -1
endif
endif
EndEvent

View File

@ -1,31 +0,0 @@
Scriptname _00E_MQ00_TrigBox01Script extends ObjectReference
int DoOnce
Event OnTriggerEnter(ObjectReference akActionRef)
if ( DoOnce == 0 )
if(akActionRef == Game.GetPlayer())
Game.SetInChargen(false, false, false)
;Game.ShowRaceMenu()
DoOnce = -1
endif
endif
if ( DoOnce == -1)
utility.Wait(4)
Game.RequestAutoSave()
Game.RequestSave()
DoOnce = -2
endif
EndEvent

View File

@ -8,6 +8,7 @@ Import Utility
Function SetUpScene()
Game.SetInChargen(true, true, false)
Game.FadeOutGame(false, true, 0.5, 0.5)
FadeToBlackHoldIMOD.Apply()
PlayerREF.SetScale(0.85)
@ -19,16 +20,13 @@ Function SetUpScene()
FadeToBlackHoldIMOD.Remove()
MQP01_DreamDoorREF.BlockActivation(True)
Wait(5.0)
Game.EnablePlayerControls()
if EnderalFunctions.GetNewGameCount() > 1
Game.EnablePlayerControls()
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
Game.DisablePlayerControls(false, true, true, false, true, false, false)
EndFunction
Function UnlockDoor()

View File

@ -420,6 +420,7 @@ State Chargen
Game.EnablePlayerControls()
PlayerREF.PlayIdle(IdleForceDefaultState)
Debug.SendAnimationEvent(PlayerREF, "IdleForceDefaultState")
Game.SetInCharGen(false, true, false)
Else
RegisterForSingleUpdate(1)
EndIf

View File

@ -11,7 +11,7 @@ Import Game
Event OnUpdate()
If (Self.GetCurrentStageID() < 20) && _00E_DisableMenuTutorials.GetValueInt() == 0
If UsingGamepad()
If Game.UsingGamepad()
Message.ResetHelpMessage("Empty")
_00E_MQP03_Tutorial_LeaveMenuHintConsole.ShowAsHelpMessage("Empty", 5, 1, 1)
Else

View File

@ -1,16 +0,0 @@
Scriptname _00E_StartDoorScript extends ObjectReference
int count
Event OnActivate(ObjectReference akActionRef)
if count == 0
;Game.ShowRaceMenu()
Game.GetPlayer().SetActorValue("health", 50)
Game.GetPlayer().SetActorValue("Magicka", 50)
Game.GetPlayer().SetActorValue("Stamina", 50)
Game.GetPlayer().RemoveAllItems(abRemoveQuestItems = true)
endif
count = 1
endEvent