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
See Also
Mobhelp
Ifhelp
If Checks
Variables
Mob Asound
Mob Echo
Mob Oload
Mob Kill
Mob Flee
Mob Remove
Mob Junk
Mob Purge
Mob At
Mob Goto
Mob Transfer
Mob Force
Mob Cast
Mob Damage
Mob Delay
Mob Cancel
Mob Remember
Mob Forget
Mob Call
Mob Tgive
Mobprogram List
Mobile Programs
Triggers
Operators
Mpsyntax
Mp Building
Mpexamples
Mprog Character Variables
Mpcommands
Checkmoblog
Medit
Vnum
Trigger Hpcnt
Wimpy
Spells
Obj Type Token
Mpexamples1