Difference between revisions of "Rule"

From Castle Wiki
m
Line 1: Line 1:
A Rule is a unit of logic in Castle decks. Rules can be added to [[blueprint|blueprints]] in order to change the behavior of the blueprint in response to specific events or under certain conditions.
A Rule is a unit of logic in Castle decks. Rules can be added to [[blueprint|blueprints]] in order to change the behavior of the blueprint in response to specific events or under certain conditions.


Each rule consists of a [[Trigger]] and one or more [[response|Responses]]. Examples of a trigger include When this is tapped and When the card starts. There are many different responses, but some examples include: Move toward another actor, Set the value of a variable, Create another actor, and Destroy this actor.
Each rule consists of a [[Trigger]] and one or more [[response|Responses]]. Examples of a trigger include '''When this is tapped''' and '''When this collides'''. There are many different responses, but some examples include: '''Move toward another actor''', '''Set the value of a variable''', '''Create another actor''', and '''Destroy this actor'''.


To add rules to blueprints, first open the [[Inspector]] for the blueprint you'd like to edit, then go to the [[Logic]] tab.
To add rules to blueprints, first open the [[Inspector]] for the blueprint you'd like to edit, then go to the [[Logic]] tab.

Revision as of 19:50, 11 May 2022

A Rule is a unit of logic in Castle decks. Rules can be added to blueprints in order to change the behavior of the blueprint in response to specific events or under certain conditions.

Each rule consists of a Trigger and one or more Responses. Examples of a trigger include When this is tapped and When this collides. There are many different responses, but some examples include: Move toward another actor, Set the value of a variable, Create another actor, and Destroy this actor.

To add rules to blueprints, first open the Inspector for the blueprint you'd like to edit, then go to the Logic tab.