Difference between revisions of "LObjectID"

From Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
{{rw}}
 
{{rw}}
 +
 +
The [[Var lObjectID|#lObjectID]] system variable contains the ID of the last used object. You can also write to this variable and use it in conjuction with [[event Macro|event Macro]] 17 (LastObject), which will use the object as if it was double-clicked with the mouse.
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 
+
set #lObjectID %carpentryTool
 +
event macro 17
 +
; crafting menu is now open
 +
...
  
 
</pre>
 
</pre>
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px |  
+
| Width=200px | [[event Macro|event Macro]]
 
|}
 
|}
 
----
 
----

Revision as of 22:23, 15 August 2005

#lObjectID

Last Action System Variables

Description

The #lObjectID system variable contains the ID of the last used object. You can also write to this variable and use it in conjuction with event Macro 17 (LastObject), which will use the object as if it was double-clicked with the mouse.

Example

set #lObjectID %carpentryTool
event macro 17
; crafting menu is now open
...

See Also

event Macro

Main_Page Documentation Last Action System Variables