This code in NOT-HERE-OBJECT-F deals with talking to Jill while you're in the apartment but not in the same room as her:
(<AND <VERB? TELL CALL>
<EQUAL? ,P-XNAM ,W?JILL>
<IN-APARTMENT?>
<NOT <IN? ,JILL ,LOCAL-GLOBALS>>>
<COND (<EQUAL? ,SYEAR 2041 2051>
<TELL
"\"I can't hear you, Perry!\" Jill shouts back. \"Come in here!\"" CR>)
(T
<TELL
"There's no reply; perhaps Jill didn't hear you from the other room." CR>)>)
This does not take into account that Jill may be sleeping:
>LOOK
Bedroom
The room is almost filled by your bed, a bureau, and the baby's crib. A doorway
leads south to the living room, and the bathroom is to the east.
Jill is lying on the bed, sleeping peacefully.
There is a romance novel here.
It looks like the crib contains:
a toy duck
a baby
>JILL, HELLO
Jill is sleeping!
>EAST
Bathroom
This plain bathroom is just large enough to accommodate a sink, toilet, and
shower stall. The bedroom is to the west.
>JILL, HELLO
"I can't hear you, Perry!" Jill shouts back. "Come in here!"
So it should check if JILL-COUNTER is 0 ("lying on the bed, sleeping peacefully"). Arguably also 13 ("huddled in the corner, crying").
This code in
NOT-HERE-OBJECT-F
deals with talking to Jill while you're in the apartment but not in the same room as her:This does not take into account that Jill may be sleeping:
So it should check if
JILL-COUNTER
is 0 ("lying on the bed, sleeping peacefully"). Arguably also 13 ("huddled in the corner, crying").