This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua_tutorial [2023/04/25 19:00] – kali | lua_tutorial [2023/04/29 07:52] (current) – kali | ||
---|---|---|---|
Line 83: | Line 83: | ||
{{ :: | {{ :: | ||
- | Now what did I do there? I simply utilized the information we learned with 3 variables and [[https://en.wikipedia.org/wiki/Concatenation|concatenated]] them together in the same string. In one simple line it demonstrates that 5 entities all have the same name, but all have different id's and distances from the Player. '' | + | local target = Player: |
+ | |||
+ | Now what did I do there? I simply utilized the information we learned with 3 variables and [[https://www.merriam-webster.com/dictionary/concatenate|concatenated]] them together in the same string. In one simple line it demonstrates that 5 entities all have the same name, but all have different id's and distances from the Player. '' | ||
===== 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 | ||
+ | |||
+ | ===== Making our First Module ===== | ||
+ | |||
+ | ===== Common Functions and Standard Libraries ===== | ||
+ | |||
+ | ===== Error Handling and Debugging ===== | ||
+ | |||
+ | ===== Garbage Collection and Performance Impact ===== | ||
+ | |||
+ | ===== Object Oriented and Inheritance ===== |