trans

trans <creature|object> <room>

Move a creature or object to a room.

The entity is taken from wherever it is and placed in the destination room. A creature is moved only if it is allowed to enter that room; a worn, carried, or contained object is first removed from its holder.

Arguments

Returns

null. Like the other action commands, a successful trans in the handle phase suppresses the event's default action. Moving a creature that is not authorized to enter the destination does not take effect, and so does not suppress.

Examples

after command (say) {
  trans $actor [room 1]
}

The actor is moved to room 1. The script compiles and runs to completion.

handle command (order) {
  trans $actor [room 1]
  do "say Begone!"
}

The actor is whisked to room 1 and the owner pronounces the banishment.

See also