Okay, here's a way to do it. Don't bother trying to adapt the code from ncDebugActions at all.
First, you need to understand that a room has no vocabWords assigned to it, because the player doesn't usually need to refer to a room by name. So there's no provision for vocabWords in the Room template. To each room, you need to add one or more vocabWords by hand, as a property of the room:
Code:
vocabWords = 'temple'
Having done that, you can now write your own teleportation action, like this:
Code:
DefineTAction(Goto)
objInScope(obj) { if (obj.ofKind(Room)) return true;
return nil;
}
;
VerbRule(Goto)
'goto' singleDobj
: GotoAction
verbPhrase = 'go/going to a room'
;
modify Room
dobjFor(Goto) {
action() {
me.moveIntoForTravel(self);
me.lookAround(true);
}
}
;
This isn't 100% perfect, but it will serve as a first approximation.