C H A P T E R  2

image

Lua Basics

This chapter will use Lua as a stand-alone scripting language and will teach you the basics of the language. So you will write simple Lua scripts without using World of Warcraft at all. If you are already familiar with executing Lua scripts in World of Warcraft, it is of course no problem if you use the built-in Lua interpreter (for example with a mod like TinyPad or WoWLua). But I'm assuming that you have never used Lua before, so I'll start with a little tutorial to help you create a working development environment.

Feel free to skip this chapter if you already know Lua.

Using Lua

If you are using an IDE that comes ...

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.