Not sure if this would be useful or not for authors and/or beta testers. I have similar commands in my Tads 3 Beta.
Basically the “rooms” command lists out all the rooms in the game by number. Then you can use the “TP” (teleport) command to move yourself or other objects to different rooms. Example: “TP lantern 3” would teleport the lantern to room #3. “TP me 21” teleports the player to room #21. The advantage of rooms by number is if you have similarly named rooms (i.e. twisty little passages, all different). Of course this sort of stuff wouldn’t be released in the final game. It’s just a shortcut to get around in the game world faster, and/or move test objects about.
Understand "rooms" as rooms. Rooms is an action applying to nothing.
Carry out rooms:
say "[rooms list]";
To say rooms list:
let count be 1;
repeat with item running through rooms:
say "[count].[bold type] [item][roman type][line break]";
increment count.
[TP COMMAND]
All rooms have a number called room number.
When play begins: [setup all the room numbers in the rooms]
let count be 0;
repeat with item running through rooms:
now the room number of the item is count + 1;
[say "[line break]Room #[count + 1]. [item]";]
increment count.
Understand "tp [thing] [number]" as teleporting. Teleporting is an action applying to one thing and one number.
Carry out teleporting:
let count be 0;
let N be 0;
let N2 be 0;
repeat with item running through rooms:
if the room number of the item is the number understood:
say "[line break]Found: [room number of the item]. [item][line break]";
increment N2;
now the noun is in the item;
now the number understood is 0;
if the noun is the player:
say "You teleport to [the printed name of the item].[line break]";
otherwise:
say "[The printed name of the noun] teleports to [the printed name of the item].[line break]";
increment count;
if N2 is 0:
say "Invalid room number.".
Understand "tp [thing]" as teleporting nowhere. Teleporting nowhere is an action applying to one thing.
Carry out teleporting nowhere:
say "You need to supply a room number at the end of the command.[line break]".