Here’s what I used in Daddy’s Birthday:
Book - able to examine room
[Code by otistdog: https://intfiction.org/t/overly-elaborate-looking/50715/2]
After deciding the scope of the player while examining (this is the place the room in scope while looking rule): [limits applicability to when parsing examining action]
place the location in scope, but not its contents. [everything else should already be in scope if applicable]
Does the player mean doing anything to the location: [still prioritizes examination of things vs rooms]
it is unlikely.
Instead of examining a room:
try looking instead.
Here’s a link to the original code: Overly elaborate looking - #2 by otistdog