ShareShortcuts

Roll A Die

Quick and easy rolling of different types of dice

theshortcutguy2
Dupliquer « Roll A Die »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que theshortcutguy2 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
39K
Enregistré
0
Actions
37
Catégorie
Calculations
Version
1.0
Langue
EN

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

Nouveautés

Version 1.0

First release

Historique des versions
1.0 18 sept. 2022

First release

Ce qu’il fait

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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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()
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de theshortcutguy2

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité