๐๏ธ Intro to Scripts
Many decks in Castle need to maintain complex state and run logic in order to work. Castle includes more than one way to do this. If you're new to Castle, the simpler way to get started is to learn about Rules and Castle variables. Scripts are another way to maintain state and run logic.
๐๏ธ Tutorials
7 items
๐๏ธ Actor Reference
Reference Castle actor behavior properties and methods available to Lua scripts, including layout, motion, tags, text, and shared ownership.
๐๏ธ Castle Library Reference
Reference the Castle Lua module for creating actors, managing cards and state, reading parties and leaderboards, and controlling gameplay.
๐๏ธ Math Library Reference
Reference the Lua math functions supported in Castle scripts, including rounding, trigonometry, logarithms, random values, and numeric helpers.
๐๏ธ String Library Reference
Reference the Lua string operators and functions supported in Castle scripts, with examples for formatting, splitting, matching, and editing text.