ShareShortcuts

Pick A Number

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

sameerhereiki
Bifurcar “Pick A Number”

¿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 sameerhereiki 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
51K
Guardado
1
Acciones
27
Categoría
Fun
Versión
1.2
Idioma
EN

Features: Rolls a classic dice

Or Picks a number between custom numbers

Novedades

Versión 1.2

Added updates notifs

Historial de versiones
1.2 15 de abr. de 2021

Added updates notifs

1.1 15 de abr. de 2021

Fixed a bug where custom dice didn’t work

1.0 14 de abr. de 2021

First release

Qué hace

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

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.

#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()
	}
}
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 sameerhereiki

Ver todo

También te puede gustar

Ver todo
Publicidad