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:58] – [Lua in WoW] 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:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| ====== Cheat sheet ====== | ====== Cheat sheet ====== | ||
| Line 118: | 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.1668268698.txt.gz · Last modified: 2022/11/12 15:58 by utedass
