How to turn on/off action targeting with a macro or command?

Huge thanks Elvenbane! I’ve found your post and quoted it at the end.

For simplicity, I have also come up with the following one-line commands to enable action targeting:

/console SoftTargetEnemy 3

and to disable action targeting:

/console SoftTargetEnemy 0

For easy toggling action targeting on and off, I have referenced a WLK-style macro and created one for action targeting. Mouse left-click the macro to enable, and right-click it to disable:

/console SoftTargetEnemy 3
/stopmacro [button:1]
/console SoftTargetEnemy 0

The WLK-style “always compare item” macro I referenced. Mouse left-click to always compare, and right-click to compare only when holding Shift:

/console SET alwaysCompareItems 1
/stopmacro [button:1]
/console SET alwaysCompareItems 0

(^Macros with “/stopmacro [button:1]” was commonly used in the Wrath of the Lich King era to, for example, toggle off Rhonin’s speech: “Citizens of Dalaran! Raise your eyes to the skies and observe…”)

Using the same idea, I can create a macro to quickly toggle name plates and action targeting on/off for UI-free screenshots. Mouse left-click to enable name plates and action targeting, and right-click to disable them:

/console UnitNameFriendlyPlayerName 1
/console UnitNameNPC 1
/console SoftTargetEnemy 3
/stopmacro [button:1]
/console UnitNameFriendlyPlayerName 0
/console UnitNameNPC 0
/console SoftTargetEnemy 0

Quote:

1 Like