4
Fork 0

Prevent users from starting game twice during the same session to avoid an engine bug

master
Eddoursul 2 years ago
parent 0121c3cd13
commit 3b5bc3fffe
  1. BIN
      scripts/_00e_mqp01_functions.pex
  2. BIN
      scripts/enderallib.pex
  3. 7
      source/scripts/_00e_mqp01_functions.psc
  4. 2
      source/scripts/enderallib.psc

Binary file not shown.

Binary file not shown.

@ -20,6 +20,13 @@ Function SetUpScene()
MQP01_DreamDoorREF.BlockActivation(True)
Wait(5.0)
Game.EnablePlayerControls()
if EnderalLib.NewGameCount() > 1
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)
Wait(1.0)
_00E_MQP01_Thoughts01.ShowAsHelpMessage("Empty", 5, 1, 1)

@ -4,6 +4,8 @@ float function calculateContentStrength(ObjectReference container) native global
Potion function CreatePotion(MagicEffect[] effects, float[] magnitudes, int[] areas, int[] durations, int arraySize) native global
int function NewGameCount() native global
bool function IsDLLLoaded() global
return (SKSE.GetPluginVersion("fs_skse_functions") != -1)
endfunction

Loading…
Cancel
Save