darrenan
March 21st, 2022, 18:35
What is the difference between the 'result' and 'value' fields in a die result passed into the modRoll or onRoll handler? They seem to always have the same numeric value.
Context: There's a condition in the ruleset I'm working on that changes the highest die in a roll to a 1 (this is a count successes dice mechanic). Should my code change both 'result' and 'value' to 1, or is the answer to this question entirely dependent on the logic in my ruleset? Currently my code only looks at 'result' to determine overall results of the roll.
Context: There's a condition in the ruleset I'm working on that changes the highest die in a roll to a 1 (this is a count successes dice mechanic). Should my code change both 'result' and 'value' to 1, or is the answer to this question entirely dependent on the logic in my ruleset? Currently my code only looks at 'result' to determine overall results of the roll.