27 lines
460 B
Plaintext
27 lines
460 B
Plaintext
Scriptname _00E_EnderalVersion extends ReferenceAlias Hidden
|
|
{This script handles Enderal SE updates, DO NOT MODIFY.}
|
|
|
|
int iPatchVersion
|
|
|
|
int function _GetScriptVersion() Global
|
|
return 1
|
|
endFunction
|
|
|
|
int function GetVersion() global
|
|
return EnderalFunctions.GetEnderalVersionInt()
|
|
endfunction
|
|
|
|
Event OnInit()
|
|
|
|
iPatchVersion = GetVersion()
|
|
|
|
EndEvent
|
|
|
|
Event OnPlayerLoadGame()
|
|
|
|
if iPatchVersion < GetVersion()
|
|
iPatchVersion = GetVersion()
|
|
endif
|
|
|
|
EndEvent
|