Logic

From Castle Wiki
Revision as of 19:37, 10 May 2022 by Lukalot (talk | contribs) (Remove variable information to be moved to the variables wiki page.)
open logic tab

The Logic tab is a tab that is an inspector tab which includes the rules and variables sections of the blueprint. Rules and actor variables play an important role in the functionality of Castle decks.

Rules

The rules tab is where rules for the given blueprint are written. Rules are pieces of logic that have a trigger and responses. Using rules, you can control what your actors do under certain conditions, and in response to specific events.

Variables

The Variables section is where actor local variables for actors that use this blueprint are defined. Variables can be used and referenced in the Rules tab without a definition in the Variables tab, they will be initialized as 0. There are two kinds of variables, global variables and actor variables, but only actor variables are configurable from the Logic tab.