Scriptname BaboBrawlingFollowerREF extends ReferenceAlias  

Event OnEnterBleedout()

Faintcount = BaboQuest.FaintCountNum 
FaintcountGoal = BaboQuest.FaintCountGoalNum
	If BleedOutSwitch
		If GetOwningQuest().GetStage() == FirstStage
			; this actor is lost
			BFMQuest.NPCFactionSwap(GetActorReference(), None, None, None, BaboBattlePlayer, None)
			BFMQuest.FaintMotionPlay(GetActorReference())
			Debug.notification("My follower has fallen!")
			If FaintSwitch
				BaboQuest.FaintCount()
				Debug.trace(BaboQuest.FaintCount() + "added")
			EndIF
		EndIf
	EndIf
EndEvent

Event OnDeath(Actor akKiller)
	MyQuest.setstage(EndStagePoint)
EndEvent

Bool Property FaintSwitch  = false Auto
Bool Property BleedOutSwitch  = false Auto
Int Property EndStagePoint Auto
Int FaintCount
Int Property FirstStage Auto
Int FaintCountGoal
BaboDiaQuest Property BaboQuest Auto
BaboFollowerMasterScript Property BFMQuest Auto
Quest Property MyQuest Auto
Faction Property BaboBattlePlayer Auto