Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
Scriptname _00E_IntegrityCheckAlias extends ReferenceAlias Hidden
|
|
|
|
Event OnInit()
|
|
|
|
if Game.GetRealHoursPassed() > 0.005 ; 18 seconds
|
|
Utility.Wait(0.1) ; wait for menu mode to end
|
|
;Game.QuitToMainMenu()
|
|
Debug.MessageBox("Savegames, made before the release of Enderal SE 2.1, are incompatible with the current version. Please, start a new game.")
|
|
;return
|
|
endif
|
|
|
|
RegisterForSingleUpdate(2.0) ; Give a few seconds for the game to warm up at the start
|
|
|
|
EndEvent
|
|
|
|
Event OnPlayerLoadGame()
|
|
RegisterForSingleUpdate(1.2)
|
|
EndEvent
|
|
|
|
Event OnUpdate()
|
|
|
|
if _00E_FS_IsForgottenStoriesActivated == None
|
|
_00E_FS_IsForgottenStoriesActivated = Game.GetForm(0x4320E) as GlobalVariable
|
|
endif
|
|
|
|
; If Enderal - Forgotten Stories.esm is not loaded, kick the player back to main menu
|
|
if _00E_FS_IsForgottenStoriesActivated.GetValue() as Int != 1
|
|
Game.QuitToMainMenu()
|
|
Debug.MessageBox("Enderal - Forgotten Stories.esm is not loaded! The game will not run properly.")
|
|
return
|
|
EndIf
|
|
|
|
_00E_Func_CheckSKSE.Run()
|
|
_00E_Func_CheckEnderalDLL.Run()
|
|
|
|
EndEvent
|
|
|
|
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
|
|
|