<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gorgo</id>
		<title>SphereWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gorgo"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special:Contributions/Gorgo"/>
		<updated>2026-04-10T05:43:24Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8074</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8074"/>
				<updated>2023-01-15T21:02:09Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] | [[BONUSSKILLx]] | [[BONUSSKILLxAMT]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
For BonusSkill, x is the number of the Skill and BonusSkillxAMT is the amount&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8073</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8073"/>
				<updated>2023-01-15T20:38:37Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8072</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8072"/>
				<updated>2023-01-15T20:03:02Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
Effect: these bonus are implemented inside the ei_equipitem TYPEDEF and does not rely on other TYPEDEFs or EVENTs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8035</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8035"/>
				<updated>2022-12-26T20:20:15Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8034</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8034"/>
				<updated>2022-12-12T21:37:57Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8033</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8033"/>
				<updated>2022-12-11T21:32:38Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''period,tiles'' || RW || ?? || Gets or sets the speed and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@CombatEnd&amp;diff=8030</id>
		<title>@CombatEnd</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@CombatEnd&amp;diff=8030"/>
				<updated>2022-10-26T21:12:50Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when someone is being deleted from my attacker list and I don't have any more viable targets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || Myself.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''No arguments are set for this trigger.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
''No return values allowed for this trigger.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8029</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8029"/>
				<updated>2022-10-26T21:11:28Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, color, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECTLOCATION]] ''x,y,z,type,itemid,speed,loop,explode,color,render'' || W || X branch only. Similar to the EFFECT command but instead of an object it takes a terrain location as a target.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERMS]] || W || Set an object timer to elapse after the given number of milliseconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list and I don't have any more viable targets.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Regions&amp;diff=8028</id>
		<title>Regions</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Regions&amp;diff=8028"/>
				<updated>2022-10-24T11:06:42Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Regions}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Areas in the world, such as dungeons and cities are defined by regions. Accessing regions in scripts can be accomplished using the REGION reference from a [[Characters|character]], [[Items|item]] or [[Map Points|map point]] object, or the AREA.region_id reference from the [[Server|server]] object. The following tables detail the various properties of the region object in SphereServer:&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the CHAR.n reference allows you to access the characters that are attached to the account). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[REGION]] || R || For regions linked to a multi, gets the region that contains the multi region. Only valid for reading values.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all region properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. Properties from the [[AREADEF|region definition]] can also be accessed from the region object. If an attempt is made to execute (not read) a command that does not exist on the region or its definition, then the command will be called on all sectors that touch the region area.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLCLIENTS]] ''command'' || W || Executes ''command'' on all clients inside the region boundaries.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the region that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTS]] || R || Gets the total number of clients that are inside the sectors that touch the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLDCHANCE]] || W || Set the ColdChance to all sectors in this Region.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || R || Gets the region's defname.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''+/-regiontype_defname'' || RW || Gets a list of attached region events, or adds or removes a region event to or from the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUARDED]] || RW || Set the region to be Guarded or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.regiontype_defname'' || R || Returns 1 if the region has a specified region event attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAGIC]] || RW || Enables or Disables Region_Antimagic_All flag.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || R || Gets the map that the region exists on.&lt;br /&gt;
|-&lt;br /&gt;
| [[MARK]] || RW || Same as RecallIn.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOBUILD]] || RW || Enables or disables Building in this area (only affects futures houses).&lt;br /&gt;
|-&lt;br /&gt;
| [[NOPVP]] || RW || Enables or disables PvP in this region.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or Sets the P coordinates for this area.&lt;br /&gt;
|-&lt;br /&gt;
| [[RECALLIN]] || RW || Enables or disables Mark &amp;amp; RecallIn flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[RECT]] || R || Gets the number of rectangles that this region is made from.&lt;br /&gt;
|-&lt;br /&gt;
| [[RECT]]''.n'' || R || Gets the nth rectangle that this region is made from.&lt;br /&gt;
|-&lt;br /&gt;
| [[RAINCHANCE]] || W || Sets the RainChance for all sectors inside this region.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] ''+/-regiontype_defname'' || RW || Gets a list of attached region events, or adds or removes a region event to or from the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAFE]] || RW || Get or Set Safe flag for this region.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the region's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || R || If the region is linked to a multi, returns the multi's [[BASEID]] property.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the region's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERGROUND]] || RW || Gets or sets Underground flag for this region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all region triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@CliPeriodic]] || Fires multiple times approximately every 30 seconds, for each client in the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Enter]] || Fires when a character enters the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Exit]] || Fires when a character exits the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegPeriodic]] || Fires once approximately every 30 seconds, as long as there is at least one client in the region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ResourceGather]] || Fires before finishing the gathering skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ResourceTest]] || Fires once for every resource listed in a REGIONTYPE, to check if the player (SRC) can get it. It is called only if the player meets the SKILLMAKE requirements for the item set in REAP.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires whenever a character takes a step within the region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Override_TAGs&amp;diff=8017</id>
		<title>Override TAGs</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Override_TAGs&amp;diff=8017"/>
				<updated>2022-08-27T23:47:59Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Character-based Override TAGs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Override_TAGs}}&lt;br /&gt;
