ShareShortcuts

Roll the dice 1.0

You can roll a dice!

gooey321
Fork “Roll the dice 1.0”

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 gooey321 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
54K
Saved
0
Actions
58
Category
Fun
Version
1.0
Language
EN

You can roll a dice! (Good for board games and stuff like that)

What's New

Version 1.0

First release

Version History
1.0 Dec 7, 2020

First release

What it does

58 actions
  1. Text
  2. Set Variable
    Name
  3. Dictionary
  4. Choose from Menu
    How numbers are on the dice?
  5. Choose from Menu
    1-6
  6. Random Number
  7. Show Result
  8. Show Result
  9. Choose from Menu
    Play again?
  10. Choose from Menu
    Yes
  11. Run Shortcut
  12. Choose from Menu
    No
  13. Stop This Shortcut
  14. Choose from Menu
    1-10
  15. Random Number
  16. Show Result
  17. Show Result
  18. Choose from Menu
    Play again?
  19. Run Shortcut
  20. Choose from Menu
    Yes
  21. Stop This Shortcut
  22. Choose from Menu
    No
  23. Choose from Menu
    1-12
  24. Random Number
  25. Show Result
  26. Show Result
  27. Choose from Menu
    Play again?
  28. Run Shortcut
  29. Choose from Menu
    Yes
  30. Stop This Shortcut
  31. Choose from Menu
    No
  32. Choose from Menu
    1-18
  33. Random Number
  34. Show Result
  35. Show Result
  36. Choose from Menu
    Play again?
  37. Choose from Menu
    Yes
  38. Run Shortcut
  39. Choose from Menu
    No
  40. Stop This Shortcut
  41. Choose from Menu
    1-24
  42. Random Number
  43. Show Result
  44. Show Result
  45. Choose from Menu
    Play again?
  46. Choose from Menu
    YesName
  47. Run Shortcut
  48. Choose from Menu
    No
  49. Stop This Shortcut
  50. Choose from Menu
    1-30
  51. Random Number
  52. Show Result
  53. Show Result
  54. Choose from Menu
    Play again?
  55. Choose from Menu
    Yes
  56. Run Shortcut
  57. Choose from Menu
    No
  58. 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 green
#define glyph loadingIndicator

@Name = "Roll the dice 1.0"

menu "How numbers are on the dice?" {
item "1-6":
	randomNumber(1, 6)
	show("The number rolled was.")
	show()
	menu "Play again?" {
	item "Yes":
		runSelf()
	item "No":
		stop()
	}
item "1-10":
	randomNumber(1, 10)
	show("The number rolled was...")
	show()
	menu "Play again?" {
		runSelf()
	item "Yes":
		stop()
	item "No":
	}
item "1-12":
	randomNumber(1, 12)
	show("The number rolled was...")
	show()
	menu "Play again?" {
		runSelf()
	item "Yes":
		stop()
	item "No":
	}
item "1-18":
	randomNumber(1, 18)
	show("The number was...")
	show()
	menu "Play again?" {
	item "Yes":
		runSelf()
	item "No":
		stop()
	}
item "1-24":
	randomNumber(1, 24)
	show("The number rolled was...")
	show()
	menu "Play again?" {
	item "Yes{@Name}":
		runSelf()
	item :
		stop()
	}
item "1-30":
	randomNumber(1, 30)
	show("The number rolled was...")
	show()
	menu "Play 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 gooey321

See All

You Might Also Like

See All
Advertisement