<?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=Darksun84</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=Darksun84"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special:Contributions/Darksun84"/>
		<updated>2026-04-20T21:28:18Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8089</id>
		<title>@GetHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8089"/>
				<updated>2023-03-09T21:25:43Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|@GetHit}}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This trigger fires when a character receives damage.&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]] being damaged.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the damage.&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'''|| '''  Sphere X only? ''' &lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The amount of damage being applied. (Before Slayer calulation if applicable)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The type of damage being applied.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || Hits will be fixed to this amount after the hit if the value is greater than it, default = maxhits.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMDAMAGECHANCE || IO || Sets the chance for the hitted part of the body (Armor or shield, if any) to be damaged (Default: 40% in Sphere D, 25% in Sphere X).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTPHYSICAL || I || The amount in % of the physical damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTPHYSICAL || I || The amount in % of the physical damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTFIRE || I || The amount in % of the fire damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTCOLD || I || The amount in % of the cold damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTPOISON || I || The amount in % of the poison damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGEPERCENTENERGY || I || The amount in % of the energy damage received, only set if Elemental Engine is enabled. || X&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.SPELL || I || Display the spell number that damaged the character. || X&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 damage from being applied.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8088</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8088"/>
				<updated>2023-03-08T20:13:10Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@ItemSmelt]] || Fires when the character smelt an item. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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;
| [[@SpellEffectAdd]] || Fires when a spell memory is added to the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectRemove]] || Fires the spell memory is removed from the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectTick]] || Fires when the character is hit the effect of a periodic spell (like Poison spell).|| X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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;
| [[THROWDAMTYPE]] ''damage flags'' || RW || y || Gets or sets the damage flags 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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=CHARDEF&amp;diff=8087</id>
		<title>CHARDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=CHARDEF&amp;diff=8087"/>
				<updated>2023-03-08T20:12:39Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|CHARDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
A CHARDEF block defines the basic properties of a [[Characters|character]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all character 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;
| [[ANIM]] || RW || ?? || Gets or sets a mask of animations that the character supports.  The default value is 0ffffff.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] || RW || ?? || Gets or sets the character's base defense without armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[AVERSIONS]] || RW || ?? || Gets or sets a list of things that the character does not like.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || ?? || Gets the defname of the character if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[BLOODCOLOR]] || RW || ?? || Gets or sets the character's blood colour (a value of -1 prevents the creature from bleeding at all.)&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || ?? || Gets or sets attributes for the character. See can_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || ?? || Gets or sets the character colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || ?? || Gets or sets the base damage that the character will deal without a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || ?? || Gets the minimum base damage the character will deal without a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || ?? || Gets the maximum base damage the character will deal without a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || ?? || Gets or sets defname of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESIRES]] || RW || ?? || Gets or sets a list of things that the character likes.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || ?? || Gets or sets the dexterity that is set when a character polymorphs into this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || R || ?? || Gets the ID that the character displays as.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOODTYPE]] || RW || ?? || Gets or sets a list of things that the character can eat.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || ?? || Gets or sets the height of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIREDAYWAGE]] || RW || ?? || Gets or sets how much gold is needed to hire the character for one day.&lt;br /&gt;
|-&lt;br /&gt;
| [[ICON]] || RW || ?? || Gets or sets the item that can be used to represent the character in figurine form.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || ?? || Gets or sets the ID of the character to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || ?? || Returns the number of this character that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || ?? || Gets or sets the intelligence that is set when a character polymorphs into this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[JOB]] || R || ?? || Gets the character's job title.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOOD]] || R || ?? || Gets the maximum food level that the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVERATE]] || RW || Y || Boost or limit the movement speed (based on DEX) with the specified rate.  The higher it is, the faster the NPC will be.  50 means 50% of speed, 200 means double speed.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || ?? || Gets or sets the name of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Y || Gets or sets the attack range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || ?? || Gets the maximum attack range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || ?? || Gets the minimum attack range of the character.&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 character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPNID]] || RW || ?? || Gets or sets the character ID to display as to clients who don't have a high enough [[RESDISP]] to see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || ?? || Gets or sets the minimum [[RESDISP]] required for a client to see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || ?? || Gets or sets the resources that the character is made of.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || ?? || Gets the number of different resources that the character is made of.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || ?? || Gets the [[BASEID]] of the nth resource that the character is made of. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || ?? || Gets the amount of the nth resource that the character is made of. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] || RW || ?? || Gets or sets the generic sound that the character makes. can be splitted into SOUNDHIT, SOUNDGETHIT, SOUNDDIE, SOUNDIDLE, SOUNDNOTICE, splitted values are optional, and when set it will have priority over default SOUND value.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUNDIDLE]] || RW || ?? || Gets or sets the iddle sound that the character makes. (can have -1 as value to prevent action-related sound to be played)&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUNDNOTICE]] || RW || ?? || Gets or sets the notice sound that the character makes. (can have -1 as value to prevent action-related sound to be played)&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUNDHIT]] || RW || ?? || Gets or sets the hit sound that the character makes. (can have -1 as value to prevent action-related sound to be played)&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUNDGETHIT]] || RW || ?? || Gets or sets the get hit sound that the character makes. (can have -1 as value to prevent action-related sound to be played)&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUNDDIE]] || RW || ?? || Gets or sets the die sound that the character makes. (can have -1 as value to prevent action-related sound to be played)&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || ?? || Gets or sets the strength that is set when a character polymorphs into this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || ?? || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG.BARDING.DIFF (X branch only)]] || RW || ?? || determine the difficulty of Enticement, Peacemaking and Provocation skills. If this tag isn't set, the old behaviour is used.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || y || Gets or sets a range of damage used for thrown objects.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || y || Gets or sets the constant damage used for thrown objects.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAMTYPE]] ''damage flags'' || RW || y || Gets or sets the damage flags used for thrown objects.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || y || Gets or sets the ID of an object to be thrown by NPCs.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || y || Gets or sets the range that an object can be thrown at.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || y || Gets or sets the range that an object can be thrown at with a default min of 2.&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] ''speech_defname'' || RW || ?? || Gets a list of speech handlers for the character, or adds a speech handler to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] ''event_defname'' || RW || ?? || Gets a list of event handlers for the character, or adds an event handler to the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;'''  Some properties can be overridden on a individual character basis.  For example, you can set TAG.OVERRIDE.MOVERATE on a specific NPC to speed up or slow down the speed at which that one NPC will move.&lt;br /&gt;
&lt;br /&gt;
==INI Overrides==&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;
| TAG.OVERRIDE.RUNNINGPENALTY || This special tag overrides the INI setting of the same name on a per character basis.&lt;br /&gt;
|-&lt;br /&gt;
| TAG.OVERRIDE.STAMINALOSSATWEIGHT || This special tag overrides the INI setting of the same name on a per character basis.&lt;br /&gt;
|}&lt;br /&gt;
==Others==&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;
| TAG.NoMoveTill|| doesn't allow char to move if TAG.NoMoveTill &amp;gt; SERV.Time&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
This first example shows a &amp;quot;base&amp;quot; CHARDEF... these are identified by the fact that the CHARDEF keyword is followed by a number:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[CHARDEF 01]        // This is a &amp;quot;base&amp;quot; chardef for character animation 01 (from the mul/uop files)&lt;br /&gt;
// This is the start of the &amp;quot;base&amp;quot; properties.&lt;br /&gt;
// Values set in the base properties cannot have a range (you cannot use {1 10})&lt;br /&gt;
DEFNAME=c_ogre                    // The DEFNAME is a friendly name to reference this CHARDEF&lt;br /&gt;
NAME=ogre                         // This is the creature's name as seen in-game&lt;br /&gt;
ICON=i_pet_ogre                   // If the creature is shrunk, this is the item that will result&lt;br /&gt;
SOUND=snd_monster_ogre1           // This is the start of the sound entries for this creature&lt;br /&gt;
CAN=MT_WALK|MT_USEHANDS|MT_EQUIP  // These flags are defined in the can_flags area of sphere_defs.scp&lt;br /&gt;
DAM=18,22                         // This is the range of damage they creature will cause when not using a weapon&lt;br /&gt;
ARMOR=30                          // ARMOR is the physical damage resistance *before* additional armor is equipped&lt;br /&gt;
DESIRES=r_forests,t_gold,t_coin,t_gem,t_arock&lt;br /&gt;
AVERSIONS=t_trap,r_civilization&lt;br /&gt;
FOODTYPE=35 t_meat_raw            // This is the maximum amount (and types) of food the creature eats&lt;br /&gt;
RESOURCES=2 i_ribs_raw            // If this creature's corpse is carved, these resources will be created&lt;br /&gt;
BLOODCOLOR=colors_blood           // This is the color of this creatures blood&lt;br /&gt;
MOVERATE=100&lt;br /&gt;
TAG.Barding.Diff=48.8             // When a TAG is added to the &amp;quot;base properties&amp;quot;, all existing creatures are affected&lt;br /&gt;
TAG.SlayerGroup=OGRE,REPOND&lt;br /&gt;
TEVENTS=e_carnivores2             // EVENTS are collections of triggers used by CHARDEFs. Each TEVENT must be on its own line.&lt;br /&gt;
CATEGORY=Monsters                 // CATEGORY, SUBSECTION, and DESCRIPTION are used by the GM tool &amp;quot;Axis&amp;quot;&lt;br /&gt;
SUBSECTION=Giants&lt;br /&gt;
DESCRIPTION=Ogre&lt;br /&gt;
&lt;br /&gt;
// This is the end of the &amp;quot;base&amp;quot; properties, and the start of the &amp;quot;triggers&amp;quot;.&lt;br /&gt;
// You can override *most* base properties in a trigger if necessary.&lt;br /&gt;
&lt;br /&gt;
ON=@Create                        // This is the @Create trigger&lt;br /&gt;
   NAME=#NAMES_OGRE               // #NAMES_OGRE is an array of names defined in sphere_names.scp&lt;br /&gt;
   TITLE=the ogre&lt;br /&gt;
   NPC=brain_monster              // The available &amp;quot;brains&amp;quot; are defined in sphere_defs.scp&lt;br /&gt;
   FAME={1500 1999}               // The { } marks are used to set a range of possible values&lt;br /&gt;
   KARMA={-1500 -1999}&lt;br /&gt;
   STR={165 195}&lt;br /&gt;
   MAXHITS={100 120}              // If MAXHITS is not set, the default value is the same as STR&lt;br /&gt;
   DEX={45 65}&lt;br /&gt;
   MAXSTAM={45 65}                // If MAXSTAM is not set, the default value is the same as DEX&lt;br /&gt;
   INT={45 70}&lt;br /&gt;
   MAXMANA={45 70}                // If MAXMANA is not set, the default value is the same as INT&lt;br /&gt;
   MAGICRESISTANCE={55.0 70.0}&lt;br /&gt;
   PARRYING={60.0 70.0}&lt;br /&gt;
   TACTICS={60.0 70.0}&lt;br /&gt;
   WRESTLING={70.0 80.0}&lt;br /&gt;
   MODAR={0 5}                    // Setting MODAR in @Create lets us add o-5 more ARMOR to this creature&lt;br /&gt;
   RESCOLD={15 25}&lt;br /&gt;
   RESENERGY={15 25}&lt;br /&gt;
   RESFIRE={15 25}&lt;br /&gt;
   RESPOISON={15 25}&lt;br /&gt;
