Damage By Using Object

If the player climbs up a set of stairs (which is an object) and a stair falls out from under them, they will fall and take (amount) of damage.

In QDK what is the best way to set this up?

Thank you!

Edit the roomwith the stairs in it, add command 'climb stairs', print 'you fall down and hurt yourself', decrease 'health' by 5.

Thanks for the help, I just need a gentle push in the right direction and I'll be on my way!

No problem. If you need any more help, don't hesitate to ask me.