LTargetKind
From Wiki
⇔ | The #LTargetKind system variable determines the class of object that was last targeted. The possible values of this variable are listed in the table below. |
Setting | Object Class |
---|---|
1 | Object |
2 | Ground,Mountains,Caves |
3 | Resource: Tree,Water |
Note: | Not setting #LTargetKind (usually to 1) is by far one of the most common mistakes made when scripting. Simply put, every time that you use Event Macro 22 you must always make sure #LTargetKind is set properly or you will most likely have sporadic targeting problems. |
Object 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 ...
World 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 |