&lt;br /&gt;
==Override Common Data==&lt;br /&gt;
Ever wondered why you can't change for example 'TDATA' values on a per-item basis? Or some default values from Sphere.ini? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The reason is simple: The majority of items, characters and situation will not need individual values there and are working fine with the default ones (either hardcoded or set in the INI or the *DEF sections), so it simply would be a waste of memory to store them again on each game object. Therefore for example a single crossbow in the world reads what items it needs as ammunition not from it's &amp;quot;WORLDITEM&amp;quot; data object, but from it's ITEMDEF (the TDATA property). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alas, as time goes by for some stuff it showed reasonable to allow overriding the default values for a single item, character or even region. Nevertheless it still would be a waste of resources to give all crossbows an &amp;quot;ammunition&amp;quot; property what on almost all of them will read: &amp;quot;default&amp;quot;. So the Sphere developers decided to store the respective individual changes in TAGs: If the TAG exists it will be used, if not, the default is used. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common to most overrides is the syntax of the TAG's name: '''TAG.OVERRIDE.*''' - where &amp;quot;'''*'''&amp;quot; denotes the name of the respective tag. But there are also some others what were named before this naming scheme was established. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Item-based Override TAGs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| '''TAG.ALWAYSSEND'''&lt;br /&gt;
| When optional flag OF_OsiMultiSight is on, all items inside a multi are not sent until entering the multi. If you want an item to be always sent, set TAG.ALWYASSEND to 1. This tag also can also go under the ITEMDEF section of an item.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NOSAVE'''&lt;br /&gt;
| If set to 1 the object will NOT be saved.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.DAMAGETYPE'''&lt;br /&gt;
| Sets the damage type for a weapon (ARGN2 in @GetHit trigger).&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.DROPSOUND'''&lt;br /&gt;
| Overrides the sound that will be played when the item is dropped somewhere.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE_LIGHTID'''&lt;br /&gt;
| Overrides TDATA3 for lights (T_LIGHT_LIT, T_LIGHT_OUT). Take notice that there is an underscore in this TAG's name.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.MAXITEMS'''&lt;br /&gt;
| Overrides the maximum number of items that can be placed into a container (default: 255)&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.MAXWEIGHT'''&lt;br /&gt;
| Overrides the maximum total weight that can be placed into a container.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.PRACTICEMAX.SKILL_$skillid'''&lt;br /&gt;
| Overrides SKILLPRACTICEMAX setting from Sphere.ini for a particular skill. $skillid is the numeric ID of the skill.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SKILL'''&lt;br /&gt;
| Overrides the SKILL property of the ITEMDEF for a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SPEED'''&lt;br /&gt;
| Overrides the SPEED for a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SOUND_HIT'''&lt;br /&gt;
| Overrides the hit sound for a weapon. Take notice that there is an underscore in this TAG's name. (Removed in newer versions and is just AMMOSOUNDHIT=&amp;lt;Val&amp;gt; without the use of Tag.Override.&amp;lt;String&amp;gt;=&amp;lt;Val&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SOUND_MISS'''&lt;br /&gt;
| Overrides the miss sound for a weapon. Take notice that there is an underscore in this TAG's name. (Removed in newer versions and is just AMMOSOUNDMISS=&amp;lt;Val&amp;gt; without the use of Tag.Override.&amp;lt;String&amp;gt;=&amp;lt;Val&amp;gt;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Character-based Override TAGs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| '''TAG.DEATHFLAGS'''&lt;br /&gt;
| Changes some death related behaviour. The list of supported flags are in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.MAXPLAYERPETS'''&lt;br /&gt;
| Overrides the maximum number of pets that a player can stable. Default is 10.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NAME.ALT'''&lt;br /&gt;
| Sets an alternative name, useful for incognito effects.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NAME.HUE'''&lt;br /&gt;
| Changes the colour of the name displayed above a character.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NAME.PREFIX'''&lt;br /&gt;
| Sets some text to display before the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NAME.SUFFIX'''&lt;br /&gt;
| Sets some text to display after the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.NOSKILLMSG'''&lt;br /&gt;
| When set to 1, character will receive the &amp;quot;gainradius_not_met&amp;quot; defmessage (sphere_msgs.scp) when skillgain is aborted due to the GAINRADIUS on a skill.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| '''TAG.OVERRIDE.MOVERATE'''&lt;br /&gt;
| Overrides the MOVERATE property of the CHARDEF.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.MOVEDELAY'''&lt;br /&gt;
|  Overrides completely the moverate checks and setting the next movement to the given timer, eg 'tag.override.moverate=250' makes the npc move each 250 milliseconds when walking. WARNING:* Setting this tag completelly overrides default moverate checks, TAG.OVERRIDE.MOVERATE gets ignored too.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.RUNNINGPENALTY'''&lt;br /&gt;
| Overrides RUNNINGPENALTY from Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SKILLCAP_$skillid'''&lt;br /&gt;
| Overrides skill settings from the character's SKILLCLASS. $skillid is the numeric ID of the skill.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SKILLSUM'''&lt;br /&gt;
| Overrides SKILLSUM setting from the character's SKILLCLASS.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SPIDERWEB&lt;br /&gt;
| When set to 1, NPC will be able to drop spider webs (for a giant spider, if this set to 1 then it will stop it from dropping webs)&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.STAMINALOSSATWEIGHT'''&lt;br /&gt;
| Overrides STAMINALOSSATWEIGHT from Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.STATCAP_$statid'''&lt;br /&gt;
| Overrides STR/DEX/INT settings from the character's SKILLCLASS. (0=STR, 1=INT, 2=DEX)&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.STATSUM&lt;br /&gt;
| Overrides STATSUM setting from the character's SKILLCLASS.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.TRAINSKILLMAX'''&lt;br /&gt;
| Overrides NPCTRAINMAX setting from Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.TRAINSKILLMAXPERCENT'''&lt;br /&gt;
| Overrides NPCTRAINPERCENT setting from Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.PARTY_AUTODECLINEINVITE'''&lt;br /&gt;
| When set to 1, character will automatically decline party invitations.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.PARTY_CANLOOTME'''&lt;br /&gt;
| When set to 1, party members will be allow to loot this character without it being counted as a criminal action (linked to the option in the party menu).&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.VENDORMARKUP'''&lt;br /&gt;
| This value is added to the markup percentage that vendors apply to their buy and sell prices. Since the default markup is 15%, this means that a vendor will sell something worth 100gp at 115gp and buy it back for 85gp. If you set this tag to -15 the markup will be cancelled out to 0%, or you can raise/lower it if you want your vendor to sell things at a higher/lower price.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Region-based Override TAGs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| '''TAG.ANNOUNCEMENT'''&lt;br /&gt;
| Sets a message to be announced to all who enters the region if REGION_FLAG_ANNOUNCE is set.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.GUARDOWNER'''&lt;br /&gt;
| Specifies the owner of the region's guards (ex: &amp;quot;The City&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.GUARDS'''&lt;br /&gt;
| Specifies the character that will be summoned when guards are called in the region, overriding the &amp;lt;tt&amp;gt;guards {c_h_guard 1 c_h_guard_f 1}&amp;lt;/tt&amp;gt; defname in sphere_defs.scp&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.RED'''&lt;br /&gt;
| Sets the region as a safe place for evil. Murders are considered normal here.&lt;br /&gt;
If region is guarded, guards will be red and protect evil players.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.VENDORMARKUP'''&lt;br /&gt;
| This value is added to the markup percentage that vendors apply to their buy and sell prices. Since the default markup is 15%, this means that a vendor will sell something worth 100gp at 115gp and buy it back for 85gp. If you set this tag to -15 the markup will be cancelled out to 0%, or you can raise/lower it if you want your vendor to sell things at a higher/lower price. If the vendor has this tag set directly on them then this region TAG will not be used.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Removed Override TAGs==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
| '''OLD TAG'''&lt;br /&gt;
| '''NEW Variable'''&lt;br /&gt;
| '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.BREATH.DAM&lt;br /&gt;
| Breath.Dam&lt;br /&gt;
| Overrides Damage done from fire breathing.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.RANGE&lt;br /&gt;
| Range&lt;br /&gt;
| Range is now writable for both characters and items.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SHIPSPEED.PERIOD&lt;br /&gt;
| ShipSpeed.Period&lt;br /&gt;
| Overrides SHIPSPEED.PERIOD for a ship (the length of time it takes for the ship to move one step, in tenths of a second).&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.SHIPSPEED.TILES&lt;br /&gt;
| ShipSpeed.Tiles&lt;br /&gt;
| Overrides the amount of tiles moved in each tick.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.DOORSOUND_CLOSE&lt;br /&gt;
| DOORCLOSESOUND&lt;br /&gt;
| Overrides the sound that will be played for a door when it is being closed.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.DOORSOUND_OPEN&lt;br /&gt;
| DOOROPENSOUND&lt;br /&gt;
| Overrides the sound that will be played for a door when it is being opened.&lt;br /&gt;
|-&lt;br /&gt;
| '''TAG.OVERRIDE.PORTCULISSOUND&lt;br /&gt;
| PORTCULISSOUND&lt;br /&gt;
| Overrides the sound that will be played for a portcullis when it is used.&lt;br /&gt;
|}&lt;br /&gt;
[[Category: Articles]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8016</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8016"/>
				<updated>2022-08-27T23:42:53Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, color, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECTLOCATION]] ''x,y,z,type,itemid,speed,loop,explode,color,render'' || W || X branch only. Similar to the EFFECT command but instead of an object it takes a terrain location as a target.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERMS]] || W || Set an object timer to elapse after the given number of milliseconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Server&amp;diff=8015</id>
		<title>Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Server&amp;diff=8015"/>
				<updated>2022-08-27T23:40:02Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Server}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
The server object is a global object that can be accessed from any script, by using the SERV reference. The following tables detail the various properties of the server in SphereServer:&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the CHAR.n reference allows you to access the characters that are attached to the account). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]]''.n'' || R || Gets the nth [[Accounts|account]] on the server. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]]''.name'' || R || Gets the [[Accounts|account]] with the specified name.&lt;br /&gt;
|-&lt;br /&gt;
| [[AREA]]''.defname'' || R || Gets the [[Regions|region]] with the specified defname.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARDEF (Reference)|CHARDEF]]''.defname'' || R || Gets the [[CHARDEF|character definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEF]]''.defname'' || R || Gets the value for ''defname''. Def0.defname can also be used similar to tag0 and ctag0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENT]]''.n'' || R || Gets the nth [[Characters#Clients|client]] on the server. (zero-based)&amp;lt;br /&amp;gt;'''Note:''' The nth client may not be an ingame player character, check &amp;amp;lt;CLIENT.n&amp;amp;gt; first as it returns 1 for ingame clients and 0 for non-player clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n'' || R || Gets the nth [[GM Pages|GM page]] on the server. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDSTONES]]''.n'' || R || Gets the nth [[Special Items#Guild.2FTown_Stones|guild stone]] on the server. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[ITEMDEF (Reference)|ITEMDEF]]''.defname'' || R || Gets the [[ITEMDEF|item definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTNEWCHAR]] || R || Gets the last [[Characters|character]] created on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTNEWITEM]] || R || Gets the last [[Items|item]] created on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]]''(x, y, map)''&amp;lt;br /&amp;gt;[[MAP]]''(x, y, z, map)'' || R || Gets the [[Map Points|map point]] for a specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONRESOURCE (Reference)|REGIONRESOURCE]]''.defname'' || R || Gets the [[REGIONRESOURCE|region resource definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONTYPE (Reference)|REGIONTYPE]]''.defname'' || R || Gets the [[REGIONTYPE|region type definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM (Reference)|ROOM]]''.defname'' || R || Gets the [[Rooms|room]] with the specified defname.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Reference)|SKILL]]''.defname'' || R || Gets the [[SKILL|skill definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]]''.defname'' || R || Gets the [[SKILLCLASS|skillclass]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWN (Reference)|SPAWN]]''.defname'' || R || Gets the [[SPAWN|spawn group]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELL (Reference)|SPELL]]''.defname'' || R || Gets the [[SPELL|spell definition]] for ''defname''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELL (Reference)|SPELL]]''.n'' || R || Gets the nth [[SPELL|spell definition]], ordered by skill requirements (1-based, ascending).&lt;br /&gt;
|-&lt;br /&gt;
| (X only)[[TILEDATA (Reference)|TILEDATA]].TERRAIN(''id'').''attribute'' || R || Gets the tiledata ''attribute'' of ''id'' terrain.&lt;br /&gt;
''attribute'' can be one of: FLAGS,UNK,INDEX,NAME.&lt;br /&gt;
|-&lt;br /&gt;
| (X only)[[TILEDATA (Reference)|TILEDATA]].ITEM(''id'').''attribute'' || R || Gets the tiledata ''attribute'' of ''id'' item.&lt;br /&gt;
''attribute'' can be one of: FLAGS,WEIGHT,LAYER,UNK11,ANIM,HUE,LIGHT,HEIGHT,NAME.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNSTONES]]''.n'' || R || Gets the nth [[Special Items#Guild.2FTown_Stones|town stone]] on the server. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. Settings from Sphere.ini can also be accessed from the server object, but they are not listed in this table.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] ADD ''name password'' || W || Creates an account with the specified name and password.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] ADDMD5 ''name hash'' || W || Creates an account with the specified name and MD5 password hash.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] BLOCKED ''days command'' || W || Executes ''command'' on all accounts that have been unused for ''days'' days and are currently blocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] JAILED ''days command'' || W || Executes ''command'' on all accounts that have been unused for ''days'' days and are currently jailed.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] UNUSED ''days command'' || W || Executes ''command'' on all accounts that have been unused for ''days'' days.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] UPDATE || W || Saves the accounts to file.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNT]] ''name command'' || W || Executes ''command'' on the account with the specified name.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACCOUNTS]] || RW || Gets or sets the number of accounts on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLCLIENTS]] ''command'' || W || Executes ''command'' on all online player characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[B]] ''message'' || W || Broadcasts ''message'' to all clients on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[BLOCKIP]] ''address, time'' || W || Blocks an IP address for ''time'', in tenths of a second (-1 = permanent).&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARS]] || RW || Gets or sets the number of characters on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARLISTS]] ''mask'' || W || Removes all LISTs whose name contains ''mask''.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARVARS]] ''prefix'' || W || Removes all VARs that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTS]] || R || Gets the total number of connected clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSOLE]] ''command'' || W || Executes ''command'' as if it had been typed directly into the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXPORT]] ''file, flags, distance'' || W || Exports all objects within ''distance'' tiles of SRC to a file. (Flags: 1 = Items, 2 = Characters, 3 = Both)&lt;br /&gt;
|-&lt;br /&gt;
| [[GARBAGE]] || W || Forces an immediate garbage collection (checks for invalid objects and fixes them if possible, or else removes them).&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGES]] || R || Returns the total number of GM pages.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDS]] || R || Returns the total number of guild ''and'' town stones.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDSTONES]].COUNT || R || Returns the total number of guild stones on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether player speech is logged to server console and log file.&lt;br /&gt;
|-&lt;br /&gt;
| [[IMPORT]] ''file, flags, distance'' || W || Imports previously exported items that were within ''distance'' tiles. (Flags: 1 = Items, 2 = Characters, 3 = Both)&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ITEMS]] || RW || Gets or sets the number of items on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOAD]] ''file'' || W || Loads a script file.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOG]] ''message'' || W || Logs ''message'' to server console and logs.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOOKUPSKILL]] ''skill_name'' || R || Looks up a skill name or key, and returns its skill number.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]]''.map_num.''ALLSECTORS ''command'' || W || Executes ''command'' on all sectors of a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]]''.map_num.''SECTOR.''sector_num command'' || RW || Executes ''command'' on sector ''sector_num'' of a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num'' || R || Returns 1 if ''map_num'' is a valid map number.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.BOUND.X || R || Returns the maximum X coordinate for a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.BOUND.Y || R || Returns the maximum Y coordinate for a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.CENTER.X || R || Returns the central X coordinate of a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.CENTER.Y || R || Returns the central Y coordinate of a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.SECTOR.COLS || R || Returns the number of sector columns on a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.SECTOR.QTY || R || Returns the number of sectors on a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.SECTOR.ROWs || R || Returns the number of sector rows on a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPLIST]]''.map_num''.SECTOR.SIZE || R || Returns the size of the sectors on a map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEM]] || R || Returns the total amount of memory being used, in kilobytes.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRINTLISTS]] ''LOG'' || W || Displays a list of all LISTs to SRC, or the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGEN]]0 || RW || Gets or sets the length of time it takes for characters to regenerate 1 health point, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGEN]]1 || RW || Gets or sets the length of time it takes for characters to regenerate 1 mana point, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGEN]]2 || RW || Gets or sets the length of time it takes for characters to regenerate 1 stamina point, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[REGEN]]3 || RW || Gets or sets the length of time it takes for characters to lose 1 food point, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPAWN]] || W || Respawns all dead NPCs (not corpses) in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] || W || Restocks all NPCs in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTORE]] ''file, account_name, character_name'' || W || Restores a player character from a backup save.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESYNC]] || W || Checks all script files for any changes made since they were last loaded.&lt;br /&gt;
|-&lt;br /&gt;
| [[RTICKS]] || R || Returns the real-world time, as a timestamp.&lt;br /&gt;
|-&lt;br /&gt;
| [[RTICKS]].FORMAT ''timestamp, format'' || R || Returns the real-world timestamp as a formatted datetime string.&lt;br /&gt;
|-&lt;br /&gt;
| [[RTICKS]].FROMTIME ''year, month, day, hour, minutes, seconds'' || R || Returns the specified real-world time, as a timestamp.&lt;br /&gt;
|-&lt;br /&gt;
| [[RTIME]] || R || Returns the real-world time, as a formatted string.&lt;br /&gt;
|-&lt;br /&gt;
| [[RTIME]].FORMAT ''format'' || R || Returns the real-world time, as a formatted string.&lt;br /&gt;
More information : [[Serv.rtime.format]]&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''force_immediate'' || W || Begins a world save. If background saving is enabled, ''force_immediate'' can be used to force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVECOUNT]] || R || Returns the number of world saves that have taken place.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVESTATICS]] || W || Performs a statics save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINKMEM]] || W || Temporarily reduces memory usage.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHUTDOWN]] ''time'' || W || Schedules a server shutdown in ''time'' minutes.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSCMD]] ''cmd'' || W || Executes ''cmd'' and waits for it to finish executing. Returns &amp;lt;0 if an error occurred. Requires OF_FileCommands.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSSPAWN]] ''cmd'' || W || Executes ''cmd'' and does not wait for the program to finish executing. Returns &amp;lt;0 if an error occurred. Requires OF_FileCommands.&lt;br /&gt;
|-&lt;br /&gt;
| [[TICKPERIOD]] || R || Returns how much server ticks are in a real-world second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIME]] || R || Returns the total server uptime, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMEHIRES]] || R || X branch only. Returns the internal timer in milliseconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMEUP]] || R || Returns the server uptime, as second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNSTONES]].COUNT || R || Returns the total number of town stones on the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNBLOCKIP]] ''address'' || W || Unblocks a previously blocked IP address.&lt;br /&gt;
|-&lt;br /&gt;
| [[VARLIST]] ''LOG'' || W || Displays a list of all VARs to SRC, or the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || R || Returns the SphereServer version.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8014</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8014"/>
				<updated>2022-08-27T23:35:11Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, color, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECTLOCATION]] ''x,y,z,type,itemid,speed,loop,explode,color,render'' || W || X branch only. Similar to the EFFECT command but instead of an object it takes a terrain location as a target.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8013</id>
		<title>EFFECTLOCATION</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8013"/>
				<updated>2022-08-27T23:34:27Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
'''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
   [FUNCTION testLocationZ]&lt;br /&gt;
   effectLocation &amp;lt;p.x&amp;gt;,&amp;lt;p.y&amp;gt;,&amp;lt;height&amp;gt;+1,0,i_sword_long,1,0,0,colors_red,3&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
