@exitto

From TinyMUX
Revision as of 19:11, 20 January 2006 by Nhoj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

@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.