ON=@NPCRestock&lt;br /&gt;
   ITEM=loot_ogre                 // This references a TEMPLATE in the sphere_templates_loot.scp file&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Success_(Spell_Trigger)&amp;diff=8086</id>
		<title>@Success (Spell Trigger)</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Success_(Spell_Trigger)&amp;diff=8086"/>
				<updated>2023-03-01T16:31:50Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character successfully casts a spell.&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 source of the spell. Could be the [[Items|item]] used to cast the spell (e.g. a wand or scroll) or the [[Characters|character]] casting the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] casting the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] casting 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 that was cast.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The strength of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CREATEOBJECT1 || IO || For field spells, overrides the item [[BASEID]] to use for the east-west direction.&lt;br /&gt;
&lt;br /&gt;
For summon spells, overrides the character [[BASEID]] to summon.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CREATEOBJECT2 || IO || For field spells, overrides the item [[BASEID]] to use for the north-south direction.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIELDGAUGE || IO || For field spells, overrides the default gauge of the field (1).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIELDWIDTH || IO || For field spells, overrides the default width of the field (5).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.AREARADIUS || IO || For Area of effect (AoE) spells, overrides the default radius of the effect (4).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECTCOLOR || IO || For field spells, overrides the color of the fields.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DURATION || IO ||  Overrides the default duration of spell in tenths of second (local.duration = 10 is 1 second).  &lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || Overrides the default damage type of spell. (Check sphere_defs.scp &amp;quot;dam_flags&amp;quot; definition for damage types)&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 || Aborts casting the spell.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Success_(Spell_Trigger)&amp;diff=8085</id>
		<title>@Success (Spell Trigger)</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Success_(Spell_Trigger)&amp;diff=8085"/>
				<updated>2023-03-01T16:31:08Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character successfully casts a spell.&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 source of the spell. Could be the [[Items|item]] used to cast the spell (e.g. a wand or scroll) or the [[Characters|character]] casting the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] casting the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] casting 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 that was cast.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The strength of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CREATEOBJECT1 || O || For field spells, overrides the item [[BASEID]] to use for the east-west direction.&lt;br /&gt;
