ShareShortcuts

Roll A Die

Quick and easy rolling of different types of dice

theshortcutguy2
Fork “Roll A Die”

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 theshortcutguy2 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
39K
Saved
0
Actions
37
Category
Calculations
Version
1.0
Language
EN

Quick and easy rolling of different types of dice. Has a custom die option.

What's New

Version 1.0

First release

Version History
1.0 Sep 18, 2022

First release

What it does

37 actions
  1. Choose from Menu
    What Kind?
  2. Choose from Menu
    tetrahedron (4 sides)
  3. Random Number
  4. Show Notification
    Rolling...
  5. Wait
  6. Show Notification
    …
  7. Choose from Menu
    normal die (6 sides)
  8. Random Number
  9. Show Notification
    Rolling...
  10. Wait
  11. Show Notification
    …
  12. Choose from Menu
    octahedron (8 sides)
  13. Random Number
  14. Show Notification
    Rolling...
  15. Wait
  16. Show Notification
    …
  17. Choose from Menu
    dodecahedron (12 sides)
  18. Random Number
  19. Show Notification
    Rolling...
  20. Wait
  21. Show Notification
    …
  22. Choose from Menu
    icosahedron (20 sides)
  23. Random Number
  24. Show Notification
    Rolling...
  25. Wait
  26. Show Notification
    …
  27. Choose from Menu
    custom die (# number of sides)
  28. Ask for Input
    How Many Sides?
  29. Random Number
  30. Show Notification
    Rolling...
  31. Wait
  32. Show Notification
    …
  33. Choose from Menu
    Roll Again?
  34. Choose from Menu
    Yes
  35. Run Shortcut
    Roll A Die
  36. Choose from Menu
    No
  37. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color gray
#define glyph boxOutline


menu "What Kind?" {
item "tetrahedron (4 sides)":
	randomNumber(1, 4)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
item "normal die (6 sides)":
	randomNumber(1, 6)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
item "octahedron (8 sides)":
	randomNumber(1, 8)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
item "dodecahedron (12 sides)":
	randomNumber(1, 12)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
item "icosahedron (20 sides)":
	randomNumber(1, 20)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
item "custom die (# number of sides)":
	const ProvidedInput = prompt("How Many Sides?", "Number")
	randomNumber(1, ProvidedInput)
	showNotification("Rolling... ", false)
	wait(0)
	showNotification(, false)
}

menu "Roll Again?" {
item "Yes":
	runSelf()
item "No":
	stop()
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

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

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

Advertisement

More by theshortcutguy2

See All

You Might Also Like

See All
Advertisement