Difference between revisions of "Expression"

From Castle Wiki
m (Lukalot moved page Expressions to Expression without leaving a redirect: name should not be plural)
(improve links in value expression list)
Line 6: Line 6:
=== Values ===
=== Values ===


* [[The value of a variable expression|The value of a variable]]
* The value of a [[variable]]
*[[A constant number expression|A constant number]]
*A constant number


=== Choices===
=== Choices===

Revision as of 23:16, 10 May 2022

Expressions in Castle are used for many things, including calculating health for characters, crafting procedural games and animations, and even making generative artwork. Expressions sometimes take in some values as arguments and always return a result value.

List of Expression Types

The following is a list of expression types in the order that they are listed when viewed in the Castle "Choose expression type" sheet

Values

  • The value of a variable
  • A constant number

Choices

Randomness

Spacial relationships

Arithmetic

Clock

Functions