Thank you for the reply. But the problem is in the the instead part of the code.
Inform 7 says …
Problem. You wrote ‘Instead of unlocking bedroom window’ , which seems to introduce a rule taking effect only if the action is ‘unlocking bedroom window’. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
It doesn’t seem to recognize “unlocking” …
Any other ideas.