X branch only. x,y,z are de coordinates where the effect will show on the ground.  Type is a number 0 or 2 from the table below (other effects will not be played, only effect 0(bolt) and 2(ground level) seems valid, probably cause they don't accept a map point).  Item_id is the base id (this must be a &amp;quot;base&amp;quot; item ID - which you can identify as an [ITEMDEF 0xxx] where xxx is a number not a name) of the item or animation.  If the ID is a animation, you likely want to use the first id of the animation loop.  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster.  Loop specifies the time the animation will play, 16 is a good default. This is NOT frames of animation, as a high speed results in more frames per given loop setting. Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character.&lt;br /&gt;
&lt;br /&gt;
=EffectLocation Types=&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Effect Number''' || '''Short''' || '''Long Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Standard flying object || The object will follow its target until it hits, and then explode if that flag is set||&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Ground-based effect || This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8012</id>
		<title>EFFECTLOCATION</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8012"/>
				<updated>2022-08-27T23:27:14Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
'''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
   [FUNCTION testLocationZ]&lt;br /&gt;
   effectLocation &amp;lt;p.x&amp;gt;,&amp;lt;p.y&amp;gt;,&amp;lt;height&amp;gt;+1,0,i_sword_long,1,0,0,colors_red,3&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
x,y,z are de coordinates where the effect will show on the ground.  Type is a number 0 or 2 from the table below (other effects will not be played, only effect 0(bolt) and 2(ground level) seems valid, probably cause they don't accept a map point).  Item_id is the base id (this must be a &amp;quot;base&amp;quot; item ID - which you can identify as an [ITEMDEF 0xxx] where xxx is a number not a name) of the item or animation.  If the ID is a animation, you likely want to use the first id of the animation loop.  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster.  Loop specifies the time the animation will play, 16 is a good default. This is NOT frames of animation, as a high speed results in more frames per given loop setting. Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character.&lt;br /&gt;
&lt;br /&gt;
=EffectLocation Types=&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Effect Number''' || '''Short''' || '''Long Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Standard flying object || The object will follow its target until it hits, and then explode if that flag is set||&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Ground-based effect || This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8011</id>
		<title>EFFECTLOCATION</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8011"/>
				<updated>2022-08-27T23:25:52Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Effect Types */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
'''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
   [FUNCTION testLocationZ]&lt;br /&gt;
   effectLocation &amp;lt;p.x&amp;gt;,&amp;lt;p.y&amp;gt;,&amp;lt;height&amp;gt;+1,0,i_sword_long,1,0,0,colors_red,3&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
x,y,z are de coordinates where the effect will show on the ground.  Type is a number 0-3 from the table below.  Item_id is the base id (this must be a &amp;quot;base&amp;quot; item ID - which you can identify as an [ITEMDEF 0xxx] where xxx is a number not a name) of the item or animation.  If the ID is a animation, you likely want to use the first id of the animation loop.  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster.  Loop specifies the time the animation will play, 16 is a good default. This is NOT frames of animation, as a high speed results in more frames per given loop setting. Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character.&lt;br /&gt;
&lt;br /&gt;
=EffectLocation Types=&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Effect Number''' || '''Short''' || '''Long Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Standard flying object || The object will follow its target until it hits, and then explode if that flag is set||&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Ground-based effect || This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.||&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8010</id>
		<title>EFFECTLOCATION</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8010"/>
				<updated>2022-08-27T23:23:59Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
'''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
   [FUNCTION testLocationZ]&lt;br /&gt;
   effectLocation &amp;lt;p.x&amp;gt;,&amp;lt;p.y&amp;gt;,&amp;lt;height&amp;gt;+1,0,i_sword_long,1,0,0,colors_red,3&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
x,y,z are de coordinates where the effect will show on the ground.  Type is a number 0-3 from the table below.  Item_id is the base id (this must be a &amp;quot;base&amp;quot; item ID - which you can identify as an [ITEMDEF 0xxx] where xxx is a number not a name) of the item or animation.  If the ID is a animation, you likely want to use the first id of the animation loop.  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster.  Loop specifies the time the animation will play, 16 is a good default. This is NOT frames of animation, as a high speed results in more frames per given loop setting. Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character.&lt;br /&gt;
&lt;br /&gt;
=Effect Types=&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Effect Number''' || '''Short''' || '''Long Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Standard flying object || The object will follow its target until it hits, and then explode if that flag is set||&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Lightning effect || This is the only way to achieve the lightning effect in-game ||&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Ground-based effect || This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.||&lt;br /&gt;
|-&lt;br /&gt;
| 3 ||Character-based effect || This effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.&lt;br /&gt;
|-&lt;br /&gt;
| 4 ||Flash effect || (New 6+ (needs verification)) Clients Only) Provides a screen-wide effect. All other parameters besides Item Id is ignored.  Item Id controls the flash type:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Item Id''' || '''Effect''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Fade to Black (Slow) || Fades the screen to black before returning to normal similar to the death effect found on some client versions&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Fade to White (Slow) || Fades the screen slowly to complete white followed by a return to normal&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Fade to white (Fast) || Fades the screen quickly to complete white followed by a return to normal (lightning flash type effect)&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Fade to White then Black (Slow) || Fades to complete white then to black.  Behaves as if effect 1 is played immediately followed by effect 0.&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Fade to Black (Fast) || Fades the screen quickly to complete black followed by a return to normal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8009</id>
		<title>EFFECTLOCATION</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=EFFECTLOCATION&amp;diff=8009"/>
				<updated>2022-08-27T23:22:50Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;=Usage= '''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''  =Description=  x,y,z are de coordinates where the effect will show on the grou...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
'''EFFECTLOCATION x,y,z,type, item_id, speed, loop, explode, colour(hue), rendermode'''&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
x,y,z are de coordinates where the effect will show on the ground.  Type is a number 0-3 from the table below.  Item_id is the base id (this must be a &amp;quot;base&amp;quot; item ID - which you can identify as an [ITEMDEF 0xxx] where xxx is a number not a name) of the item or animation.  If the ID is a animation, you likely want to use the first id of the animation loop.  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster.  Loop specifies the time the animation will play, 16 is a good default. This is NOT frames of animation, as a high speed results in more frames per given loop setting. Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character.&lt;br /&gt;
&lt;br /&gt;
=Effect Types=&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Effect Number''' || '''Short''' || '''Long Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Standard flying object || The object will follow its target until it hits, and then explode if that flag is set||&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Lightning effect || This is the only way to achieve the lightning effect in-game ||&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Ground-based effect || This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.||&lt;br /&gt;
|-&lt;br /&gt;
| 3 ||Character-based effect || This effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.&lt;br /&gt;
|-&lt;br /&gt;
| 4 ||Flash effect || (New 6+ (needs verification)) Clients Only) Provides a screen-wide effect. All other parameters besides Item Id is ignored.  Item Id controls the flash type:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Item Id''' || '''Effect''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Fade to Black (Slow) || Fades the screen to black before returning to normal similar to the death effect found on some client versions&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Fade to White (Slow) || Fades the screen slowly to complete white followed by a return to normal&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Fade to white (Fast) || Fades the screen quickly to complete white followed by a return to normal (lightning flash type effect)&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Fade to White then Black (Slow) || Fades to complete white then to black.  Behaves as if effect 1 is played immediately followed by effect 0.&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Fade to Black (Fast) || Fades the screen quickly to complete black followed by a return to normal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8008</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8008"/>
				<updated>2022-08-27T23:19:54Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, color, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECTLOCATION]] ''x,y,z,type,itemid,speed,loop,explode,color,render'' || W || similar to the EFFECT command but instead of an object it takes a terrain location as a target.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8007</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8007"/>
				<updated>2022-08-27T23:19:01Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, color, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECTLOCATION x,y,z,type,itemid,speed,loop,explode,color,render]] || W || similar to the EFFECT command but instead of an object it takes a terrain location as a target.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=8006</id>
		<title>@HouseDesignCommitItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=8006"/>
				<updated>2022-08-27T23:13:00Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
X branch only. This trigger fires when an item is about to commit when using house designer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Items]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Items|item]] being commited.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| local.id || I || ID of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.x || I || The x location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.y || I || The y location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.z || I || The z location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.visible || I || 0 or 1 (non-visible items are things like doors and signs) return false will remove this item from the commit. If not return false a local.MaxZ will check the P.Z value of the item and update it if it's higher than the old one.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the item from being commited.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignBegin&amp;diff=8005</id>
		<title>@HouseDesignBegin</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignBegin&amp;diff=8005"/>
				<updated>2022-08-27T23:12:47Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
X branch only. This trigger is called when the player enters on design mode in a t_custom_multi multi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Multis]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The multi about to design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || If set to 1 Redeeds all addons on the multi. (Default = 1)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || If set to 1 Transfer all Locked Items and Secured containers to the Moving Crate (default = 0)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || If set to 1 Ejects from the house all chars inside the house excepting the player entering in design mode, if set to 2 Ejects everyone from the house, if set to 0 doesn't eject anyone.&lt;br /&gt;
All chars ejected will be moved to the House sign.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Forces the char to exit Customize mode.&lt;br /&gt;
    WARNING: Forcing the char to exit here and setting argn1=0 in @HouseDesignExit will make it enter in customize mode, exit, enter... infinitelly, hence crashing the server with an infinite loop.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8004</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8004"/>
				<updated>2022-08-27T23:12:31Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Triggers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
! Name !! '''Read/Write''' !! '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself). Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK]] || RW ||  Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESCUR]] || W || X branch only. Gets or sets the current uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESMAX]] || W || X branch only. Gets or sets the maximum uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignBegin]] || X branch only. A trigger for t_multi_custom, called when the player enters on design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommitItem]] || X branch only. Fires for each commited item in house design system.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Redeed]] || Fires when multi item is about to redeed (t_multi, t_ship, t_multi_custom, t_addon).&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignBegin&amp;diff=8003</id>
		<title>@HouseDesignBegin</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignBegin&amp;diff=8003"/>
				<updated>2022-08-27T23:08:21Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;==Description== This trigger is called when the player enters on design mode in a t_custom_multi multi.   Fires on: * Multis   ==References== The following object referenc...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is called when the player enters on design mode in a t_custom_multi multi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Multis]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The multi about to design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || If set to 1 Redeeds all addons on the multi. (Default = 1)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || If set to 1 Transfer all Locked Items and Secured containers to the Moving Crate (default = 0)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || If set to 1 Ejects from the house all chars inside the house excepting the player entering in design mode, if set to 2 Ejects everyone from the house, if set to 0 doesn't eject anyone.&lt;br /&gt;
All chars ejected will be moved to the House sign.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Forces the char to exit Customize mode.&lt;br /&gt;
    WARNING: Forcing the char to exit here and setting argn1=0 in @HouseDesignExit will make it enter in customize mode, exit, enter... infinitelly, hence crashing the server with an infinite loop.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8002</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8002"/>
				<updated>2022-08-27T23:01:24Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Triggers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
! Name !! '''Read/Write''' !! '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself). Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK]] || RW ||  Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESCUR]] || W || X branch only. Gets or sets the current uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESMAX]] || W || X branch only. Gets or sets the maximum uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignBegin]] || trigger for t_multi_custom, called when the player enters on design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommitItem]] || Fires for each commited item in house design system.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Redeed]] || Fires when multi item is about to redeed (t_multi, t_ship, t_multi_custom, t_addon).&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8001</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8001"/>
				<updated>2022-08-27T22:56:18Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSHIP uid]] || W || X branch only. Adds the given uid to the player's ship. If the player current count of ships is greater than the limit he has, the ship will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DELSHIP uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the ship)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GETSHIPPOS uid]] || R || Returns the position of the given UID on the ships list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || X branch only. for Accounts and Chars, when created they read this new setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIP.n]] || R || X branch only. Added to access the ship in the Nth position, eg: ship.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPS]] || R || X branch only. Return the ships on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8000</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8000"/>
				<updated>2022-08-27T22:30:37Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDHOUSE uid]] || W || X branch only. Adds the given uid to the player's house. If the player current count of houses is greater than the limit he has, the house will be redeeded.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DELHOUSE uid]] || W || X branch only. Deletes the given uid from the player's list (Will not delete the house)(-1 clears the whole list).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GETHOUSEPOS uid]] || R || Returns the position of the given UID on the houses list (-1 if not found).&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSE.n]] || R || X branch only.Access the house in the Nth position, eg: house.3.Redeed&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSES]] ||R || X branch only. Returns the number of houses on the player's list.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHOUSES]] || RW || X branch only. Added to Accounts and Chars, when created they read this setting from the sphere.ini (if values on sphere.ini change, they will not reflect on already created accounts/chars).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=7999</id>
		<title>@HouseDesignCommitItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=7999"/>
				<updated>2022-08-27T19:14:49Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when an item is about to commit when using house designer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Items]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Items|item]] being commited.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| local.id || I || ID of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.x || I || The x location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.y || I || The y location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.z || I || The z location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.visible || I || 0 or 1 (non-visible items are things like doors and signs) return false will remove this item from the commit. If not return false a local.MaxZ will check the P.Z value of the item and update it if it's higher than the old one.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the item from being commited.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=7998</id>
		<title>@HouseDesignCommitItem</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommitItem&amp;diff=7998"/>
				<updated>2022-08-26T22:29:52Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when an item is about to commit when using house designer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Items]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Items|item]] being commited.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| local.id || I || ID of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.x || I || The x location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.y || I || The y location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.p.z || I || The z location of the item&lt;br /&gt;
|-&lt;br /&gt;
| local.id || I || 0 or 1 (non-visible items are things like doors and signs) return false will remove this item from the commit. If not return false a local.MaxZ will check the P.Z value of the item and update it if it's higher than the old one.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the item from being commited.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7997</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7997"/>
				<updated>2022-08-26T22:24:40Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
! Name !! '''Read/Write''' !! '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself). Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK]] || RW ||  Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESCUR]] || W || X branch only. Gets or sets the current uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESMAX]] || W || X branch only. Gets or sets the maximum uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommitItem]] || Fires for each commited item in house design system.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Redeed]] || Fires when multi item is about to redeed (t_multi, t_ship, t_multi_custom, t_addon).&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommit&amp;diff=7996</id>
		<title>@HouseDesignCommit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HouseDesignCommit&amp;diff=7996"/>
				<updated>2022-08-26T22:22:49Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a player attempts to commit a new house design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters#Players|Players]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Special Items#Customizable Multis|custom multi]] being designed.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters#Players|player]] committing the design.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters#Players|player]] committing the design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || I || The total number of components in the current house design.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The total number of components in the house design being committed.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || I || The revision number of the house design being committed.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIXTURES.NEW || I || The total number of fixtures in the house design being committed.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIXTURES.OLD || I || The total number of fixtures in the current house design.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.MAXZ || I || The value of the top placed item&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the house design from being committed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=7995</id>
		<title>TYPEDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=7995"/>
				<updated>2022-08-26T22:19:42Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|TYPEDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Type definitions are the equivalent of [[EVENTS]] that can be attached to [[Items|items]]. There are different properties that can be used to attach a type block to an item or set of items:&lt;br /&gt;
