1
Fork 0

Moved weather control alias from Levelsystem to a separate quest

development
Eddoursul 4 months ago
parent 3830d439dd
commit 522839fe27
  1. BIN
      Separate weather control quest.esp
  2. BIN
      scripts/_00e_weathercontrolquestscript.pex
  3. BIN
      scripts/_00e_weathercontrolscriptsc.pex
  4. 20
      source/scripts/_00e_weathercontrolquestscript.psc

@ -1,4 +1,4 @@
Scriptname _00E_WeatherControlScriptSC extends ReferenceAlias Scriptname _00E_WeatherControlQuestScript extends ReferenceAlias
Int iScriptVersion = 0 Int iScriptVersion = 0
Int Property LATEST_SCRIPT_VERSION = 1 AutoReadOnly Int Property LATEST_SCRIPT_VERSION = 1 AutoReadOnly
@ -11,22 +11,10 @@ EndEvent
Event OnPlayerLoadGame() Event OnPlayerLoadGame()
If iScriptVersion < LATEST_SCRIPT_VERSION If iScriptVersion < LATEST_SCRIPT_VERSION
iScriptVersion = LATEST_SCRIPT_VERSION iScriptVersion = LATEST_SCRIPT_VERSION
; Release weather overrides from the previous version ; Update procedure
If AreSpecialWeathersEnabled()
If LocationIsSuntemple(GetPlayerLocation())
If IsSuntempleSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
ElseIf LocationIsArk(GetPlayerLocation())
If IsArkSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
EndIf
EndIf
iCurrentWeather = WEATHER_NONE iCurrentWeather = WEATHER_NONE
UpdateWeathers(True) UpdateWeathers(True)
EndIf EndIf
EndEvent EndEvent
Loading…
Cancel
Save