Difference between revisions of "LTargetX"

From Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|Last Action|rw|The #lTargetX system variable determines the world x-coordinate of the last target used.}}
== #lTargetX ==
+
 
'''Last Action System Variables'''
+
 
=== Description ===
+
{{note|[[lTargetKind|#lTargetKind]] must be set to 2 or 3 for event Macro 22 to use the target position.}}
{{rw}}
+
 
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 +
; use the shovel
 +
set #lObjectID %shovel
 +
event Macro 17
  
 +
; wait for target cursor
 +
target 5s
  
 +
; mine a spot
 +
set #lTargetX 1000
 +
set #lTargetY 1000
 +
set #lTargetZ -1
 +
set #lTargetKind 3
 +
event Macro 22
 +
...
 
</pre>
 
</pre>
==== See Also ====
+
=See Also=
{|
+
{{Last Action}}
| Width=200px |
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Last_Action|Last Action System Variables]]
+
|}
+

Latest revision as of 09:09, 7 September 2007

The #lTargetX system variable determines the world x-coordinate of the last target used.


Note: #lTargetKind must be set to 2 or 3 for event Macro 22 to use the target position.


Example

; use the shovel
set #lObjectID %shovel
event Macro 17

; wait for target cursor
target 5s

; mine a spot
set #lTargetX 1000
set #lTargetY 1000
set #lTargetZ -1
set #lTargetKind 3
event Macro 22
...

See Also

Last Action

  • The last action system variables are adjusted when certain activities are performed in the Ultima Online Client.
#lObjectID Returns the id of the last used object
#lObjectType Returns the type of the last used object
#lTargetID Returns the id of the last target used
#lTargetX Returns the world x-coordinate of the last target used
#lTargetY Returns the world y-coordinate of the last target used
#lTargetZ Returns the world z-coordinate of the last target used
#lTargetKind Returns the kind of what was last targeted
#lTargetTile Returns the tile last targeted
#lLiftedID Returns the id of the object last dragged/lifted
#lLiftedType Returns the type of the object last dragged/lifted
#lLiftedKind Returns if an object is being dragged/lifted
#lSkill Returns the skill last used
#lSpell Returns the last spell cast