This program creates a new action.
@action name = object [= registration_name]
- A string that will become the name of the new action.
- The parent object where the new action will be stored.
- The name of the /_reg/ property
that will be used to record the dbref of the new action.
This program creates a new action and attaches it to the specified object.
The object can be a thing, room, or player object.
You may only attach actions you control to a object you control.
If a registration_name is specified,
the dbref of the new action
is stored in the _reg/registration_name property
of the character that creates the action.
Other commands issued by the character can refer to the action
by using $registration_name instead of the dbref of the action.
@desc $honk=A bright red button that honks the horn.
Note that the registration of the new action is distinct from the
action; if the action is recycled, the registration remains and would
have to be manually removed.
Creating an action costs 1 penny.
If the action is created successfully, the server returns a message in
Action created with number dbref
Registered as regname
Action created with number #123456E and attached.
Registered as $honk
Tue Oct 6 01:37:43 PDT 1998
Needs to be approved by ADMIN.
Copyright © 1998