Global Settings

While each MUD character can have it's own aliases, variables, triggers, macros, etc, you can also have global settings. Global settings allow you to define aliases and variables that can be accessed by any MUD character. Also, global Buttons allow you to redefine the main zMUD toolbar, and global Menus allow you to redefine the main zMUD menu.

Global Aliases

When an alias name is entered into the command line, zMUD first looks for a local alias with that name. If one is found, then the local alias is executed. However, if no matching alias is found, then zMUD searches the global alias list. If a global alias is found, it is executed. Global aliases are always executed in the context of the current MUD character. So, if you refer to a variable within your alias, zMUD will first look for a local variable within the current MUD character. You can define a global Alias using the GALIAS command. Or, select Global Settings in the Settings menu.

Global Variables

Whenever you reference a variable using the @varname syntax, zMUD will first look for a local variable with the given name. If one is found, then its value is returned. If no variable name is found within the current MUD character, then zMUD searches the global variable list. If a global variable is found, then its value is returned. You can define a global variable using the GVARIABLE command, or select Global Settings in the Settings menu.

Global Buttons

The main toolbar for zMUD is comprised of buttons defined in the global settings. Select Global Settings from the Settings menu and then select the Buttons command from the Show menu. Or, simply right-click on the main zMUD toolbar and select the Customize option.

When a global button on the toolbar is clicked, the commands for the button are executed by the current MUD character. Typically, the global buttons use the #MENU command to access menu bar commands that don't change from character to character.

Global Menus

While most of the main menu for zMUD is fixed, you can add your own menu items to it using the global menu settings. Each menu setting will be added to the main menu to the right of the Help topic. To define a submenu, use a menu class. See the Menus topic for details on defining menu classes. Menu items and menu classes work the same way with the global settings. However, instead of changing the right-click popup menu for a specific MUD character, you are changing the main menu bar of zMUD.



Contents Introduction to Multiplaying Debugging Scripts