Difference between revisions of "CharDir"

From Wiki
Jump to: navigation, search
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|Character Variables|ro| The #charDir system variable determines the direction the character is facing.}}
== #charDir ==
+
:
'''Miscellaneous System Variables'''
+
:
=== Description ===
+
{{ro}}
+
 
+
The #charDir system variable determines the direction the character is facing..
+
 
+
 
{| border="1" cellpadding="2"
 
{| border="1" cellpadding="2"
 
|+ Table of #charDir values
 
|+ Table of #charDir values
 
|-
 
|-
| width=100px style="background:#ffdead;" | Value || width=100px style="background:#ffdead;" | Facing
+
| width=100px style="background:#ffdead;" | Value || width=200px style="background:#ffdead;" | Facing
 
|-
 
|-
 
| 0 || North
 
| 0 || North
Line 19: Line 14:
 
|-
 
|-
 
| 3 || South East
 
| 3 || South East
 +
|-
 +
| 4 || South
 +
|-
 +
| 5 || South West
 +
|-
 +
| 6 || West
 +
|-
 +
| 7 || North West
 
|}
 
|}
  
==== Example ====
+
== Example ==
 
<pre>
 
<pre>
  
Line 31: Line 34:
  
 
</pre>
 
</pre>
==== See Also ====
+
 
{|
+
=See Also=
| Width=200px | [[Var_charPosX|&#0035;charPosX]] || Width=200px | [[Var_charPosY|&#0035;charPosY]]
+
{{Character Variables}}
| [[Var_charPosZ|&#0035;charPosZ]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Miscellaneous_Variables|Miscellaneous System Variables]]
+
|}
+

Latest revision as of 12:15, 13 October 2007

The #charDir system variable determines the direction the character is facing.
Table of #charDir values
Value Facing
0 North
1 North East
2 East
3 South East
4 South
5 South West
6 West
7 North West

Example


top:
if #CHARDIR = 0
	msg : Looking North $
wait 2s
goto top

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)