Skip to content

Failure

A “failure” usually occurs when you try to do something that is governed by an @lock and you don’t pass the lock. If you try to take a player or thing, or pass through an exit, and you don’t pass its Basic @lock, you will set off their @failure/@ofailure/@afailure attributes. A few failures have special attributes, while others use <locktype>_LOCK`FAILURE, <locktype>_LOCK`OFAILURE and <locktype>_LOCK`AFAILURE attributes.

See LOCKING

::: seealso

The following failures are defined in SharpMUSH:

Failure to…LockAttribute
”get” a player/thing, pass through an exit, or “look” in a roomBasic@failure
run an $-command on an objectCommand*COMMAND_LOCK`FAILURE
use zwho()ZoneZONE_LOCK`FAILURE
leave your current locationLeave@lfail
”take” from an objectTakeTAKE_LOCK`FAILURE
”drop” a thing, or drop something in a roomDropDROP_LOCK`FAILURE
enter an objectEnter@efail
”follow” an objectFollowFOLLOW_LOCK`FAILURE
”give” an object awayGiveGIVE_LOCK`FAILURE
”give” money to or “buy” from an objectPayPAY_LOCK`FAILURE
”@chzone” something to a zoneChzoneCHZONE_LOCK`FAILURE
”use” an objectUse@ufail
speak via say/pose/@*emit/teach in a roomSpeechSPEECH_LOCK`FAILURE
”page” or “@pemit” to an objectPagePAGE_LOCK`FAILURE**
“@mail” a playerMailMAIL_LOCK`FAILURE

* The Use lock can also prevent you from running an $-command, but it will still trigger COMMAND_LOCK`FAILURE.
** @haven or @away will also be shown on failure to “page”, if set