O'Reilly logo

Beginning Lua with World of Warcraft Addons by Paul Emmerich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required