Skip to main content

Character Variable for Mprogs

Keywords: MPROG_CHARACTER_VARIABLES
Syntax: variable list <player> variable set <player> <variable> <value> vsriable delete <player> <variable> variable list <character name> - Lists all variable set on character Setcharint - Sets a variable on a character or mob. syntax: mp setcharint <target> <variable name> <value> mp setcharint <target> <variable name> random notes: Sets variable on a char/mob. example: mp setcharint $n initial_greeting 1 Addcharint - Adds a value to a variable on a character or mob. syntax: mp addcharint <target> <variable name> <value> notes: Adds a value to a variable on a char/mob. example: mp addcharint $n initial_greeting 1 The following do not save through reboots: Setobjint - Sets a variable on an object. syntax: mp setobjint <objectr> <variable name> <value> notes: Sets variable on an object. example: mp setobjint $o drew_sword 1 Addobjint - Adds a value to a variable on an object. syntax: mp addobjint <objectr> <variable name> <value> notes: Adds a value to a variable on an object. example: mp addobjint $o drew_sword 1 Also see: ifhelp checkcharint ifhelp checkobjint