26. NORTH is a rule, not a magic room name
A text adventure can let the player type NORTH instead of walking to an exit. The controller’s travel function interprets N, NORTH and GO NORTH as the same route.
| Current room | Command | Condition | Result |
|---|---|---|---|
| Yard | N / NORTH / GO NORTH | Door open | Change to cabin, spawn entry. |
| Yard | NORTH | Door closed | Reply; remain in yard. |
| Cabin | S / SOUTH / GO SOUTH | None | Change to lab, spawn entry. |
| Either room | An unavailable direction | No route authored | Reply; remain in current room. |
Figure 17. A room change produces a new description in the same transcript.
After entering the cabin, try TALK TO MORGAN. The controller rejects it because Morgan is in the yard. Knowing a noun does not mean the noun is present.
In the graphical version, arrow keys move within a room and NORTH changes rooms. They are separate controls. If you later add a doorway trigger for automatic travel, make it call the same guarded route instead of bypassing the lock.