&lt;br /&gt;
For summon spells, overrides the character [[BASEID]] to summon.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CREATEOBJECT2 || O || For field spells, overrides the item [[BASEID]] to use for the north-south direction.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIELDGAUGE || O || For field spells, overrides the default gauge of the field (1).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.FIELDWIDTH || O || For field spells, overrides the default width of the field (5).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.AREARADIUS || O || For Area of effect (AoE) spells, overrides the default radius of the effect (4).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECTCOLOR || O || For field spells, overrides the color of the fields.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DURATION || I ||  Overrides the default duration of spell in tenths of second (local.duration = 10 is 1 second).  &lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || I || Overrides the default damage type of spell. (Check sphere_defs.scp &amp;quot;dam_flags&amp;quot; definition for damage types)&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 || Aborts casting the spell.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Effect&amp;diff=8084</id>
		<title>@Effect</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Effect&amp;diff=8084"/>
				<updated>2023-03-01T16:30:23Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when an object is hit by the effects of a spell. The object may have been targeted directly or it may have been hit by an area-effect spell.&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 [[Items|item]] used to cast the spell (e.g. a wand or scroll).&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] or [[Items|item]] being hit by the spell.&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 || IO || The number of the spell that has hit the object.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The strength of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || A multiplier for the spell's duration or effect.&amp;lt;br /&amp;gt;'''Note:''' Only used when a character is hit by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| Local.CreateObject1 || IO || Changes the ID of the effect for this spell, IE: Local.CreateObject1=0eed in FlameStrike spell will change the Fire Column for a Gold Coin.&lt;br /&gt;
|-&lt;br /&gt;
| local.Duration || IO || Overrides the default duration of spell in tenths of second (local.duration = 10  is 1 second).&lt;br /&gt;
|-&lt;br /&gt;
| local.Effect || IO || Changes the EFFECT value of the spell (For changing EFFECT_ID see Local.CreateObject1).&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectColor || IO || Changes the color of the effect for this spell.&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectRender || IO || Changes the Render Mode for this spell's effect.&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectExplode || IO || Sets wether the effect should explode or not after reaching the target.&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 || For scripted spells, prevents any hardcoded behaviour from taking place.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the object from being affected by the spell.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' For the recall and gate travel spells, returning 0 prevents the spell from proceeding and returning 1 has no effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8083</id>
		<title>@GetHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8083"/>
				<updated>2023-02-27T22:46:55Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|@GetHit}}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This trigger fires when a character receives damage.&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]] being damaged.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the damage.&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'''|| '''  Sphere X only? ''' &lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The amount of damage being applied. (Before Slayer calulation if applicable)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The type of damage being applied.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || Hits will be fixed to this amount after the hit if the value is greater than it, default = maxhits.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMDAMAGECHANCE || IO || Sets the chance for the hitted part of the body (Armor or shield, if any) to be damaged (Default: 40% in Sphere D, 25% in Sphere X).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.SPELL || I || Display the spell number that damaged the character. || X&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 damage from being applied.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8082</id>
		<title>@GetHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8082"/>
				<updated>2023-02-27T22:46:35Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|@GetHit}}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This trigger fires when a character receives damage.&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]] being damaged.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the damage.&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'''|| '''  Sphere X only? ''' &lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The amount of damage being applied. (Before Slayer calulation if applicable)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The type of damage being applied.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || Hits will be fixed to this amount after the hit if the value is greater than it, default = maxhits.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMDAMAGECHANCE || IO || Sets the chance for the hitted part of the body (Armor or shield, if any) to be damaged (Default: 40% in Sphere D, 25% in Sphere X).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.SPELL || I || Display the spell number that damaged the character.&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 damage from being applied.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8081</id>
		<title>@GetHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=8081"/>
				<updated>2023-02-27T21:44:18Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|@GetHit}}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This trigger fires when a character receives damage.&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]] being damaged.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the damage.&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 || IO || The amount of damage being applied. (Before Slayer calulation if applicable)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The type of damage being applied.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || Hits will be fixed to this amount after the hit if the value is greater than it, default = maxhits.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMDAMAGECHANCE || IO || Sets the chance for the hitted part of the body (Armor or shield, if any) to be damaged (Default: 40% in Sphere D, 25% in Sphere X).&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 damage from being applied.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Map_Points&amp;diff=8079</id>
		<title>Map Points</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Map_Points&amp;diff=8079"/>
				<updated>2023-02-09T17:55:57Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Map_Points}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A map point is a specific location on a world map, defined by X, Y, Z and M coordinates. Map point references, such as ''P'' from the [[Characters|character]]/[[Items|item]] object and ''MAP(x,y,map)'' from the [[Server|server]] object can be used to access additional information about a map point such as what static items exist at the location. The following tables detail the various properties of map points 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 contains the map point). 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 || Gets the [[Regions|region]] that contains the map point.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that contains the map point.&lt;br /&gt;
|-&lt;br /&gt;
| [[SECTOR]] || R || Gets the [[Sectors|sector]] that contains the map point.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all map point 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;
| [[COMPONENTS]] || R || Gets the number of components of the [[MULTI]] at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.ID'' || R || Gets the ID of the nth component at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.MULTI'' || R || Gets the UID of the MULTI item. &lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.Z'' || R || Gets the Z level of the nth component at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.KEY'' || R || Gets the ''KEY'' property from the [[ITEMDEF]] of the nth component at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, check_multis'' || R || Returns 1 if an item exists within ''distance'' tiles of the location whose [[TYPE]] matches a specified type.&lt;br /&gt;
|-&lt;br /&gt;
| [[M]]&amp;lt;br /&amp;gt;[[MAP]] || R || Gets the location's map number.&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]] || R || Gets the number of static items at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.ID'' || R || Gets the ID of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.COLOR'' || R || Gets the hue of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.Z'' || R || Gets the Z level of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.KEY'' || R || Gets the ''KEY'' property from the [[ITEMDEF]] of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[TERRAIN]] || R || Gets the terrain's ID at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[TERRAIN]].Z || R || Gets the terrain's Z level at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || R || Gets the terrain's TYPE at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]] || R || Gets the X coordinate of the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[Y]] || R || Gets the Y coordinate of the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z coordinate of the location.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Map_Points&amp;diff=8078</id>
		<title>Map Points</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Map_Points&amp;diff=8078"/>
				<updated>2023-02-09T17:55:38Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Properties and Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Map_Points}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A map point is a specific location on a world map, defined by X, Y, Z and M coordinates. Map point references, such as ''P'' from the [[Characters|character]]/[[Items|item]] object and ''MAP(x,y,map)'' from the [[Server|server]] object can be used to access additional information about a map point such as what static items exist at the location. The following tables detail the various properties of map points 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 contains the map point). 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 || Gets the [[Regions|region]] that contains the map point.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that contains the map point.&lt;br /&gt;
|-&lt;br /&gt;
| [[SECTOR]] || R || Gets the [[Sectors|sector]] that contains the map point.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all map point 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;
| [[COMPONENTS]] || R || Gets the number of components of the [[MULTI]] at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.ID'' || R || Gets the ID of the nth component at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.MULTI'' || R || Gets the UID of the MULTI item. &lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.Z'' || R || Gets the Z level of the nth component at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]]''.n.KEY'' || R || Gets the ''KEY'' property from the [[ITEMDEF]] of the nth component at the location. (zero-based)&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, check_multis'' || R || Returns 1 if an item exists within ''distance'' tiles of the location whose [[TYPE]] matches a specified type.&lt;br /&gt;
|-&lt;br /&gt;
| [[M]]&amp;lt;br /&amp;gt;[[MAP]] || R || Gets the location's map number.&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]] || R || Gets the number of static items at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.ID'' || R || Gets the ID of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.COLOR'' || R || Gets the hue of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.Z'' || R || Gets the Z level of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATICS]]''.n.KEY'' || R || Gets the ''KEY'' property from the [[ITEMDEF]] of the nth item at the location. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[TERRAIN]] || R || Gets the terrain's ID at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[TERRAIN]].Z || R || Gets the terrain's Z level at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || R || Gets the terrain's TYPE at the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]] || R || Gets the X coordinate of the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[Y]] || R || Gets the Y coordinate of the location.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z coordinate of the location.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Smelt&amp;diff=8070</id>
		<title>@Smelt</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Smelt&amp;diff=8070"/>
				<updated>2023-01-05T20:11:06Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger is fired when an item is being smelt nearby a forge or by using the SMELT command.   Fires on: * Characters   ==References== The following obj...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when an item is being smelt nearby a forge or by using the SMELT command.&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 item being smelt.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] ||The character smelting the item..&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 || IO || Mining skill of the character (adjusted value, base skill + stat bonuses).&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The total amount of different resources the item being smelted has.(For example a mace is made of iron  ingots and logs, so the number of different resources is 2,  for t_ore item the values is always 1.&lt;br /&gt;
|-&lt;br /&gt;
| local.resource.''n''.ID|| IO ||  The ID of the itemdef that will be created if the smelting check is succesfull, n starts at 0.&lt;br /&gt;
|-&lt;br /&gt;
| local.resource.''n''.amount|| IO ||  The amount value that will set on that particular resource if the smelting check is succesfull, n starts at 0.&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 || Fails the smelting attempt and block default smelting behaviour..&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@ItemSmelt&amp;diff=8069</id>
		<title>@ItemSmelt</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@ItemSmelt&amp;diff=8069"/>
				<updated>2023-01-05T20:10:19Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the character is smelting an item by a forge or by using the SMELT command.&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 item being smelt.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] ||The character smelting the item..&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 || IO || Mining skill of the character (adjusted value, base skill + stat bonuses).&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The total amount of different resources the item being smelted has.(For example a mace is made of iron  ingots and logs, so the number of different resources is 2,  for t_ore item the values is always 1.&lt;br /&gt;
|-&lt;br /&gt;
| local.resource.''n''.ID|| IO ||  The ID of the itemdef that will be created if the smelting check is succesfull, n starts at 0.&lt;br /&gt;
|-&lt;br /&gt;
| local.resource.''n''.amount|| IO ||  The amount value that will set on that particular resource if the smelting check is succesfull, n starts at 0.&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 || Fails the smelting attempt and block default smelting behaviour..&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@ItemSmelt&amp;diff=8068</id>
		<title>@ItemSmelt</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@ItemSmelt&amp;diff=8068"/>
				<updated>2023-01-05T20:09:59Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger is fired when the character is smelting an item by a forge or by using the SMELT command.   Fires on: * Characters   ==References== The follow...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the character is smelting an item by a forge or by using the SMELT command.&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 item being smelt.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] ||The character smelting the item..&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 || IO || Mining skill of the character (adjusted value, base skill + stat bonuses).&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || I || The total amount of different resources the item being smelted has.(For example a mace is made of iron  ingots and logs, so the number of different resources is 2,  for t_ore item the values is always 1.&lt;br /&gt;
|-&lt;br /&gt;
| local.resource.''n''.ID|| IO ||  The ID of the itemdef that will be created if the smelting check is succesfull, n starts at 0.&lt;br /&gt;
| local.resource.''n''.amount|| IO ||  The amount value that will set on that particular resource if the smelting check is succesfull, n starts at 0.&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 || Fails the smelting attempt and block default smelting behaviour..&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8067</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8067"/>
				<updated>2023-01-05T20:02:15Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@ItemSmelt]] || Fires when the character smelt an item. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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;
| [[@SpellEffectAdd]] || Fires when a spell memory is added to the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectRemove]] || Fires the spell memory is removed from the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectTick]] || Fires when the character is hit the effect of a periodic spell (like Poison spell).|| X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8066</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8066"/>
				<updated>2023-01-05T20:01:58Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X Only?'''&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;
