I’m encountering some strange behavior whenever I refer to something which is a part of the player with “the player’s x”, or something which is a part of an actor with “the actor’s x”. Properties I set for things incorporated by the player don’t seem to compile, and if I write a rule which involves the player’s X, it never applies. Same for the actor, even when I check if the actor incorporates the noun first.
This code demonstrates the problem:
"Oculus Thrift"
Observitory is a room.
Kim is a woman. She is here.
Cal is a man. He is here.
A mirror is here.
Hallway is south of Observitory.
A pair of eyes is a kind of thing.
One pair of eyes is part of every person.
The description of Cal's pair of eyes is "He has blue eyes."
The description of Kim's pair of eyes is "Her eyes are gray."
The description of the player's pair of eyes is "You can't see them at the moment, but you know they are yellow." [ property is never set. ]
Before examining the player's pair of eyes:
say "***Testing***: Examining the player's eyes now." [ rule never applies. ]
Carry out examining the player's pair of eyes when the mirror is visible:
say "You see your own yellow eyes looking back at you." [rule never applies. ]
After examining Kim's pair of eyes for the first time:
say "Kim raises an eyebrow at you. 'What are you looking at?' She asks."
Test me with "x Cal's eyes / x my eyes / s / x my eyes / n / x Kim's eyes".
Output:
Observitory
You can see Kim, Cal and a mirror here.
>test me
(Testing.)
>[1] x cal's eyes
He has blue eyes.
>[2] x my eyes
You see nothing special about your pair of eyes.
>[3] s
Hallway
>[4] x my eyes
You see nothing special about your pair of eyes.
>[5] n
Observitory
You can see Kim, Cal and a mirror here.
>[6] x kim's eyes
Her eyes are gray.
Kim raises an eyebrow at you. "What are you looking at?" She asks.
The showme command says that everyone else’s eyes have a description, but the player’s eyes do not. Am I just using the incorrect syntax, or misunderstanding the examples? I’ve read the sections of the recipe book which deal with body parts and clothing, and this is how they seem to do it.