PDA

View Full Version : [Unity] Expression to roll XdX and keep every result of X



Valyar
November 26th, 2020, 11:17
It seems that one of the popular method of rolling dice pools is not implemented in unity or not documented in the Wiki. Basically I need to be able to roll pool of dice (any type) and keep every dice that lands on X. Keep highest or lowest is not an option, as it keeps number of highest dice no matter the digit.

For example: Roll 10d6 and keep every dice that is 6.

Kelrugem
November 26th, 2020, 17:14
It seems that one of the popular method of rolling dice pools is not implemented in unity or not documented in the Wiki. Basically I need to be able to roll pool of dice (any type) and keep every dice that lands on X. Keep highest or lowest is not an option, as it keeps number of highest dice no matter the digit.

For example: Roll 10d6 and keep every dice that is 6.

When I am not completely mistaken, you can also use =, < and > in the dice expressions :) (indeed, not in the wiki, there was a post from Moon Wizard about that somewhere, but I cannot find it anymore, and I may be completely mistaken here ) But sadly I have no example for that right now, you may play around with that a bit. Or maybe use the successes thingy? /die 10d6s6? (depending on what you want to do)

EDIT: But there was also a bug related to that, I think, for example the # in the wiki does not work at the moment, the same could be true for the =, <, and > :)

LordEntrails
November 26th, 2020, 17:16
You can keep highest or lowest (like your example, would be "/die 10d6k6"), but you can't keep an arbitrary number in the middle. See; https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/688330/Rolling+Dice

If you want other things, you'll need to add it to the Wish List; https://fg2app.idea.informer.com/

Kelrugem
November 26th, 2020, 17:19
You can keep highest or lowest (like your example, would be "/die 10d6k6"), but you can't keep an arbitrary number in the middle. See; https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/688330/Rolling+Dice

If you want other things, you'll need to add it to the Wish List; https://fg2app.idea.informer.com/

/die 10d6k6 would take the highest six numbers of these 10 rolls, but Valyar just want that the number 6 survives :) (I also first misunderstood that)

Kelrugem
November 26th, 2020, 17:40
<- Disregard, I thought I got it :) ->

Kelrugem
November 27th, 2020, 16:42
Oki, now I have the code :)

/die 10d6s6#6

That is: it rolls 10d6 and counts the successes of all 6; but with the #6 all successes get the number 6, so, when the successes are counted, then the total sum is (# of rolled 6)*6, thus, precisely the total sum you would expect for when just keeping the sixes :)