|[[@Carve]] || Fires when a corpse item is being carved. || X&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;
| [[@Smelt]] || Fires when the item is being smelt. || X&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8065</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8065"/>
				<updated>2023-01-05T20:01:39Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X Only?'''&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;
|-[[@Carve]] || Fires when a corpse item is being carved. || X&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;
| [[@Smelt]] || Fires when the item is being smelt. || X&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8064</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8064"/>
				<updated>2023-01-05T20:01:18Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X Only?'''&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;
|-[[@Carve]] || Fires when a corpse item is being carved. || X&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;
| [[@Smelt] || Fires when the item is being smelt. || X&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8063</id>
		<title>SPELL</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8063"/>
				<updated>2023-01-04T21:00:35Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only? '''&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. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectTick]] || Fires when a character is under effect of a periodic spell (like Poison spell). || X&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@EffectTick&amp;diff=8062</id>
		<title>@EffectTick</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@EffectTick&amp;diff=8062"/>
				<updated>2023-01-04T21:00:15Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger fires when a character is under effect of a periodic spell (like Poison spell).   Fires on: * Characters   ==References== The following object...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is under effect of a periodic spell (like Poison spell).&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 object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| ARGO || The spell memory.(Argo.link holds the caster UID)&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 || Spell Id&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || Spell Level&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CHARGES || IO || How many charges are left on the spell memory, this will be automatically decreased by 1 at the end of the method execution. Default value is 1.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DELAY || IO || How many seconds until the next spell effect tick. Default value is 5 seconds.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECT || IO || The effect value of the spell, harmful or beneficial (if SPELLFLAG_HEAL is enabled).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || The damage type of the spell, if you are making a custom spell you must set a value otherwise the spell will not cause damage.&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 || Destroy the spell memory and block the spell execution.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || If the spell has the flag SPELLFLAG_SCRIPTED blocks the spell execution&lt;br /&gt;
&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8061</id>
		<title>SPELL</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8061"/>
				<updated>2023-01-04T20:59:59Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only? '''&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. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@EffectTick]] || Fires when a character is under effect of a periodic spell (like Poison spell). &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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectRemove&amp;diff=8060</id>
		<title>@SpellEffectRemove</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectRemove&amp;diff=8060"/>
				<updated>2023-01-04T20:58:09Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger fires when a spell memory item is going to be removed from the character.   Fires on: * Characters   ==References== The following object refer...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a spell memory item is going to be removed from the character.&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;
