ShareShortcuts

Dice Bag

Lets you "Roll" dice and keeps a time-stamped log of your rolls

drbobisin
Fork “Dice Bag”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so drbobisin gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
66K
Saved
0
Actions
77
Category
Fun
Version
1.2
Language
EN

Preview

Lets you "Roll" dice and keeps a time-stamped log of your rolls. It also lists the individual dice results if you need to exclude the smallest or largest die result.

Good for Table Top RPGs.

If you’ve ever forgotten your dice at home, this will keep you from having to borrow.

What's New

Version 1.2

Added Highest/Average/Lowest Calculations. Up Arrows appear to the left of highest roll values. Down Arrows appear to the right of lowest roll values. Average of all rolls is in parenthesis to the right of the roll results. Moved Roll Total to Beginning of line.

Version History
1.2 Aug 24, 2019

Added Highest/Average/Lowest Calculations. Up Arrows appear to the left of highest roll values. Down Arrows appear to the right of lowest roll values. Average of all rolls is in parenthesis to the right of the roll results. Moved Roll Total to Beginning of line.

1.0 Aug 12, 2019

First release

What it does

77 actions
  1. Comment
    Dice Bag by Bob Orr v1.0 (8/11/19) Lets you "Roll" dice and keeps a time-stamped log of your rolls. It also lists the individual dice results if you need to exclude the smallest or largest die result. v1.1 (8/11/19) Added a Show Note step at the end…
  2. Comment
    The below logic is to check to see if a note exists for today's game.
  3. Find Notes
  4. Set Variable
    Note1
  5. Count
  6. Set Variable
    Exists1
  7. If
  8. If
  9. Comment
    Creates a note called "Dice Roll Log XX/XX/XX" for today if one doesn't already exist.
  10. Date
  11. Format Date
  12. Text
  13. Create Note
  14. Set Variable
    Note1
  15. Nothing
  16. Comment
    Creating Result Variables
  17. Set Variable
    Result1
  18. Nothing
  19. Number
  20. Set Variable
    NumResult1
  21. Comment
    Setting and generating "Number of Dice" Menu. If you need more or varied dice quantities, just add a number on a seperate line in the below text box.
  22. Text
  23. Split Text
  24. Choose from List
  25. Set Variable
    Number1
  26. Nothing
  27. Comment
    Setting and generating "Type of Dice" Menu. If you need more or varied dice types, just add a number on a seperate line in the below text box.
  28. Text
  29. Split Text
  30. Choose from List
  31. Set Variable
    Dice1
  32. Nothing
  33. Repeat
  34. Random Number
  35. Round Number
  36. Set Variable
    Number2
  37. Format Number
  38. Text
  39. Add to Variable
  40. Nothing
  41. Comment
    Had to make the variable NumResult1 a text variable to show up in the final result. So I added steps in the repeat to translate it to and from text for calculation purposes. Could make the shortcut more efficient by adding a numeric variable, and co…
  42. Get Variable
  43. Get Numbers from Input
  44. Calculate
  45. Format Number
  46. Set Variable
    NumResult1
  47. Nothing
  48. Comment
    Calculating Highest Die
  49. Get Variable
  50. Calculate Statistics
  51. Format Number
  52. Set Variable
    DieHigh1
  53. Nothing
  54. Comment
    Calculating Average of Dice Rolls
  55. Get Variable
  56. Calculate Statistics
  57. Format Number
  58. Set Variable
    DieAvg1
  59. Nothing
  60. Comment
    Calculating Lowest Die
  61. Get Variable
  62. Calculate Statistics
  63. Format Number
  64. Set Variable
    DieLow1
  65. Nothing
  66. Comment
    Date & formatting is for the line item time-stamp. (Keeping your rolls honest.)
  67. Date
  68. Format Date
  69. Comment
    Putting it all together.
  70. Get Variable
  71. Comment
    Set both below Find Text as a regular expression. If your low die was 2 and you had 20 it would place the low arrow between the Two and the Zero
  72. Replace Text
  73. Replace Text
  74. Combine Text
  75. Text
  76. Append to Note
  77. Open Note

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by drbobisin

See All

You Might Also Like

See All
Advertisement