4
Fork 0

Moved weather control alias from Levelsystem to a separate quest

remove-levelsystem
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 Property LATEST_SCRIPT_VERSION = 1 AutoReadOnly
@ -11,22 +11,10 @@ EndEvent
Event OnPlayerLoadGame()
If iScriptVersion < LATEST_SCRIPT_VERSION
iScriptVersion = LATEST_SCRIPT_VERSION
; Release weather overrides from the previous version
If AreSpecialWeathersEnabled()
If LocationIsSuntemple(GetPlayerLocation())
If IsSuntempleSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
ElseIf LocationIsArk(GetPlayerLocation())
If IsArkSpecialWeatherActive()
Weather.ReleaseOverride()
EndIf
EndIf
EndIf
; Update procedure
iCurrentWeather = WEATHER_NONE
UpdateWeathers(True)
EndIf
EndEvent
Loading…
Cancel
Save