From ae2ba6898f9f47ca77d93ec984ae257d5b598baa Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 27 Jan 2021 16:37:21 +0000 Subject: [PATCH] Lua Scripting: Fix mistakes --- _en/basics/lua.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/_en/basics/lua.md b/_en/basics/lua.md index eba6a30..e0188b6 100644 --- a/_en/basics/lua.md +++ b/_en/basics/lua.md @@ -91,11 +91,6 @@ declared by using the `local` keyword, and then given an initial value. Local will be discussed later, because it's part of a very important concept called *scope*. -The `=` means *assignment*, so `result = a + b` means set "result" to a + b. -Variable names can be longer than one character unlike in mathematics, as seen -with the "result" variable. It's also worth noting that Lua is *case-sensitive*; -A is a different variable to a. - The `=` sign means *assignment*, so `result = a + b` means set the value of `result` to the value of `a + b`. Variable names can be longer than one character, as seen with the `result` variable. It's also worth noting that, like @@ -274,7 +269,7 @@ local function foo(bar) end ``` -To allow mods to call you functions, you should create a table with the same +To allow mods to call your functions, you should create a table with the same name as the mod and add your function to it. This table is often called an API table or namespace.