Math and Field Value References

Crktr provies functionality to setup complex character sheets. Values can be referenced across fields, math expressions can be embedded in fields, and complex dice rolls can be setup.

Math

Within some fields* it's possible to embed math equations that are evalulated in the "play" mode of a character sheet.

To embed a math equation in a field, the equation must be wrapper in square brackets [...]. An example would be [1+1]; in play mode this would evaluate to 2.

For detailed information on what is possible within a math equation please see https://mathjs.org/docs/expressions/syntax.html


* Link and image URLs do not support referencing other field values.

Referencing Other Field Values

Values from other fields can be references in math expessions. Each field in a character sheet has a unique "key", which can be found within each fields options popup. Each field key can be used within math expressions wrapped in square brackets []. An example would be [A]; when in play mode this would be replaced with the value from field A.

Some fields, such as the "List" field, can have a varying amount of entries. If you want to reference a value from a specific entry in a list, add a number to the field reference. An example of this could be a "List" field with 3 entries with the key A, to reference the value of the third item in the list you would write [A3].

For fields that are like lists but have more than one input per item, like a "Stat Column", each input in each item can also be referenced with a lowercase letter. For example, given a "Stat Column" field with the key A, the first input of the first item would be references as [A1a]. The second input would be references with [A1b].

When fields have more than one input, but are not a list, they can be reference the same as explained above, but without the need for an item number. For example, an HP field has a current value and a max value. To reference the first input (the current HP value) of a field with the key A you would write [Aa]. To reference the second input (the maximum HP value) the expression would be[Ab].

Dice Rolls

Complex math expressions with field references can also be included in dice roll expressions, such as 1d20+[A]. This is useful for adding a skill modifier to a roll automatically.

For more information on dice rolls, please see the dice rolls help page.

Loading data