Scriptname aHH0Bed2Script extends ObjectReference  

EVENT onActivate(ObjectReference akActionRef)
	If akActionRef == PlayerREF ; This condition ensures that only the player will trigger this code
		If aHH0.getstage() == 290
			aHH0.setstage(300)
		ElseIf aHH0.getstage() == 390
			aHH0.setstage(400)
		EndIf
	EndIf
Endevent

Quest property aHH0 auto
Actor property Playerref auto