Scriptname BaboFollowerLoadingScript  extends referencealias

Event OnPlayerLoadGame()
	Maintenance()
	Debug.Notification("Babo Follower Loading. Current Version =" + Version + "." + VersionDecimal)
EndEvent

Event OnSleepStop(bool abInterrupted)
	BFCS.MaintenanceSystem()
EndEvent

Function Maintenance()
	CheckingVersion()
	CheckingVersionDecimal()
	BFCS.FactionSet()
	BFCS.MaintenanceSystem()

;	if BaboFollowerConfig.isrunning() == false
;		Debug.notification("BaboFollower MCM isn't working. Rerouting the quest.")
;		BaboFollowerConfig.stop()
;		BaboFollowerConfig.start()
;	else
;		Debug.notification("BaboFollower MCM is working")
;	endif
EndFunction

int Function CheckingVersion()
	Version = 1
	Return Version
EndFunction

int Function CheckingVersionDecimal()
	VersionDecimal = 3
	Return Version
EndFunction

Function ResetQuest()
	BFRS.ResetQuests()
EndFunction


BaboFollowerConfigScript Property BFCS Auto
BaboFollowerResetScript Property BFRS Auto
Quest Property BaboFollowerReset Auto
Quest Property BaboFollowerConfig Auto


int Version = 1
int VersionDecimal = 3