Gen-nothing
From Tapestries MUCK
(Re-edit) |
|||
Line 2: | Line 2: | ||
==Details== | ==Details== | ||
- | Actions are linked to this program to make dummy exits that are then programmed, with a @succ or a @fail, with MPI to make various actions for the room or person it is in, rather than an action's default use to transfer its user from one room to another. Failure to use gen-nothing and attempting to make an action that is not used as an exit, with @succ or @fail, will result in the muck calling out a '' | + | Actions are linked, with @link, to this program to make dummy exits that are then programmed, with a @succ or a @fail, with MPI to make various actions for the room or person it is in, rather than an action's default use to transfer its user from one room to another. Failure to use gen-nothing and attempting to make an action that is not used as an exit, with @succ or @fail, will result in the muck calling out a ''You can't go that way.'' message. |
+ | |||
+ | Consider the following example: | ||
+ | @action Shower=here | ||
+ | @link Shower=#45 | ||
+ | @succ Shower={otell:The sound of the shower is heard.} | ||
+ | |||
+ | The action of Shower is created, and linked to gen-nothing. Successful use yields the action to tell the room as a whole (with otell) the inputed message. Without linking, the error message ''You can't go that way.'' would be echoed to the user instead. | ||
The contents of gen-nothing are as follows: | The contents of gen-nothing are as follows: | ||
0 | 0 | ||
; | ; |
Revision as of 16:08, 17 April 2007
gen-nothing(#45) is, titularly, a MUF program that does absolutely nothing.
Details
Actions are linked, with @link, to this program to make dummy exits that are then programmed, with a @succ or a @fail, with MPI to make various actions for the room or person it is in, rather than an action's default use to transfer its user from one room to another. Failure to use gen-nothing and attempting to make an action that is not used as an exit, with @succ or @fail, will result in the muck calling out a You can't go that way. message.
Consider the following example:
@action Shower=here @link Shower=#45 @succ Shower={otell:The sound of the shower is heard.}
The action of Shower is created, and linked to gen-nothing. Successful use yields the action to tell the room as a whole (with otell) the inputed message. Without linking, the error message You can't go that way. would be echoed to the user instead.
The contents of gen-nothing are as follows:
0 ;