tweak/dice_highest_lowest_mods

Feb 11, 2022 10:05 am
Hn and Ln dice suffixes for keeping the highest and lowest n dice.

Also integrated into the DnD 5e adv/dis rollers.

https://i.imgur.com/odOAdxN.png
Quote
Feb 11, 2022 10:24 am
Nice with them all displaying and the strikeout.

The strikeout on the 4 is a easy to miss, but the greyout helps with that.

Do we want that strikeout to extend to the comma (,) between the dice?
Quote
Feb 11, 2022 10:33 am
It looks really good. It would be even better if you could roll sets of dice and have advantage between those or grey out a result between two different dice, but this should already cover most cases.
Quote
Feb 11, 2022 10:34 am
I have no preference on whether the comma should be greyed and crossed out or not
Quote
Feb 11, 2022 1:51 pm

Have you looked at this on staging? Public

No
Yes - I'm happy with it
Briefly - I'm happy with it
Yes - I'm NOT happy with it
Quote
Feb 11, 2022 2:21 pm
Er... 4d6l3 seems to be dropping the highest 3 instead of keeping the lowest 3?
I would expect it to mirror the 4d6h3 which keeps 3.
Quote
Feb 11, 2022 2:24 pm
vagueGM says:
Er... 4d6l3 seems to be dropping the highest 3 instead of keeping the lowest 3?
I would expect it to mirror the 4d6h3 which keeps 3.
Good catch.
Quote
Feb 11, 2022 2:28 pm
:)

Hard to see such things with 2d20l1, as it works out the same.
Quote
Feb 11, 2022 2:34 pm
vagueGM says:
:)

Hard to see such things with 2d20l1, as it works out the same.
Yeah. I confused myself as I started with DH and DL (for Drop High/Drop Low) options - I refactored it to high/low and then zigged when I should have zagged. I must have figured Drop Highest was the same as Lowest somewhere along my journey.

I've updated staging.
Quote
Feb 11, 2022 2:35 pm
I have seen more than one implantation with only drop lowest and keep highest...
Quote
Feb 11, 2022 2:41 pm
It is now working in Staging now. May test some more edge cases later.
Can you believe my rolls though?
Quote:
drop highest, take 2 - (4d6l3, 4d6l3, 4d6l3)
4d6l3 : (5,1,3,1) = 5
4d6l3 : (2,6,2,1) = 5
4d6l3 : (1,2,4,3) = 6
Almost like they are tying to trick me into believing it is still only totalling one die. :)
Quote
Feb 11, 2022 2:41 pm
vagueGM says:
I have seen more than one implantation with only drop lowest and keep highest...
In some ways, the most important part of that check-in was adding some comments to the dice roller code so I can follow it in the future. How deep are those arrays?!

https://i.imgur.com/ogYjy9L.png
Quote
Feb 11, 2022 2:44 pm
As you said: Dice rollers are complex code --and code that takes user input, too. Comments are good, and those ones look like good ones.
Quote
Feb 27, 2022 11:48 am
Probably a rare-ish case but if you try to keep a double digit number of dice, it seems to only read the last digit

https://i.imgur.com/bj9bRIH.png
Quote
Feb 27, 2022 12:15 pm
bowlofspinach says:
... keep a double digit number of dice, it seems to only read the last digit
Keep 20 fails to do the right thing as well, and keeps them all, dropping none.
Quote
Feb 27, 2022 12:44 pm
I think that's the same issue as with my Keep 10 above. I assume it reads a 0, which it doesn't accept and so just ignores the command. Or something
Quote
Feb 27, 2022 12:46 pm
Quite right. 25d6h22 keeps two.
Quote
Feb 28, 2022 8:44 am
bowlofspinach says:
Probably a rare-ish case but if you try to keep a double digit number of dice, it seems to only read the last digit
Cheers. Nice catch.

https://i.imgur.com/yckbR6t.png

I needed to keep the * with the \d.

Updated staging.
Quote
Feb 28, 2022 8:45 am
Seems to be working now!
Quote
Feb 28, 2022 8:51 am
Presumably that should be be + rather than *, right? It does not make sense for there to be zero digits after the hlHL.
Quote
load next

You do not have permission to post in this thread.