ShareShortcuts

Roll A Die

Quick and easy rolling of different types of dice

theshortcutguy2
„Roll A Die“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit theshortcutguy2 die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
39K
Gesichert
0
Aktionen
37
Kategorie
Calculations
Version
1.0
Sprache
EN

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

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 18. Sep 2022

First release

Was er macht

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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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()
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Mehr von theshortcutguy2

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung