diff --git a/Moved MCM from Levelsystem.esp b/Moved MCM from Levelsystem.esp new file mode 100644 index 00000000..a6e44586 Binary files /dev/null and b/Moved MCM from Levelsystem.esp differ diff --git a/scripts/_00e_configmenu.pex b/scripts/_00e_configmenu.pex index 4fa2cfeb..d0bd5e1a 100644 Binary files a/scripts/_00e_configmenu.pex and b/scripts/_00e_configmenu.pex differ diff --git a/scripts/_00e_enderalmcm.pex b/scripts/_00e_enderalmcm.pex new file mode 100644 index 00000000..7a1b3652 Binary files /dev/null and b/scripts/_00e_enderalmcm.pex differ diff --git a/scripts/_00e_playersetupscript.pex b/scripts/_00e_playersetupscript.pex index 3475b441..395c6ebd 100644 Binary files a/scripts/_00e_playersetupscript.pex and b/scripts/_00e_playersetupscript.pex differ diff --git a/scripts/_00e_ski_playerloadgamealias.pex b/scripts/_00e_ski_playerloadgamealias.pex new file mode 100644 index 00000000..e98f3776 Binary files /dev/null and b/scripts/_00e_ski_playerloadgamealias.pex differ diff --git a/source/scripts/_00e_configmenu.psc b/source/scripts/_00e_configmenu.psc index 6511061e..07c70c46 100644 --- a/source/scripts/_00e_configmenu.psc +++ b/source/scripts/_00e_configmenu.psc @@ -1,181 +1,2 @@ -Scriptname _00E_ConfigMenu extends SKI_ConfigBase -{This script handles all kinds of MCM menu options for Enderal} -;===================================================================================== -; EVENTS -;===================================================================================== - -Event OnPageReset(string page) - - If _00E_ConfigMenu_Meditate == None - _00E_ConfigMenu_Meditate = Game.GetFormFromFile(0x00046D98, "Skyrim.esm") as Message - EndIf - If _00E_FS_IsForgottenStoriesActivated == None - _00E_FS_IsForgottenStoriesActivated = Game.GetFormFromFile(0x0004320E, "Skyrim.esm") as GlobalVariable - EndIf - - ; adding options to rebind new key options: 1) Hero menu 2) meditation 3) Phasmalist summon apparition 4) Horseflute - SetCursorFillMode(TOP_TO_BOTTOM) - AddHeaderOption(_00E_ConfigMenu_Keybindings.GetName()) - iKeyID = self.AddKeyMapOption(_00E_ConfigMenu_OpenHeroMenu.GetName(), iHeroMenuKeymap, 0) - iKeyMeditateID = self.AddKeyMapOption(_00E_ConfigMenu_Meditate.GetName(), Player.iMeditateKeycode, 0) - If _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 - iKeyID02 = self.AddKeyMapOption(_00E_FS_ConfigMenu_Phasmalist_Teleport.GetName(), iFSPhasmalistTeleportKeymap, 0) - iKeyMountID = self.AddKeyMapOption(_00E_FS_ConfigMenu_Mount_Teleport.GetName(), iFSMountTeleportKeymap, 0) - EndIf - - ; adding gameplay options to enable / disable: 1) read aloud books 2) videos skip - AddHeaderOption(_00E_ConfigMenu_GameplayOptions.GetName()) - toggleOID_ReadAloudBooks = AddToggleOption(_00E_ConfigMenu_DisableReadAloudBooks.GetName(), _00E_DisableReadAloudBooks.GetValue() != 0) - toggleOID_VideoSkip = AddToggleOption(_00E_ConfigMenu_VideoSkip.GetName(), _00E_VideoSkip.GetValue() != 0) - - SetCursorPosition(1) - - ; adding other options to disable / enable: 1) menu tutorials 2) crafting tutorials 3) skill tutorials 4) quest tutorials 5) other tutorials - AddHeaderOption(_00E_ConfigMenu_OtherOptions.GetName()) - toggleOID_MenuTutorials = AddToggleOption(_00E_ConfigMenu_DisableMenuTutorials.GetName(), _00E_DisableMenuTutorials.GetValue() != 0) - toggleOID_CraftingTutorials = AddToggleOption(_00E_ConfigMenu_DisableCraftingTutorials.GetName(), _00E_DisableCraftingTutorials.GetValue() != 0) - toggleOID_SkillTutorials = AddToggleOption(_00E_ConfigMenu_DisableSkillTutorials.GetName(), _00E_DisableSkillTutorials.GetValue() != 0) - toggleOID_QuestTutorials = AddToggleOption(_00E_ConfigMenu_DisableQuestTutorials.GetName(), _00E_DisableQuestTutorials.GetValue() != 0) - toggleOID_OtherTutorials = AddToggleOption(_00E_ConfigMenu_DisableOtherTutorials.GetName(), _00E_DisableOtherTutorials.GetValue() != 0) - -EndEvent - -; this event is responsible for assigning new keys, and passes the information to the respecitive scripts that registers for the key -Event OnOptionKeyMapChange(int option, int keyCode, string conflictControl, string conflictName) - - If option == iKeyID - - iHeroMenuKeymap = keyCode - self.SetKeyMapOptionValue(iKeyID, iHeroMenuKeymap, false) - Player.SetHeroMenuKey(iHeroMenuKeymap) - - ElseIf option == iKeyMeditateID - - self.SetKeyMapOptionValue(iKeyMeditateID, keyCode, false) - Player.SetMeditateKey(keyCode) - - ElseIf option == iKeyID02 - - iFSPhasmalistTeleportKeymap = keyCode - self.SetKeyMapOptionValue(iKeyID02, iFSPhasmalistTeleportKeymap, false) - controlQuest.ChangeTeleportKey(iFSPhasmalistTeleportKeymap) - - ElseIf option == iKeyMountID - - iFSMountTeleportKeymap = keyCode - self.SetKeyMapOptionValue(iKeyMountID, iFSMountTeleportKeymap, false) - _00E_HorseFlute_New.SetMountTeleportKey(iFSMountTeleportKeymap) - - EndIf - -EndEvent - -Event OnOptionSelect(int option) - - If option == toggleOID_MenuTutorials - ChangeCheckbox(toggleOID_MenuTutorials, _00E_DisableMenuTutorials) - ElseIf option == toggleOID_CraftingTutorials - ChangeCheckbox(toggleOID_CraftingTutorials, _00E_DisableCraftingTutorials) - ElseIf option == toggleOID_SkillTutorials - ChangeCheckbox(toggleOID_SkillTutorials, _00E_DisableSkillTutorials) - ElseIf option == toggleOID_QuestTutorials - ChangeCheckbox(toggleOID_QuestTutorials, _00E_DisableQuestTutorials) - ElseIf option == toggleOID_OtherTutorials - ChangeCheckbox(toggleOID_OtherTutorials, _00E_DisableOtherTutorials) - ElseIf option == toggleOID_ReadAloudBooks - ChangeCheckbox(toggleOID_ReadAloudBooks, _00E_DisableReadAloudBooks) - ElseIf option == toggleOID_VideoSkip - ChangeCheckbox(toggleOID_VideoSkip, _00E_VideoSkip) - EndIf - -EndEvent - -; this event displays additional information when the mouse hovers over the different options -; the information is located in the Language_Translate.txt -Event OnOptionHighlight(int option) - - If option == iKeyID - SetInfoText("$ConfigMenuKeyInfo") - ElseIf option == iKeyMeditateID - SetInfoText("$ConfigMenuKeyInfo") - ElseIf option == iKeyID02 - SetInfoText("$ConfigMenuKeyInfo") - ElseIf option == iKeyMountID - SetInfoText("$ConfigMenuKeyInfo") - ElseIf option == toggleOID_MenuTutorials - SetInfoText("$ConfigMenuTutorialsInfo") - ElseIf option == toggleOID_CraftingTutorials - SetInfoText("$ConfigMenuTutorialsInfo") - ElseIf option == toggleOID_SkillTutorials - SetInfoText("$ConfigMenuTutorialsInfo") - ElseIf option == toggleOID_QuestTutorials - SetInfoText("$ConfigMenuTutorialsInfo") - ElseIf option == toggleOID_OtherTutorials - SetInfoText("$ConfigMenuTutorialsInfo") - ElseIf option == toggleOID_ReadAloudBooks - SetInfoText("$ConfigMenuReadAloudBooksInfo") - ElseIf option == toggleOID_VideoSkip - SetInfoText("$ConfigMenuVideoSkipInfo") - EndIf - -EndEvent - -;===================================================================================== -; FUNCTIONS -;===================================================================================== - -; function to control all checkbox changes -Function ChangeCheckbox(Int optionId, GlobalVariable optionValue) - Int newValue = ((optionValue.GetValueInt() == 0) as int) - SetToggleOptionValue(optionId, newValue) - optionValue.SetValueInt(newValue) -EndFunction - -;===================================================================================== -; PROPERTIES -;===================================================================================== - -_00E_Game_SkillmenuSC Property Player Auto - -int iKeyID -Int iKeyMeditateID -int iKeyID02 -int iKeyMountID -;int iMeditateKeycode = 21 -int iHeroMenuKeymap = 35 -int iFSPhasmalistTeleportKeymap = 34 -int iFSMountTeleportKeymap = 38 -int toggleOID_MenuTutorials -int toggleOID_CraftingTutorials -int toggleOID_SkillTutorials -int toggleOID_QuestTutorials -int toggleOID_OtherTutorials -int toggleOID_ReadAloudBooks -int toggleOID_VideoSkip - -Message Property _00E_ConfigMenu_Keybindings Auto -Message Property _00E_ConfigMenu_OtherOptions Auto -Message Property _00E_ConfigMenu_GameplayOptions Auto -Message Property _00E_ConfigMenu_OpenHeroMenu Auto -Message Property _00E_ConfigMenu_Meditate Auto -Message Property _00E_FS_ConfigMenu_Phasmalist_Teleport Auto -Message Property _00E_FS_ConfigMenu_Mount_Teleport Auto -Message Property _00E_ConfigMenu_DisableMenuTutorials Auto -Message Property _00E_ConfigMenu_DisableCraftingTutorials Auto -Message Property _00E_ConfigMenu_DisableSkillTutorials Auto -Message Property _00E_ConfigMenu_DisableQuestTutorials Auto -Message Property _00E_ConfigMenu_DisableOtherTutorials Auto -Message Property _00E_ConfigMenu_DisableReadAloudBooks Auto -Message Property _00E_ConfigMenu_VideoSkip Auto - -_FS_Phasmalist_ControlQuest Property controlQuest Auto -_00E_Horseflute_SC Property _00E_HorseFlute_New Auto - -GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto -GlobalVariable Property _00E_DisableMenuTutorials Auto -GlobalVariable Property _00E_DisableCraftingTutorials Auto -GlobalVariable Property _00E_DisableSkillTutorials Auto -GlobalVariable Property _00E_DisableQuestTutorials Auto -GlobalVariable Property _00E_DisableOtherTutorials Auto -GlobalVariable Property _00E_DisableReadAloudBooks Auto -GlobalVariable Property _00E_VideoSkip Auto \ No newline at end of file +Scriptname _00E_ConfigMenu extends Quest +{Obsolete MCM script} diff --git a/source/scripts/_00e_enderalmcm.psc b/source/scripts/_00e_enderalmcm.psc new file mode 100644 index 00000000..aa903002 --- /dev/null +++ b/source/scripts/_00e_enderalmcm.psc @@ -0,0 +1,181 @@ +Scriptname _00E_EnderalMCM extends SKI_ConfigBase +{This script handles all kinds of MCM menu options for Enderal} +;===================================================================================== +; EVENTS +;===================================================================================== + +Event OnPageReset(string page) + + If _00E_ConfigMenu_Meditate == None + _00E_ConfigMenu_Meditate = Game.GetFormFromFile(0x00046D98, "Skyrim.esm") as Message + EndIf + If _00E_FS_IsForgottenStoriesActivated == None + _00E_FS_IsForgottenStoriesActivated = Game.GetFormFromFile(0x0004320E, "Skyrim.esm") as GlobalVariable + EndIf + + ; adding options to rebind new key options: 1) Hero menu 2) meditation 3) Phasmalist summon apparition 4) Horseflute + SetCursorFillMode(TOP_TO_BOTTOM) + AddHeaderOption(_00E_ConfigMenu_Keybindings.GetName()) + iKeyID = self.AddKeyMapOption(_00E_ConfigMenu_OpenHeroMenu.GetName(), iHeroMenuKeymap, 0) + iKeyMeditateID = self.AddKeyMapOption(_00E_ConfigMenu_Meditate.GetName(), Player.iMeditateKeycode, 0) + If _00E_FS_IsForgottenStoriesActivated.GetValueInt() == 1 + iKeyID02 = self.AddKeyMapOption(_00E_FS_ConfigMenu_Phasmalist_Teleport.GetName(), iFSPhasmalistTeleportKeymap, 0) + iKeyMountID = self.AddKeyMapOption(_00E_FS_ConfigMenu_Mount_Teleport.GetName(), iFSMountTeleportKeymap, 0) + EndIf + + ; adding gameplay options to enable / disable: 1) read aloud books 2) videos skip + AddHeaderOption(_00E_ConfigMenu_GameplayOptions.GetName()) + toggleOID_ReadAloudBooks = AddToggleOption(_00E_ConfigMenu_DisableReadAloudBooks.GetName(), _00E_DisableReadAloudBooks.GetValue() != 0) + toggleOID_VideoSkip = AddToggleOption(_00E_ConfigMenu_VideoSkip.GetName(), _00E_VideoSkip.GetValue() != 0) + + SetCursorPosition(1) + + ; adding other options to disable / enable: 1) menu tutorials 2) crafting tutorials 3) skill tutorials 4) quest tutorials 5) other tutorials + AddHeaderOption(_00E_ConfigMenu_OtherOptions.GetName()) + toggleOID_MenuTutorials = AddToggleOption(_00E_ConfigMenu_DisableMenuTutorials.GetName(), _00E_DisableMenuTutorials.GetValue() != 0) + toggleOID_CraftingTutorials = AddToggleOption(_00E_ConfigMenu_DisableCraftingTutorials.GetName(), _00E_DisableCraftingTutorials.GetValue() != 0) + toggleOID_SkillTutorials = AddToggleOption(_00E_ConfigMenu_DisableSkillTutorials.GetName(), _00E_DisableSkillTutorials.GetValue() != 0) + toggleOID_QuestTutorials = AddToggleOption(_00E_ConfigMenu_DisableQuestTutorials.GetName(), _00E_DisableQuestTutorials.GetValue() != 0) + toggleOID_OtherTutorials = AddToggleOption(_00E_ConfigMenu_DisableOtherTutorials.GetName(), _00E_DisableOtherTutorials.GetValue() != 0) + +EndEvent + +; this event is responsible for assigning new keys, and passes the information to the respecitive scripts that registers for the key +Event OnOptionKeyMapChange(int option, int keyCode, string conflictControl, string conflictName) + + If option == iKeyID + + iHeroMenuKeymap = keyCode + self.SetKeyMapOptionValue(iKeyID, iHeroMenuKeymap, false) + Player.SetHeroMenuKey(iHeroMenuKeymap) + + ElseIf option == iKeyMeditateID + + self.SetKeyMapOptionValue(iKeyMeditateID, keyCode, false) + Player.SetMeditateKey(keyCode) + + ElseIf option == iKeyID02 + + iFSPhasmalistTeleportKeymap = keyCode + self.SetKeyMapOptionValue(iKeyID02, iFSPhasmalistTeleportKeymap, false) + controlQuest.ChangeTeleportKey(iFSPhasmalistTeleportKeymap) + + ElseIf option == iKeyMountID + + iFSMountTeleportKeymap = keyCode + self.SetKeyMapOptionValue(iKeyMountID, iFSMountTeleportKeymap, false) + _00E_HorseFlute_New.SetMountTeleportKey(iFSMountTeleportKeymap) + + EndIf + +EndEvent + +Event OnOptionSelect(int option) + + If option == toggleOID_MenuTutorials + ChangeCheckbox(toggleOID_MenuTutorials, _00E_DisableMenuTutorials) + ElseIf option == toggleOID_CraftingTutorials + ChangeCheckbox(toggleOID_CraftingTutorials, _00E_DisableCraftingTutorials) + ElseIf option == toggleOID_SkillTutorials + ChangeCheckbox(toggleOID_SkillTutorials, _00E_DisableSkillTutorials) + ElseIf option == toggleOID_QuestTutorials + ChangeCheckbox(toggleOID_QuestTutorials, _00E_DisableQuestTutorials) + ElseIf option == toggleOID_OtherTutorials + ChangeCheckbox(toggleOID_OtherTutorials, _00E_DisableOtherTutorials) + ElseIf option == toggleOID_ReadAloudBooks + ChangeCheckbox(toggleOID_ReadAloudBooks, _00E_DisableReadAloudBooks) + ElseIf option == toggleOID_VideoSkip + ChangeCheckbox(toggleOID_VideoSkip, _00E_VideoSkip) + EndIf + +EndEvent + +; this event displays additional information when the mouse hovers over the different options +; the information is located in the Language_Translate.txt +Event OnOptionHighlight(int option) + + If option == iKeyID + SetInfoText("$ConfigMenuKeyInfo") + ElseIf option == iKeyMeditateID + SetInfoText("$ConfigMenuKeyInfo") + ElseIf option == iKeyID02 + SetInfoText("$ConfigMenuKeyInfo") + ElseIf option == iKeyMountID + SetInfoText("$ConfigMenuKeyInfo") + ElseIf option == toggleOID_MenuTutorials + SetInfoText("$ConfigMenuTutorialsInfo") + ElseIf option == toggleOID_CraftingTutorials + SetInfoText("$ConfigMenuTutorialsInfo") + ElseIf option == toggleOID_SkillTutorials + SetInfoText("$ConfigMenuTutorialsInfo") + ElseIf option == toggleOID_QuestTutorials + SetInfoText("$ConfigMenuTutorialsInfo") + ElseIf option == toggleOID_OtherTutorials + SetInfoText("$ConfigMenuTutorialsInfo") + ElseIf option == toggleOID_ReadAloudBooks + SetInfoText("$ConfigMenuReadAloudBooksInfo") + ElseIf option == toggleOID_VideoSkip + SetInfoText("$ConfigMenuVideoSkipInfo") + EndIf + +EndEvent + +;===================================================================================== +; FUNCTIONS +;===================================================================================== + +; function to control all checkbox changes +Function ChangeCheckbox(Int optionId, GlobalVariable optionValue) + Int newValue = ((optionValue.GetValueInt() == 0) as int) + SetToggleOptionValue(optionId, newValue) + optionValue.SetValueInt(newValue) +EndFunction + +;===================================================================================== +; PROPERTIES +;===================================================================================== + +_00E_Game_SkillmenuSC Property Player Auto + +int iKeyID +Int iKeyMeditateID +int iKeyID02 +int iKeyMountID +;int iMeditateKeycode = 21 +int iHeroMenuKeymap = 35 +int iFSPhasmalistTeleportKeymap = 34 +int iFSMountTeleportKeymap = 38 +int toggleOID_MenuTutorials +int toggleOID_CraftingTutorials +int toggleOID_SkillTutorials +int toggleOID_QuestTutorials +int toggleOID_OtherTutorials +int toggleOID_ReadAloudBooks +int toggleOID_VideoSkip + +Message Property _00E_ConfigMenu_Keybindings Auto +Message Property _00E_ConfigMenu_OtherOptions Auto +Message Property _00E_ConfigMenu_GameplayOptions Auto +Message Property _00E_ConfigMenu_OpenHeroMenu Auto +Message Property _00E_ConfigMenu_Meditate Auto +Message Property _00E_FS_ConfigMenu_Phasmalist_Teleport Auto +Message Property _00E_FS_ConfigMenu_Mount_Teleport Auto +Message Property _00E_ConfigMenu_DisableMenuTutorials Auto +Message Property _00E_ConfigMenu_DisableCraftingTutorials Auto +Message Property _00E_ConfigMenu_DisableSkillTutorials Auto +Message Property _00E_ConfigMenu_DisableQuestTutorials Auto +Message Property _00E_ConfigMenu_DisableOtherTutorials Auto +Message Property _00E_ConfigMenu_DisableReadAloudBooks Auto +Message Property _00E_ConfigMenu_VideoSkip Auto + +_FS_Phasmalist_ControlQuest Property controlQuest Auto +_00E_Horseflute_SC Property _00E_HorseFlute_New Auto + +GlobalVariable Property _00E_FS_IsForgottenStoriesActivated Auto +GlobalVariable Property _00E_DisableMenuTutorials Auto +GlobalVariable Property _00E_DisableCraftingTutorials Auto +GlobalVariable Property _00E_DisableSkillTutorials Auto +GlobalVariable Property _00E_DisableQuestTutorials Auto +GlobalVariable Property _00E_DisableOtherTutorials Auto +GlobalVariable Property _00E_DisableReadAloudBooks Auto +GlobalVariable Property _00E_VideoSkip Auto \ No newline at end of file diff --git a/source/scripts/_00e_horseflute_sc.psc b/source/scripts/_00e_horseflute_sc.psc index 836051c9..55444091 100644 --- a/source/scripts/_00e_horseflute_sc.psc +++ b/source/scripts/_00e_horseflute_sc.psc @@ -31,7 +31,7 @@ EndEvent Event OnKeyDown(Int KeyCode) ; this does basically the same as above, however we need an extensive check when the player is acutally allowed to use the hotkey - ; checks if the keycode is the code for which we registere, the keycode is changed in _00E_ConfigMenu + ; checks if the keycode is the code for which we registere, the keycode is changed in _00E_EnderalMCM ; further checks are if the player is certain menus or currently typing in a search bar, Utility.IsInMenuMode() does not catch the dialogue menu, hence it needs to be checked as well. ; also the player shouldn't be dead If KeyCode == iMountHotkey && Utility.IsInMenuMode() == False && UI.IsTextInputEnabled() == False && PlayerRef.IsOnMount() == False && Game.IsFightingControlsEnabled() == true && UI.IsMenuOpen("Dialogue Menu") == False && !PlayerREF.IsDead() @@ -114,7 +114,7 @@ EndFunction Function SetMountTeleportKey(int iKeyCode) - ; changes the registered key, gets called from _00E_ConfigMenu + ; changes the registered key, gets called from _00E_EnderalMCM UnregisterForKey(iMountHotkey) iMountHotkey = iKeyCode RegisterForKey(iMountHotkey) diff --git a/source/scripts/_00e_playersetupscript.psc b/source/scripts/_00e_playersetupscript.psc index f715bc8e..0c4622ed 100644 --- a/source/scripts/_00e_playersetupscript.psc +++ b/source/scripts/_00e_playersetupscript.psc @@ -41,6 +41,11 @@ Event OnInit() kQuest.Start() endwhile + If Game.GetModByName("Enderal_FS_More_Affinities.esp") != 255 + Game.QuitToMainMenu() + Debug.MessageBox("Enderal_FS_More_Affinities.esp is outdated and does not work with Enderal SE. Please, uninstall or update the mod.") + EndIf + EndEvent Event OnPlayerLoadGame() @@ -156,6 +161,14 @@ Function Update_212() PlayerREF.AddPerk(Game.GetFormFromFile(0x14CF8, "Enderal - Forgotten Stories.esm") as Perk) ; _00E_SE_WerewolfBlockFurniturePerk PlayerREF.AddPerk(Game.GetFormFromFile(0x14CFA, "Enderal - Forgotten Stories.esm") as Perk) ; _00E_SE_DismantlePerk PlayerREF.AddPerk(Game.GetFormFromFile(0x14CF9, "Enderal - Forgotten Stories.esm") as Perk) ; _00E_SE_2_0_12_UpgradePerk + + Quest qSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest + if qSkyUI + (qSkyUI as SKI_ConfigManager).ForceReset() + qSkyUI.Reset() + qSkyUI.Start() + (qSkyUI as SKI_ConfigManager).OnGameReload() + endif EndFunction @@ -220,106 +233,6 @@ Function ResetArmorWeightPerks() EndFunction -Function FixMoreAffinitiesMod() -{Fixes "More Affinites" mod missing properties in the Levelsystem scripts} - - _00E_QuestFunctions QuestFunctionsScript = (Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest) as _00E_QuestFunctions - If QuestFunctionsScript._00E_RemoveAllItems_TrashContainer == NONE - - Debug.Messagebox("Found broken scripts caused by mod >>More Affinities<<. Press OK to fix scripts.") - _00E_ConfigMenu ConfigMenuScript = (Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest) as _00E_ConfigMenu - ConfigMenuScript.controlQuest = (Game.GetFormFromFile(0x0101EC71, "Enderal - Forgotten Stories.esm") as Quest) as _FS_Phasmalist_ControlQuest - ConfigMenuScript._00E_ConfigMenu_DisableCraftingTutorials = Game.GetFormFromFile(0x00046D8E, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_DisableMenuTutorials = Game.GetFormFromFile(0x00046D8A, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_DisableOtherTutorials = Game.GetFormFromFile(0x00046D8F, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_DisableQuestTutorials = Game.GetFormFromFile(0x00046D8C, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_DisableReadAloudBooks = Game.GetFormFromFile(0x0102E982, "Enderal - Forgotten Stories.esm") as Message - ConfigMenuScript._00E_ConfigMenu_DisableSkillTutorials = Game.GetFormFromFile(0x00046D8D, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_GameplayOptions = Game.GetFormFromFile(0x0102F1BC, "Enderal - Forgotten Stories.esm") as Message - ConfigMenuScript._00E_ConfigMenu_Meditate = Game.GetFormFromFile(0x00046D98, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_OtherOptions = Game.GetFormFromFile(0x00046D89, "Skyrim.esm") as Message - ConfigMenuScript._00E_ConfigMenu_VideoSkip = Game.GetFormFromFile(0x0102E983, "Enderal - Forgotten Stories.esm") as Message - ConfigMenuScript._00E_DisableCraftingTutorials = Game.GetFormFromFile(0x00046D90, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_DisableMenuTutorials = Game.GetFormFromFile(0x00046D8B, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_DisableOtherTutorials = Game.GetFormFromFile(0x00046D93, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_DisableQuestTutorials = Game.GetFormFromFile(0x00046D92, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_DisableReadAloudBooks = Game.GetFormFromFile(0x0102E984, "Enderal - Forgotten Stories.esm") as GlobalVariable - ConfigMenuScript._00E_DisableSkillTutorials = Game.GetFormFromFile(0x00046D91, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_FS_ConfigMenu_Mount_Teleport = Game.GetFormFromFile(0x0102F1B9, "Enderal - Forgotten Stories.esm") as Message - ConfigMenuScript._00E_FS_ConfigMenu_Phasmalist_Teleport = Game.GetFormFromFile(0x0101F2B6, "Enderal - Forgotten Stories.esm") as Message - ConfigMenuScript._00E_FS_IsForgottenStoriesActivated = Game.GetFormFromFile(0x0004320E, "Skyrim.esm") as GlobalVariable - ConfigMenuScript._00E_HorseFlute_New = ((Game.GetFormFromFile(0x000725BA, "Skyrim.esm") as Quest).GetAliasByName("HorseFlute")) as _00E_Horseflute_SC - ConfigMenuScript._00E_VideoSkip = Game.GetFormFromFile(0x0102E985, "Enderal - Forgotten Stories.esm") as GlobalVariable - - - QuestFunctionsScript.BastionPerks = Game.GetFormFromFile(0x0006686B, "Skyrim.esm") as Formlist - QuestFunctionsScript.DerwishPerks = Game.GetFormFromFile(0x0006686D, "Skyrim.esm") as Formlist - QuestFunctionsScript.ElementalismPerks = Game.GetFormFromFile(0x00066875, "Skyrim.esm") as Formlist - QuestFunctionsScript.EspionagePerks = Game.GetFormFromFile(0x00066889, "Skyrim.esm") as Formlist - QuestFunctionsScript.GameHour = Game.GetFormFromFile(0x00000038, "Skyrim.esm") as GlobalVariable - QuestFunctionsScript.Gold001 = Game.GetFormFromFile(0x0000000f, "Skyrim.esm") as MiscObject - QuestFunctionsScript.LifeAndDeathPerks = Game.GetFormFromFile(0x00066873, "Skyrim.esm") as Formlist - QuestFunctionsScript.MAGIllusionCharm = Game.GetFormFromFile(0x00075805, "Skyrim.esm") as Sound - QuestFunctionsScript.ManipulationPerks = Game.GetFormFromFile(0x0006686A, "Skyrim.esm") as Formlist - QuestFunctionsScript.PlayerSkillMenu = ((Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest).GetAliasByName("Player") as Alias) as _00E_Game_SkillmenuSC - QuestFunctionsScript.RagePerks = Game.GetFormFromFile(0x00066887, "Skyrim.esm") as Formlist - QuestFunctionsScript.SympathyEsme = Game.GetFormFromFile(0x0102A498, "Enderal - Forgotten Stories.esm") as GlobalVariable - QuestFunctionsScript.TrickeryPerks = Game.GetFormFromFile(0x0006687F, "Skyrim.esm") as Formlist - QuestFunctionsScript.VagabondPerks = Game.GetFormFromFile(0x00066877, "Skyrim.esm") as Formlist - QuestFunctionsScript._00E_AchievementsEnabled = Game.GetFormFromFile(0x00046F83, "Skyrim.esm") as GlobalVariable - QuestFunctionsScript._00E_AllAmmos = Game.GetFormFromFile(0x000456C0, "Skyrim.esm") as Formlist - QuestFunctionsScript._00E_ArmorSetScript_sSetBonusRemoved = Game.GetFormFromFile(0x00036F96, "Skyrim.esm") as Message - QuestFunctionsScript._00E_DisableQuestTutorials = Game.GetFormFromFile(0x00046D92, "Skyrim.esm") as GlobalVariable - QuestFunctionsScript._00E_DisableSkillTutorials = Game.GetFormFromFile(0x00046D91, "Skyrim.esm") as GlobalVariable - QuestFunctionsScript._00E_FS_A3_AlreadyKnowThisLevel = Game.GetFormFromFile(0x0102F533, "Enderal - Forgotten Stories.esm") as Message - QuestFunctionsScript._00E_FS_A3_NeedToLearnOtherLevels = Game.GetFormFromFile(0x0101EC7D, "Enderal - Forgotten Stories.esm") as Message - QuestFunctionsScript._00E_FS_A3_sIn = Game.GetFormFromFile(0x00043BE0, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_A3_sMageClassName = Game.GetFormFromFile(0x00043BE4, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_A3_sRogueClassName = Game.GetFormFromFile(0x00043BE3, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_A3_sToUnlockThisClass = Game.GetFormFromFile(0x00043BE1, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_A3_sWarriorClassName = Game.GetFormFromFile(0x00043BE2, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_A3_sYouNeedSkillpoints = Game.GetFormFromFile(0x00043BDF, "Skyrim.esm") as Message - QuestFunctionsScript._00E_FS_NQ02_Esme = Game.GetFormFromFile(0x0101F0D0, "Enderal - Forgotten Stories.esm") as ActorBase - QuestFunctionsScript._00E_FS_NQR05_SlowMotionSP = Game.GetFormFromFile(0x0102E2BD, "Enderal - Forgotten Stories.esm") as Spell - QuestFunctionsScript._00E_FS_NQR05_SlowMotion_IntroM = Game.GetFormFromFile(0x0102E2BF, "Enderal - Forgotten Stories.esm") as Sound - QuestFunctionsScript._00E_FS_NQR05_SlowMotion_OutroM = Game.GetFormFromFile(0x0102E2C1, "Enderal - Forgotten Stories.esm") as Sound - QuestFunctionsScript._00E_Levelsystem_sAbilityStanceQyrai = Game.GetFormFromFile(0x00046D9B, "Skyrim.esm") as Message - QuestFunctionsScript._00E_Levelsystem_sAbilityStanceSkaragg = Game.GetFormFromFile(0x00046D9C, "Skyrim.esm") as Message - QuestFunctionsScript._00E_PleaseRemoveMoney = Game.GetFormFromFile(0x000480DA, "Skyrim.esm") as Message - QuestFunctionsScript._00E_RemoveAllItems_TrashContainer = Game.GetFormFromFile(0x000469E7, "Skyrim.esm") as ObjectReference - QuestFunctionsScript._00E_SkillbookWarning = Game.GetFormFromFile(0x00031ACF, "Skyrim.esm") as Message - - - _00E_Game_SkillmenuSC SkillMenuScript = ((Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest).GetAliasByName("Player") as Alias) as _00E_Game_SkillmenuSC - SkillMenuScript._00E_FS_Game_Affinity_Spectralist = Game.GetFormFromFile(0x01029A35, "Skyrim.esm") as Message - - - _00E_PlayerHousing_CellNameSC CellNameScript = ((Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest).GetAliasByName("Player") as Alias) as _00E_PlayerHousing_CellNameSC - CellNameScript.FS_NQR03 = Game.GetFormFromFile(0x0014CEA2, "Skyrim.esm") as Quest - CellNameScript.FS_NQR03_RhalataTemple = Game.GetFormFromFile(0x0010D1C2, "Skyrim.esm") as Cell - CellNameScript._00E_sPlayerHouseMarketQuarterName = Game.GetFormFromFile(0x00047CA5, "Skyrim.esm") as Message - CellNameScript._00E_sPlayerHouseNobleQuarterName = Game.GetFormFromFile(0x00047CA6, "Skyrim.esm") as Message - CellNameScript._00E_sRhalataTempleName = Game.GetFormFromFile(0x00047C29, "Skyrim.esm") as Message - - - _00E_WeatherControlScriptSC WeatherControlScript = ((Game.GetFormFromFile(0x00010AA2, "Skyrim.esm") as Quest).GetAliasByName("Player") as Alias) as _00E_WeatherControlScriptSC - WeatherControlScript.CapitalCityCastleWorld = Game.GetFormFromFile(0x00070729, "Skyrim.esm") as WorldSpace - WeatherControlScript.CapitalCityLocation = Game.GetFormFromFile(0x000A1A12, "Skyrim.esm") as Location - WeatherControlScript.MQ09 = Game.GetFormFromFile(0x0007FA91, "Skyrim.esm") as Quest - WeatherControlScript.MQ12b = Game.GetFormFromFile(0x0002EBAD, "Skyrim.esm") as Quest - WeatherControlScript.MQ17 = Game.GetFormFromFile(0x0007FA93, "Skyrim.esm") as Quest - WeatherControlScript.SkyrimOvercastRain = Game.GetFormFromFile(0x000C821F, "Skyrim.esm") as Weather - WeatherControlScript.Vyn = Game.GetFormFromFile(0x00001D3C, "Skyrim.esm") as WorldSpace - WeatherControlScript._00E_EnderalOvercast = Game.GetFormFromFile(0x00072785, "Skyrim.esm") as Weather - WeatherControlScript._00E_MQ11c_SilberhainDeadWeather = Game.GetFormFromFile(0x00096807, "Skyrim.esm") as GlobalVariable - WeatherControlScript._00E_SuntempleLocations = Game.GetFormFromFile(0x0003BB5B, "Skyrim.esm") as FormList - - Utility.Wait(1) - Debug.Messagebox("Scripts fixed. Make sure to save the game. Restart the client and reload the save that you just created.\n If you have set items equipped, unequip them all and re-equip them for potential set bonuses to apply.") - EndIf - -EndFunction - ;===================================================================================== ; MAINTENANCE ;===================================================================================== @@ -368,10 +281,7 @@ Function Maintenance() RefreshMountNamesOnLoad() - ; fixes properties that were accidentally set to NONE by the "More Affinities" mod - If Game.GetModByName("Enderal_FS_More_Affinities.esp") != 255 - FixMoreAffinitiesMod() - EndIf + SendModEvent("Enderal_GameLoaded") EndFunction diff --git a/source/scripts/_00e_ski_playerloadgamealias.psc b/source/scripts/_00e_ski_playerloadgamealias.psc new file mode 100644 index 00000000..3040233b --- /dev/null +++ b/source/scripts/_00e_ski_playerloadgamealias.psc @@ -0,0 +1,8 @@ +scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias + + ; EVENTS ----------------------------------------------------------------------------------------- + +event OnPlayerLoadGame() + (GetOwningQuest() as _00E_GUI_ActorHealthBar).OnGameReload() + (GetOwningQuest() as _00E_EnderalMCM).OnGameReload() +endEvent