Scriptname aHH0ChaurusTriggerScript extends ObjectReference  

Actor Property playerref Auto ; Least 'costly' way to refer to the player
Quest property aHH0 auto
Ingredient property aHHChaurusPetFood auto
Objectreference property aHH0ChaurusDenTriggerREF auto
 
Event OnTriggerEnter(ObjectReference akActionRef)
	If akActionRef == PlayerREF ; This condition ensures that only the player will trigger this code
		If aHH0.getstage() == 130
			aHH0.setstage(140)
		ElseIf aHH0.getstage() == 140 && Playerref.getitemcount(aHHChaurusPetFood) >= 1
			aHH0.setstage(150)
			aHH0ChaurusDenTriggerREF.disable()
		EndIf
	EndIf
EndEvent