Skip to content

[#6860] Add syntax for specifying limit when modifying number field#6861

Open
arbron wants to merge 1 commit into
6.0.xfrom
ae/min-max
Open

[#6860] Add syntax for specifying limit when modifying number field#6861
arbron wants to merge 1 commit into
6.0.xfrom
ae/min-max

Conversation

@arbron

@arbron arbron commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Adds a new syntax to the change value for NumberField that allows for specifying a maximum or minimum when adding or subtracting:

  • system.abilities.str.value | ADD | 2 <= 20
  • flags.dnd5e.weaponCriticalThreshold | SUBTRACT | 1 >= 16

Also supports formulas within the limit:

  • system.abilities.str.value | ADD | 2 <= 18 + @prof

Closes #6860

@arbron arbron self-assigned this Mar 30, 2026
@arbron arbron changed the base branch from 5.3.x to 6.0.x June 5, 2026 19:00
Adds a new syntax to the change value for `NumberField` that allows
for specifying a maximum or minimum when adding or subtracting:

- `system.abilities.str.value | ADD | 2 <= 20`
- `flags.dnd5e.weaponCriticalThreshold | SUBTRACT | 1 >= 16`

Also supports formulas within the limit:

- `system.abilities.str.value | ADD | 2 <= 18 + @prof`

Closes #6860

@Fyorl Fyorl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given our strategy for conditional AE application, perhaps a special syntax just for number fields is unnecessary, and this would be subsumed by the conditional AE work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to specify min and max for active effects adding and subtracting on number fields

2 participants