Cell door¶
The cell door is a sliding door that decides, on each touch, whether the person touching it may pass. It reads their role from the facility's records and compares it with the mask in the door's description. A cell door can also work with a Cell Check-in button, so a keeper can let one prisoner out at set times.
The door only ever reads the records; it never changes them.
The mask¶
The door's description holds the mask: a row of 13 digits, one per role. 1 means the role is blocked, 0 means it may pass.
| Digit | Role | German name |
|---|---|---|
| 1st (leftmost) | System administrator | Systemadministrator |
| 2nd | Chief Warden | Anstaltsleiter |
| 3rd | Warden | Vollzugsleiter |
| 4th | Senior Staff | Oberwärter |
| 5th | Medical Staff | Sanitätsdienst |
| 6th | Staff | Wärter |
| 7th | Trainee Staff | Anwärter |
| 8th | Visitor | Besucher |
| 9th | Guest | Gast |
| 10th | Trustee | Kalfaktor |
| 11th | Captive | Gefangene |
| 12th | Inmate | Häftling |
| 13th (rightmost) | Max Security | Hochsicherheit |
A description has two or three masks separated by ?:
normal?free-time
normal?free-time?quota
- normal applies in lockdown.
- free-time applies in the facility's free time (when the Time Indicator is green), but only if it blocks fewer roles than the normal mask.
- quota (optional) adds access for someone who has met today's milking quota.
Always write both the normal and the free-time part
With only one mask (no ?), the sliding door falls back in free time to blocking only Inmate and Max Security, which is rarely what you want.
Someone on a strict lock or strict transport counts as Max Security at the door. An active temporary role counts instead of the permanent one.
The easiest way to make a mask is the Door Mask Builder: touch it, tick the roles for each part, and choose Get mask to have the finished description said in chat. Copy it into the door's description.
Examples¶
| Mask | Who may pass |
|---|---|
0000000111111?0000000111111 |
All staff, from Trainee up, at all hours |
0001111111111?0001111111111 |
Only Warden, Chief Warden and System administrator, at all hours |
The second one suits a cell where the prisoner should only ever leave through their keeper's Cell Check-in button: the door never opens for them on its own mask, so the button decides.
Working with the Cell Check-in button¶
Two notecards in the door switch this on. They must be in the door itself (in the door prim, if it is part of a linked object).
| Notecard | Meaning |
|---|---|
Cell=01 |
Which cell this door belongs to |
Keeper=<keeper's account name> |
Who owns the Cell Check-in button. An account name or an avatar key both work. |
Then:
- When the mask refuses the prisoner of this cell, the door asks the keeper's button instead, and waits up to 3 seconds for an answer.
- Only an answer from an object owned by the person named in
Keeper=counts. Answers from anyone else are ignored. - On YES the door opens. On NO it refuses and gives the button's reason as a second line (see the table on the Cell Check-in page).
- Whenever the door opens for that prisoner, for any reason, it tells the button, so the button knows they went out.
All three of these must match exactly, character for character:
- the door's
Cell=notecard - the prisoner's cell, as staff set it on the Cell Terminal
- the cell the keeper set on the button (number only:
01, notCell 01)
If they do not match, the prisoner gets "Door access not authorised" with no second line.
When a new keeper takes over the button, change the Keeper= notecard to the new keeper's name. Without either notecard the door works as an ordinary door. If the keeper's name cannot be found, or the key is not valid, it also works as an ordinary door and tells its owner so.
Other notecards¶
| Notecard | Effect |
|---|---|
SlideAxis=+X (or -X, +Y, -Y, +Z, -Z) |
Which way the door slides, along the prim's own axes. Default -X. |
SlideDistance=<metres> |
How far it slides. Default 1 m. |
Schedule=INVERT |
Swaps lockdown and free time for this door. |
Debug=TRUE |
Each touch explains, to the person touching, which mask was used and why, and whether the button was asked. Take it out afterwards. |
The door closes again by itself a few seconds after opening.