Skip to main content
Character sheet documentation

Nodes and automations, step by step

Learn to make the sheet apply a rule for you. Start by changing a number in the example below, check the result, then build your own rule in the same editor used by the sheet.

Never used nodes? Start here

An automation is a rule the sheet applies on its own, such as adding a bonus or spending mana. In the editor, a rule becomes a diagram: each box is a step (also called a node) and the lines show which step comes next. You do not need to write formulas to get started.

  1. Try a ready-made rule

    Change Strength from 3 to 2 and watch the bonus change. Then open the editor and change the bonus.

  2. Build a rule on your sheet

    Follow the instructions to create the same bonus rule, one step at a time.

  3. Pick an example close to your idea

    Learn to spend mana, heal, improve a skill or count equipped items. The rest of the guide is reference: come back to it when a question comes up.

Your first exercise: watch the bonus change

This example's rule is: “if Strength is 3 or more, give a +2 bonus; otherwise, give 0”. The fields below represent a sample character. The highlighted path shows the steps the rule followed.

Change these numbers freely. The examples use a sample sheet and do not change your characters.

To enlarge only the diagram, use View nodes in full screen in its corner; Escape or Back to guide closes it. Open in the sheet editor opens the same editing screen used by characters. Click a step to see its fields. The test is only a simulation; Save returns to the guide with your changes, and Reset example undoes everything.

Calculated bonus

Follow these steps

  1. Keep Strength at 3 in the field above. Below the diagram, the result should be Bonus +2.
  2. Change Strength to 2. The result becomes Bonus 0, and the highlighted path now goes to the other Bonus. Set Strength back to 3 before the next step.
  3. Click Open in the sheet editor. If the automation introduction appears, click Skip to reach the editor.
  4. Click the Bonus step that shows 2. In the side panel, keep Fixed mode and change Value from 2 to 5. The test should show Bonus +5.
  5. Click Save to return to the guide and check Bonus +5. Here, Save changes only the example on this page. Click Reset example to go back to the original +2 bonus.

Test result: Bonus +2

Understand the idea

Before opening the editor, think about what you want the sheet to do. Then break that idea into small steps, connected by lines.

Start with a simple sentence

Write down what you want to happen: “if my Strength is 3 or more, I get +2; if it is lower, I get 0”. That sentence has one question and two possible results.

In the editor, Start marks where the rule begins. The If step asks the question. Each Bonus step provides one of the results. The lines say which result applies in each case. A loose step, with no line coming from Start, is never used.

Words you will see

Step (or node): a box in the diagram that does one thing, such as asking something or giving a bonus. Line (or connection): links one step to the next and sets the order. Flow: the whole diagram of a rule.

Condition: a yes-or-no question, such as “do I have at least 2 Mana?”. Trigger (or event): what makes the rule start, such as using a spell or rolling dice.

Variable: a nickname that reads a number from the sheet; @forca means “the Strength value”. Expression: a small calculation, such as @forca + 2. Target: the sheet field that will change, such as current Health.

Card: in this guide, always a resource card on the sheet, such as an item, spell or ability. The variable names used here (@forca, @vida, @mana) are examples: on your sheet, use the names the editor suggests as you type.

Does the rule always apply, or does it happen when you use something?

There are two kinds of rule. The first always applies: it begins at Start and recalculates on its own whenever the sheet changes. Use it for bonuses that depend on other values, for showing or hiding parts of the sheet and for effects of equipped items.

The second happens once, when something is done: it begins at Trigger. Use it to spend mana when casting a spell, roll an attack when clicking a button or react to a roll.

Example: a shield gives defense while it is equipped (always applies); a spell spends mana each time it is cast (happens once). The kind of rule depends on where you open the automation, and the editor only offers the steps that make sense there.

Follow the lines to understand the order

Read the diagram from Start or Trigger, following the lines. Moving a step on screen only tidies the diagram: the lines set the order. On an If step, the Yes path runs when the answer is yes and the No path when it is no.

To spend mana and then roll, connect Trigger → Change value → Roll dice. When one action depends on another, line them up like this. Two lines leaving the same point create two separate paths.

If you need more than two alternatives, use the Switch step (see the reference). It checks several questions in order and has a Default path for when none match.

Where to open an automation

Every automation lives in the settings of some part of the sheet. First switch to edit mode: click the pencil icon in the right-hand bar, or right-click a block and choose Edit block. Then hover the block, click More options and choose Edit Card. Sheets for different systems may arrange their blocks differently, but the buttons are the same.

I want to calculate a value or show and hide something

An attribute's modifier: in the attributes block, open Edit Card → Content tab and click the attribute to expand it. Under Modifier, switch from Formula to Flow and click Edit modifier flow. The number the rule returns becomes the attribute's modifier.

Show, hide or change a block: in Edit Card, open the Appearance tab and look for Block flow, under Presentation. Click Edit flow. There you will find steps such as Show or hide, Field visibility, Modify field, Text, Theme and Image.

A bonus is an extra number; a modifier is the number the attribute uses in rolls; visibility decides whether something appears. Some skill blocks also have a bonus flow button on each row.

I want something to happen on a click or a roll

Button: in the buttons block, open Edit Card → Content → Card buttons and open the button. Turn on Advanced mode (flow) and, under Triggers, click Edit flow. If the button is an on/off switch, there is one rule for turning on and another for turning off.