* [[ITEMDEF|item definitions]] via their [[TYPE]] and/or [[TEVENTS]] property.&lt;br /&gt;
* [[Items|items]] via their [[TYPE]] and/or [[EVENTS (Property)|EVENTS]] property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to handling triggers, type definitions can also be used to define different types of terrain. This can be used to affect the return value of the [[TYPE]] property on [[Map points|map points]], or for some hardcoded types such as t_rock it can be used to define which terrain IDs Sphere should consider to be rock when the mining skill is used.&lt;br /&gt;
&lt;br /&gt;
==Built-in Types==&lt;br /&gt;
&lt;br /&gt;
The built-in types are all listed in the sphere_defs.scp file.  The table below only lists some of the built-in types and it is VERY weak on actual details...so use with care.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! Number !! Description&lt;br /&gt;
|- &lt;br /&gt;
| t_normal || 0 || No built-in behavior.&lt;br /&gt;
|- &lt;br /&gt;
| t_container and t_container_locked || 1 and 2 || These types are used for containers.  They leverage the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; from the key that can unlock this item (If the MORE1 of the key matches the MORE1 of the container then they are linked)&lt;br /&gt;
* MORE2 = The lock complexity (how hard it is to pick the lock)&lt;br /&gt;
* MOREX = The trap type (not used yet?)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
* LINK = UID of a secondary key?&lt;br /&gt;
|- &lt;br /&gt;
| t_door or t_door_locked || 3 or 4 || This type is used for both unlocked and locked doors.  They leverage the following properties:&lt;br /&gt;
* MORE1 = UID of this door's key (if it has one)&lt;br /&gt;
* TDATA1 = ID for the sound it makes when double clicked&lt;br /&gt;
|- &lt;br /&gt;
| t_key || 5 || This type is used for keys.  It leverages the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; of the item(s) this key can unlock (if the MORE1 of the key matches the MORE1 of the container/door then they are linked)&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_light_lit || 6 || This type is used for light sources that can be turned onIT_S or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_light_out || 7 || This type is used for light sources that can be turned on or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_food || 8 || This type is used for edible food.  It leverages the following properties:&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
|- &lt;br /&gt;
| t_food_raw || 9 || This type is used for ''raw'' food.  It leverages the following properties:&lt;br /&gt;
* MORE1 = ID of the item it makes when cooked (the default is i_unused and if defined, it will override TDATA1)&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
* TDATA1 = The item ID this cooks into&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
* TDATA2 = The creature ID type that the food came from&lt;br /&gt;
* TDATA3 = The amount of skill required to cook it (did this ever work?)&lt;br /&gt;
|- &lt;br /&gt;
| t_armor || 10 || This type is used for armor.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_smith || 11 || This type is used for macefighting weapons that can also be used by blacksmiths to forge items.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_sharp || 12 || This type is used for macefighting weapons that have sharp cutting edges.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_sword || 13 || This type is used for swordsmanship weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_fence || 14 || This type is used for fencing weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_bow || 15 || This type is used for archery weapons (bow or crossbow).  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
* TDATA1 = The sound effect the weapon makes when it shoots&lt;br /&gt;
* TDATA2 = The required strength to wield the weapon&lt;br /&gt;
* TDATA3 = ID of arrow item that will be fired (and must therefore be on the player's person)&lt;br /&gt;
* TDATA4 = ID of the arrow animation (for bows it is usually i_arrow_x, for crossbows, i_xbow_x)&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = to override the sound this weapon makes when it misses&lt;br /&gt;
* AMMOANIMRENDER = to override the rendermode of the ANIM this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOTYPE = to override the type of ammo (TDATA3) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIM = to override the ammo animation (TDATA4) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIMHUE = to override the color of the ammo animation this item uses (yes, no TAGs)&lt;br /&gt;
|- &lt;br /&gt;
| t_wand || 16 || This type is used for magic wands.  It leverages the following properties:&lt;br /&gt;
* MORE1L = the current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = the maximum hitpoints for the item&lt;br /&gt;
* MORE2 = the number of remaining charges (if magical)&lt;br /&gt;
* MOREX = the spell type (if magical)&lt;br /&gt;
* MOREY = the spell strength (0-1000)&lt;br /&gt;
* MOREZ = the poison skill applied (0-100)&lt;br /&gt;
* TDATA2 = Required Strength to equip the wand&lt;br /&gt;
* TDATA3 = ID of the light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object). &lt;br /&gt;
|- &lt;br /&gt;
| t_telepad || 17 || This type is used for teleport pads.  It leverages the following properties:&lt;br /&gt;
* MOREP = Coordinates of the point to which you will teleport when you step on the item&lt;br /&gt;
* MORE1 = If set to 1, the teleport pad will only work for players (and their pets)&lt;br /&gt;
* MORE2 = If set to 1, the teleport animation and sound will not be shown to anyone witnessing the teleport&lt;br /&gt;
|- &lt;br /&gt;
| t_switch || 18 || This type is used for switches.  The way these things work is, when used, they trigger @DCLICK on the LINK object.  It leverages the following properties:&lt;br /&gt;
* LINK = UID of item to trigger&lt;br /&gt;
* MORE1 = The item ID of the next state of the switch&lt;br /&gt;
* MOREX = A flag to indicate if this is activated by stepping on it&lt;br /&gt;
|-&lt;br /&gt;
| t_book || 19 || This type is used for books of static or dynamic text.  It leverages the following properties:&lt;br /&gt;
* MORE1L = This can be set to an ID of a book (some default book text is included in the sphere_books.scp file)&lt;br /&gt;
* MORE1H = Some flags that determine book behavior:&lt;br /&gt;
** 0c00: Scripted book&lt;br /&gt;
** 0800: Editable book&lt;br /&gt;
** 08000: ? time stamp ?&lt;br /&gt;
* AUTHOR = The ID of the character that wrote the book&lt;br /&gt;
* BODY.# = The text for each page of the book (starting with page 0)&lt;br /&gt;
'''Note:''' we need more information on those flags...&lt;br /&gt;
|-&lt;br /&gt;
| t_rune || 20 || This type is used for recall runes.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The number of uses left before it wears out&lt;br /&gt;
* MOREP = The coordinates of the marked location&lt;br /&gt;
|-&lt;br /&gt;
| t_booze || 21 || This type is used for alcohol (it causes a drunk effect when double clicked.)  It leverages the following properties:&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not.&lt;br /&gt;
|-&lt;br /&gt;
| t_potion || 22 || This type is used for potions.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The potion spell effect that will result when the potion is double clicked&lt;br /&gt;
* MORE2 = The strength of the potion (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREX = The countdown to explosion (for purple potions)&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not&lt;br /&gt;
|-&lt;br /&gt;
| t_fire || 23 || This type is used for fires (and ovens?).  These items can be used to cook food, and they can burn you if stepped on.  It leverages the following properties:&lt;br /&gt;
* TIMER = time until it decays?&lt;br /&gt;
* MORE1 (or MORE2?) = Amount of damage it will cause when stepped on or dclicked&lt;br /&gt;
* MOREZ =  Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_clock || 24 || This type is used to tell time (game time, not real time) when double clicked.  The result comes out something like &amp;quot;half past eleven o'clock at night&amp;quot;.  From what I can tell there are no MORE or TDATA modifiers that affect the result.&lt;br /&gt;
|-&lt;br /&gt;
| t_trap and t_trap_active || 25 and 26 || These types are used for traps that are triggered when walked on.  They leverage the following properties:&lt;br /&gt;
* MORE1 = ID of the animation&lt;br /&gt;
* MORE2 = The damage the trap will cause&lt;br /&gt;
* MOREX = The length of time the animation will run&lt;br /&gt;
* MOREY = The length of time the activated trap will idle until reset&lt;br /&gt;
* MOREZ = A flag that indicates if the trap must idle before changing from active to inactive. &lt;br /&gt;
|-&lt;br /&gt;
| t_musical || 27 || This type is used for musical instruments.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The sound ID to be played if successful&lt;br /&gt;
* TDATA2 = The sound ID to be played if not successful&lt;br /&gt;
|-&lt;br /&gt;
| t_spell || 28 || This type is used for magic spell effects.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The polymorph effect on STR&lt;br /&gt;
* MORE1H = The polymorph effect on DEX&lt;br /&gt;
* MORE2 = The number of charges left&lt;br /&gt;
* MOREX = The spell effect that will result when the item is stepped on&lt;br /&gt;
* MOREY = The strength of the spell (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_gem || 29 || This type is used for gems, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|-&lt;br /&gt;
| t_water || 30 || This type is used for water, which means it can be fished in or used to clean used bandages.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_clothing || 31 || This type is used for all cloth based equip-able items.  It is essentially identical to t_armor and t_armor_leather.    It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|-&lt;br /&gt;
| t_scroll || 32 || This type is used for scrolls.  It leverages the following properties:&lt;br /&gt;
* MOREX = ID of the spell to cast when double-clicked&lt;br /&gt;
* MOREY = Power of the spell (equivalent to the EFFECT setting of the spell itself?)&lt;br /&gt;
|- &lt;br /&gt;
| t_carpentry || 33 || This type is used by carpenters to craft items, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|- &lt;br /&gt;
| t_spawn_char || 34 || This type is used to spawn NPCs.  Once it spawns its first creature, it will turn red and change its appearance to the ICON of the creature (or appear as a wisp if the spawn is set to use a template.)  It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of NPCs the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The creature ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/COUNT* = The current number of creatures spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned NPC (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|- &lt;br /&gt;
| t_game_piece || 35 || This type is used for game board pieces (checkers, chess, etc).  They cannot be removed from the game, and they have no tile image outside of the game board gump.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The starting x position for this piece&lt;br /&gt;
* TDATA2 = The starting y position for this piece&lt;br /&gt;
|- &lt;br /&gt;
| t_portculis || 36 || This type is used for portcullis doors that raise and lower when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The z height at the lowest setting&lt;br /&gt;
* MORE2 = The z height at the highest setting&lt;br /&gt;
|- &lt;br /&gt;
| t_figurine || 37 || This type is used for shrunk NPCs (essentially magic figurines), that turn into a &amp;quot;pet&amp;quot; creature when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID that will spawn when the item is double clicked.&lt;br /&gt;
* MORE2 = The UID of the off-line creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount the creature (presumably only if it is possible to mount it)&lt;br /&gt;
* TDATA3 = The base creature ID. &lt;br /&gt;
|-&lt;br /&gt;
| t_shrine || 38 || This type is used for shrines.  They will resurrect a ghost when double-clicked by a ghost.&lt;br /&gt;
|- &lt;br /&gt;
| t_moongate || 39 || This type is used for moongates.  When stepped on they teleport the player to another location.  It leverages the following properties:&lt;br /&gt;
* MOREP = The coordinates that the moongate leads to&lt;br /&gt;
* MORE1 = If set to 1, the smoke and sound is supressed&lt;br /&gt;
* MORE2 = If set to 1, NPCs (and pets?) cannot use it&lt;br /&gt;
|- &lt;br /&gt;
| t_chair || 40 || This type is used for any sort of a chair item and it's only purpose is to trigger a sitting animation.&lt;br /&gt;
|-&lt;br /&gt;
| t_forge || 41 || This type is used by blacksmiths to smelt ore....&lt;br /&gt;
|-&lt;br /&gt;
| t_ore || 42 || This type is harvested by miners, and converted by blacksmiths (using a forge) into something else.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = ID of item created when the ore is smelted (usually ingots)&lt;br /&gt;
|- &lt;br /&gt;
| t_log || 43 || This type is a raw material resource usually harvested from trees.&lt;br /&gt;
|-&lt;br /&gt;
| t_tree || 44 || This type is chopped by lumberjacks to get logs.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
* FRUIT = ID of item gathered if double-clicked (usually logs)&lt;br /&gt;
|- &lt;br /&gt;
| t_rock || 45 || This type can be mined for ore.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_carpentry_chop || 46 || A carpentry tool that can be used to craft carpentry objects as well as used to &amp;quot;chop&amp;quot; trees (like a saw?)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi || 47 || Multi part object like house or ship.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent || 48 || Alchemy when clicked ?&lt;br /&gt;
|-&lt;br /&gt;
| t_ship || 49 || This is a ship multi.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
* MORE2 contains the speed, anchor flag, direction of movement, and facing direction in each byte respectively&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_plank || 50 || Ship plank for players to get on a boat.&lt;br /&gt;
* TDATA1 = is the itemID of the next open/closed state.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
* MOREX = type to become (IT_SHIP_SIDE or IT_SHIP_SIDE_LOCKED)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side || 51 || Should extend to make a plank TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side_locked || 52 || TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_tiller || 53 || Tiller man on the ship.&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_trade_window || 54 || Container for the trade window.&lt;br /&gt;
|-&lt;br /&gt;
| t_fish || 55 || Fish can be cut up. Yields 4 * &amp;lt;Amount&amp;gt; when a bladed object is used on it.&lt;br /&gt;
|-&lt;br /&gt;
| t_sign_gump || 56 || This type is used for simple signs (and things like grave stones).  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_guild || 57 || This type is used for guild stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the guild (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the guild account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anim_active            58   // = active anium that will recycle when done.&lt;br /&gt;
 t_sand                   59   // = sand on the beach&lt;br /&gt;
 t_cloth                  60   // = bolt or folded cloth&lt;br /&gt;
 t_hair                   61   //&lt;br /&gt;
 t_beard                  62   // = just for grouping purposes.&lt;br /&gt;
|-&lt;br /&gt;
| t_ingot || 63 || This type is used for ingots (when a blacksmith smelts ore, it turns into ingots.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The skill required to smelt this&lt;br /&gt;
* TDATA2 = The skill required to get the maximum yield when smelting&lt;br /&gt;
|-&lt;br /&gt;
| t_coin || 64 || This types is used for coins, gold or otherwise.&lt;br /&gt;
|-&lt;br /&gt;
| t_crops || 65 || This type is used to grow plants that likely bear fruit.  Double clicking a t_crop item will harvest the fruit if it is ripe.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout), it is the ID that the crop will be reset to regrow from (0=nothing, which means this plant will not regrow once harvested)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant (0 means the plant is not mature)&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| t_drink || 66 || This type is used for non-alcoholic drinks.  It leverages the following properties:&lt;br /&gt;
* TATA1 = A flag that indicates whether the container is empty or not. &lt;br /&gt;
'''Note:''' There is an INI flag OF_DrinkIsFood (0x10000) that, if set, will increase FOOD level when the drink is consumed (like T_FOOD does)&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anvil                  67   // = for repair.&lt;br /&gt;
 t_port_locked            68   // = this portcullis must be triggered.&lt;br /&gt;
|-&lt;br /&gt;
| t_spawn_item || 69 || This type is used to spawn items.  Once it spawns its first item, it will turn red and change its appearance to the i_worldgem_lg ID item. It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of items the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The item ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/PILE* = The current number of items spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned item (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_telescope              70   // = big telescope pic.&lt;br /&gt;
|-&lt;br /&gt;
| t_bed || 71 || This type is used to indicate the item is a bed.  I am not sure how it is used exactly, but it leverages the following properties:&lt;br /&gt;
* TDATA1 = The direction it occupies&lt;br /&gt;
|-&lt;br /&gt;
| t_gold || 72 || This type is used to indicate the object is a gold coin and can be used to purchase stuff.&lt;br /&gt;
|-&lt;br /&gt;
| t_map || 73 || This type is used for cartography maps.  It has the following properties:&lt;br /&gt;
* MORE1L = The top coordinate.&lt;br /&gt;
* MORE1H = The left coordinate.&lt;br /&gt;
* MORE2L = The bottom coordinate.&lt;br /&gt;
* MORE2H = The right coordinate.&lt;br /&gt;
* MOREZ = A flag that indicates whether the map has pins or not.&lt;br /&gt;
* MOREX and MOREY = The coordinates of the pin (I think).&lt;br /&gt;
* TDATA1 = The map gump width.&lt;br /&gt;
* TDATA2 = The map gump height.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_memory_obj || 74 || This type is used for character memories, and it really depends on the type of memory to know what each property really means, but here is a relatively good guide:&lt;br /&gt;
* MORE1L = The action type this is a memory for&lt;br /&gt;
* MORE1H = The skill involved&lt;br /&gt;
* MORE2 = The start time of the memory&lt;br /&gt;
* MOREP = The map coordinates at which the memory occurred. &lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_staff      75   // = staff type of mace. or just other type of mace.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_horse || 76 || This type is used for equipped horse object.  Essentially it represents a riding horse to the client.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID&lt;br /&gt;
* MORE2 = The UID of the offline creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount it&lt;br /&gt;
* TDATA3 = The base creature ID&lt;br /&gt;
|-&lt;br /&gt;
| t_comm_crystal || 77 || This type is used for communication crystals.&lt;br /&gt;
|-&lt;br /&gt;
| t_game_board || 78  || This type is used as a container for game pieces (t_game_piece).  It leverages the following properties:&lt;br /&gt;
* MORE1 = The type of pieces to use (0=chess, 1=checkers, 2=none... presumably this is hard-coded)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_trash_can || 79 || This type is used as a trash can container, and it deletes any object placed into it.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_muzzle || 80 || This type is used for the business end of the cannon. It leverages the following properties:&lt;br /&gt;
* MORE2 = A mask of what is currently loaded in it. (0 = none, 1=powder, 2=shot)&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon || 81 || This type is used for the cannon control.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_ball || 82 || This is ammo for a t_cannon.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_armor_leather          83   // = non metallic armor (t_clothing)&lt;br /&gt;
|-&lt;br /&gt;
| t_seed || 84 || This type is used for seeds.  A seed can be created by using a dagger on a fruit (assuming the fruit is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_junk                   85   // = never used&lt;br /&gt;
 t_crystal_ball           86   // = Has no internal use.&lt;br /&gt;
 t_swamp                  87   // = swamp (smelly)&lt;br /&gt;
|-&lt;br /&gt;
| t_message || 88 || This type is used for bulletin board messages.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent_raw || 89 || Freshly grown reagents...not processed yet. A seed can be created by using a dagger on a raw reagent (assuming the raw reagent is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_client_linger || 90 || Change player to npc for a while.&lt;br /&gt;
|-&lt;br /&gt;
| t_snow || 91 || Snow&lt;br /&gt;
|-&lt;br /&gt;
| t_it_stone || 92 || This type is an &amp;quot;item stone&amp;quot; that is used to generate items when the object is double clicked.  It has the following properties:&lt;br /&gt;
* MORE1 = The item or template ID to generate&lt;br /&gt;
* MORE2 = The price (or Plotflags to set?)&lt;br /&gt;
* MOREX = The regen time (0 = instant)&lt;br /&gt;
* MOREY = The total amount to deliver (0 = infinite, 0xFFFF = none left)&lt;br /&gt;
|-&lt;br /&gt;
| t_unused_93 || 93 || This has no use.&lt;br /&gt;
|-&lt;br /&gt;
| t_explosion || 94 ||  This type is used for explosion animations.  It leverages the following properties:&lt;br /&gt;
* MOREX = The damage that the explosion will cause&lt;br /&gt;
* MOREY = The type of damage (fire, magic, etc)&lt;br /&gt;
* MOREZ = The distance range for the damage&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_npc_script || 95 || This type is used to script NPC actions (in the form of a book).  The sphere_defs.scp file says &amp;quot;get rid of this in favor of waiting on m_events&amp;quot; but it may still exist... if so, it leverages the following properties:&lt;br /&gt;
* MORE1 = The same as for other books&lt;br /&gt;
* MORE2L = The current script page&lt;br /&gt;
* MORE2H = The current offset&lt;br /&gt;
* MOREZ = The priority for this script (as a percent, this is the chance they want to &amp;quot;do&amp;quot; this task)&lt;br /&gt;
|-&lt;br /&gt;
| t_web || 96 || Walk on this and transform into some other object.  MORE1 is the amount of hits the web can take.&lt;br /&gt;
|-&lt;br /&gt;
| t_grass || 97 || Can be eaten by grazing animals&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_arock || 98 || A rock or boulder. can be thrown by giants.&lt;br /&gt;
|-&lt;br /&gt;
| t_tracker || 99 || Points to a linked object.&lt;br /&gt;
|-&lt;br /&gt;
| t_sound || 100 || This type is used to play sounds.  It uses the following properties:&lt;br /&gt;
* MORE1 = The sound ID&lt;br /&gt;
* MORE2 = A flag to indicate repetition&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_town || 101 || This type is used for town stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the town (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the town bank account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_crook     102   //&lt;br /&gt;
 t_weapon_mace_pick      103   //&lt;br /&gt;
 t_leather               104   // = leather or skins of some sort.(not wearable)&lt;br /&gt;
 t_ship_other            105   // = some other part of a ship.&lt;br /&gt;
|-&lt;br /&gt;
| t_bboard || 106 || This type is a bulleting board container that holds t_message items.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook || 107 || This type is used for the Magery spellbook.  It leverages the following properties:&lt;br /&gt;
* MORE1 = A bit mask of available spells in circles 0-4, so to add all those spells: set MORE1=0ffffffff&lt;br /&gt;
* MORE2 = A bit mask of available spells in circles 5-8, so to add all those spells: set MORE2=0ffffffff&lt;br /&gt;
'''Note:''' In older sphere versions, MOREX, MOREY, and MOREZ could be set to add additional spells (necro, etc), but recently these concepts may have been removed... same with these TDATA settings:&lt;br /&gt;
* TDATA2 = Required Strength to equip the book&lt;br /&gt;
* TDATA3 = Type of light pattern it will cast&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_corpse || 108 || This type is a container used for all dead corpses.  It leverages the following properties:&lt;br /&gt;
* &amp;lt;s&amp;gt;MORE1 = The time of death&amp;lt;/s&amp;gt; TIMESTAMP seems to hold the time of death.&lt;br /&gt;
* MORE1 = Corpse is already carved? (0=not carved, 1=carved) &lt;br /&gt;
* MORE2 = The UID of the individual character that landed the killing blow&lt;br /&gt;
* MOREX &amp;amp; MOREY = Combined, these make up a single DWORD which specifies what type of creature this was&lt;br /&gt;
* MOREZ = The direction it is facing&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
There are two special TAGs for corpses:&lt;br /&gt;
* TAG.BLOOD = This is the number of times you can carve the corpse and cause blood to come out (default 5)&lt;br /&gt;
* TAG.MAXBLOOD = Not certain about this one, but it is likely related... perhaps it is set on the CHARDEF?&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_track_item            109   // - track a id or type of item.&lt;br /&gt;
 t_track_char            110   // = track a char or range of char id's&lt;br /&gt;
 t_weapon_arrow          111   //&lt;br /&gt;
 t_weapon_bolt           112   //&lt;br /&gt;
 t_eq_vendor_box         113   // = an equipped vendor box&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_bank_box || 114 || This type is a container that is used for the character bank.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of gold in the account (is this still true?)&lt;br /&gt;
* MORE2 = The amount to restock to (for NPCs vendors who can buy stuff from players?)&lt;br /&gt;
* MOREP = The location in the world (x, y, and z) where the bank box was opened&lt;br /&gt;
* TDATA2 = The gumpID for the bank box container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = the maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_deed || 115 || This type is used to create something else when double clicked.  It is perhaps the best solution for a player to place a ''multi'' part item like a house.  When double clicked, it will prompt for a target location.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the item that will be created at the target location&lt;br /&gt;
* MORE2 = The previous key ID (ideally this is set when a house or ship are re-deeded so that all the existing keys will still work)&lt;br /&gt;
|-&lt;br /&gt;
| t_loom || 116 || This type of device is used by weavers who turn wool or thread into bolts of cloth.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the currently loaded resource (wool or cotton/flax) that is being woven&lt;br /&gt;
* MORE2 = The amount of resources currently in the loom&lt;br /&gt;
|-&lt;br /&gt;
| t_bee_hive || 117 || This type is used for beehives.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of honey which has accumulated in the hive&lt;br /&gt;
|-&lt;br /&gt;
| t_archery_butte || 118 || This type is used for practice archery targets.  When double clicked, the target will first check if you have an archery weapon equipped and if so, it will return some ammo.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID for the type of ammo currently stuck in the target&lt;br /&gt;
* MORE2 = The amount of items stuck in the target&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_eq_murder_count       119   // = my murder count flag.  MORE1 contains the amount of time before it expires. &lt;br /&gt;
 t_eq_stuck              120   // we are stuck in a web&lt;br /&gt;
 t_trap_inactive         121   //  = a safe trap.&lt;br /&gt;
 //t_unused_122          122&lt;br /&gt;
 t_bandage               123   //  = can be used for healing.&lt;br /&gt;
 t_campfire              124   //  = this is a fire but a small one.&lt;br /&gt;
 t_map_blank             125&lt;br /&gt;
 t_spy_glass             126&lt;br /&gt;
 t_sextant               127&lt;br /&gt;
 t_scroll_blank          128&lt;br /&gt;
|-&lt;br /&gt;
| t_fruit || 129 || This type is used for fruit.  When double clicked, fruit will be eaten.  Fruit can be grown from crops (t_crop).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that this fruit comes from (If not set, this fruit may not have a seed, use zero to be certain)&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the fruit&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_water_wash            130   // water that will not contain fish. (for washing or drinking)  TDATA1 is a flag that indicates whether the container is empty or not &lt;br /&gt;
 t_weapon_axe            131   // not the same as a sword. but uses swordsmanship skill&lt;br /&gt;
|-&lt;br /&gt;
| t_weapon_xbow || 132 || This type is used for crossbow weapons.  It is essentially identical to t_weapon_bow.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_spellicon             133&lt;br /&gt;
 t_door_open             134&lt;br /&gt;
 t_meat_raw              135   // just a meaty part of a corpse. (uncooked meat)&lt;br /&gt;
 t_garbage               136&lt;br /&gt;
|-&lt;br /&gt;
| t_keyring || 137 || This type is a container used to store keys.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_table || 138 || doesn't really do anything.&lt;br /&gt;
|-&lt;br /&gt;
| t_floor || 139 || &lt;br /&gt;
|-&lt;br /&gt;
| t_roof || 140 || &lt;br /&gt;
|-&lt;br /&gt;
| t_feather || 141 || a birds feather&lt;br /&gt;
|-&lt;br /&gt;
| t_wool || 142 || wool cut from a sheep.&lt;br /&gt;
|-&lt;br /&gt;
| t_fur || 143 || &lt;br /&gt;
|-&lt;br /&gt;
| t_blood || 144 || blood of some creature&lt;br /&gt;
|-&lt;br /&gt;
| t_foliage || 145 || This type is very similar to t_crops, the difference being the foliage does not disappear when the fruit is harvested.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_grain                 146&lt;br /&gt;
 t_scissors              147&lt;br /&gt;
 t_thread                148&lt;br /&gt;
 t_yarn                  149&lt;br /&gt;
 t_spinwheel             150&lt;br /&gt;
 t_bandage_blood         151   //  = can't be used for healing.&lt;br /&gt;
 t_fish_pole             152&lt;br /&gt;
 t_shaft                 153   // bolt or arrow.&lt;br /&gt;
 t_lockpick              154&lt;br /&gt;
 t_kindling              155&lt;br /&gt;
 t_train_dummy           156&lt;br /&gt;
 t_train_pickpocket      157&lt;br /&gt;
 t_bedroll               158&lt;br /&gt;
 t_bellows               159&lt;br /&gt;
|-&lt;br /&gt;
| t_hide || 160 ||Made into leather.&lt;br /&gt;
* TDATA1 = Hold ID or DEFNAME of custom cut leather (or any item).&lt;br /&gt;
|-&lt;br /&gt;
| t_cloth_bolt || 161 || A bolt of cloth.&lt;br /&gt;
|-&lt;br /&gt;
| t_board || 162 || Logs are plained into decent lumber&lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher || 163 || A pitcher holding a liquid of some kind.&lt;br /&gt;
*TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher_empty || 164 || An empty pitcher that can or did hold a liquid.&lt;br /&gt;
* TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_dye_vat || 165 || For dyeing items with.&lt;br /&gt;
|-&lt;br /&gt;
| t_dye || 166 || Dyes to set colors on a t_dye_vat&lt;br /&gt;
|-&lt;br /&gt;
| t_potion_empty || 167 || Empty bottle.&lt;br /&gt;
|-&lt;br /&gt;
| t_mortar || 168 || Alchemists mortar and pestle.&lt;br /&gt;
|-&lt;br /&gt;
| t_hair_dye || 169 || Hair dye.&lt;br /&gt;
|-&lt;br /&gt;
| t_sewing_kit || 170 || Tailoring sewing kit.&lt;br /&gt;
|-&lt;br /&gt;
| t_tinker_tools || 171 || Tinker's tools.&lt;br /&gt;
|-&lt;br /&gt;
| t_wall || 172 || Wall of a structure.&lt;br /&gt;
|-&lt;br /&gt;
| t_window || 173 || Window for a structure.  MOREZ is the light pattern&lt;br /&gt;
|-&lt;br /&gt;
| t_cotton || 174 || Cotton from the plant&lt;br /&gt;
|-&lt;br /&gt;
| t_bone || 175 || A bone from a corpse.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_script || 176 || This type can have tags and can be equipped.  Possibly used for memory objects that leverage @Equip and @UnEquip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold || 177 || A ships hold.&lt;br /&gt;
* TDATA2 is the gumpID&lt;br /&gt;
* TDATA3 is the minimum gump size&lt;br /&gt;
* TDATA4 is the maximum gump size&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold_lock || 178 || A locked ship's hold.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_lava || 179 || &lt;br /&gt;
|-&lt;br /&gt;
| t_shield || 180 || This type is used to indicate the object is an equipable shield.  It has the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
|-&lt;br /&gt;
| t_jewelry || 181 || This type is used for equpable jewelry.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
* TDATA2 = Required Strength to equip the item&lt;br /&gt;
* TDATA3 = Light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_dirt || 182 || This type is used to represent a patch of dirt where something can be planted.&lt;br /&gt;
|- &lt;br /&gt;
| t_script || 183 || This type can have tags, but can NOT be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_necro || 184 || AOS Necromancy spellbook (should have MOREZ=100 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_pala || 185 || AOS Paladin spellbook (should have MOREZ=200 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_extra || 186 || some spellbook for script purposes (MOREZ=basic offset)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bushido || 187 || SE Bushido spellbook (should have MOREZ=400 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_ninjitsu || 188 || SE Ninjitsu spellbook (should have MOREZ=500 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_arcanist || 189 || ML Spellweaver spellbook (should have MOREZ=600 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi_custom || 190 || Customisable multi&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_mystic || 191 || SA Mysticism spellbook (should have MOREZ=677 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_hoverover || 192 || Hover-over item (CAN_C_HOVER can hover over blocking items)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bard || 193 || SA Bard spellbook (should have MOREZ=700 by default)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Scripted TYPEDEFs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! File !! Description&lt;br /&gt;
|-&lt;br /&gt;
| t_advance_gate || ??.scp || MORE = ID of character to change into&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
The syntax for defining a type is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[TYPEDEF ''defname'']&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''id''&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''start_id'', ''end_id''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any number of triggers can be handled by one [[TYPEDEF]] definition, however it is not possible to handle the same trigger twice without using multiple definitions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The trigger name can be the name of any [[Items#Triggers|item trigger]]. The return value from the script can affect Sphere's hardcoded behaviour in different ways. See the documentation for the trigger to discover what parameters are passed in to each trigger and what the return values do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the ''defname'' matches any of Sphere's hardcoded types (see 'typedefs' block in sphere_defs.scp), then the [[TYPEDEF]] can be used to override the behaviours of items of that type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Water definition from default script pack.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_water]&lt;br /&gt;
TERRAIN = 0a8	0ab&lt;br /&gt;
TERRAIN = 0136	0137&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Makes an item speak when double clicked.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_exampletype]&lt;br /&gt;
ON=@DClick&lt;br /&gt;
  SAY I have been double clicked!&lt;br /&gt;
  RETURN 2&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Chapter_4&amp;diff=7994</id>
		<title>Chapter 4</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Chapter_4&amp;diff=7994"/>
				<updated>2022-08-19T21:11:04Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Chapter_4}}&lt;br /&gt;
&lt;br /&gt;
==Introduction to Objects==&lt;br /&gt;
Your first glimpse of real scripting! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First and foremost, you MUST understand the object structure of the SPHERE system. Now, because SPHERE interacts with something visible, most of these objects are relatively easy to understand. But first, you must understand this simple fact about object-oriented programming (a term I'm sure all you programmers havel come to know and fear): &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''OBJECT-ORIENTED SCRIPTING IS CENTERED AROUND OBJECTS.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Duh. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Actually, it isn't as &amp;quot;Duh&amp;quot; as you may think. Here is a list of the objects available to you in a SPHERE script: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;1&amp;quot;&lt;br /&gt;
| '''Who'''&lt;br /&gt;
| '''What'''&lt;br /&gt;
|- &lt;br /&gt;
|  SRC &lt;br /&gt;
|  The '''&amp;quot;source&amp;quot;''' of an event. If an item is damaged, the SRC is whatever damaged it. If a player is hit, the SRC is whoever hit the player. If an item is double-clicked, the SRC is the player who double-clicked it. The ONLY event that does not have a SRC, as we shall see later, is @Timer, for good reasons. Note that usually on functions the SRC isn't always the one who called the functions, but the default object (I or just an empty thing, eg: &amp;amp;lt;I.NAME&amp;amp;gt; or &amp;amp;lt;NAME&amp;amp;gt; are the same thing.&lt;br /&gt;
|- &lt;br /&gt;
|  ACT &lt;br /&gt;
|  The last object acted upon by the referenced character, for example on that char trigger @ItemDclick, ACT is the item the player double-clicked.&lt;br /&gt;
|- &lt;br /&gt;
|  TARG &lt;br /&gt;
|  The object targetted by the character.&lt;br /&gt;
|- &lt;br /&gt;
|  CONT &lt;br /&gt;
|  The container of the object.&lt;br /&gt;
|- &lt;br /&gt;
|  TOPOBJ &lt;br /&gt;
|  If an object is buried in several containers within containers, this is always the top-level container before you get to the world. If an item is buried in a player's backpack, TOPOBJ is the player.&lt;br /&gt;
|- &lt;br /&gt;
|  ACCOUNT &lt;br /&gt;
|  The account of a player, obviously.&lt;br /&gt;
|- &lt;br /&gt;
|  REGION &lt;br /&gt;
|  The current region/area a player is in.&lt;br /&gt;
|- &lt;br /&gt;
|  SECTOR &lt;br /&gt;
|  The world is divided into 64 by 64 tile sectors (by default but you can change it by setting the MAPx settings (look at sphere.ini section for this)). This is the player's current sector.&lt;br /&gt;
|- &lt;br /&gt;
|  SERV &lt;br /&gt;
|  used to call server commands, like serv.save, serv.allclients, etc.&lt;br /&gt;
&lt;br /&gt;
'''Object references from SERV'''&lt;br /&gt;
{|  border=&amp;quot;1&amp;quot;&lt;br /&gt;
|  LASTNEWITEM &lt;br /&gt;
|  The last item created from NEWITEM/NEWDUPE functions.&lt;br /&gt;
|- &lt;br /&gt;
|  LASTNEWCHAR &lt;br /&gt;
|  The last character created by NEWNPC/NEWDUPE functions.&lt;br /&gt;
|}&lt;br /&gt;
|- &lt;br /&gt;
|  LINK &lt;br /&gt;
|  The object referred to in the LINK property of an '''item'''.&lt;br /&gt;
|- &lt;br /&gt;
|  UID.x &lt;br /&gt;
|  The object with UID equal to X.&lt;br /&gt;
|- &lt;br /&gt;
|  FINDLAYER.X &lt;br /&gt;
|  The object in layer X.&lt;br /&gt;
|- &lt;br /&gt;
|  FINDCONT.X &lt;br /&gt;
|  The xth object in the container referenced.&lt;br /&gt;
|- &lt;br /&gt;
|  FINDID.x &lt;br /&gt;
|  The first object with ID of x in the container.&lt;br /&gt;
|- &lt;br /&gt;
|  FINDTYPE.x &lt;br /&gt;
|  The first object with TYPE of X in the container.&lt;br /&gt;
|- &lt;br /&gt;
|  NEW &lt;br /&gt;
|  The newer object created from NEWITEM/NEWNPC/NEWDUPE functions.&lt;br /&gt;
|- &lt;br /&gt;
|  OBJ &lt;br /&gt;
|  An empty object variable, which you need to set to use, eg:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;OBJ = &amp;amp;lt;FINDLAYER.'''layer_bankbox'''&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
OBJ.SAY HEHE&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will make I's bank box say hehe.&amp;lt;br&amp;gt;&lt;br /&gt;
'''NOTE''': OBJ is a global variable so it can possibly interfere with other scripts.&amp;lt;br&amp;gt;&lt;br /&gt;
It's best to set it back to nothing when not in use in a certain script.&lt;br /&gt;
|- &lt;br /&gt;
|  REFx &lt;br /&gt;
|  This works in the same way as OBJ except the reference is local and will not interfere with other scripts. 'x' is a number between 1 and 65535, allowing you to reference as many objects as you need simultaneously (e.g. REF1 = &amp;amp;lt;FINDLAYER.layer_bankbox&amp;amp;gt;).&lt;br /&gt;
|- &lt;br /&gt;
|  FILE &lt;br /&gt;
|  Call the file commands on the current FILE object.&lt;br /&gt;
|- &lt;br /&gt;
|  DB &lt;br /&gt;
|  See [[MySQL]]&lt;br /&gt;
|- &lt;br /&gt;
|  PARTY.MEMBER.x &lt;br /&gt;
|  The xth party member of the referenced party.&lt;br /&gt;
|- &lt;br /&gt;
|  GUILD.MEMBER.x &lt;br /&gt;
|  The xth guild member of the referenced guild.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, we're rather limited in what we can do! Actually, not really. With the current scripting system, you can do almost anything imaginable with SPHERE. It might run slow or be laggy, but it can be done. Those last five events (the ones with the x in them) are complex and I don't expect you to know how to use them yet. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we know the objects, we need to know how to access the properties of those objects, and above all, do things to those objects. We use the dot operator (.) to access properties of objects. For example: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;SRC.STR&amp;lt;br /&amp;gt;&lt;br /&gt;
ACT.MOREP&amp;lt;br /&amp;gt;&lt;br /&gt;
SRC.ACT.MOREP&amp;lt;br /&amp;gt;&lt;br /&gt;
SRC.TARG.HITS&amp;lt;br /&amp;gt;&lt;br /&gt;
SRC.DAMAGE {1 5} 01 &amp;amp;lt;ACT&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
SERV.NEWITEM i_gold&amp;lt;br /&amp;gt;&lt;br /&gt;
NEW.AMOUNT 10000&amp;lt;br /&amp;gt;&lt;br /&gt;
SRC.TARG.KILL&amp;lt;br /&amp;gt;&lt;br /&gt;
CONT.KILL&amp;lt;br /&amp;gt;&lt;br /&gt;
FINDLAYER.layer_backpack.FINDID.i_gold.AMOUNT&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I don't expect you to understand what all of these things do yet, but you will by the end of this chapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Some notes''': You must also understand that OBJECTS aren't ITEMS, when someone say OBJECT they probably mean a character/item/some of those in the table. The objects can also be called REFERENCE, for example, ACT.STR 100 the reference is ACT.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is the next principle of SPHERE scripting:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ALL ACTIONS ARE TRIGGERED BY EVENTS OR FUNCTIONS, WHICH DEFINE THE OBJECTS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Nothing happens in a SPHERE script that just sits there. A player, or something else in the game, must do something to an item or a character for a script to execute. For example, being hit executes the @GetHit script on the person being hit, and @Hit on the hitter. Stepping on an item executes the @Step script on the item and the @ItemStep script on the player. When an item is double-clicked, @DClick is executed on the item and @ItemDClick is executed on the player. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the player is the one who double-clicks the ITEM, he becomes SRC. If he targets an item, in the @Targon_Item script, the player is SRC, and the item he targeted is SRC.TARG. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We refer to an event like this: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;ON=@DClick &amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Following that line would be everything that we want to happen when the player clicks the item. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We'll see examples in the next section of the use of both events and objects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Making Decisions==&lt;br /&gt;
It was an amazing day when someone showed this script to me. This was actually the script that tested the &amp;quot;new&amp;quot; scripting system in version .37. SPHERE wasn't even SPHERE then. It was called &amp;quot;Grayworld&amp;quot; and was on menasoft.com. Actually, I believe it was in the Admin FAQ that they used to have on the website. Here it is, updated to 56b format:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;[TYPEDEF T_VEND_MACHINE]&amp;lt;br /&amp;gt;&lt;br /&gt;
// Some other trigger.&amp;lt;br /&amp;gt;&lt;br /&gt;
// Vending machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=@DCLICK&lt;br /&gt;
:IF (&amp;amp;lt;SRC.RESTEST 10 i_gold&amp;amp;gt;)&amp;lt;br /&amp;gt;&lt;br /&gt;
::SERV.NEWITEM={ i_HAM 1 i_fruit_apple 1 i_bread_loaf 1 i_bacon_slice 1 i_RIBS_COOKED 1 i_SAUSAGES 1}&amp;lt;br /&amp;gt;&lt;br /&gt;
::SRC.BOUNCE &amp;amp;lt;NEW.UID&amp;amp;gt; // put it in your pack.&amp;lt;br /&amp;gt;&lt;br /&gt;
::SRC.CONSUME 10 i_gold&amp;lt;br /&amp;gt;&lt;br /&gt;
::SRC.MESSAGE That will be 10 Gold Thank Thee.&amp;lt;br /&amp;gt;&lt;br /&gt;
::SOUND 0F7&amp;lt;br /&amp;gt;&lt;br /&gt;
:ELSE&amp;lt;br /&amp;gt;&lt;br /&gt;
::MESSAGE You lack 10 Gold to pay.&amp;lt;br /&amp;gt;&lt;br /&gt;
:ENDIF&amp;lt;br /&amp;gt;&lt;br /&gt;
:RETURN 1&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Put this script into one of your files and resync your server. I like to use spheretrig.scp for test triggers like this. Now, in the game, type &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;.set type t_vend_machine&amp;lt;/font&amp;gt; and target any item (like a door). Then double-click it and watch what happens. If you get the &amp;quot;not enough gold&amp;quot; message, &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;.add&amp;lt;/font&amp;gt; yourself some i_gold, and try again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See the result of this simple little script? It's got a lot that we've dicussed, and even more that we haven't. First, you may notice the use of this strange IF construction. You will use this again and again, so pay attention! The IF structure looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;IF (1 or 0)&amp;lt;br /&amp;gt;&lt;br /&gt;
// Execute these lines if 1&amp;lt;br /&amp;gt;&lt;br /&gt;
ELIF (1 or 0)&amp;lt;br /&amp;gt;&lt;br /&gt;
// Execute these lines if the first wasn't 1, but this one is&amp;lt;br /&amp;gt;&lt;br /&gt;
// You can have as many ELIFs as you need&amp;lt;br /&amp;gt;&lt;br /&gt;
ELSE&amp;lt;br /&amp;gt;&lt;br /&gt;
// Execute if none of the above are 1&amp;lt;br /&amp;gt;&lt;br /&gt;
ENDIF&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Always, always, always, always pair your IF with an ENDIF. It doesn't matter what's in the middle. You can have eight hundred ELIFs and an ELSE. But ALWAYS be sure your IF is paired somewhere with an ENDIF. Actually those are the only two required parts of this construction. ELSE and ELIF are completely optional, and you should only use them if they are absolutely needed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So what is this &amp;quot;1 or 0&amp;quot; thing? How does it help me in my scripting if I'm just typing a 1 or a 0 in there? Actually, you will NEVER type a 1 or a 0 in there, and this is a perfect time to introduce the equivalence test operators. Here they are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| '''==''' || '''equal to'''&lt;br /&gt;
|-&lt;br /&gt;
| '''!=''' || '''not equal to'''&lt;br /&gt;
|-&lt;br /&gt;
| '''&amp;gt; ''' || '''greater than'''&lt;br /&gt;
|-&lt;br /&gt;
| '''&amp;lt; ''' || '''less than'''&lt;br /&gt;
|-&lt;br /&gt;
| '''&amp;lt;=''' || '''less than or equal to'''&lt;br /&gt;
|-&lt;br /&gt;
| '''&amp;gt;=''' || '''greater than or equal to '''&lt;br /&gt;
|}&amp;lt;br /&amp;gt;&lt;br /&gt;
'''1 = true'''&amp;lt;br /&amp;gt;&lt;br /&gt;
'''0 = false'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I've put this table in bold since it's so incredibly important. And here is another SPHERE principle: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Do not use == and = interchangably in an IF statement. SPHERE actually allows this, but you will get confused and use == where you mean =, and vice versa.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is an example of using a equivalence operator in an IF statement: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;IF (&amp;amp;lt;SRC.STR&amp;amp;gt; == 75)&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Read this &amp;quot;If src.str is equal to 75&amp;quot;. Want to know something interesting? Internally, if SRC.STR is in fact equal to 75, SPHERE will replace the ENTIRE part inside the parentheses with a 1. If it is not equal to 75, SPHERE will replace that part with a 0. That's where your 1 and 0 comes from. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you may be wondering, what the &amp;amp;lt; &amp;amp;gt; brackets around &amp;amp;lt;SRC.STR&amp;amp;gt; are doing there. Actually, this is one of the most elusive concepts in SPHERE scripting. The &amp;amp;lt; &amp;amp;gt; brackets mean &amp;quot;Replace whatever is inside with the actual value of that thing.&amp;quot; This is done before any testing is executed. Say SRC.STR has been set to 71. Here are the steps SPHERE takes in simplifying this IF statement: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;1. IF (&amp;amp;lt;SRC.STR&amp;amp;gt; == 75)&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;2. IF (71 == 75)&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;3. IF (0)&amp;lt;/font&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice above in the example script that we have this statement:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;&amp;amp;lt;SRC.RESTEST 10 i_gold&amp;amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;What the heck is &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;RESTEST&amp;lt;/font&amp;gt;?&amp;quot; &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;RESTEST&amp;lt;/font&amp;gt; is what we call a function. It takes parameters (in this case an amount and an item ID) and returns a value. SPHERE replaces the entire function statement &amp;amp;lt;SRC.RESTEST 10 i_gold&amp;amp;gt; with that value. RESTEST checks to see if the player has an amount of the item specified greater than the amount specified: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Does the player have an amount of i_gold equal to or greater than 10?&amp;quot; is what the function asks. Internally SPHERE says &amp;quot;Yes&amp;quot; and replaces it with a 1, or &amp;quot;No&amp;quot; and replaces it with a 0. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Say the player had 9 gold in his backpack. Here is the simplification of the IF statement: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;1. IF (&amp;amp;lt;SRC.RESTEST 10 i_gold&amp;amp;gt;)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
2. IF (0)&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We'll see in later chapters how to define our own functions, give them parameters and have them return a value! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I hope you have a general understanding of the &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;IF&amp;lt;/font&amp;gt; statement now. Here is a more complex example for you to analyze: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;IF (&amp;amp;lt;SRC.STR&amp;amp;gt; &amp;amp;gt; 60)&amp;lt;br /&amp;gt;&lt;br /&gt;
:SRC.SYSMESSAGE Your strength is greater than 60.&amp;lt;br /&amp;gt;&lt;br /&gt;
ELIF (&amp;amp;lt;SRC.STR&amp;amp;gt; &amp;amp;gt; 40)&amp;lt;br /&amp;gt;&lt;br /&gt;
:SRC.SYSMESSAGE Your strength is greater than 40, but less than 60.&amp;lt;br /&amp;gt;&lt;br /&gt;
ELIF (&amp;amp;lt;SRC.STR&amp;amp;gt; &amp;amp;gt; 20)&amp;lt;br /&amp;gt;&lt;br /&gt;
:SRC.SYSMESSAGE You are a weakling with between 20 and 40 strength.&amp;lt;br /&amp;gt;&lt;br /&gt;
ELSE&amp;lt;br /&amp;gt;&lt;br /&gt;
:SRC.SYSMESSAGE Start lifting weights because your strength is less than 20!&amp;lt;br /&amp;gt;&lt;br /&gt;
ENDIF&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What does this do? Well first, SPHERE looks at the IF statement, and says &amp;quot;Is the value of SRC.STR greater than 60?&amp;quot; If the answer is no, SPHERE replaces that with a 0, and jumps down to the first ELIF. &amp;quot;Is the value of SRC.STR greater than 40?&amp;quot; If not, it jumps down to the next one. &amp;quot;Is the value of SRC.STR greater than 20?&amp;quot; If not, it looks for further ELIFs. Unable to find them, it jumps to the ELSE statement, since nothing above was true. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SYSMESSAGE prints out a message to the corner of the screen of the referenced object. In this case, that's SRC. Earlier, you saw an example involving the MESSAGE function. It prints the message above the object referenced. If the object is inside of a closer container, it does a SYSMESSAGE to the topmost container object. This means that if an item in a backpack is given a MESSAGE command, and the backpack is not opened, the player will see the message in the corner of his screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;'''SYSMESSAGE''' [text]&amp;lt;br/ &amp;gt;&lt;br /&gt;
'''MESSAGE''' [text]&amp;lt;br/ &amp;gt;&lt;br /&gt;
'''RESTEST''' [amount] [item]&amp;lt;br/ &amp;gt;&lt;br /&gt;
'''NEWITEM''' [item]&amp;lt;br/ &amp;gt;&lt;br /&gt;
'''BOUNCE''' // Put an item into the character's backpack&amp;lt;br/ &amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your first five functions. Congratuations. Actually, you saw another one in an earlier script! Remember what it is?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;'''SAY''' [text]&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This, of course, causes the object to SAY (so everyone can hear it) the text given. With MESSAGE and SYSMESSAGE, the text is private to a single client. MESSAGE text is only visible to the SRC. (In other words, LINK.MESSAGE or SRC.TARG.MESSAGE will show a message over LINK or SRC.TARG that only SRC can see!) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So finally, what is this weird &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;RETURN 1&amp;lt;/font&amp;gt; at the end of the script? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
RETURN is used in a variety of ways. In the case of an event script, if you RETURN 1, it prevents the default action from happening. For example, if you put this on an item in the game and double-click it, it doesn't actually try to use the item too. It just executes the double-click script. (To a player it would look like he was using the item, but we know better.) If you change it to RETURN 0, it would try to use the item too, realize it had no idea what to do with this item, and say &amp;quot;You are not sure how to use this item&amp;quot; or something like that. Either way, the script ends as soon as it sees a RETURN statement. The distinction between RETURN 1 and RETURN 0 is even more clear in character events, and I shall make an effort to point that out at the time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==[SPEECH] for Dummies==&lt;br /&gt;
I say &amp;quot;Hello&amp;quot; you say &amp;quot;Goodbye&amp;quot;, or &amp;quot;Cheese&amp;quot;, or &amp;quot;You are a bad scripter&amp;quot; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Well, it's time to introduce you to your newest concept in SPHERE scripting:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NPC SPEECH is an event.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A long time ago there was supposed to be a @Hear trigger, and we waited and waited and waited, and it was going to be the next big thing in TUS (SPHERE's name before version .50), but nothing ever came of it. Then came SPHERE with all these new scripting revelations, and we said &amp;quot;Hey! We don't even need @Hear! Speech works just like any other event!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;[SPEECH spk_human_test]&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=*hello*&amp;lt;br /&amp;gt;&lt;br /&gt;
:SAY @55 Cheese!&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should recognize that from a previous chapter when we created this script and set it on an NPC. But what if we want that NPC to do more than say &amp;quot;Cheese!&amp;quot; in a yellow colored font. What if we want him run away as fast as he possibly can, or drop his gold on the ground and faint?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We could easily do this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;lt;font color=&amp;quot;darkblue&amp;quot;&amp;gt;[SPEECH spk_human_test]&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=*hello*&amp;lt;br /&amp;gt;&lt;br /&gt;
:IF (&amp;amp;lt;SRC.KARMA&amp;amp;gt; &amp;amp;lt; &amp;amp;lt;SERV.PLAYERNEUTRAL&amp;amp;gt;) // Are they less than good?&amp;lt;br /&amp;gt;&lt;br /&gt;
::SAY You are evil! Get away from me!&amp;lt;br /&amp;gt;&lt;br /&gt;
::FLEE // Causes an NPC to run away from SRC (this can have an argument (the one to flee from))&amp;lt;br /&amp;gt;&lt;br /&gt;
:ELSE&amp;lt;br /&amp;gt;&lt;br /&gt;
::SAY Cheese!&amp;lt;br /&amp;gt;&lt;br /&gt;
::BOW //Makes him bow to src (this can have an argument (the one to be bowed to uid))&amp;lt;br /&amp;gt;&lt;br /&gt;
:ENDIF&amp;lt;br /&amp;gt;&lt;br /&gt;
:RETURN 1&amp;lt;br /&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you don't RETURN 1, the processing will pass through to the default handler, which will make the NPC say something like &amp;quot;Huh? I don't understand thee!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In an NPC speech event, &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;SRC&amp;lt;/font&amp;gt; is the player who triggered the event, the speaker who said &amp;quot;hello&amp;quot; in this case. The default object is the NPC with the event on him, as you can see from the script above. That is why SAY works without an object reference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can have ANYTHING in a speech script that you can have in a normal script. Just remember, there are no items involved. No MORE, no MORE2, no MOREP. But I'll tell you in a little bit how to get as many variables as you want on both NPCs and humans.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section doesn't need to be any longer, does it? You already know how to write an event, and you already know some basic statements, like &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;IF&amp;lt;/font&amp;gt;. That should provide some very robust NPC speaking on your shard!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The Difference Between = And &amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;?==&lt;br /&gt;
In most programming languages, = is called the &amp;quot;assignment operator&amp;quot;.  == is called the &amp;quot;equals sign&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are my style guidelines, for better readability of your scripts, and so on.  (If we can't read your scripts, we can't help you with them.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# == should only be used in test statements, like an IF&amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt;IF (&amp;amp;lt;SRC.STR&amp;amp;gt; '''==''' 75)&amp;lt;/tt&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
# = should be used for assignments, like setting a variable to a value&amp;lt;br /&amp;gt; &amp;lt;tt&amp;gt;MORE '''=''' 3&amp;lt;br /&amp;gt; MOREP '''=''' 45 65 12 4&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And that's about it.  I'm pretty lenient huh?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As a comparison, my Java class at school has style guidelines in a set of pages the size of this entire tutorial.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=MAPWAYPOINT&amp;diff=7993</id>
		<title>MAPWAYPOINT</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=MAPWAYPOINT&amp;diff=7993"/>
				<updated>2022-08-19T20:00:30Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;=Usage=  REFERENCE.MAPWAYPOINT ObjectUID,WayPointType  =Description=  This function adds/removes waypoints on client radar map (enhanced clients only).  Waypoint types: 	0 = R...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Usage=&lt;br /&gt;
&lt;br /&gt;
REFERENCE.MAPWAYPOINT ObjectUID,WayPointType&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
This function adds/removes waypoints on client radar map (enhanced clients only).&lt;br /&gt;
&lt;br /&gt;
Waypoint types:&lt;br /&gt;
	0 = Remove waypoint&lt;br /&gt;
	1 = Corpse&lt;br /&gt;
	2 = Party Member&lt;br /&gt;
	4 = Quest Giver&lt;br /&gt;
	5 = New Player Quest&lt;br /&gt;
	6 = Healer&lt;br /&gt;
	11 = Shrine&lt;br /&gt;
	12 = Moongate&lt;br /&gt;
	14 = Green Dot&lt;br /&gt;
	15 = Green Dot (flashing)&lt;br /&gt;
&lt;br /&gt;
=Example=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;ON=@Dclick //let's suppose that dclicked item is a map (for example) where the target is stored in its link.&lt;br /&gt;
src.mapwaypoint &amp;lt;link&amp;gt;,4&amp;lt;/spherescript&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7992</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7992"/>
				<updated>2022-08-19T19:52:43Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] &amp;quot;ObjectUID, WaypointType&amp;quot; || W || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7991</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7991"/>
				<updated>2022-08-19T19:51:40Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAPWAYPOINT]] || RW || Add/remove waypoints on client radar map (enhanced clients only).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7947</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7947"/>
				<updated>2022-07-07T04:33:16Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || X branch only. Fires when the character is attempting to parry a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7946</id>
		<title>@HitParry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7946"/>
				<updated>2022-07-07T03:30:45Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
X branch only. The trigger is fired before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).&lt;br /&gt;
&lt;br /&gt;
There are two for changing the damage reduced:&lt;br /&gt;
&lt;br /&gt;
* Overwriting the Argn1 value in the @HitParry trigger.&lt;br /&gt;
&lt;br /&gt;
* By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:&lt;br /&gt;
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.&lt;br /&gt;
&lt;br /&gt;
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.&lt;br /&gt;
&lt;br /&gt;
- If no values are defined, the default value of 100 will be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] that is attempting to parry the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] that did the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] or shield used for parry, if any.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARNG1 || IO || Percent of damage that will be reduced (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| ARNG2 || IO || Damage type.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYCHANCE || IO || The chance to parry the blow. The chance will be passed to the SkillUseQuick/UseQuick triggers.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYSKILLID || IO || The skill used for parrying, this can be changed by setting the appropriate skill ID.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMPARRYDAMAGECHANCE || IO || The chance that the parrying item will be damaged (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGE || IO || The amount of damage (raw) before the parry reduction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Completely blocks the damage as if the parry damage reduction was set to 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7945</id>
		<title>@HitParry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7945"/>
				<updated>2022-07-06T20:30:37Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
The trigger is fired before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).&lt;br /&gt;
&lt;br /&gt;
There are two for changing the damage reduced:&lt;br /&gt;
&lt;br /&gt;
* Overwriting the Argn1 value in the @HitParry trigger.&lt;br /&gt;
&lt;br /&gt;
* By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:&lt;br /&gt;
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.&lt;br /&gt;
&lt;br /&gt;
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.&lt;br /&gt;
&lt;br /&gt;
- If no values are defined, the default value of 100 will be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] that is attempting to parry the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] that did the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] or shield used for parry, if any.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARNG1 || IO || Percent of damage that will be reduced (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| ARNG2 || IO || Damage type.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYCHANCE || IO || The chance to parry the blow. The chance will be passed to the SkillUseQuick/UseQuick triggers.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYSKILLID || IO || The skill used for parrying, this can be changed by setting the appropriate skill ID.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMPARRYDAMAGECHANCE || IO || The chance that the parrying item will be damaged (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGE || IO || The amount of damage (raw) before the parry reduction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Completely blocks the damage as if the parry damage reduction was set to 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7944</id>
		<title>@HitParry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7944"/>
				<updated>2022-07-06T19:53:26Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
The trigger is fired before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).&lt;br /&gt;
&lt;br /&gt;
There are two for changing the damage reduced:&lt;br /&gt;
&lt;br /&gt;
* Overwriting the Argn1 value in the @HitParry trigger.&lt;br /&gt;
&lt;br /&gt;
* By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:&lt;br /&gt;
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.&lt;br /&gt;
&lt;br /&gt;
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.&lt;br /&gt;
&lt;br /&gt;
- If no values are defined, the default value of 100 will be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] that succesfully parried the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] that did the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] or shield used for parry, if any.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARNG1 || IO || Percent of damage that will be reduced (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| ARNG2 || IO || Damage type.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYCHANCE || IO || The chance to parry the blow. The chance will be passed to the SkillUseQuick/UseQuick triggers.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.PARRYSKILLID || IO || The skill used for parrying, this can be changed by setting the appropriate skill ID.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMPARRYDAMAGECHANCE || IO || The chance that the parrying item will be damaged (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGE || IO || The amount of damage (raw) before the parry reduction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Completely blocks the damage as if the parry damage reduction was set to 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=How_Combat_Works&amp;diff=7943</id>
		<title>How Combat Works</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=How_Combat_Works&amp;diff=7943"/>
				<updated>2022-07-05T20:39:08Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|How_Combat_Works}}&lt;br /&gt;
&lt;br /&gt;
The following diagram shows when combat triggers are triggered. See the [[Triggers]] page for more information on each trigger.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;[[@HitTry]] (attacker)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;/&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;\&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Hit]] (attacker)&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;[[@HitMiss]] (attacker)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Damage]] (weapon)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@HitParry]] (victim)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@GetHit]] (victim)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Damage]] (armor)&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks to Moe for posting this.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7942</id>
		<title>@HitParry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7942"/>
				<updated>2022-07-05T20:36:33Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
The trigger is fired when a character succesfully parries a hit, before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).&lt;br /&gt;
&lt;br /&gt;
There are two for changing the damage reduced:&lt;br /&gt;
&lt;br /&gt;
* Overwriting the Argn1 value in the @HitParry trigger.&lt;br /&gt;
&lt;br /&gt;
* By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:&lt;br /&gt;
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.&lt;br /&gt;
&lt;br /&gt;
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.&lt;br /&gt;
&lt;br /&gt;
- If no values are defined, the default value of 100 will be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] that succesfully parried the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] that did the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] or shield used for parry, if any.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARNG1 || IO || Percent of damage that will be reduced (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| ARNG2 || IO || Damage type.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMPARRYDAMAGE || IO || The chance that the parrying item will be damaged (default 100%).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Completely blocks the damage as if the parry damage reduction was set to 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7941</id>
		<title>@HitParry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitParry&amp;diff=7941"/>
				<updated>2022-07-02T15:54:15Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;==Description== The trigger is fired when a character succesfully parries a hit, that is the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
The trigger is fired when a character succesfully parries a hit, that is the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).&lt;br /&gt;
&lt;br /&gt;
There are two for changing the damage reduced:&lt;br /&gt;
&lt;br /&gt;
* Overwriting the Argn1 value in the @HitParry trigger.&lt;br /&gt;
&lt;br /&gt;
* By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:&lt;br /&gt;
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.&lt;br /&gt;
&lt;br /&gt;
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.&lt;br /&gt;
&lt;br /&gt;
- If no values are defined, the default value of 100 will be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] that succesfully parried the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] that did the strike.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] or shield used for parry, if any.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARNG1 || IO || Percent of damage that will be reduced (default 100%).&lt;br /&gt;
|-&lt;br /&gt;
| ARNG2 || IO || Damage type.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMPARRYDAMAGE || IO || The chance that the parrying item will be damaged (default 100%).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Completely blocks the damage as if the parry damage reduction was set to 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7940</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7940"/>
				<updated>2022-07-02T15:43:58Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in SphereServer-X Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value. X branch only: for skills Enticement, Peacemaking and Provocation, if ACTARG1 is set to the UID of the instrument to play, it will be played the sound of that instrument.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value. Can get x,y,z,position of the point in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef. Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK (Characters)|CANMASK]] || RW || X branch only. Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' (P coords in X branch) || W || Turns the character to face a specified object or SRC. Admits coordinates instead uid in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLADJUSTED]].&amp;quot;number or skill_name&amp;quot; (X branch only) || R || Returns the skill value adjusted by the stat bonus. Example “SkillAdjusted.1” or “SkillAdjusted.Anatomy”.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOROVERRIDE]] ''value'' || RW || Override client speech hue. &lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitParry]] || Fires when the character successfully parries a hit.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActWander]] || X branch only. Fires each step an NPC does while wandering.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Redeed&amp;diff=7937</id>
		<title>@Redeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Redeed&amp;diff=7937"/>
				<updated>2022-05-01T19:39:54Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;==Description== This trigger fires when a multi is about to redeed. Valid for t_multi, t_ship, t_multi_custom and t_addon.   Fires on: * Items   ==References== The followi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a multi is about to redeed. Valid for t_multi, t_ship, t_multi_custom and t_addon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Items]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The deed&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The multi&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || Player doing the redeed (If Any). When the multi is being removed there is no SRC (also when an Addon is being redeeded from internal functions).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || I || ID of the deed (Default=i_deed)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I ||  (Default = 1). If set to 1 all items will be moved to the Moving Crate (and Addons redeeded).&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || I ||  If set to 1 the Moving Crate will be transfered to Owner's Bank (if there is any).&lt;br /&gt;
Note: the crate is moved to the OWNER's bank, not SRC.&lt;br /&gt;
If argn2 = 0 then argn3 will be not used regardless of the value it has.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the deed from being created, but will not block the code from argn2 and argn3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7936</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7936"/>
				<updated>2022-05-01T19:32:03Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
! Name !! '''Read/Write''' !! '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself). Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK]] || RW ||  Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESCUR]] || W || X branch only. Gets or sets the current uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESMAX]] || W || X branch only. Gets or sets the maximum uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Redeed]] || Fires when multi item is about to redeed (t_multi, t_ship, t_multi_custom, t_addon).&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=7935</id>
		<title>SPELL</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=7935"/>
				<updated>2022-05-01T19:14:24Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|SPELL}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A spell block defines the basic properties and behaviours of a spell.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
The following properties are available when defining a spell:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST_TIME]] || RW || Gets or sets the length of time it takes to cast the spell, in tenths of a second. Accepts multiple values to adjust based on skill level.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets the spell's defname.&lt;br /&gt;
|-&lt;br /&gt;
| [[DURATION]] || RW || Gets or sets the duration of the spell's affect in tenths of a second, if applicable. Accepts multiple values to adjust based on skill level.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] || RW || Gets or sets the strength of the spell. Accepts multiple values to adjust based on skill level.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT_ID]] || RW || Gets or sets the ID of the spell's visual effect.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the spell's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[GROUP]] || RW || Gets or sets the spell's group flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[INTERRUPT]] || RW || Gets or sets the chance of a character being interrupted when hit in combat while casting the spell. Accepts multiple values to adjust based on skill level.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANAUSE]] || Rw || Gets or sets the number of mana points needed to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPT_MSG]] || RW || Gets or sets the message shown when a character casts the spell, and also forces characters to select a target when non-empty.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to cast the spell. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to cast the spell. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUNE_ITEM]] || RW || Gets or sets the [[BASEID]] of the item that should be equipped when a spell has a duration.&lt;br /&gt;
|-&lt;br /&gt;
| [[RUNES]] || RW || Gets or sets the spell's words of power.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL_ITEM]] || RW || Gets or sets the [[BASEID]] of the scroll that casts the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLREQ]] || RW || Gets or sets a list of skills that are needed to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] || RW || Gets or sets the ID of the sound that will be played when the spell is cast.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
The following table lists all of the triggers that can be placed under a spell definition. All of the triggers here have an equivalent @Spell trigger on the [[Characters|character]] object.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@Effect]] || Fires when a character or item is hit by the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectAdd]] || Fires when a spell memory item is being added.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectRemove]] || Fires when a spell memory item is removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Fail (Spell Trigger)|@Fail]] || Fires when a character fails to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Select (Spell Trigger)|@Select]] || Fires when a character selects to cast the spell, or when Sphere checks if a character is capable of casting it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Start (Spell Trigger)|@Start]] || Fires when a character starts to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Success (Spell Trigger)|@Success]] || Fires when a character successfully casts the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargetCancel]] || Fires when a character cancels target selection for a spell they are casting.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Clumsy spell from the default script pack.&lt;br /&gt;
//&lt;br /&gt;
[SPELL 1]&lt;br /&gt;
DEFNAME=s_clumsy&lt;br /&gt;
NAME=Clumsy&lt;br /&gt;
SOUND=snd_SPELL_CLUMSY&lt;br /&gt;
RUNES=UJ&lt;br /&gt;
CAST_TIME=1.0&lt;br /&gt;
RESOURCES=i_reag_blood_moss,i_reag_nightshade&lt;br /&gt;
RUNE_ITEM=i_rune_CLUMSY&lt;br /&gt;
SCROLL_ITEM=i_scroll_CLUMSY&lt;br /&gt;
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST&lt;br /&gt;
EFFECT_ID=i_fx_curse&lt;br /&gt;
EFFECT=3,15&lt;br /&gt;
DURATION=2*60.0,3*60.0&lt;br /&gt;
MANAUSE=4&lt;br /&gt;
SKILLREQ=MAGERY 10.0&lt;br /&gt;
INTERRUPT=100.0,100.0&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@EffectRemove&amp;diff=7934</id>
		<title>@EffectRemove</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@EffectRemove&amp;diff=7934"/>
				<updated>2022-05-01T19:13:17Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;==Description== This trigger fires when a spell memory item is removed (and after the @Destroy trigger of the item).   Fires on: * Spells   ==References== The follow...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a spell memory item is removed (and after the @Destroy trigger of the item).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The memory item.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] affected by the effect.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the spell.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || I || The spell ID&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || prevents default spell behaviour be executed when the spell item get removed. This is necessary when return 0 is used in @EffectAdd of the same spell.&lt;br /&gt;
For Summoning spells, returning 0 in @EffectRemove will prevent the summon to disappear. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Poisoning spells are not affected by this trigger&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@EffectAdd&amp;diff=7933</id>
		<title>@EffectAdd</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@EffectAdd&amp;diff=7933"/>
				<updated>2022-05-01T19:05:05Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: Created page with &amp;quot;==Description== This trigger fires when any type of effect memory is being added, like stat changes for s_bless, s_cunning... s_weaken ...   Fires on: * Spells   ==R...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when any type of effect memory is being added, like stat changes for s_bless, s_cunning... s_weaken ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The memory item.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] affected by the effect.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the spell.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || I || The spell ID&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || Let the memory exist but block default checks, perfect to override default effects and do some custom stuff.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Blocks any action and stops everything, also deletes the memory (Blocking any changes, this will cause also the effect to do not have duration).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Poisoning spells are not affected by this trigger&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Category:Spells&amp;diff=7932</id>
		<title>Category:Spells</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Category:Spells&amp;diff=7932"/>
				<updated>2022-05-01T18:51:39Z</updated>
		
		<summary type="html">&lt;p&gt;Gorgo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Spell Triggers}}&lt;br /&gt;
==Spells==&lt;br /&gt;
The following table lists all of the triggers that can be placed under a spell definition. All of the triggers here have an equivalent @Spell trigger on the [[Characters|character]] object.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@Effect]] || Fires when a character or item is hit by the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectAdd]] || Fires when a spell memory item is being added.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectRemove]] || Fires when a spell memory item is removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Fail (Spell Trigger)|@Fail]] || Fires when a character fails to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Select (Spell Trigger)|@Select]] || Fires when a character selects to cast the spell, or when Sphere checks if a character is capable of casting it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Start (Spell Trigger)|@Start]] || Fires when a character starts to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Success (Spell Trigger)|@Success]] || Fires when a character successfully casts the spell.&lt;br /&gt;
|}&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Gorgo</name></author>	</entry>

	</feed>