lua:scripting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua:scripting [2022/11/12 15:29] – [Conditions] utedass | lua:scripting [2022/11/12 22:12] (current) – [Examples] utedass | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ====== Lua in WoW ====== | ====== Lua in WoW ====== | ||
| + | * ''/ | ||
| * ''/ | * ''/ | ||
| * ''/ | * ''/ | ||
| + | * ''/ | ||
| + | * ''/ | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| ====== Cheat sheet ====== | ====== Cheat sheet ====== | ||
| Line 29: | Line 35: | ||
| ===== Variables ===== | ===== Variables ===== | ||
| + | Type depending on assignment. String, number and boolean. | ||
| <code lua> | <code lua> | ||
| Line 115: | Line 122: | ||
| </ | </ | ||
| + | ===== Examples ===== | ||
| + | |||
| + | <code lua> | ||
| + | -- Create a frame and register this frame to run code on an event. | ||
| + | local function PrintStuff() | ||
| + | print(" | ||
| + | end | ||
| + | |||
| + | local EventFrame = CreateFrame(" | ||
| + | EventFrame: | ||
| + | |||
| + | EventFrame: | ||
| + | if(event == " | ||
| + | C_Timer.After(1, | ||
| + | end | ||
| + | end) | ||
| + | </ | ||
lua/scripting.1668266987.txt.gz · Last modified: 2022/11/12 15:29 by utedass