| [[I]] || The target of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The caster of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The spell item.&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 || IO || The spell number.&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;
|0 || Remove the spell memory item but don't execute the default spell behaviour when the spell item is removed.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectAdd&amp;diff=8059</id>
		<title>@SpellEffectAdd</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectAdd&amp;diff=8059"/>
				<updated>2023-01-04T20:56:58Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a spell memory item is equipped on the character.&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 target of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The caster of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The spell item.&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 || IO || The spell number.&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;
|0 || Let default checks happens.&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;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectAdd&amp;diff=8058</id>
		<title>@SpellEffectAdd</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectAdd&amp;diff=8058"/>
				<updated>2023-01-04T20:56:39Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger fires when a spell memory item is equipped on the character.   Fires on: * Characters   ==References== The following object references are exp...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a spell memory item is equipped on the character.&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;
| [[I]] || The target of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The caster of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The spell item.&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 || IO || The spell number.&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;
|0 || Let default checks happens.&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;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8057</id>
		<title>@SpellEffectTick</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8057"/>
				<updated>2023-01-04T20:54:10Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is under effect of a periodic spell (like Poison spell).&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 object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| ARGO || The spell memory.(Argo.link holds the caster UID)&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 || Spell Id&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || Spell Level&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CHARGES || IO || How many charges are left on the spell memory, this will be automatically decreased by 1 at the end of the method execution. Default value is 1.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DELAY || IO || How many seconds until the next spell effect tick. Default value is 5 seconds.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECT || IO || The effect value of the spell, harmful or beneficial (if SPELLFLAG_HEAL is enabled).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || The damage type of the spell, if you are making a custom spell you must set a value otherwise the spell will not cause damage.&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 || Destroy the spell memory and block the spell execution.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || If the spell has the flag SPELLFLAG_SCRIPTED blocks the spell execution&lt;br /&gt;
