Difference between revisions of "CharID"

From Wiki
Jump to: navigation, search
(→‎See Also)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
−
__NOTOC__
+
{{header|Character Variables|ro| The #charID system variable determines the id of your character. This is a unique identifier, so it can be used to identify different characters and make specific actions depending on what character it is.  This variable can also be used as a container for [[findItem]].}}
−
== #charID ==
+
−
'''Miscellaneous System Variables'''
+
−
=== Description ===
+
−
{{ro}}
+
  
−
The #charID system variable determines the id of your character. This is a unique identifier, so it can be used to identify different characters and make specific actions depending on what character it is.
 
  
−
==== Example ====
+
== Example ==
 
<pre>
 
<pre>
  
−
call specific_char_variables.txt
+
findItem *
−
if #charID <> %charID
+
for #findIndex 1 #findCnt
 
{
 
{
−
event sysmessage You are using this script for the wrong character!  Halting Script!
+
  if #findId <> #charId
−
halt
+
    event ExMsg #findId 3 0 This is someone or something else.
 +
  if #findId = #charId
 +
    event ExMsg #charID 3 0 This is me!
 
}
 
}
 +
halt
  
 
</pre>
 
</pre>
−
==== See Also ====
+
=See Also=
−
{|
+
{{Character Variables}}
−
|}
+
−
----
+
−
{|
+
−
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Character|Character Variables]]
+
−
|}
+

Latest revision as of 13:15, 13 October 2007

⇒ The #charID system variable determines the id of your character. This is a unique identifier, so it can be used to identify different characters and make specific actions depending on what character it is. This variable can also be used as a container for findItem.


Example


findItem *
for #findIndex 1 #findCnt
{
  if #findId <> #charId
    event ExMsg #findId 3 0 This is someone or something else.
  if #findId = #charId
    event ExMsg #charID 3 0 This is me!
}
halt

See Also

Character Variables

  • The character category of system variables contains information specific to the character in the current instance of Ultima Online that EasyUO is attached to.
#charPosX ⇒ Returns the characters world X-coordinate
#charPosY ⇒ Returns the characters world Y-coordinate
#charPosZ ⇒ Returns the characters world Z-coordinate
#charDir ⇒ Returns the direction the character is facing
#charStatus ⇒ Returns different states that the character can be in
#charID ⇒ Returns the id of the character
#charGhost ⇒ Returns if your character is dead
#backpackID ⇒ Displays the ID of your player's backPack (Inventory)