4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
1007 B

scriptname SKI_QuestBase extends Quest hidden
; -------------------------------------------------------------------------------------------------
; Version Tracking
;
; Quest implements
; GetVersion, to return the static version number
; OnVersionUpdate to handle the updating
; Update process is triggered by calling CheckVersion()
int property CurrentVersion auto hidden
function CheckVersion()
int version = GetVersion()
if (CurrentVersion < version)
OnVersionUpdateBase(version)
OnVersionUpdate(version)
CurrentVersion = version
endIf
endFunction
int function GetVersion()
return 1
endFunction
event OnVersionUpdateBase(int a_version)
endEvent
event OnVersionUpdate(int a_version)
endEvent
; -------------------------------------------------------------------------------------------------
; Reload Events
;
; Helper to add reload event to quest script.
; 1. Create quest
; 2. Add player alias to quest
; 3. Attach SKI_PlayerLoadGameAlias to player alias
event OnGameReload()
endEvent