&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8056</id>
		<title>@SpellEffectTick</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8056"/>
				<updated>2023-01-04T20:53:55Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is under effect of a periodic spell (like Poison spell).&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 object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| ARGO || IO || The spell memory.(Argo.link holds the caster UID)&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 || Spell Id&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || Spell Level&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CHARGES || IO || How many charges are left on the spell memory, this will be automatically decreased by 1 at the end of the method execution. Default value is 1.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DELAY || IO || How many seconds until the next spell effect tick. Default value is 5 seconds.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECT || IO || The effect value of the spell, harmful or beneficial (if SPELLFLAG_HEAL is enabled).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || The damage type of the spell, if you are making a custom spell you must set a value otherwise the spell will not cause damage.&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 || Destroy the spell memory and block the spell execution.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || If the spell has the flag SPELLFLAG_SCRIPTED blocks the spell execution&lt;br /&gt;
&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8055</id>
		<title>@SpellEffectTick</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8055"/>
				<updated>2023-01-04T20:53:13Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is under effect of a periodic spell (like Poison spell).&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 object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The object that is going to be affected.&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 || Spell Id&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || Spell Level&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CHARGES || IO || How many charges are left on the spell memory, this will be automatically decreased by 1 at the end of the method execution. Default value is 1.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DELAY || IO || How many seconds until the next spell effect tick. Default value is 5 seconds.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECT || IO || The effect value of the spell, harmful or beneficial (if SPELLFLAG_HEAL is enabled).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || The damage type of the spell, if you are making a custom spell you must set a value otherwise the spell will not cause damage.&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 || Destroy the spell memory and block the spell execution.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || If the spell has the flag SPELLFLAG_SCRIPTED blocks the spell execution&lt;br /&gt;
