xxxxxxxxxx
{{macroapi}} __NOTOC__
Sets your current target to a nearby unit.
/target options name
== Aliases ==
:/tar
== Arguments ==
:;options : Options to search with, separated by commas, enclosed in [ ] (see below)
:;name : The string to search for in the unit's name.
===Options===
You may specify these options, if you wish to invert the logic of the option, put "no" in front of it (ex. noexists). This is mostly the same as the [[MACRO cast|cast]] options, but some options do not work as expected, see notes. For the conditionals like combat, stance, stealth, the test is performed on the ''player'', not the target. The ones that differ in functionality from [[MACRO cast|cast]] are listed here.
:;dead : No function (cannot target dead units using this command).
:;harm : No function, see [[MACRO targetenemy | targetenemy]].
:;help : No function, see [[MACRO targetfriend | targetfriend]].
:;target=unitid : Targets a target based on the unitid system (pet, pettarget, etc...). See [[MACRO cast|cast]]. Using this option, you do not need to specify a name argument.
== Notes ==
:This performs a search with all nearby units whose name '''begins''' with name.