ShareShortcuts

Pick A Number

Features: Rolls a classic dice Or Picks a number between custom numbers

sameerhereiki
Dupliquer « Pick A Number »

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 sameerhereiki 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
51K
Enregistré
1
Actions
27
Catégorie
Fun
Version
1.2
Langue
EN

Features: Rolls a classic dice

Or Picks a number between custom numbers

Nouveautés

Version 1.2

Added updates notifs

Historique des versions
1.2 15 avr. 2021

Added updates notifs

1.1 15 avr. 2021

Fixed a bug where custom dice didn’t work

1.0 14 avr. 2021

First release

Ce qu’il fait

27 actions
  1. Comment
    Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments
  2. Text
  3. Set Variable
    Localversion
  4. URL
    https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json
  5. Get Contents of URL
    …
  6. Set Variable
    Onlineversion
  7. Nothing
  8. If
  9. Show Alert
  10. Open URLs
  11. If
  12. Show Alert
  13. Show Alert
  14. Nothing
  15. Choose from Menu
  16. Choose from Menu
    Classic dice
  17. Random Number
  18. Show Result
  19. Choose from Menu
    Custom dice
  20. Ask for Input
    First number
  21. Set Variable
    Num1
  22. Nothing
  23. Ask for Input
    Second number
  24. Set Variable
    Num2
  25. Nothing
  26. Random Number
  27. Show Result

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.

#include 'actions/web'
#define color green
#define glyph braille

// Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments

const Text = "{\\"version\\":\\"1.2\\"}"
@Localversion = Text
url("https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json")
downloadURL()
@Onlineversion
nothing()

if Text != @Onlineversion {
	confirm("There is a new update available please download it")
	openURL("https://shareshortcuts.com/shortcuts/1292-pick-a-number.html")
} else {
	confirm("How to use:\nClassic dice: 1-6\nCustom dice: first num - second num")
	confirm("Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments")
	nothing()
	menu nil {
	item "Classic dice":
		randomNumber(1, 6)
		show()
	item "Custom dice":
		prompt("First number", "Number")
		@Num1
		nothing()
		prompt("Second number", "Number")
		@Num2
		nothing()
		randomNumber(@Num1, @Num2)
		show()
	}
}
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 sameerhereiki

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité