Moved weather control alias from Levelsystem to a separate quest
This commit is contained in:
parent
3830d439dd
commit
522839fe27
BIN
Separate weather control quest.esp
Normal file
BIN
Separate weather control quest.esp
Normal file
Binary file not shown.
BIN
scripts/_00e_weathercontrolquestscript.pex
Normal file
BIN
scripts/_00e_weathercontrolquestscript.pex
Normal file
Binary file not shown.
Binary file not shown.
@ -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…
Reference in New Issue
Block a user