Search results

  • Landing page for all available Tutorials. Tutorials are specific walkthroughs on how to create ''something'' - from a new unit,
    893 bytes (136 words) - 18:02, 30 May 2023
  • ...War Modding Resources is dedicated to the learning and appreciation of the Lua language. ==== What Is Lua? ====
    3 KB (532 words) - 14:02, 11 March 2024
  • The first two terms we’ll look at are chunks and statements. When Lua is brought to its basic skeletal structure, that’s all it is – chunks o Statement: A declaration, a thing-to-be-done, a command that Lua will run Chunk: A sequence of statements, from an entire file to a single l
    1 KB (225 words) - 15:23, 11 March 2024
  • ...various modding and game concepts. It should contain all the resources and tutorials really needed to go forward in modding - when all is said and done. === All available [[Tutorial:Main Page|Tutorials]]: ===
    4 KB (577 words) - 10:56, 1 July 2023
  • ...m to a new page using "Edit -> More -> Move". Then properly categorize the tutorials, including marking them as "outdated", "needs review", the game it works fo * Go through the Lua tutorial series and clean it up.
    2 KB (387 words) - 10:55, 1 July 2023
  • A super important concept in Lua is the concept of ''scope''. Every single variable made has a ''scope'', wh [[Category:Lua Tutorials]]
    3 KB (550 words) - 15:25, 11 March 2024
  • Type: The sort of value that is in a variable. Lua types include: boolean, string, number, table, nil, function. There are mor ...e here that variables can be numbers, which is one of the primary types in Lua.
    9 KB (1,556 words) - 15:23, 11 March 2024
  • ...y no longer use it, and at this point prefer Visual Studio Code for all my Lua needs, but I’ll go over both for taste. They’ll both be able to do what ...– it was for a while primarily what I used to search through and read CA .lua files. I now use VSCode for both of those efforts – editing and searching
    6 KB (1,030 words) - 14:11, 11 March 2024
  • We’ve covered the majority of the Lua keywords, but there are a few left that we have to cover. We’ll cover the [[Category:Lua Tutorials]]
    5 KB (705 words) - 02:17, 22 July 2021
  • ...today’s lesson, we’re going to cover one of the most fundamental types in Lua much further, and that type is, if you can read, ''functions''. Everybody l Functions are a special data type in Lua. Functions have two specific stages: definition, and call. A function can b
    6 KB (1,076 words) - 15:26, 11 March 2024
  • As you write Lua, you’ll find that errors aren’t uncommon. Something will go wrong, code That first line here, we call a basic Lua library function, which is <code>type()</code>. This returns the type, obvi
    5 KB (925 words) - 15:29, 11 March 2024
  • As we’ve seen, Lua is made up of <code>chunks</code> and <code>statements</code>. Statements c Expressions are the section of a statement that, essentially, tell Lua ''what to do''. They come in a billion different shapes and sizes. For now,
    7 KB (1,162 words) - 15:25, 11 March 2024
  • ...ge|modding tutorials]] page for a portal about various available, specific tutorials. ...There's a layer of the game that can be interacted with through scripts (.lua files). Scripts power things such as characters getting experience, legenda
    5 KB (906 words) - 05:31, 14 April 2021
  • ...conditionals are what your script is built with, but as you work more with Lua you’ll begin to see that tables are what makes the language work. Combini A conditional statement is any statement of Lua that is either true or false. For our purposes, conditionals tend to look l
    7 KB (1,164 words) - 15:28, 11 March 2024
  • If you’re following along these tutorials properly, you will be writing all your functions in a local scope. So, you It is recommended (by CA, in their lib_core.lua file) to use the latter, core: method, rather than listen for the event.
    10 KB (1,561 words) - 15:06, 7 February 2021
  • ...g at <code>1</code>. Lua automatically assigns values to an index, not the Lua-author. An example would be: ...s because these lists are defined in C++, where indexes start at 0, unlike Lua where indexes start at 1.
    13 KB (2,007 words) - 15:26, 11 March 2024
  • * How to load & run a custom Lua script ...ge button and set our Profile to the correct one. I have mine saved as "TW Lua".
    22 KB (3,994 words) - 17:31, 11 March 2024
  • ...to messing with the game itself, and making real change. Every worthwhile Lua mod on the market has these in it! Anything else just concatenates strings ...calls''; they’re a statement. Commands are used to communicate between the Lua environment and the actual Total War Engine – the base C++ code that defi
    28 KB (4,722 words) - 15:27, 11 March 2024