Skip to content

Target

CommandClientNeeds client
target [timeout]

Also searchable as: Target · wait for target · target cursor

target waits until the client shows a target cursor. It returns at once if one is already showing.

Parameter Meaning
timeout Optional. The longest to wait. Default: 2 seconds. A time is a number of ticks of 50 ms (20 is one second), or a whole number of seconds followed by
s (5s).

target does not say whether the cursor appeared. Check #TargCurs afterwards.

event macro 15 28 ; cast Greater Heal, which needs a target
target 3s
if #TargCurs = 1
event macro 22 0 ; target the last target
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.