@exitto

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

@EXITTO

COMMAND: @exitto <object> = <dbref function> ATTRIBUTE: Exitto

This attribute is used to create variable exits. If an @exitto is present on an exit, and the <dbref function> returns a number or a dbref, the exit behaves as if the returned dbref is the exit's destination.

Because this can be used to go anywhere, @exitto is a wizard-only attribute.

Even though @exitto take precendence over the static destination of an exit, don't forget to @link all exits anyway. Anyone can @link an unlinked exit and therefore 'own' and @destroy it.

Example:

> @open FooExit
Opened.
> @exitto FooExit=#123
Set.
> FooExit
Room123(#123)

Related Topics: EXITS.