Skip to main content

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