๐๏ธ Getting Started
Here's an example of a basic script. Try changing the number 45 to a different number. You can also try adding a new line
๐๏ธ Handlers
Castle calls a few different functions on the script while your deck runs.
๐๏ธ Actors
You can read or modify actors in various ways using a script. There are a few different ways to get a variable representing an actor in a script:
๐๏ธ Castle Library
In the last section, you already saw an example of the Castle library: castle.closestActorWithTag("ground")
๐๏ธ Timing
You'll often want to wait for a bit before running more code. This section will show you a few ways of doing this.
๐๏ธ Castle Variables
Castle scripts are able to interact with the same Castle variables used in Rules.
๐๏ธ Lua
4 items