Losing my mind with this one. When the player examines the bookshelves it reveals ‘Jamie’ trapped underneath, runs a ‘to say’ which updates a few things, and then subsequent examinations are different. The problem is that it’s pulling the wrong property, ‘JamieRevealed’ before the ‘to say’ has run. I’m sure it’s some silly typo-- what have I done wrong?
Stripped down my code:
Library_Shelving is a supporter in Library. The Library_Shelving is undescribed. The Library_Shelving can be JamieRevealed, JamieNotRevealed, or JamieGone. The Library_Shelving is JamieNotRevealed. The Library_Shelving is not fixed in place. Understand "shelf" and "shelving" and "library shelves" and "shelves" and "bookcases" and "cases" and "book cases" and "book shelves" and "book shelf" as Library_Shelving. The printed name of Library_Shelving is "bookshelf".
The description of Library_Shelving is "[if the Library_Shelving is JamieNotRevealed]As you might expect, the library is filled with book cases; most are built into the walls and have generally survived the carnage, but all of the free-standing shelving have toppled or been crushed by chunks of broken ceiling.[JamieGroan][otherwise if the Library_Shelving is JamieRevealed]One of the school's students is trapped under the book shelves![otherwise if the Library_Shelving is JamieGone]The bookcases remain crushed and knocked around the room, hopefully without any more students pinned under them."
To say JamieGroan:
say "[paragraph break]'Unngghnnn...'[paragraph break]";
say "You hear a muffled groan.[paragraph break][if Alison is in the Library]'What the?' Alison says while turning to look at the broken book shelves.";
Move Jamie to the Library;
Now the Library_Shelving is JamieRevealed.`
Thanks for any help!