Splash  
About WOCNews, Help, etc.Build AreasContributor CreditsUseful Links

Login

    BlobbieScript

    Features
    Expressions
    Operators
    Variables
    Resolutions
    Functions
    Triggers
    Examples

    Print Manual
check_can_exit
  
Response Typescript
EntitiesRooms, Mobiles, Objects
Parameters-

    This trigger will fire when a mobile attempts to leave a room. There are
two modes that are important to distinguish between. The first mode is
"status only" mode, this means the script should only return true or
false, and not perform any other actions. The other mode is the actual
attempt to exit the room. The "status only" mode is usually invoked
internally by the mud engine to see if the move is viable before
attempting it. In the other mode if your script prevents exit by returning
false, then it should also echo some kind of message to the creature
attempting to leave the room. Your script should hande both modes. The
following variables are of interest for this trigger:

@n - The mobile that wants to enter the room.

@o - The same as @i if the trigger owner is an object.

@direction - One of north, south, east, west, up, or down.

@fromRoom - The room from which the mobile wants to leave.

@toRoom - The room to which the mobile wants to go.

@statusOnly - 1 for "status only" mode, 0 for normal mode.

Your script must return a 1 or a 0 (or equivalent). Any value that does
not evaluate to true, will prevent the mobile from leaving the source
room.


The Worlds of Carnage MUD is a non-profit, fantasy oriented, text-based game that is played over telnet. We are devoted to providing a social medium in which people can have fun while immersing themselves in a game that reads like a book. You can connect by clicking here or if that fails then here. This site is maintained and hosted by Robert Cummings, A.K.A Blobule and is powered by InterJinn, a PHP based multi-tier application framework connected to a MySQL backend and served via an Apache web server. The Worlds of Carnage are often recognized via the following aliases: Carnage; WoC; WoC MUD; Carnage MUD; CarnageMUD; WoCMUD. All submissions become the property of Robert Cummings where the submitter holds copyright. If you do not want to give ownership, then do not submit.