FoundryVTT-Level-Up-Official
FoundryVTT-Level-Up-Official copied to clipboard
[Feat] Conditional/Ternary Operator in Roll Formula
It would be very helpful to have something like condition ? trueExpression : falseExpression
work.
For example, a feature that adds to blindsight, but only if one has it already, would give a Sense grant with the formula @attributes.senses.blindsight.distance > 0 ? @attributes.senses.blindsight.distance + 30 : 0