Canvas (the sheet's free-drawing block): in Edit Card, open the Automations tab and select a field. For a button, use Button action → Create button nodes. For a number field, use Nodes on click and create the click nodes; from then on, clicking the field runs the rule instead of the default roll.

An attribute's roll: in the expanded attribute, under Roll, switch to Flow and click Edit flow. Some screens already connect Trigger to Roll dice; others allow only certain actions. If a step does not show up in search, check that you opened the automation in the right place.

I want a rule for a card (item, spell, ability)

In edit mode, click the Edit card pencil (or click the card and then Edit). The card editor has a menu on the left; automations live under Behavior and Automation.

Under Behavior, on the Consumable row, the branch icon opens the Use flow: it runs every time the card is used. On the Equippable row, the same icon opens While equipped (applies while the card is equipped and is undone on unequip) and the lightning icon opens On equip (runs once and is not undone).

Under Automation → Passive effects, click Add effect. While present applies while the card is on the sheet. On roll reacts to the rolls you choose. In the context menu adds an option to the card's right-click (or long-press) menu. Example: a shield that gives defense only while equipped uses While equipped.

Your first flow

You have seen the sample bonus work. Now build the same rule on your sheet: first the question, then the result on each path.

Strength 3 or higher grants +2

Goal: an attribute gets a +2 modifier when Strength is at least 3, and 0 when it is lower. Open an attribute's modifier flow, as explained in Where to open an automation. The diagram at the start of this guide works as a model.

The comparison >= 3 means “3 or more”. If you would rather not type, Visual mode asks the same question with menus.

  1. Find Start in the diagram: it is the first step of the rule. If a Bonus is already connected to it, you will place the question before that result.
  2. Click the big + in the top bar (Add step), search for If and add it. Connect Start's output to If's input by dragging from one dot to the other.
  3. Click If. In the side panel, keep the condition in Visual mode: choose Strength, the comparison “greater than or equal” and the value 3. In Expression mode, the same question is @forca >= 3.
  4. Add a Bonus. Click it, choose Fixed and type 2 in Value. Connect If's Yes output to this Bonus's input.
  5. Add another Bonus with a Fixed value of 0 and connect If's No output to it. Check that Start reaches If first and that each path ends at its own Bonus. Delete any old line that skips the question.
  6. Look at the result just below the top bar: the test is already on and uses the sheet's current values. With Strength 3 or higher, it should show +2. To check the other case, save, change Strength to 2 on a test sheet and open the editor again: it should show 0.
  7. Click Save (the disk icon). If Review issues appears in its place, click it: the editor selects the step with the problem so you can fix it. Then also click Save in the Block settings window and check the modifier on the sheet.
Start → If (@forca >= 3)
  Yes → Bonus (2)
  No → Bonus (0)

Two Bonus steps do not add up

If the same path goes through Bonus 2 and then Bonus 3, the result is 3, not 5: the last Bonus replaces the previous one. To get 5, use a single Bonus with 5, or with the expression 2 + 3.

To add values from other fields, do the whole calculation in a single Bonus in Expression mode, as in the example below. This can wait until after the first exercise.

Bonus in expression mode:
@bonus_item + @bonus_treino

Use the editor

The editor has two parts: the diagram, which shows the order of the steps, and the side panel, which shows the fields of the selected step.

Where to click to add and edit steps

Click the big + in the top bar (Add step), search for what you need and choose the step. The + that appears on a line inserts a step in the middle of it. Click the new step to open the side panel and fill in its fields.

To connect two steps, drag from one step's output dot to the other step's input dot. Each output has a name: Next continues the rule; Yes and No are If's answers; Answer and Cancel are Ask's outputs; Chosen and Cancel are Choose's outputs.

At the top of the panel, give the step a recognizable name (its Step name), such as Spend mana. Drag steps to arrange the diagram. Notes only hold reminders: they do nothing in the rule.

When to choose Fixed, Expression and Target

Fixed uses exactly what you type: for a bonus that is always +2, choose Fixed and type 2. Expression calculates: @nivel / 2 means “half the level”. When in doubt, start with Fixed.

Target is the field that will change. In Change value, click Pick on the sheet and then the field you want, instead of typing its name. For Health, Mana and other vitals, check whether you picked the current value or the maximum.

For a condition, prefer the visual builder: choose the field, the comparison and the value from menus. If you need a formula, the editor suggests names as you type. The Variables and expressions section covers that part.

Keyboard shortcuts (optional)

With the diagram selected: Tab opens Add step; Ctrl+Z undoes; Ctrl+Shift+Z or Ctrl+Y redoes; Ctrl+C and Ctrl+V copy and paste; Ctrl+D duplicates; Delete removes; Escape closes search or clears the selection. On a Mac, use Command instead of Ctrl.

While you type in a field, keys go to that field, not to the diagram. In step search, use the arrow keys to choose and Enter to add.

Variables and expressions

This part is for when a number needs to change along with the sheet. For most simple rules, Fixed mode and the visual builder are enough.

What does @forca mean?

A variable is a nickname for a sheet value. @forca reads Strength; @forca + 2 takes that value and adds 2. If Strength is 3, the result is 5. The @ tells the editor it is a variable.

Use the names the editor suggests. For names with spaces, wrap them in braces: @{Força Bruta}. Modifiers and maximums usually have their own names, such as @forca_mod and @vida_max.

A variable name that does not exist counts as 0. This is the most common cause of wrong results. Writing tips: use a dot for decimals (1.5), * to multiply (@forca * 2) and quotes around text ("fire").

@nivel + 2
floor((@forca - 10) / 2)
clamp(@vida + 5, 0, @vida_max)
@{Força Bruta} * 2

How to write a yes-or-no question

A condition is a question. @vida > 0 asks whether Health is above zero. @forca >= 3 asks whether Strength is 3 or more. > is greater than; >= is greater than or equal; < is less than; <= is less than or equal.

== asks whether two values are equal (two equal signs) and != asks whether they differ. and means both questions must be yes. or means one is enough. not flips the answer. Parentheses group things, as in arithmetic.

The If step chooses a whole path. If you only want to choose between two values inside a calculation, use if(question, value if yes, value if no). Text must match letter by letter: Fight and fight are different.

@forca >= 3 and @vida > 0
$event.attribute == "agilidade"
if(@nivel >= 5, 2, 1)
if(@vida <= 0, "Down", "Standing")

Advanced: $event, $sheet and another step's result

You only need this in rules that use roll data or an earlier step's result. $event reads what started the rule (for example, the roll). $sheet reads the whole sheet. $("Step name") reads the result of a step that already ran.

In a roll rule, $event offers formula, total, dice, skillName and attribute. What exists depends on the trigger: before the dice are rolled, total and dice do not exist yet.

$sheet holds attributes, skills, Health, Mana, fields, cards and the sheet's memory (memory). When something is a list, [0] picks the first item, [1] the second, and so on. When a value does not exist, it shows up as null, which means “empty”.

To use $("Step name"), copy the Step name exactly and do not reuse that name on another step. The step you read must have run earlier, on the same path. Ask returns the answer itself. Choose returns the chosen item, with information such as name, total and targets (that item's fields).

When a value may be empty, coalesce(value, 0) uses 0 in its place. Only empty values are replaced: a 0 or blank text stays as it is.

$("Roll dice").total
$("Ask")
$("Choose").targets.misc
$sheet.skills[0].name
coalesce($sheet.memory.usos, 0)

How to put a value inside text or a roll

In number or condition fields, write the calculation directly. In text or dice fields, in Expression mode, put only the calculated part between {{ and }}. For example: Total: {{ @forca + 2 }} shows Total: 5 when Strength is 3. In the Ask step's options, {{ }} calculates values in both modes. In Fixed mode, write one option per line, without quotes or brackets. In Expression mode, write a list of quoted texts, as in the example below: the list is evaluated first, then the {{ }} parts of each option. If @pm is 10, the options show 1 die - 10 MP and 2 dice - 20 MP. Options that become empty after evaluation are hidden.

To roll 1d20, use the Roll dice step: an expression on its own does not roll dice. Dice formulas can use sheet variables; the rolling guide explains options such as keeping the highest die and exploding dice.

Text in expression mode:
Total: {{ $("Roll dice").total }}

Dice in expression mode:
1d20 + {{ @forca_mod }}

Ask options in Fixed mode:
1 die - {{ @pm }} MP
2 dice - {{ @pm * 2 }} MP

Ask options in Expression mode:
["1 die - {{ @pm }} MP", "2 dice - {{ @pm * 2 }} MP"]

Condition in expression mode:
@vida > 0

Ready-made calculations (functions)

A function is a ready-made calculation you use in a formula. max(@dano - 2, 0) subtracts 2 from damage but never goes below 0. clamp(@vida + 5, 0, @vida_max) adds 5 to Health and keeps the result between 0 and the maximum.

min picks the lowest value and max the highest. floor rounds down, ceil rounds up and round rounds to the nearest.

For lists: sum adds, avg averages, len counts the items, first and last pick the first and last, and contains checks whether something is in the list. For text: upper and lower switch to upper or lower case.

There are other math functions, such as square root, power and trigonometry. You do not need them to get started; the expression guide inside the editor lists all of them.

max(@dano - 2, 0)
ceil(@nivel / 4)
round(2.5)
contains(["forca", "agilidade"], $event.attribute)
join($event.dice, " + ")

Lists and memory

This part is optional at first. Use lists when a rule needs to look at several cards or skills at once. Use memory when it needs to remember something from one use to the next.

Filter list → Sum or count

Filter list takes a list from the sheet (attributes, skills, cards, fields…) and keeps only the items that answer yes to a question. Inside that question, $item is the item being looked at.

Example: name the filter Equipped, choose Resources and use the question $item.equipped == true (“is this card equipped?”). Then, in Sum or count, use $("Equipped") as the list. Count says how many cards passed; Sum with field quantity adds up their quantities.

A rule cannot go backwards: do not connect a step back to an earlier one. To go through several items, use Filter list and Sum or count.

Filter on Resources:
$item.equipped == true

List for Sum or count:
$("Equipped")

Operation: Sum
Field: quantity

Store value: just now or for later uses

Store value gives a name to a result so later steps can use it. If it is a number, they can read it as @name; other kinds of value are read with $("Step name"). With Local scope, the value lasts only while the rule runs and does not appear in any sheet field. In a card's passive effects, numbers and yes/no values are available as @name across the whole sheet while the effect is active. Removing the card or deactivating the effect removes its publication.

With Sheet memory scope, the value is kept for the next time the rule runs. Read it with $sheet.memory.name. This only works in rules that begin at Trigger; in rules that begin at Start, nothing is stored.

Usage counter example: store coalesce($sheet.memory.usos, 0) + 1 in the memory usos. Memory is invisible to the player; to change a number shown on the sheet, use Change value.

Name: usos
Scope: Sheet memory
Value in expression mode:
coalesce($sheet.memory.usos, 0) + 1

When the list is empty

For an empty list, Count and Sum give 0. Min, Max, Average, First and Last are empty (null). If you need a number in those cases, use coalesce($("Sum or count"), 0).

To sum, say which field to add up, such as quantity or total. Without the field, the sum does not use the numbers you expect.

Complete examples

Pick a rule close to your idea and follow the instructions above each diagram. Open the example in the editor to inspect its fields. In action examples, the test describes what it would do; it does not change a real sheet.

Spend mana only when enough is available

Goal: an ability costs 2 Mana and rolls only if you can pay. On your sheet, this belongs to a button action or a card's On use automation.

Follow these steps

  1. Click Open in the sheet editor. Start at Trigger and follow the lines to If. Click If to see @mana >= 2: the question is “do I have at least 2 Mana?”.
  2. On the Yes path, click Change value. See the target current Mana, the Subtract operation and the Fixed value 2. On your sheet, pick Mana with Pick on the sheet.
  3. Follow the line to Roll dice. The formula 1d20 + @forca rolls a twenty-sided die and adds Strength.
  4. Go back to the No path and click Show message. It warns that there is not enough Mana. This path ends without spending points or rolling.
  5. Open the test result and see the 2 spent before the roll. This example starts with Mana 3. On your test sheet, also try it with Mana 1.

Test result:

What should happen: With Mana 3, the rule requests spending 2, then rolls. With Mana 1, it only shows the message. The test describes actions without subtracting points from a real character.

Also check: The line from the spending to the roll sets the order: keep it. In real use, the spending is not refunded automatically if something goes wrong with the roll.

Heal without exceeding the maximum

Goal: ask how much to heal and add it to Health without exceeding its maximum. On your sheet, use a button action or a card's On use automation.

Follow these steps

  1. Open the example in the editor and click Ask. See that the question asks how much to heal and that the answer type is Number. Keep the Step name as Ask, because the formula uses that name.
  2. Follow the Answer line to Change value. Click it and see the target current Health and the Set operation. On your sheet, pick that field with Pick on the sheet.
  3. In Value, in Expression mode, there is clamp(@vida + $("Ask"), 0, @vida_max). It adds the answer to Health and keeps the result from going below 0 or above maximum Health.
  4. Open the test result. In the test, number questions are answered with 0, so Health 8 stays at 8. To see real healing of 5, use a test sheet and answer 5: with maximum 10, Health goes to 10.
  5. See that Ask's Cancel output is not connected to anything. Cancelling the question then ends the rule without changing Health.

Test result:

What should happen: Health 8, maximum 10 and answer 5 produce Health 10. The editor uses answer 0 in the simulation and shows Health 8. This is expected: the player answers the question in real use.

Also check: Set replaces Health with the calculated total. Add would add that total to Health again; so keep Set with this formula.

An item that adds +1d4 to Agility skills

Goal: a card adds a four-sided die to Agility rolls. On your sheet, open the card's On roll automation and choose the skills or block that should start it.

Follow these steps

  1. Open the example in the editor. Click Trigger and see that the rule responds to On roll. On your card, also check which rolls are selected.
  2. Click If and read $event.attribute == "agilidade": the question is “is this an Agility roll?”. On your sheet, choose the attribute in the visual builder to use the correct internal name.
  3. Follow the Yes path to Add to roll. The formula +1d4 adds a four-sided die to the roll that is about to happen.
  4. See that No has no action: rolls of other attributes follow it and do not get the extra die. In real use, test an Agility skill and one from another attribute.

Test result:

What should happen: An Agility roll receives +1d4 before calculation. Another attribute's roll receives no extra part. This example's simulation uses Agility.

Also check: agilidade is the attribute's internal name in this example; on your sheet it may be different. This rule decides the extra die before the roll has a total.

Count equipped cards

Goal: receive a +1 bonus per equipped card. Open a bonus calculation. This example has two equipped cards, Sword and Shield, and an unequipped Potion.

Follow these steps

  1. Open the editor and click Filter list. Check Step name: Equipped. The Resources source means the sheet's resource cards.
  2. Check the filter $item.equipped == true. It asks each card whether it is equipped. Only cards answering Yes stay in the list.
  3. Click Sum or count. Check Step name: Count, the Count operation and the Expression list $("Equipped"). This counts cards that passed the filter.
  4. Click Bonus. Check the Expression value $("Count"): it uses the previous step's count as the bonus. Formula names must match the step names.
  5. Check Bonus +2 in the result. On your test sheet, unequip a card and check that it drops to +1; with no equipped cards, it should be 0.

Test result: Bonus +2

What should happen: The example's two equipped cards give +2. Each card counts once, even if its quantity field lists multiple units.

Also check: To count units, use Sum and enter the quantity field. To count cards, keep Count.

Let the player choose a skill to receive +1

Goal: choose a skill and increase its extra bonus by 1. Use an action, such as a card's On use. The sample sheet offers Acrobatics for this choice.

Follow these steps

  1. Open the example and click Choose. Check Step name: Choose. This example uses Own options and offers Acrobatics with the sample sheet's field attached.
  2. Follow Chosen to Change value. Check the Add operation and Fixed value 1.
  3. Check the Expression target $("Choose").targets.misc. It reads the extra bonus field for the selected skill. You do not need to type the skill's name in this formula.
  4. Check the +1 change in the test result. On your own sheet, you can use the Skills source to offer the character's skills; check the choice and bonus increase on a test sheet.
  5. Leave Cancel without an action. Closing the choice without picking a skill then adds no bonus.

Test result:

What should happen: The chosen skill's extra bonus increases by 1 when the action runs. The simulation chooses Acrobatics automatically; it does not change your character's skill.

Also check: The test for the Skills source may use a sample item without an attached field. This example therefore uses Own options with a sample target. Check actual choices on a test sheet.

Remember how many times an ability was used

Goal: keep a counter that goes up on each use. Open the ability's use action. Memory is a value stored on the sheet, invisible to the player, that the rule can read on the next use.

Follow these steps

  1. Open the editor and click Store value. See Name: usos. That is the name the rule uses to store and read the counter.
  2. See the Sheet memory scope. Scope says how long the value lasts: Local lasts only while the rule runs; Sheet memory is kept for the next use.
  3. See the Expression value coalesce($sheet.memory.usos, 0) + 1. It reads the previous counter, uses 0 if there is none yet and adds 1.
  4. With the test on, see the value shown on the Store value step. The demo starts at 2 uses, so the next would be 3. That value appears only on the step itself, not in the What the test would do list. Repeating the test saves nothing, so it always starts again from 2.
  5. On your test sheet, use the action twice. If the counter did not exist yet, it should store 1 and then 2.

Test result:

What should happen: Each real use increases the counter by 1. This guide's simulation shows the next write as 3 because sample memory starts at 2. The counter does not automatically appear as a visible field.

Also check: Use a name only this rule uses: other automations on the same sheet can read the same memory. Storing 0 resets the counter; storing null deletes the value.

Every character sheet node

Use this list when you know what you want to do but do not know which step to pick. Read When to use it first. You do not need to memorize all 30 steps; the editor lists those available for that part of the sheet.

Search by name, group or purpose: bonus, health, choice, image, card… The steps available in the editor depend on where you opened the automation.

33 / 33 nodes found

Start

TriggerRule that follows the sheet

Where the automation starts being calculated.

When to use it
Start a rule that calculates a bonus, shows a field or maintains an effect while a condition applies.
What to configure
The editor creates this step by itself in rules that always apply. Connect the Next output to the first question, calculation or result.
Example
Start → If → Bonus calculates a conditional bonus.
Also check
Each rule has a single Start. It does not respond to clicks and does not perform actions such as spending points.

Trigger

TriggerRule started by an action

Runs the automation when the event happens.

When to use it
Start a rule when a player uses something, equips a card or makes the selected roll.
What to configure
Check the event and its source when available. For context menus, set the option's location, label and visibility.
Example
On use → Change value spends ability points.
Also check
If the event or source is different, the rule does not start. What $event offers depends on the chosen event.

If

LogicRule that follows the sheetRule started by an action

Goes to Yes or No depending on the condition.

When to use it
Split a rule into two paths, such as having enough Mana or not having enough.
What to configure
Set a condition using the visual builder or an expression, then connect Yes and No to their paths.
Example
@vida > 0 follows Yes when the character has health remaining.
Also check
Only one path runs. A path with no line simply ends.

Switch

LogicRule that follows the sheetRule started by an action

Several paths: follows the case that matches, or Default.

When to use it
Choose among several situations, such as different bonuses for several levels.
What to configure
Add cases and their conditions, then choose First case or All cases. Connect Default for a fallback.
Example
Case @nivel >= 10 returns 3; case @nivel >= 5 returns 2; Default returns 1.
Also check
Cases are evaluated in configured order. First uses the first true case; All may perform several actions. Put the most specific case first.

Store value

DataRule that follows the sheetRule started by an action

Stores a value for the next steps.

When to use it
Store a result for later steps or remember a counter between uses.
What to configure
Choose the name, the value and the scope: Local or Sheet memory. Numbers can be read as @name; the Step name lets other steps read the result with $("Step name").
Example
Name cost, value 2: later steps can use @cost. Read text with $("Step name").
Also check
In passive card effects, numbers and yes/no values become sheet variables while the effect is active. Sheet memory scope also makes text, lists and records available in $sheet.memory while the passive effect is active, preserving saved memory. In other calculations, the value stays local. In rules with a Trigger, memory persists between runs; storing null deletes the value.

Read original item

DataRule that follows the sheetRule started by an action

Reads the item this modification is attached to. Returns empty outside a modification.

When to use it
Read the item carrying a modification so its effects can use that item's data.
What to configure
This step has no parameters. Read its output by the step name, or use $self.parent inside the modification's automation.
Example
$("Read original item").schemaValues.damage reads the damage property of the item carrying the modification.
Also check
Without a parent item, the result is empty (null). The read returns a plain snapshot with no further parent and does not change the original item.

Filter list

DataRule that follows the sheetRule started by an action

Takes a sheet list (skills, attributes…) or any list and keeps the items that match a condition.

When to use it
Keep only the items you need, such as equipped cards from all the sheet's cards.
What to configure
Choose the source list and, if you want, a question asked for each item. In a custom list, you can use the list another step returned or write a list yourself.
Example
Resources filtered with $item.equipped == true returns only equipped cards.
Also check
Inside the filter, $item is the item being looked at. With no filter, every item passes. If the source does not exist, the result is an empty list.

Sum or count

DataRule that follows the sheetRule started by an action

Sums, counts or takes the min/max of a list.

When to use it
Count items in a list or calculate its sum, average or another result.
What to configure
Provide the list, operation and field when aggregating record properties. Operations include Count, Sum, Min, Max, Average, First and Last.
Example
List $("Equipped"), Sum and field quantity adds the filtered cards' quantities.
Also check
For an empty list, Count and Sum give 0; the other operations are empty (null). To add up a number from each item, give the field, such as quantity.

Bonus

ResultRule that follows the sheet

Sets the bonus this automation gives.

When to use it
Provide the number for the bonus or modifier you are configuring.
What to configure
Provide a fixed number or expression for the bonus or modifier calculated by this editor.
Example
if(@nivel >= 5, 2, 1) gives 2 from level 5 onwards and 1 before that.
Also check
If the path goes through two Bonus steps, the last one wins. To add parts together, do the sum in a single expression.

Show or hide

ResultRule that follows the sheet

Shows or hides the block.

When to use it
Show or hide the block receiving this rule.
What to configure
Set Show or Hide using a fixed value or an expression producing true/false.
Example
@vida > 0 shows the block only while health remains.
Also check
Controls the block in this context. Use Field visibility for an individual field when available.

Field visibility

ResultRule that follows the sheet

Shows or hides a field.

When to use it
Show or hide a particular field in a block that supports it.
What to configure
Choose the target field and its visibility condition or fixed value.
Example
Show an ammunition field only while a firearm option is active.
Also check
Pick the target through the sheet selector. Field visibility depends on the block supporting that capability.

Modify field

ResultRule that follows the sheet

Changes a field while the automation applies.

When to use it
Apply an effect to a field, such as extra defense while a shield is equipped.
What to configure
Choose target, Set/Add/Subtract, value and application. Selectors may require an option or position; vitals may require current or maximum.
Example
Add 2 to defense while a shield is equipped.
Also check
While active keeps the effect only while the rule applies and removes it afterwards. On activation applies once and does not undo; be careful not to make a permanent change by accident.

Text

ResultRule that follows the sheet

Shows a text in the block.

When to use it
Display text on the block, such as a status notice or bonus explanation.
What to configure
Write the text and, if available, choose the tone. In expression mode, put calculated values between {{ and }}.
Example
Text: Extra defense: {{ @bonus_escudo }}.
Also check
A result displayed in the block; it does not open a window or ask the player a question.

Item category

ResultRule that follows the sheet

Changes the category of an item block.

When to use it
Make a block use a resource category, such as a class's spell list.
What to configure
Choose the resource category and its receiving block or target. Configure filters if offered by the editor.
Example
A class option makes a block display the corresponding spell category.
Also check
Only available in contexts supporting resource categories. Changing a category does not grant a card.

Temporary card

ResultRule that follows the sheet

Adds a card while it applies.

When to use it
Add a card through a rule, such as an ability from an active option.
What to configure
Choose category, card and application: temporary or granted.
Example
An active option temporarily adds an ability card.
Also check
Temporary lasts while the effect applies; granted retains the card according to the context's application. Check the mode for provisional benefits.

Theme

ResultRule that follows the sheet

Changes the sheet theme while it applies.

When to use it
Maintain a different appearance while a rule applies, such as transformation colors.
What to configure
Choose a theme property, a ready-made theme or the option to go back to the default, using the editor controls.
Example
An active transformation changes the sheet's colors and appearance.
Also check
A theme effect while the rule applies. It does not change character numbers.

Image

ResultRule that follows the sheet

Replaces a sheet image while it applies.

When to use it
Display a different portrait or background while a condition is active.
What to configure
Choose Character photo or Canvas background and an image file.
Example
The sheet shows another portrait while an alternate form is active.
Also check
A visual override for the active context; choose an image suitable for its target.

Roll dice

ActionRule started by an action

Rolls a dice formula.

When to use it
Make a new roll, such as the attack of an ability the player uses.
What to configure
Provide the formula, source label and public or hidden visibility. Configure mode and advanced options when needed.
Example
1d20 + @forca_mod. A later step can read $("Roll dice").total.
Also check
Performs a new roll. An empty formula skips the step. A hidden roll can still supply later steps.

Add to roll

ActionRule started by an action

Adds a part (e.g. +1d4) to the roll this automation answers, before the result.

When to use it
Add dice or another part to a roll already being made.
What to configure
On a card responding On roll, provide the formula part and an optional source label.
Example
+1d4 adds a die to the responding roll; 1d4 without an operator also adds.
Also check
Happens before the result. It does not make a new roll and only works in On roll rules. If the part starts with +, -, * or /, that sign is kept.

Replace roll

ActionRule started by an action

Replaces the formula of the roll this automation answers, or cancels the roll, before the result.

When to use it
Replace the formula of a roll being made, or cancel it.
What to configure
On a card responding On roll, choose to replace the formula or cancel the roll. Replacement requires a new formula.
Example
Replace 1d20 with 2d20k1 for a rule using the higher of two dice.
Also check
Replacing the formula drops what other steps added before this one; anything added afterwards joins the new formula. Cancel prevents the roll.

Roll result

ActionRule started by an action

Shows a label and a description on the last roll's card.

When to use it
Change the title, description or appearance of a roll's result.
What to configure
Set the label, description, tone and presentation elements offered by the editor.
Example
After rolling, show “Fire attack” and a description on the result card.
Also check
Changes the presentation of the last roll; it does not create dice or change its total.

Change value

ActionRule started by an action

Changes a sheet value once.

When to use it
Change a sheet value when an action runs, such as spending Mana or restoring Health.
What to configure
Pick the sheet target and Set/Add/Subtract. The target may also come from an expression. Check vital parts and selector options.
Example
Subtract 2 from current mana when the player uses an ability.
Also check
Changes the field once. The value does not go back by itself afterwards. If the target is not found, the change is ignored and the test shows a warning.

Give card

ActionRule started by an action

Puts a card in the character's resources.

When to use it
Give the character a card when an action happens.
What to configure
Choose category, card, quantity and application: grant or temporary.
Example
Using an ability grants a resource card to the character.
Also check
Grant gives the card when the action happens. Temporary keeps the card only while the rule that gave it still applies, such as while an on/off button is switched on.

Change card property

ActionRule started by an action

Change a property or uses of a selected card or list of cards from a schema.

When to use it
Change properties and uses on sheet cards without creating a separate target for each item.
What to configure
Provide a card, its ID or a list of cards and the property's stable key. Choose Value, Current or Maximum and the Set, Add or Subtract operation.
Example
Use the card from $("Choose"), property uses, part Current and Subtract 1 to spend one use.
Also check
The entire batch is validated before any card changes. Missing and temporary cards, internal fields and invalid options are rejected; formulas still control calculated fields.

Run card automations

ActionRule started by an action

Waits for the cards present to finish their automations and receives their adjustments.

When to use it
Gather adjustments published by other cards' automations before continuing the flow.
What to configure
Choose use or roll automations. Empty Cards includes all cards present; provide IDs or records to restrict them. Source filters the call and Context adds event data.
Example
Run the equipped cards' roll automations and use the numeric values they publish in the following steps.
Also check
Automations run in order and the call waits for completion. Errors stop the caller; recursion into the same automation is rejected and each execution allows up to 64 calls.

Show message

InteractionRule started by an action

Opens a window with text and, optionally, choices.

When to use it
Show a message to the player or offer buttons with different paths.
What to configure
Provide title, body, fields, appearance and choices as needed. Each choice can have its own path.
Example
A message offers “Attack” or “Defend”, each leading to an action.
Also check
The step returns the chosen button, or empty (null) if the player closes the message. Careful: Next runs after the message whether or not a choice was made; do not put on it something that should only happen for one option.

Ask

InteractionRule started by an action

Asks for an answer, multiple choices, or a form with mixed field types.

When to use it
Ask the player for a number, text, confirmation or an answer from options.
What to configure
Write the question and choose Number, Text, Confirmation, a choice between text options or Columns. With Columns the player picks one option for each column at once, and an option used in one column cannot be used in another (e.g. columns Target and Effect, options $("Roll").dice). Connect Answer and Cancel.
Example
Ask “How much healing?” receives a number for the next step.
Also check
Read the answer with $("Ask"), with nothing after it. With Columns, read each column by its title: $("Ask")["Target"]. Cancel returns empty (null). Declining a confirmation also follows the Cancel path.

Choose

InteractionRule started by an action

The player picks a skill, attribute, vital, card or one of your options; the next steps use the choice.

When to use it
Let the player select a skill, attribute, value, card or rule option.
What to configure
Choose Skills, Attributes, Vitals, Cards or custom Options. Set title, help, per-item filter and cancellation availability.
Example
Choose a skill and use $("Choose").targets.misc as its miscellaneous bonus target.
Also check
The Chosen output returns the chosen item; Cancel returns nothing. What you can read from the item depends on its type (skill, card…).

Open page

ActionRule started by an action

Shows a sheet page on top.

When to use it
Open a sheet page over the current one for quick reference.
What to configure
Choose the sheet page to open as an overlay.
Example
A button opens the spell page for reference.
Also check
Select an existing sheet page. Opening it does not change its fields.

Play sound

ActionRule started by an action

Plays an audio file.

When to use it
Play audio when an ability or another action happens.
What to configure
Choose audio, volume and audience: yourself or campaign when available.
Example
An ability action plays a sound to accompany its effect.
Also check
Use a valid audio file. Campaign audience depends on table context and permissions.

Open file

ActionRule started by an action

Opens an image, audio or video in the preview.

When to use it
Open a file for reference, such as an image, map or video.
What to configure
Choose the file that will open in the viewer.
Example
A button opens a map image or an ability video.
Also check
Opens media. It does not grant a card or write a sheet field.

Change theme

ActionRule started by an action

Changes the sheet theme.

When to use it
Change the sheet's appearance when an action runs.
What to configure
Choose Set property, apply a ready-made theme or Reset, and fill in the controls that appear.
Example
An action changes sheet appearance when a transformation is used.
Also check
Happens once, when the action is used. To keep an appearance only while a condition applies, use the Theme step in a rule that begins at Start.

Swap image

ActionRule started by an action

Swaps the character photo or the canvas background.

When to use it
Change the character's photo or background when an action happens.
What to configure
Choose Character photo or Canvas background and the file to apply.
Example
An action changes the portrait when a form is activated.
Also check
Check the chosen image. To swap the image only while a rule applies, use the Image step in a rule that begins at Start.

Test and save with confidence

Before using a rule on a character, check that it works when the answer is yes and when it is no. The editor test shows the difference without touching the sheet.

The test shows what the rule would do

The test is already on when you open the editor (the flask button, Live test, turns it on and off). The result appears just below the top bar; click it to open What the test would do, with the path taken and what would change. If the rule should spend 2 Mana, look for that there. In tests, dice always give the same result so you can compare attempts; Roll again draws new numbers. The test uses the sheet's current values: to try another value, change it on a test sheet. In On roll rules, the Test event section lets you choose where the roll came from and its total.

The test is only a simulation: it does not spend points, give cards or save anything to the sheet. Save stores the rule, which takes effect when it is actually used. In this page's examples, Save changes only the example.

In tests, Ask answers by itself: 0 for number questions, yes for confirmations and the first option in lists. Choose also picks by itself. That is why the healing example shows Health 8 staying at 8: the simulated answer was 0. To test real answers and the Cancel button, use a test sheet.

A short list before saving

In the bonus example, Strength 3 should give +2 and Strength 2 should give 0. Make similar checks for your rule. Remember that real actions really change the sheet; try them on a test sheet first. To make one, go to Characters, open the character's Sheet actions menu and choose Duplicate: the copy gets (copy) in its name and you can change it freely.

  1. Test one case where the answer is yes and one where it is no. Also test the exact limit: for example, Mana equal to 2 for an ability that costs 2.
  2. If the rule changes a field, check that it is the right one: current Health or maximum Health, for example. If it uses a list, also check the case where it is empty.
  3. If the rule uses Ask or Choose, answer and cancel for real on a test sheet. The test's automatic answer does not cover every case.
  4. If Review issues (with the number of problems) appears in place of Save, click it: the editor selects the step with the problem so you can fix it. A step with no line coming from the start never runs: connect it or delete it.
  5. Save the automation and, if the surrounding screen also has a save button, save there too. Then check the result on the test sheet. If a step fails midway, whatever was spent before it is not refunded automatically.

If you open an older rule

The editor may convert an older rule to the new format and leave notes about what needs review. Read the notes and test before saving. Until you save, the old version stays in use.

The Join and Stop steps may appear in older rules, but they are no longer in the step list. You do not need them: a path ends on its own when there are no more lines. If an old Join waits for paths that never happen together (such as the Yes and No of the same If), the rule gets stuck there; replace it with direct lines.

Solve common problems

Find the problem you are seeing below and go through the checks in order.

“Nothing happens”

Follow the lines from Start or Trigger. The step must be connected to the start, and the If answer must lead to it. A disabled step is skipped: the rule moves on without doing what it would do.

In rules with a Trigger, check that it is the right trigger. On a card, the rule must be in the right moment (use, equip or roll). For On roll, the rolls selected on the card must include the one you are making.

  1. With the test on (it is already on when the editor opens), see which step was highlighted last. Follow the lines from the start to find where the path stopped.
  2. Click the step that should run and check that it is enabled and connected to the right path. If the rule begins at Trigger, check there which use or roll should start it.

“It always gives 0 or always goes to No”

The most common cause is a wrong variable name: a name that does not exist counts as 0. Pick the editor's suggested name again. When comparing text, use quotes and the field's internal name, which may differ from what the sheet displays (for example, agilidade rather than Agility). The visual builder picks the right name for you.

To ask whether two values are equal, use two signs: ==. A single sign (=) does not work. In text or dice fields, the calculation must go between {{ and }}.

  1. Click the If or Bonus step and look at the value it received in the test. If it uses a variable, pick the editor's suggested name again.
  2. Check whether the field is in Fixed or Expression mode. Then test one value that should go to Yes and one that should go to No.

“I cannot find the step I need”

Each part of the sheet offers only the steps that make sense there. For example: Roll dice does not appear in a bonus calculation, and Add to roll and Replace roll only appear in a card's On roll.

This guide covers character sheets. Steps such as Change door and Token light belong to VTT scene automations (the game map), which have their own list.

  1. Go back to the part of the sheet where you opened the automation and check that it matches what you want to do.
  2. To spend points or make a new roll, open an action (a button or On use). To change a roll that is about to happen, open the card's On roll. To calculate a bonus, open the bonus calculation.

“Change value did not change the field”

Pick the field by clicking it with Pick on the sheet instead of typing its name. For Health, Mana and other vitals, check whether you picked the current value or the maximum.

If the field comes from a Choose step, connect the change to the Chosen output (not Cancel) and use $("Choose").targets.misc as the target, as in the skill example.

  1. Click Change value and pick the field again with Pick on the sheet. Check whether it is the current value or the maximum.
  2. Open What the test would do and look for the change and any warnings. If the field depends on a player's choice, test that choice for real on a test sheet.

“Add to roll did not apply the bonus”

Add to roll happens before the dice are rolled. That is why it cannot depend on the result of the same roll: $event.total and $event.dice do not exist yet at that moment.

Between the Trigger and Add to roll, use only decision and calculation steps, such as If, Switch, Store value and lists. Ask, Choose, Change value or another Roll dice on that path stop the bonus from being added in time. If you need to ask something before rolling, create an action that asks and then makes its own roll with Roll dice.

  1. Check that the card responds to the right roll and that the path reaches Add to roll before any question or field change.
  2. Test the simplest path first, Trigger → If → Add to roll. Then add one step at a time and test again.

“The effect happens twice” or “I cannot save”

If two paths reach the same step, it runs twice. In Switch, the All cases option runs every case that is yes; First case runs only the first one.

To save, every step needs a different name, lines cannot go back to an earlier step and required fields must be filled in. Review issues shows what is missing.

If an item's bonus should disappear when you unequip it, do not use Change value: it changes the field once and does not undo it later. Use a While equipped rule.

  1. If the effect happens twice, follow each line and see whether two paths reach the same action. Delete the extra line.
  2. If you cannot save, click Review issues and fix the item shown: repeated name, empty field, broken formula or a line going back to an earlier step.