๐๏ธ Lua Basics
You've already seen how to write Lua in Castle script. This tutorial will show you more features of Lua.
๐๏ธ Strings
Lua strings can be used to store and modify text. Strings can be created in a few ways:
๐๏ธ Math
In the last section, we saw the Lua string library. Lua also has a math library with a lot of useful functions.
๐๏ธ If / Else / Elseif
In Castle rules, there is a response called "If a condition is met, run a response". Lua has if statements that work in the same way.