ShareShortcuts
Fork “Galaxy builder”

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 gooey321 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
49K
Saved
2
Actions
95
Category
Fun
Version
1.0
Language
EN

This is a game where you start to sell cookies and earn money to upgrade your shop and become the richest cookie seller ever!

What's New

Version 1.0

First release

Version History
1.0 Aug 12, 2021

First release

What it does

95 actions
  1. Dictionary
  2. Number
  3. Set Variable
    Money
  4. Number
  5. Set Variable
    Level
  6. Ask for Input
    What will your shops name be?
  7. Number
  8. Repeat
  9. Text
  10. Set Variable
    Shop type
  11. Text
  12. Choose from Menu
    …
  13. Choose from Menu
    Sell coo
  14. If
  15. Number
  16. Set Variable
    Getmoney
  17. If
  18. If
  19. Number
  20. Set Variable
    Getmoney
  21. If
  22. If
  23. Number
  24. Set Variable
    Getmoney
  25. If
  26. If
  27. Number
  28. Set Variable
    Getmoney
  29. If
  30. If
  31. Number
  32. Set Variable
    Getmoney
  33. If
  34. If
  35. Number
  36. Set Variable
    Getmoney
  37. If
  38. Calculate
  39. Set Variable
    Money
  40. Choose from Menu
    Upgrade shop
  41. Choose from Menu
    Upgrade shop
  42. Choose from Menu
    Lvl 2: 50$
  43. If
  44. Show Result
  45. If
  46. Calculate
  47. Set Variable
    Money
  48. Number
  49. Set Variable
    Level
  50. Show Result
  51. Choose from Menu
    Lvl 3: 500$
  52. If
  53. Show Result
  54. If
  55. Calculate
  56. Set Variable
    Money
  57. Number
  58. Set Variable
    Level
  59. Choose from Menu
    Lvl 4: 1500$
  60. If
  61. Show Result
  62. If
  63. Calculate
  64. Set Variable
    Money
  65. Number
  66. Set Variable
    Level
  67. Choose from Menu
    Lvl 5: 2000$
  68. If
  69. Show Result
  70. If
  71. Calculate
  72. Set Variable
    Money
  73. Number
  74. Set Variable
    Level
  75. Choose from Menu
    Cookie shop: 10000$
  76. If
  77. Show Result
  78. If
  79. Calculate
  80. Set Variable
    Money
  81. Number
  82. Set Variable
    Level
  83. Text
  84. Set Variable
    Shop type
  85. Show Result
  86. Choose from Menu
    Choose
  87. Choose from Menu
    Continue playing
  88. Choose from Menu
    Quit
  89. Text
  90. Show Result
  91. Stop This Shortcut
  92. Choose from Menu
    Quit
  93. Text
  94. Show Result
  95. Stop This Shortcut

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 violet

@Money = 0
@Level = 1
prompt("What will your shops name be?")
const Number = 10000

repeat _ for Number {
	@ShopType = "Lemonade stand"
	menu  {
	item "Sell cookies":
		if @Level == 1 {
			@Getmoney = 5
		} else {
			if @Level == 2 {
				@Getmoney = 10
			} else {
				if @Level == 3 {
					@Getmoney = 20
				} else {
					if @Level == 4 {
						@Getmoney = 30
					} else {
						if @Level == 5 {
							@Getmoney = 50
						} else {
							if @ShopType == 6 {
								@Getmoney = 100
							} else {
							}
						}
					}
				}
			}
		}
		@Money = @Money + @Getmoney
	item "Upgrade shop":
		menu "Upgrade shop" {
		item "Lvl 2: 50$":
			if @Money < 50 {
				show("You do not have enough money")
			} else {
				@Money = @Money - 50
				@Level = 2
				show("You bought it!")
			}
		item "Lvl 3: 500$":
			if @Money < 500 {
				show("You do not have enough money to buy")
			} else {
				@Money = @Money - 500
				@Level = 3
			}
		item "Lvl 4: 1500$":
			if @Money < 1500 {
				show("You do not have enough money to buy")
			} else {
				@Money = @Money - 1500
				@Level = 4
			}
		item "Lvl 5: 2000$":
			if @Money < 2000 {
				show("You do not have enough money to buy")
			} else {
				@Money = 2000 - @Money
				@Level = 5
			}
		item "Cookie shop: 10000$":
			if @Money < 10000 {
				show("You do not have enough money to buy")
			} else {
				@Money = 10000 - @Money
				@Level = 6
				@ShopType = "Cookie shop"
				show("Congratulations you have finished Galaxy builder the demo version! You can keep playing but there is nothing left to complete!")
				menu "Choose" {
				item "Continue playing":
				item "Quit":
					show()
					stop()
				}
			}
		}
	item "Quit":
		show()
		stop()
	}
}
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

More by gooey321

See All

You Might Also Like

See All
Advertisement