This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
lua_tutorial [2023/04/25 19:16] – kali | lua_tutorial [2023/04/29 07:42] – [Introducing Basic Lua Terms] kali | ||
---|---|---|---|
Line 83: | Line 83: | ||
{{ :: | {{ :: | ||
- | Now what did I do there? I simply utilized the information we learned with 3 variables and [[https:// | + | local target = Player: |
+ | |||
+ | Now what did I do there? I simply utilized the information we learned with 3 variables and [[https:// | ||
===== Introducing Basic Lua Terms ===== | ===== Introducing Basic Lua Terms ===== | ||
+ | |||
+ | - explain what a variable is | ||
+ | - comments | ||
+ | - identifiers, | ||
+ | - the 21 reserved keywords | ||
+ | - whitespace and readability | ||
+ | - variable definition, lists, and declaration | ||
+ | - the 8 " | ||
+ | - nil, boolean, number, string, function, userdata, thread, and table | ||
+ | - the type function | ||
+ | - arithmetic operators | ||
+ | - relational operators | ||
+ | - logical operators | ||
+ | - miscellaneous operators | ||
+ | - operator precedence | ||
+ | - loops, break, and infinite loops | ||
+ | - if statements | ||
+ | - functions | ||
+ | - defining | ||
+ | - arguments | ||
+ | - calling | ||
+ | - assigning and passing | ||
+ | - variable arguments | ||
+ | - strings and string manipulation | ||
+ | - replacing a substring, find and match | ||
+ | - string formatting | ||
+ | - character and byte representation | ||
+ | - arrays and multi-dimensional arrays | ||
+ | - iterators | ||
+ | - tables and table manipulation | ||
+ | - modules for mmominion |