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

Login

    BlobbieScript

    Features
    Expressions
    Operators
    Variables
    Resolutions
    Functions
    Triggers
    Examples

    Print Manual
%getSavedVar()
  
Aliases%getSavedVar( )
Parametersmixed @entity, string @varName [, @entityType ]

    Retrieves the value of the variable that is within the persistent variable
context of the entity. The entity may be a pointer to a room, mob, or
object. It may also be the vnum of a room or a keyword of a mob or object.
If variable is not found then null is returned. Persistent variables are
stored in the MySQL database. The first time a retrieval is done the
variable is loaded if it exists and cached for quicker subsequent
retrieval. It is important to know that there can only be one shared saved
variable OF THE SAME NAME for all mobs, or all objects, or all rooms with
the same vnum.

The @entity parameter may also be set to the vnum of a mobile or object.
If this is done then the optional @entityType parameter must be set to
"mobile" or "object" respectively.

Example:

@owner = %getSavedVar( 10005, towerOwner )


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.