&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8054</id>
		<title>@SpellEffectTick</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellEffectTick&amp;diff=8054"/>
				<updated>2023-01-04T20:52:26Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is under effect of a periodic spell (like Poison spell).&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 object that is going to be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The object that is going to be affected.&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 || Spell Id&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || Spell Level&lt;br /&gt;
|-&lt;br /&gt;
| ARGO || IO || The spell memory.(Argo.link holds the caster UID)&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.CHARGES || IO || How many charges are left on the spell memory, this will be automatically decreased by 1 at the end of the method execution. Default value is 1.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DELAY || IO || How many seconds until the next spell effect tick. Default value is 5 seconds.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.EFFECT || IO || The effect value of the spell, harmful or beneficial (if SPELLFLAG_HEAL is enabled).&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.DAMAGETYPE || IO || The damage type of the spell, if you are making a custom spell you must set a value otherwise the spell will not cause damage.&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 || Destroy the spell memory and block the spell execution.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || If the spell has the flag SPELLFLAG_SCRIPTED blocks the spell execution&lt;br /&gt;
&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8053</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8053"/>
				<updated>2023-01-04T20:49:45Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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;
| [[@SpellEffectAdd]] || Fires when a spell memory is added to the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectRemove]] || Fires the spell memory is removed from the character. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffectTick]] || Fires when the character is hit the effect of a periodic spell (like Poison spell).|| X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8052</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8052"/>
				<updated>2023-01-04T20:48:00Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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;
| [[@SpellEffectTick]] || Fires when the character is hit the effect of a periodic spell (like Poison spell).|| X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8051</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8051"/>
				<updated>2023-01-04T20:47:15Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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;
