ShareShortcuts

Nuke!

Nuke who you want when you want

bearflare20
Fork “Nuke!”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so bearflare20 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
31K
Saved
4
Actions
56
Category
Fun
Version
1.2
Language
EN

Nuke who you want when you want. I made this solely because I was bored. I made it overcomplicated too just because. This is obviously fake but I think some people still take things like this wrong, so here’s your reminder.

What's New

Version 1.2

Change setup question, no need for updates

Version History
1.2 Nov 17, 2023

Change setup question, no need for updates

1.1 Aug 14, 2023

Removed text “This code is 5 digits” because the code can be any length

1.0 Aug 8, 2023

First release

What it does

56 actions
  1. Show Alert
    Nuke
  2. Ask for Input
    Where would you like to nuke?
  3. Choose from Menu
    … was selected. Is this correct?
  4. Choose from Menu
    Yes
  5. Ask for Input
    Nuclear launch code?
  6. If
  7. If
  8. Show Alert
    Code not accepted!
  9. Stop This Shortcut
  10. If
  11. Show Alert
    Debug
  12. Choose from Menu
    Debug: Hit or Miss?
  13. Choose from Menu
    Hit
  14. Show Alert
    Confirmation
  15. Show Alert
    Nuke sent!
  16. Wait
  17. Number
  18. If
  19. Show Alert
    Nuke has hit!
  20. Stop This Shortcut
  21. If
  22. Show Alert
    Oops!
  23. Choose from Menu
    Miss
  24. Show Alert
    Confirmation
  25. Show Alert
    Nuke sent!
  26. Wait
  27. Number
  28. If
  29. Show Alert
    Oops!
  30. If
  31. Show Alert
    Nuke did not hit!
  32. Stop This Shortcut
  33. Choose from Menu
    Randomize
  34. Show Alert
    Confirmation
  35. Show Alert
    Nuke sent!
  36. Wait
  37. Random Number
  38. If
  39. Show Alert
    Nuke has hit!
  40. Stop This Shortcut
  41. If
  42. Show Alert
    Nuke did not hit!
  43. Stop This Shortcut
  44. If
  45. Show Alert
    Confirmation
  46. Show Alert
    Nuke sent!
  47. Wait
  48. Random Number
  49. If
  50. Show Alert
    Nuke has hit!
  51. Stop This Shortcut
  52. If
  53. Show Alert
    Nuke did not hit!
  54. Stop This Shortcut
  55. Choose from Menu
    No
  56. Show Notification
    Thank you for using this service

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color yellow
#define glyph fire

alert("Are you sure you would like to nuke?", "Nuke")
prompt("Where would you like to nuke?")

menu "{} was selected. Is this correct?" {
item "Yes":
	const ProvidedInput = prompt("Nuclear launch code?", "Number")
	if ProvidedInput != 123456 {
		if ProvidedInput != 123456 {
			alert("Wrong code! Service halted!", "Code not accepted!")
			stop()
		} else {
			alert("Debug mode enabled", "Debug")
			menu "Debug: Hit or Miss?" {
			item "Hit":
				alert("Are you sure you would like to nuke {}?", "Confirmation")
				alert("The nuke for {} has been sent. Estimated arrival to {} is 5 seconds.", "Nuke sent!")
				wait(5)
				const Number = 1
				if Number <> 1 {
					alert("The nuke for {} has arrived and hit. Thank you for using this service. (Number is {Number})", "Nuke has hit!")
					stop()
				} else {
					alert("I don't know how this happened but you chose hit and it... missed?", "Oops!")
				}
			item "Miss":
				alert("Are you sure you would like to nuke {}?", "Confirmation")
				alert("The nuke for {} has been sent. Estimated arrival to {} is 5 seconds.", "Nuke sent!")
				wait(5)
				const Number1 = 100
				if Number1 <> 1 {
					alert("It looks like you pressed missed. But it seems like it... hit?", "Oops!")
				} else {
					alert("The nuke did not hit! This could be due to it being disarmed or not being in target. Thank you for using this service. (Number is {Number1})", "Nuke did not hit!")
					stop()
				}
			item "Randomize":
			}
			alert("Are you sure you would like to nuke {}?", "Confirmation")
			alert("The nuke for {} has been sent. Estimated arrival to {} is 5 seconds.", "Nuke sent!")
			wait(5)
			const RandomNumber = randomNumber(1, 100)
			if RandomNumber <> 1 {
				alert("The nuke for {} has arrived and hit. Thank you for using this service. (Number is {RandomNumber})", "Nuke has hit!")
				stop()
			} else {
				alert("The nuke did not hit! This could be due to it being disarmed or not being in target. Thank you for using this service. (Number is {RandomNumber})", "Nuke did not hit!")
				stop()
			}
		}
	} else {
	}
	alert("Are you sure you would like to nuke {}?", "Confirmation")
	alert("The nuke for {} has been sent. Estimated arrival to {} is 5 seconds.", "Nuke sent!")
	wait(5)
	const RandomNumber1 = randomNumber(1, 100)
	if RandomNumber1 <> 1 {
		alert("The nuke for {} has arrived and hit. Thank you for using this service.", "Nuke has hit!")
		stop()
	} else {
		alert("The nuke did not hit! This could be due to it being disarmed or not being in target. Thank you for using this service.", "Nuke did not hit!")
		stop()
	}
item "No":
	showNotification("Thank you for using this service")
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Advertisement

You Might Also Like

See All
Advertisement