Help

BEHAVIOR-ADDRESSES

For immortals Also: B-ADDRESSES

Rooms, creatures and objects by name in behaviours

Wherever a behaviour takes the number of a room, a creature or an object, it also takes the thing's address. That is its zone, a dot and its name (club.west-bridge, or an old name that is kept as an alias). Inside the zone that holds the behaviour, a dot and the name are enough (.west-bridge). The number form is the old one. It still works until the numbers are retired.

Invoker mobile, object, inroomInvoker (hour '7') mobile .guard inroom .gatehouse limit 1
Teleporter roomTeleporter (say 'home') (focus actor room moz.temple)
Changeling mobile, object, or the first wordChangeling (examine 'puca') .puca-wild
Exiter source, destination, keyExiter (say 'open') source .hall n destination .vault key .brass-key
OpenSesame, CloseSesame, Lock, Unlock: the room firstOpenSesame (say 'open') .hall door n
Tracker roomTracker (hour '15') room .market
Merchant invokes, Taker needsTaker needs .red-gem needs .blue-gem
charmatch mob, obj, objeq, objvis; objmatch obj(say 'pass' cm (objeq .signet-ring))
<all <room>>, <spawn> destination room, (use <object>)<all .bell-tower>The bell rings.

An address is read exactly. When it names nothing, or names a thing of another kind, the behaviour does nothing there and the problem is shown as an invalid behaviour, with the address.