| [[@SpellEffectTick]] || Fires when the character is hit the effect of a periodic spell (like Poison 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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8050</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8050"/>
				<updated>2023-01-04T08:10:47Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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). || X&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSHIPS]] || RW || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8049</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8049"/>
				<updated>2023-01-04T08:10:23Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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 || 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 || Added 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). || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8048</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8048"/>
				<updated>2023-01-04T08:07:54Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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''' || '''Sphere X only?'''&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. || X&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast. || X&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8047</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8047"/>
				<updated>2023-01-04T08:06:14Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || X&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''' || '''Sphere X only?'''&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast.&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8046</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8046"/>
				<updated>2023-01-03T18:55:19Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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. || Yes&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''' || '''Sphere X only?'''&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast.&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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''' || '''Sphere X only?'''&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8045</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8045"/>
				<updated>2023-01-03T18:52:55Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a [[SPELL|spell]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[SPELL|spell]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8044</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8044"/>
				<updated>2023-01-03T18:52:19Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a [[spell|SPELL]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[spell|SPELL]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8043</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8043"/>
				<updated>2023-01-03T18:51:16Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a [[[spell]|[SPELL]]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[[spell]|[SPELL]]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8042</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8042"/>
				<updated>2023-01-03T18:50:56Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a [[spell]|[SPELL]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[spell]|[[SPELL]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8041</id>
		<title>SPELL</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=SPELL&amp;diff=8041"/>
				<updated>2023-01-03T18:49:14Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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''' || '''Sphere X only? '''&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. || X&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8040</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8040"/>
				<updated>2023-01-03T18:48:14Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a [[spell]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[spell]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8039</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8039"/>
				<updated>2023-01-03T18:48:01Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select a[[spell]] to cast.&lt;br /&gt;
When assigning spells to a NPC make sure these spells does not have the SPELLFLAG_PLAYERONLY flag.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| local.healthreshold || IO || This value determines at what health threshold (in percent) the NPC will successfully select a [[spell]] with the SPELLFLAG_HEAL flag. The value is taken from the [[sphere.ini]] property NPCHealThreshold and the default value is 30.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8038</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8038"/>
				<updated>2023-01-03T18:10:57Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select the spell to cast.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8037</id>
		<title>@NpcActCast</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@NpcActCast&amp;diff=8037"/>
				<updated>2023-01-03T18:09:30Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: Created page with &amp;quot;==Description== This trigger is fired when the NPC is about to select the spell to cast.   Fires on: * Characters   ==References== The following object references are expl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger is fired when the NPC is about to select the spell to cast.&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;
| [[ARGO]] || The current NPC's target.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The NPC caster. &lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The NPC caster.&lt;br /&gt;
|-&lt;br /&gt;
| [[REF1]] ||The new target, this will override the target set on [[ARGO]].&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 || IO || The spell being cast&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook.&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 || Interrupts the spell selection.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8036</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=8036"/>
				<updated>2023-01-03T18:01:27Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Triggers */&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;
| [[@NpcActCast]] || Fires when the NPC is selecting the spell to cast.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=7891</id>
		<title>TYPEDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=7891"/>
				<updated>2021-08-04T10:40:08Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: &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 = The creature ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2 = The current number of creatures spawned from this point&lt;br /&gt;
* MOREX = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ = 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;
'''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;
 t_spawn_item             69   // = spawn other items.&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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7890</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7890"/>
				<updated>2021-04-07T10:52:08Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* References */&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.&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.&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.&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;
| [[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'' || W || Turns the character to face a specified object or SRC.&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;
| [[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;
| [[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;
| [[@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;
| [[@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>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Effect&amp;diff=7872</id>
		<title>@Effect</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Effect&amp;diff=7872"/>
				<updated>2018-09-03T15:19:57Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when an object is hit by the effects of a spell. The object may have been targeted directly or it may have been hit by an area-effect spell.&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 [[Items|item]] used to cast the spell (e.g. a wand or scroll).&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] or [[Items|item]] being hit by the spell.&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 || IO || The number of the spell that has hit the object.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The strength of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || A multiplier for the spell's duration or effect.&amp;lt;br /&amp;gt;'''Note:''' Only used when a character is hit by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| Local.CreateObject1 || IO || Changes the ID of the effect for this spell, IE: Local.CreateObject1=0eed in FlameStrike spell will change the Fire Column for a Gold Coin.&lt;br /&gt;
|-&lt;br /&gt;
| local.Duration || IO || Changes the duration of the spell.&lt;br /&gt;
|-&lt;br /&gt;
| local.Effect || IO || Changes the EFFECT value of the spell (For changing EFFECT_ID see Local.CreateObject1).&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectColor || IO || Changes the color of the effect for this spell.&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectRender || IO || Changes the Render Mode for this spell's effect.&lt;br /&gt;
|-&lt;br /&gt;
| local.EffectExplode || IO || Sets wether the effect should explode or not after reaching the target.&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 || For scripted spells, prevents any hardcoded behaviour from taking place.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the object from being affected by the spell.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' For the recall and gate travel spells, returning 0 prevents the spell from proceeding and returning 1 has no effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Darksun84</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7863</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7863"/>
				<updated>2017-09-21T15:39:13Z</updated>
		
		<summary type="html">&lt;p&gt;Darksun84: /* 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 Experimental 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.&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.&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.&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;
| [[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 || Gets or sets the character's age since creation, in seconds.&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'' || W || Turns the character to face a specified object or SRC.&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;
| [[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;
| [[RESFIRE]] || RW || Gets or sets the character's 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;
| [[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;
| [[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;
| [[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.&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;
| [[@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;
| [[@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;
| [[@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>Darksun84</name></author>	</entry>

	</feed>