Bobcloclimar Posted November 3, 2023 Clone Share Posted November 3, 2023 Two questions/requests: Would it be possible for the parser to check for a hanging semicolon at the end of an entry and remove it? I will sometimes copy-paste multiple rolls into a single entry (e.g. rolling 3d6 multiple times in a row), but forget to remove the final semicolon, which is rejected as a syntax error (but still hangs around in the dice roller). Is there a way to specify a minimum or maximum value for a roll? For example, something like max(1d6+1,3) would return any rolls less than 3 as a 3, and min(1d6+1,4) would return any rolls greater than 4 as a 4. I didn't see one in the dice tower user's guide. Thanks. Link to comment Share on other sites More sharing options...
Eric Posted November 10, 2023 Clone Share Posted November 10, 2023 @Bobcloclimar 1. Yes, this shouldn't be too hard. 2. Hmm. It could probably be done, though there's some questions I have. Comparing the numeric result of 1d6+1 (a number between 2 and 7) against 3 or 4 is easy, but would would be the expected behavior of min(2d6+1,4) in your example? Should it roll 2d6, add 1, and if the result is more than 4, return 4? Or do you expect it would roll 2d6, substitute any individual roll more than 4 with a 4, and then add 1? Link to comment Share on other sites More sharing options...
Bobcloclimar Posted November 10, 2023 Author Clone Share Posted November 10, 2023 Thanks for looking into this. My preference would be the former behavior - the roll with modifiers is made and totaled, then compared to the second argument. The latter behavior can be replicated with the former - e.g. specified as min(1d6,4)+min(1d6,4)+1. Link to comment Share on other sites More sharing options...
Eric Posted November 12, 2023 Clone Share Posted November 12, 2023 Got it. Added to the feature requests! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now