Difference between revisions of "Logic"
(various improvements) |
(Remove variable information to be moved to the variables wiki page.) |
||
Line 2: | Line 2: | ||
== Rules == | == Rules == | ||
Rules are pieces of logic that have a [[trigger]] and [[Response|responses]]. Using rules, you can control what your actors do under certain conditions, and in response to specific events. | The [[rules]] tab is where rules for the given blueprint are written. Rules are pieces of logic that have a [[trigger]] and [[Response|responses]]. Using rules, you can control what your actors do under certain conditions, and in response to specific events. | ||
== Variables == | == Variables == | ||
Variables are | 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. | ||
Revision as of 19:37, 10 May 2022
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.