Difference between revisions of "CharID"
From Wiki
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{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]].}} | |
| − | + | ||
| − | {| | + | |
| − | | | + | |
| − | + | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
| − | + | 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 | ||
</pre> | </pre> | ||
| − | {{ | + | =See Also= |
| + | {{Character Variables}} | ||
Latest revision as of 12: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) |