2023-10-27 19:14:07 +00:00
|
|
|
Scriptname _00E_IntegrityCheckAlias extends ReferenceAlias Hidden
|
|
|
|
|
|
|
|
Event OnInit()
|
2024-02-07 03:57:46 +00:00
|
|
|
|
2024-02-09 18:19:40 +00:00
|
|
|
_00E_SKSE.SetValue(SKSE.GetVersion() as float)
|
|
|
|
|
2023-11-28 18:31:31 +00:00
|
|
|
RegisterForSingleUpdate(2.0) ; Give a few seconds for the game to warm up at the start
|
2024-02-07 03:57:46 +00:00
|
|
|
|
2023-10-27 19:14:07 +00:00
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnPlayerLoadGame()
|
2024-02-09 18:19:40 +00:00
|
|
|
_00E_SKSE.SetValue(SKSE.GetVersion() as float)
|
2023-11-28 18:31:31 +00:00
|
|
|
RegisterForSingleUpdate(1.2)
|
2023-10-27 19:14:07 +00:00
|
|
|
EndEvent
|
|
|
|
|
2023-11-28 18:31:31 +00:00
|
|
|
Event OnUpdate()
|
2023-10-27 19:14:07 +00:00
|
|
|
|
2024-01-10 13:29:46 +00:00
|
|
|
if _00E_FS_IsForgottenStoriesActivated == None
|
|
|
|
_00E_FS_IsForgottenStoriesActivated = Game.GetForm(0x4320E) as GlobalVariable
|
|
|
|
endif
|
|
|
|
|
2023-11-28 18:31:31 +00:00
|
|
|
; If Enderal - Forgotten Stories.esm is not loaded, kick the player back to main menu
|
2023-10-27 19:14:07 +00:00
|
|
|
if _00E_FS_IsForgottenStoriesActivated.GetValue() as Int != 1
|
|
|
|
Game.QuitToMainMenu()
|
2023-11-28 18:31:31 +00:00
|
|
|
Debug.MessageBox("Enderal - Forgotten Stories.esm is not loaded! The game will not run properly.")
|
2024-02-07 03:57:46 +00:00
|
|
|
return
|
2023-10-27 19:14:07 +00:00
|
|
|
EndIf
|
2023-11-28 18:31:31 +00:00
|
|
|
|
|
|
|
_00E_Func_CheckSKSE.Run()
|
|
|
|
_00E_Func_CheckEnderalDLL.Run()
|
|
|
|
|
|
|
|
EndEvent
|
2023-10-27 19:14:07 +00:00
|
|
|
|
|
|
|
GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto
|
2024-02-09 18:19:40 +00:00
|
|
|
GlobalVariable Property _00E_SKSE Auto
|