Skip to content

Interiors

Here’s a quick description of how to make things that can be entered:

@create Car
@desc Car=A shiny red car.
@idesc car=You are sitting inside a luxurious sportscar.
@set Car=enter_ok
@oxleave car=climbs out of the car. { The ‘ox’ messages are shown to
@oxenter car=climbs into the car. { those OUTSIDE the object.
@oenter car=joins you inside the car. { The ‘o’ messages are shown to
@oleave car=gets out of the car. { those INSIDE the object
@enter car=You get into the car. { The plain messages are shown to
@leave car=You get out of the car. { the one entering or leaving

Now, if you want people inside to be able to hear and communicate with the outside, you also need to do the following.

@set car=audible (lets people outside hear what’s being said in the car.
@listen car=* (lets people inside hear what’s being said outside.
@prefix car=From inside the car,
@inprefix car=From outside,
@filter car=* has arrived.,* has left.,joins you inside the car., gets out of the car.
@infilter car=* has arrived.,* has left.,* climbs out of the car., * climbs into the car.

(The filters will keep people on the outside from seeing the ‘o’ messages and people on the inside from seeing the ‘ox’ messages which is a good thing.)

::: seealso