LTargetID

From Wiki
Revision as of 10:09, 7 September 2007 by Seg (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
The #lTargetID system variable determines the id of the last target used. You can also write to this variable and use it in conjuction with "event Macro 22" (LastTarget), which will target the object as if it was clicked with the mouse.


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


Example

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

; wait for target cursor
target 5s

; carve the hides from the corpse
set #lTargetID %cowCorpse
set #lTargetKind 1 ; make sure it targets an object
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