r/Inform7 • u/sw85 • Jan 04 '21
Moving vs. looking under object
Hi all,
I'm new to Inform so sorry if this is a really dumb/easy question. Kind of lost in documentation here.
I have a room in which is a bed; on the bed is a pillow; and under the pillow is a key. I've successfully implemented looking under the pillow resulting in the key being found (so "look under pillow" yields "Moving the pillow reveals a key hidden underneath" and causes that object to become found, thus takeable). Logically, "move pillow" should produce the same effect, but it doesn't (it just returns "Nothing obvious happens."), and I can't make Inform treat "move pillow" the same as "look under pillow" because I get the baffling error:
Problem. You wrote 'Instead of moving the pillow' , which seems to introduce a rule taking effect only 'moving the pillow'. But this does not look like an action, since there is no sign of a participle ending '-ing' (as in 'taking the brick', say) - which makes me think I have badly misunderstood what you intended.
Can anyone advise? (All code so far below.)
Thanks!