C H A P T E R  12

image

Macros

For anyone learning Lua to get the most out of WoW, it's a safe bet you already have a few macros in your action bars. They can be incredibly useful when you want to perform complex tasks like casting different spells on different targets based on conditions, with just one button. Such conditions can also be quite complex; for example, you can detect whether your current target is hostile or friendly, alive or dead.

If you currently do have any macros in your action bars, did you create them yourself or did you copy and paste them from somewhere? If you created them yourself, did you know exactly what you were doing? ...

Get Beginning Lua with World of Warcraft Addons now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.