Scriptname aHH0DanceHallEntryTriggerScript extends ObjectReference  

Actor Property playerref Auto ; Least 'costly' way to refer to the player
Quest property aHH0 auto
Objectreference property aHH0PitSpotREF auto
 
Event OnTriggerEnter(ObjectReference akActionRef)
	If akActionRef == PlayerREF ; This condition ensures that only the player will trigger this code
		If aHH0.getstage() >= 210
			aHH0.setstage(220)
		ElseIf aHH0.getstage() <= 200
			Playerref.moveto(aHH0PitSpotREF)
		EndIf
	EndIf
EndEvent