Отсканируй на iPhone, чтобы установить
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.
Что нового
Версия 1.2
Change setup question, no need for updates
Что делает
Действий: 56-
Show AlertNuke
-
Ask for InputWhere would you like to nuke?
-
Choose from Menu… was selected. Is this correct?
-
Choose from MenuYes
-
Ask for InputNuclear launch code?
-
If
-
If
-
Show AlertCode not accepted!
-
Stop This Shortcut
-
If
-
Show AlertDebug
-
Choose from MenuDebug: Hit or Miss?
-
Choose from MenuHit
-
Show AlertConfirmation
-
Show AlertNuke sent!
-
Wait
-
Number
-
If
-
Show AlertNuke has hit!
-
Stop This Shortcut
-
If
-
Show AlertOops!
-
Choose from MenuMiss
-
Show AlertConfirmation
-
Show AlertNuke sent!
-
Wait
-
Number
-
If
-
Show AlertOops!
-
If
-
Show AlertNuke did not hit!
-
Stop This Shortcut
-
Choose from MenuRandomize
-
Show AlertConfirmation
-
Show AlertNuke sent!
-
Wait
-
Random Number
-
If
-
Show AlertNuke has hit!
-
Stop This Shortcut
-
If
-
Show AlertNuke did not hit!
-
Stop This Shortcut
-
If
-
Show AlertConfirmation
-
Show AlertNuke sent!
-
Wait
-
Random Number
-
If
-
Show AlertNuke has hit!
-
Stop This Shortcut
-
If
-
Show AlertNuke did not hit!
-
Stop This Shortcut
-
Choose from MenuNo
-
Show NotificationThank you for using this service
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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")
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Вам также может понравиться
Реклама