I’m trying to make a sheriff’s office with an attached jail cell, where each room can be viewed from the other. I was able to find this thread (Viewing objects from another room) which directed me towards 18.29. Deciding the scope of something.
An example in the documentation says:
The Cloakroom is a room. "This is just a cloakroom, but through a vague, misty mirror-window you can make out the Beyond." After looking in the Cloakroom, say "In the mirror you can see [list of things in the Beyond]."
After deciding the scope of the player while in the Cloakroom: place the Beyond in scope.
The Beyond is a room. Johnny Depp is a man in the Beyond.
Following the example in the documentation, I came up with this:
[SHERIFF'S OFFICE]
The Sheriff's Office is northeast from the Village Square.
The description of the Sheriff's Office is "An open doorway leads southwest to the village square."
After deciding the scope of the player while in the Sheriff's Office: place the Jail Cell in scope.
[JAIL]
The jail door is a locked door.
The jail door is north from the Sheriff's Office.
The description of the jail door is "A door with iron bars. The jail door is currently [if the jail door is open]open[otherwise]closed[end if]."
The jail key unlocks the jail door.
The description of the jail key is "A heavy iron key."
The Jail Cell is north from the jail door.
After deciding the scope of the player while in the Jail Cell: place the Sheriff's Office in scope.
which yielded:
Problem. You wrote 'After deciding the scope of the player while in the Sheriff's Office' : but I don't understand the 'when/while' clause, which should name activities or conditions.
See the manual: 18.4 > 18.4. While clauses
--------------------------------------------------------------------------------
Problem. You wrote 'After deciding the scope of the player while in the Jail Cell' : again, I don't understand the 'when/while' clause.
What am I missing?
EDIT:
I am also not sure exactly what kind of interactions being “in scope” covers, I was just trying to get SOMETHING working so I could start fiddling with it. My goal is that characters should be able to talk back and forth between rooms, but objects should (probably) not be taken between rooms (unless they’re in reach somehow). Not 100% sure where I’m going with this but would like to get started tinkering. The idea is that the jail cell has bars, so you can see and talk through them and maybe even grab something if it’s close, but generally not have access to most things in the other room.