Отсканируй на iPhone, чтобы установить
Quick and easy rolling of different types of dice. Has a custom die option.
Что нового
Версия 1.0
First release
Что делает
Действий: 37-
Choose from MenuWhat Kind?
-
Choose from Menutetrahedron (4 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menunormal die (6 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menuoctahedron (8 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menudodecahedron (12 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menuicosahedron (20 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menucustom die (# number of sides)
-
Ask for InputHow Many Sides?
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from MenuRoll Again?
-
Choose from MenuYes
-
Run ShortcutRoll A Die
-
Choose from MenuNo
-
Stop This Shortcut
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#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()
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от theshortcutguy2
Вам также может понравиться
Реклама