ShareShortcuts

Roll A Die

Quick and easy rolling of different types of dice

theshortcutguy2
Bifurcar “Roll A Die”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que theshortcutguy2 reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
39K
Guardado
0
Acciones
37
Categoría
Calculations
Versión
1.0
Idioma
EN

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

Novedades

Versión 1.0

First release

Historial de versiones
1.0 18 de sep. de 2022

First release

Qué hace

37 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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()
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de theshortcutguy2

Ver todo

También te puede gustar

Ver todo
Publicidad