#TargCurs is 1 while the client shows a target cursor and 0 otherwise. target waits
for it to become 1.
Setting it to 1 shows a target cursor yourself. Whatever the user then clicks lands in
#LTargetID (and #LTargetKind), without targeting anything
in the game: a simple way for a script to ask “which item?”.
Example
Section titled “Example”event SysMessage Click the item to use.set #TargCurs 1while #TargCurs = 1 wait 1set %item #LTargetIDdisplay ok You chose %itemhaltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.