5E Product Walkthrough Playlist
  1. #1
    Valyar's Avatar
    Join Date
    Mar 2018
    Location
    Europe
    Posts
    2,117

    [Unity] Expression to roll XdX and keep every result of X

    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.
    The past is a rudder to guide us, not an anchor to hold us back.

  2. #2
    Quote Originally Posted by Valyar View Post
    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 >
    Last edited by Kelrugem; November 26th, 2020 at 17:44.

  3. #3
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,148
    Blog Entries
    9
    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.atlassia...0/Rolling+Dice

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

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  4. #4
    Quote Originally Posted by LordEntrails View Post
    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.atlassia...0/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)

  5. #5
    <- Disregard, I thought I got it ->

  6. #6
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in