Named Parameters

Named parameters are user-toggled boolean flags that appear as contextual modifiers when long-pressing or right-clicking a favorite. They use the same conditional syntax as roll-based triggers in Flows.

Syntax

  • <name> — Present this toggle to the user on long-press of this flow box
  • s<name> — Use the previously selected value from a prior flow box; don’t prompt again

How Exclusivity Works

Exclusivity is handled by notation structure, not the UI. Nested ternaries are naturally exclusive; separate conditionals are independent.

(<adv>?2d20kh:(<dis>?2d20kl:d20))

Advantage and disadvantage are exclusive because they’re nested — toggling advantage means the disadvantage branch can’t resolve.

(<smite>?+2d8)

Smite is independent — it’s a separate conditional that resolves regardless of advantage/disadvantage state.

Cross-Box Inheritance

The s<name> prefix references a parameter already toggled in a prior flow box. The UI only shows the toggle on the first <name> occurrence.

Example: Paladin + GWM

Box 1 (Attack):

(<adv>?2d20kh:(<dis>?2d20kl:d20))(<gwm>?-5)+4

Long-press shows: adv, dis, gwm

Box 2 (Damage):

(d8(<smite>?+2d8))(n20?c)+3(s<gwm>?+10)

Long-press shows: smite only (gwm inherited via s<gwm>)

GWM’s -5 applies to the attack, +10 to the damage, both from a single toggle.

Crit Scope with Named Parameters

Parenthesized grouping controls what gets doubled by crits:

(d8(<smite>?+2d8))(n20?c)+3

The crit wraps both the weapon die (d8) and the conditional smite dice (2d8) because they’re inside the same parenthesized group. The +3 is outside and unaffected. This is correct 5e behavior — smite damage gets doubled on a crit.

See also: Flows, Notation Spec, Crit Mechanics