Advertisement
EstrumbiloPlease

Cookie Clicker?

Apr 14th, 2020
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.25 KB | None | 0 0
  1. Let's make a game!
  2. name:Cookie Clicker?
  3. by:Estrumbilo
  4. desc:?
  5. created:14/04/2020
  6. version:0.1
  7.  
  8. Settings
  9. stylesheet:https://pastebin.com/68BPwLSr
  10. background:http://orteil.dashnet.org/cookieclicker/img/bgBlue.jpg
  11. spritesheet:icons, 48 by 48, http://orteil.dashnet.org/cookieclicker/img/icons.png
  12. building cost increase:120%
  13.  
  14. Buttons
  15.  
  16. *cookieButton
  17. on click:yield (1 * (cursorBoost + 1) * (globalBoost + 1) * heavenlyChips) cookie
  18. on tick:do checkmile
  19. on checkmile:
  20. if (mile1 = 0 and cookies >= 1)
  21. mile1 is 1
  22. yield 1 exp
  23. toast You gained <b>1 EXP</b> for reaching <b>1</b> cookie in bank.
  24. end
  25. if (mile2 = 0 and cookies >= 10)
  26. mile2 is 1
  27. yield 1 exp
  28. toast You gained <b>1 EXP</b> for reaching <b>10</b> cookies in bank.
  29. end
  30. if (mile3 = 0 and cookies >= 100)
  31. mile3 is 1
  32. yield 1 exp
  33. toast You gained <b>1 EXP</b> for reaching <b>100</b> cookies in bank.
  34. end
  35. if (mile4 = 0 and cookies >= (pow(1*10,3)))
  36. mile4 is 1
  37. yield 2 exp
  38. toast You gained <b>2 EXP</b> for reaching <b>1,000</b> cookies in bank.
  39. end
  40. if (mile5 = 0 and cookies >= (pow(1*10,4)))
  41. mile5 is 1
  42. yield 2 exp
  43. toast You gained <b>2 EXP</b> for reaching <b>10,000</b> cookies in bank.
  44. end
  45. if (mile6 = 0 and cookies >= (pow(1*10,5)))
  46. mile6 is 1
  47. yield 2 exp
  48. toast You gained <b>2 EXP</b> for reaching <b>100,000</b> cookies in bank.
  49. end
  50. if (mile7 = 0 and cookies >= (pow(1*10,6)))
  51. mile7 is 1
  52. yield 3 exp
  53. toast You gained <b>3 EXP</b> for reaching <b>1 Million</b> cookies in bank.
  54. end
  55. if (mile8 = 0 and cookies >= (pow(1*10,7)))
  56. mile8 is 1
  57. yield 3 exp
  58. toast You gained <b>3 EXP</b> for reaching<b>10 Million</b> cookies in bank.
  59. end
  60. if (mile9 = 0 and cookies >= (pow(1*10,8)))
  61. mile9 is 1
  62. yield 3 exp
  63. toast You gained <b>3 EXP</b> for reaching <b>100 Million</b> cookies in bank.
  64. end
  65. if (mile10 = 0 and cookies >= (pow(1*10,9)))
  66. mile10 is 1
  67. yield 4 exp
  68. toast You gained <b>4 EXP</b> for reaching <b>1 Billion</b> cookies in bank.
  69. end
  70. if (mile11 = 0 and cookies >= (pow(1*10,10)))
  71. mile11 is 1
  72. yield 4 exp
  73. toast You gained <b>4 EXP</b> for reaching <b>10 Billion</b> cookies in bank.
  74. end
  75. if (mile12 = 0 and cookies >= (pow(1*10,11)))
  76. mile12 is 1
  77. yield 4 exp
  78. toast You gained <b>4 EXP</b> for reaching <b>100 Billion</b> cookies in bank.
  79. end
  80. if (mile13 = 0 and cookies >= (pow(1*10,12)))
  81. mile13 is 1
  82. yield 4 exp
  83. toast You gained <b>4 EXP</b> for reaching <b>1 Trillion</b> cookies in bank.
  84. end
  85. if (mile14 = 0 and cookies >= (pow(1*10,13)))
  86. mile14 is 1
  87. yield 5 exp
  88. toast You gained <b>5 EXP</b> for reaching <b>10 Trillion</b> cookies in bank.
  89. end
  90. if (mile15 = 0 and cookies >= (pow(1*10,14)))
  91. mile15 is 1
  92. yield 5 exp
  93. toast You gained <b>5 EXP</b> for reaching <b>100 Trillion</b> cookies in bank.
  94. end
  95. if (mile16 = 0 and cookies >= (pow(1*10,15)))
  96. mile16 is 1
  97. yield 6 exp
  98. toast You gained <b>6 EXP</b> for reaching <b>1 Quadrillion</b> cookies in bank.
  99. end
  100. if (mile17 = 0 and cookies >= (pow(1*10,16)))
  101. mile17 is 1
  102. yield 6 exp
  103. toast You gained <b>6 EXP</b> for reaching <b>10 Quadrillion</b> cookies in bank.
  104. end
  105. if (mile18 = 0 and cookies >= (pow(1*10,17)))
  106. mile18 is 1
  107. yield 6 exp
  108. toast You gained <b>6 EXP</b> for reaching <b>100 Quadrillion</b> cookies in bank.
  109. end
  110. if (mile19 = 0 and cookies >= (pow(1*10,18)))
  111. mile19 is 1
  112. yield 7 exp
  113. toast You gained <b>7 EXP</b> for reaching <b>1 Quintillion</b> cookies in bank.
  114. end
  115. if (mile20 = 0 and cookies >= (pow(1*10,19)))
  116. mile20 is 1
  117. yield 7 exp
  118. toast You gained <b>7 EXP</b> for reaching <b>10 Quintillion</b> cookies in bank.
  119. end
  120. if (mile21 = 0 and cookies >= (pow(1*10,20)))
  121. mile21 is 1
  122. yield 7 exp
  123. toast You gained <b>7 EXP</b> for reaching <b>100 Quintillion</b> cookies in bank.
  124. end
  125. if (mile22 = 0 and cookies >= (pow(1*10,21)))
  126. mile22 is 1
  127. yield 8 exp
  128. toast You gained <b>8 EXP</b> for reaching <b>1 Sextillion</b> cookies in bank.
  129. end
  130. if (mile23 = 0 and cookies >= (pow(1*10,22)))
  131. mile23 is 1
  132. yield 8 exp
  133. toast You gained <b>8 EXP</b> for reaching <b>10 Sextillion</b> cookies in bank.
  134. end
  135. if (mile24 = 0 and cookies >= (pow(1*10,23)))
  136. mile24 is 1
  137. yield 8 exp
  138. toast You gained <b>8 EXP</b> for reaching <b>100 Sextillion</b> cookies in bank.
  139. end
  140.  
  141. end
  142. on tick:yield 1 timeTotal
  143. on tick:yield 1 timeCurrent
  144. no tooltip
  145. no text
  146. class:bigButton hasFlares
  147. icon:https://i.imgur.com/MMuzLA7.png
  148.  
  149. Resources
  150.  
  151. *cookie|cookies
  152. name:Cookies
  153. no tooltip
  154. class:noBackground
  155. icon:icons[10,0]
  156.  
  157. *gold
  158. name:Gold
  159. no tooltip
  160. class:noBackground
  161. icon:icons[25,11]
  162. req:20 mines
  163.  
  164. *TEMPLATE
  165. hidden
  166.  
  167. *exp
  168. name:EXP
  169. no tooltip
  170. class:noBackground
  171.  
  172. *cursorP
  173. start with:0.2
  174. *cursorT
  175. *grandmaP
  176. start with:1
  177. *grandmaT
  178. *farmP
  179. start with:4
  180. *farmT
  181. *mineP
  182. start with:10
  183. *mineT
  184. *factoryP
  185. start with:20
  186. *factoryT
  187. *bankP
  188. start with:50
  189. *bankT
  190. *templeP
  191. start with:200
  192. *templeT
  193. *wtowerP
  194. start with:720
  195. *wtowerT
  196. *shipP
  197. start with:2650
  198. *shipT
  199. *labP
  200. start with:14000
  201. *labT
  202.  
  203. *TEMPLATE
  204. tag:milestone
  205. hidden
  206.  
  207. *mile1
  208. *mile2
  209. *mile3
  210. *mile4
  211. *mile5
  212. *mile6
  213. *mile7
  214. *mile8
  215. *mile9
  216. *mile10
  217. *mile11
  218. *mile12
  219. *mile13
  220. *mile14
  221. *mile15
  222. *mile16
  223. *mile17
  224. *mile18
  225. *mile19
  226. *mile20
  227. *mile21
  228. *mile22
  229. *mile23
  230. *mile24
  231.  
  232. *TEMPLATE
  233. hidden
  234.  
  235. *globalBoost
  236. *cursorBoost
  237. *grandmaBoost
  238. *farmBoost
  239. *mineBoost
  240. *factoryBoost
  241. *bankBoost
  242. *templeBoost
  243. *wtowerBoost
  244. *shipBoost
  245. *labBoost
  246.  
  247. *timeTotal
  248. *timeCurrent
  249.  
  250. *timeBonus
  251. *buildingBonus
  252. *milestoneBonus
  253.  
  254. *heavenlyChips
  255. start with:1
  256.  
  257. Buildings
  258. /*
  259. *ewiwewe
  260. on earn:cookies is (cookies * 10)
  261. on earn:yield 1 exp
  262. */
  263. *TEMPLATE
  264. tag:building
  265.  
  266. *cursor|cursors
  267. name:Cursor
  268. desc:Autoclicks every 5 seconds.<//><b>Info:</b><.>Each cursor produces <b>[cursorP]</b> cookies per second.<.>[cursors] cursors producing <b>[cursorT:ps]</b> cookies per second.
  269. on tick:yield (0.2 * (cursorBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  270. on tick:yield (0.2 * (cursorBoost + 1) * (globalBoost + 1) * heavenlyChips) cursorT
  271. cost:15 cookies
  272. icon:icons[0,0]
  273.  
  274. *grandma|grandmas
  275. name:Grandma
  276. desc:A nice grandma to bake more cookies.<//><b>Info:</b><.>Each grandmas produces <b>[grandmaP]</b> cookies per second.<.>[grandma] grandmas producing <b>[grandmaT:ps]</b> cookies per second.
  277. on tick:yield (1 * (grandmaBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  278. on tick:yield (1 * (grandmaBoost + 1) * (globalBoost + 1) * heavenlyChips) grandmaT
  279. cost:100 cookies
  280. icon:icons[1,0]
  281. req:1 cursor
  282.  
  283. *farm|farms
  284. name:Farm
  285. desc:Grows cookie plants from cookie seeds.<//><b>Info:</b><.>Each farm produces <b>[farmP]</b> cookies per second.<.>[farm] farms producing <b>[farmT:ps]</b> cookies per second.
  286. on tick:yield (4 * (farmBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  287. on tick:yield (4 * (farmBoost + 1) * (globalBoost + 1) * heavenlyChips) farmT
  288. cost:660 cookies
  289. icon:icons[2,0]
  290. req:1 grandma
  291. on click:if (this = 1) show rebirthmenu
  292.  
  293. *mine|mines
  294. name:Mine
  295. desc:Mines out cookie dough and chocolate chips.<//><b>Info:</b><.>Each mine produces <b>[mineP]</b> cookies per second.<.>[mine] mimes producing <b>[mineT:ps]</b> cookies per second.
  296. on tick:yield (10 * (mineBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  297. on tick:yield (10 * (mineBoost + 1) * (globalBoost + 1) * heavenlyChips) mineT
  298. cost:3000 cookies
  299. icon:icons[3,0]
  300. req:1 farm
  301. on click:if (this = 20) show minemenu
  302.  
  303. *factory|factories
  304. name:Factory
  305. desc:Produces large quantities of cookies.<//><b>Info:</b><.>Each factory produces <b>[factoryP]</b> cookies per second.<.>[factory] factories producing <b>[factoryT:ps]</b> cookies per second.
  306. on tick:yield (20 * (factoryBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  307. on tick:yield (20 * (factoryBoost + 1) * (globalBoost + 1) * heavenlyChips) factoryT
  308. cost:10400 cookies
  309. icon:icons[4,0]
  310. req:1 mine
  311.  
  312. *bank|banks
  313. name:Bank
  314. desc:Generates cookies from interest.<//><b>Info:</b><.>Each alchemy bank produces <b>[bankP]</b> cookies per second.<.>[bank] alchemy banks producing <b>[bankT:ps]</b> cookies per second.
  315. on tick:yield (50 * (bankBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  316. on tick:yield (50 * (bankBoost + 1) * (globalBoost + 1) * heavenlyChips) bankT
  317. cost:42000 cookies
  318. icon:icons[15,0]
  319. req:1 factory
  320.  
  321. *temple|temples
  322. name:Temple
  323. desc:Full of precious, ancient chocolate.<//><b>Info:</b><.>Each temple produces <b>[templeP]</b> cookies per second.<.>[temple] temples producing <b>[templeT:ps]</b> cookies per second.
  324. on tick:yield (200 * (templeBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  325. on tick:yield (200 * (templeBoost + 1) * (globalBoost + 1) * heavenlyChips) templeT
  326. cost:270000 cookies
  327. icon:icons[16,0]
  328. req:1 bank
  329.  
  330. *wtower|wtowers
  331. name:Wizard Tower
  332. desc:Summons cookies with magic spells.<//><b>Info:</b><.>Each wizard tower produces <b>[wtowerP]</b> cookies per second.<.>[wtower] wizard towers producing <b>[wtowerT:ps]</b> cookies per second.
  333. on tick:yield (720 * (wtowerBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  334. on tick:yield (720 * (wtowerBoost + 1) * (globalBoost + 1) * heavenlyChips) wtowerT
  335. cost:1440000 cookies
  336. icon:icons[17,0]
  337. req:1 temple
  338.  
  339. *ship|ships
  340. name:Shipment
  341. desc:Brings in fresh cookies from the cookie planet.<//><b>Info:</b><.>Each shipment produces <b>[shipP]</b> cookies per second.<.>[ship] shipments producing <b>[shipT:ps]</b> cookies per second.
  342. on tick:yield (2650 * (shipBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  343. on tick:yield (2650 * (shipBoost + 1) * (globalBoost + 1) * heavenlyChips) shipT
  344. cost:9010000 cookies
  345. icon:icons[5,0]
  346. req:1 wtower
  347.  
  348. *lab|labs
  349. name:Alchemy Lab
  350. desc:Turns gold into cookies!<//><b>Info:</b><.>Each lab produces <b>[labP]</b> cookies per second.<.>[lab] labs producing <b>[labT:ps]</b> cookies per second.
  351. on tick:yield (14000 * (labBoost + 1) * (globalBoost + 1) * heavenlyChips) cookies
  352. on tick:yield (14000 * (labBoost + 1) * (globalBoost + 1) * heavenlyChips) labT
  353. cost:75600000 cookies
  354. icon:icons[6,0]
  355. req:1 ship
  356.  
  357. *TEMPLATE
  358.  
  359. *pickUp
  360. name:Better Pickaxes
  361. text:Better Pickaxes | Level [this]
  362. desc:Get your miners better pickaxes.<//><b>Info:</b><.> Upgrades bought: <b>[this]</b><.>GPS Multiplier: <b>[((pickUp + 1) * 100)]%</b>
  363. cost:1000000 cookies
  364. cost increase:200%
  365. tag:mineStuff
  366. tooltip origin:bottom
  367. hidden
  368. req:20 mines
  369.  
  370. *TEMPLATE
  371. tag:expUps
  372. class:expUps
  373. hidden
  374.  
  375. *expShow
  376. text:You have <#00FF00>[exp] EXP</#>
  377. no tooltip
  378. no buy
  379. start with:1
  380.  
  381. *expUp1
  382. name:CPS Boost
  383. text:CPS Boost [((globalBoost + 1) * 100)]%<//><#00FF00><b>1 EXP</b></#>
  384. desc:Each upgrade boosts your global cookie production by <b>1%</b>.
  385. cost:1 exp
  386. cost increase:100%
  387. on earn:yield (0.01/this) globalBoost
  388. on earn:cursorP is (0.2 * (1 + globalBoost) * (1 + cursorBoost) * heavenlyChips)
  389. on earn:grandmaP is (1 * (1 + globalBoost) * (1 + grandmaBoost) * heavenlyChips)
  390. on earn:farmP is (4 * (1 + globalBoost) * (1 + farmBoost) * heavenlyChips)
  391. on earn:mineP is (10 * (1 + globalBoost) * (1 + mineBoost) * heavenlyChips)
  392. on earn:factoryP is (20 * (1 + globalBoost) * (1 + factoryBoost) * heavenlyChips)
  393. on earn:bankP is (50 * (1 + globalBoost) * (1 + bankBoost) * heavenlyChips)
  394. on earn:templeP is (200 * (1 + globalBoost) * (1 + templeBoost) * heavenlyChips)
  395. on earn:wtowerP is (720 * (1 + globalBoost) * (1 + wtowerBoost) * heavenlyChips)
  396.  
  397. *expCursor
  398. name:Cursor Boost
  399. text:Cursor Boost [((cursorBoost + 1) * 100)]%<//><#00FF00><b>1 EXP</b></#>
  400. desc:Each upgrade boosts your cursors and your clicks's production by <b>2.5%</b>
  401. cost:1 exp
  402. cost increase:100%
  403. on earn:yield (0.025/this) cursorBoost
  404. on earn:cursorP is (0.2 * (1 + globalBoost) * (1 + cursorBoost) * heavenlyChips)
  405. req:1 cursor
  406.  
  407. *expGrandma
  408. name:Grandma Boost
  409. text:Grandma Boost [((grandmaBoost + 1) * 100)]%<//><#00FF00><b>2 EXP</b></#>
  410. desc:Each upgrade boosts your grandmas's production by <b>2.5%</b>
  411. cost:2 exp
  412. cost increase:100%
  413. on earn:yield (0.025/this) grandmaBoost
  414. on earn:grandmaP is (1 * (1 + globalBoost) * (1 + grandmaBoost) * heavenlyChips)
  415. req:1 grandma
  416.  
  417. *expFarm
  418. name:Farm Boost
  419. text:Farm Boost [((farmBoost + 1) * 100)]%<//><#00FF00><b>5 EXP</b></#>
  420. desc:Each upgrade boosts your farms's production by <b>2.5%</b>
  421. cost:4 exp
  422. cost increase:100%
  423. on earn:yield (0.025/this) farmBoost
  424. on earn:farmP is (4 * (1 + globalBoost) * (1 + farmBoost) * heavenlyChips)
  425. req:1 farm
  426.  
  427. *expMine
  428. name:Mine Boost
  429. text:Mine Boost [((mineBoost + 1) * 100)]%<//><#00FF00><b>7 EXP</b></#>
  430. desc:Each upgrade boosts your mines's production by <b>2.5%</b>
  431. cost:7 exp
  432. cost increase:100%
  433. on earn:yield (0.025/this) mineBoost
  434. on earn:mineP is (10 * (1 + globalBoost) * (1 + mineBoost) * heavenlyChips)
  435. req:1 mine
  436.  
  437. *expFactory
  438. name:Factory Boost
  439. text:Factory Boost [((factoryBoost + 1) * 100)]%<//><#00FF00><b>10 EXP</b></#>
  440. desc:Each upgrade boosts your factories's production by <b>2.5%</b>
  441. cost:10 exp
  442. cost increase:100%
  443. on earn:yield (0.025/this) factoryBoost
  444. on earn:factoryP is (20 * (1 + globalBoost) * (1 + factoryBoost) * heavenlyChips)
  445. req:1 factory
  446.  
  447. *expBank
  448. name:Bank Boost
  449. text:Bank Boost [((bankBoost + 1) * 100)]%<//><#00FF00><b>15 EXP</b></#>
  450. desc:Each upgrade boosts your banks's production by <b>2.5%</b>
  451. cost:15 exp
  452. cost increase:100%
  453. on earn:yield (0.025/this) bankBoost
  454. on earn:bankP is (50 * (1 + globalBoost) * (1 + bankBoost) * heavenlyChips)
  455. req:1 bank
  456.  
  457. *expTemple
  458. name:Temple Boost
  459. text:Temple Boost [((templeBoost + 1) * 100)]%<//><#00FF00><b>25 EXP</b></#>
  460. desc:Each upgrade boosts your temples's production by <b>2.5%</b>
  461. cost:25 exp
  462. cost increase:100%
  463. on earn:yield (0.025/this) templeBoost
  464. on earn:templeP is (200 * (1 + globalBoost) * (1 + templeBoost) * heavenlyChips)
  465. req:1 temple
  466.  
  467. *expwtower
  468. name:Wizard Tower Boost
  469. text:Wizard Tower Boost [((wtowerBoost + 1) * 100)]%<//><#00FF00><b>40 EXP</b></#>
  470. desc:Each upgrade boosts your wizard towers's production by <b>2.5%</b>
  471. cost:40 exp
  472. cost increase:100%
  473. on earn:yield (0.025/this) wtowerBoost
  474. on earn:wtowerP is (720 * (1 + globalBoost) * (1 + wtowerBoost) * heavenlyChips)
  475. req:1 wtower
  476.  
  477. *expShip
  478. name:Shipment Boost
  479. text:Shipment Boost [((shipBoost + 1) * 100)]%<//><#00FF00><b>60 EXP</b></#>
  480. desc:Each upgrade boosts your shipments's production by <b>2.5%</b>
  481. cost:60 exp
  482. cost increase:100%
  483. on earn:yield (0.025/this) shipBoost
  484. on earn:shipP is (720 * (1 + globalBoost) * (1 + shipBoost) * heavenlyChips)
  485. req:1 ship
  486.  
  487. *expLab
  488. name:Alchemy Lab Boost
  489. text:Alchemy Lab Boost [((labBoost + 1) * 100)]%<//><#00FF00><b>95 EXP</b></#>
  490. desc:Each upgrade boosts your labs's production by <b>2.5%</b>
  491. cost:95 exp
  492. cost increase:100%
  493. on earn:yield (0.025/this) labBoost
  494. on earn:labP is (720 * (1 + globalBoost) * (1 + labBoost) * heavenlyChips)
  495. req:1 wtower
  496.  
  497. *TEMPLATE
  498.  
  499. *rebirth
  500. name:Rebirth
  501. text:Rebirth
  502. desc:When you rebirth you lose all progress you made but in exchange you gain Heavenly Chips which boost your cookie production. You have <b>[heavenlyChips]</b> Heavenly Chips. On rebirth you will have <b>[(1 * milestoneBonus * buildingBonus * (timeBonus))]</b> Heavenly Chips.<//><b>Factors:</b><.>Milestone Bonus: <b>[milestoneBonus]</b><.>Building Bonus: <b>[buildingBonus]</b><.>Time Bonus: <b>[(timeBonus)]</b>
  503. start with:1
  504. on tick:
  505. milestoneBonus is (pow(1.5,mile1+mile2+mile3+mile4+mile5+mile6+mile7+mile8+mile9+mile10+mile11+mile12))
  506. buildingBonus is (pow((cursors + (grandmas * 1.1) + (farms * 1.2) + (mines * 1.3) + (factories * 1.4) + (banks * 1.5) + (temples * 1.6) + (wtowers * 1.7) + (ship * 1.8) + (lab * 1.9)),0.5))
  507. if (timeCurrent < 180)
  508. timeBonus is ((timeCurrent / 60) / 971520)
  509. end
  510. if (timeCurrent >= 180 and timeCurrent < 240)
  511. timeBonus is ((timeCurrent / 60) / 122880)
  512. end
  513. if (timeCurrent >= 240 and timeCurrent < 300)
  514. timeBonus is ((timeCurrent / 60) / 30720)
  515. end
  516. if (timeCurrent >= 300 and timeCurrent < 420)
  517. timeBonus is ((timeCurrent / 60) / 7680)
  518. end
  519. if (timeCurrent >= 420 and timeCurrent < 600)
  520. timeBonus is ((timeCurrent / 60) / 1920)
  521. end
  522. if (timeCurrent >= 600 and timeCurrent < 720)
  523. timeBonus is ((timeCurrent / 60) / 480)
  524. end
  525. if (timeCurrent >= 720 and timeCurrent < 900)
  526. timeBonus is ((timeCurrent / 60) / 240)
  527. end
  528. if (timeCurrent >= 900 and timeCurrent < 1800)
  529. timeBonus is ((timeCurrent / 60) / 120)
  530. end
  531. if (timeCurrent >= 1800 and timeCurrent < 3600)
  532. timeBonus is ((timeCurrent / 60) / 60)
  533. end
  534. if (timeCurrent >= 3600)
  535. timeBonus is (1 + 0,5 * ((timeCurrent / 3600) / 24))
  536. end
  537. end
  538. on click:
  539. if (timeCurrent >= 180 and (1 * milestoneBonus * buildingBonus * (timeBonus)) >= 1)
  540. cookies is 0
  541. mile1 is 0
  542. mile2 is 0
  543. mile3 is 0
  544. mile4 is 0
  545. mile5 is 0
  546. mile6 is 0
  547. mile7 is 0
  548. mile8 is 0
  549. mile9 is 0
  550. mile10 is 0
  551. mile11 is 0
  552. mile12 is 0
  553. cursors is 0
  554. grandmas is 0
  555. farms is 0
  556. mines is 0
  557. factories is 0
  558. banks is 0
  559. temples is 0
  560. wtowers is 0
  561. ship is 0
  562. lab is 0
  563. heavenlyChips is (1 * milestoneBonus * buildingBonus * (timeBonus))
  564. milestoneBonus is 0
  565. buildingBonus is 0
  566. timeBonus is 0
  567. timeCurrent is 0
  568. cursorP is (0.2 * (1 + globalBoost) * (1 + cursorBoost) * heavenlyChips)
  569. grandmaP is (1 * (1 + globalBoost) * (1 + grandmaBoost) * heavenlyChips)
  570. farmP is (4 * (1 + globalBoost) * (1 + farmBoost) * heavenlyChips)
  571. mineP is (10 * (1 + globalBoost) * (1 + mineBoost) * heavenlyChips)
  572. factoryP is (20 * (1 + globalBoost) * (1 + factoryBoost) * heavenlyChips)
  573. bankP is (50 * (1 + globalBoost) * (1 + bankBoost) * heavenlyChips)
  574. templeP is (200 * (1 + globalBoost) * (1 + templeBoost) * heavenlyChips)
  575. wtowerP is (720 * (1 + globalBoost) * (1 + wtowerBoost) * heavenlyChips)
  576. shipP is (720 * (1 + globalBoost) * (1 + shipBoost) * heavenlyChips)
  577. labP is (720 * (1 + globalBoost) * (1 + labBoost) * heavenlyChips)
  578. pickUp is 0
  579. gold is 0
  580. else
  581. toast You can only rebirth if you played for 3 minutes in this run and your Heavenly Chips on rebirth are bigger than 0.
  582. end
  583. end
  584. start with:1
  585. no buy
  586. tag:rebirthStuff
  587. hidden
  588.  
  589. *TEMPLATE
  590.  
  591. *GPS
  592. name:Gold per second
  593. text:GPS: [gold:ps]
  594. desc:You are gaining <b><#ffff00>[gold:ps]</#></b> gold per second. You base production increases by <b><#ffff00>0.1</#></b> for every mine you own.<//><b>Info:</b><.>Base production: [(mine / 10)]<.>Pickaxe Upgrade Multiplier: [((pickUp + 1) * 100)]%
  595. on tick:
  596. if (mines >= 20)
  597. yield ((mines / 10) * (pickUp + 1)) gold
  598. end
  599. end
  600. no buy
  601. start with:1
  602. tag:mineStuff
  603. tag:mineStuff1
  604. tooltip origin:bottom
  605.  
  606. Upgrades
  607.  
  608. *goback
  609. name:Go back
  610. no tooltip
  611. on click:hide tag:expUps
  612. on click:hide tag:rebirthStuff
  613. on click:hide tag:mineStuff
  614. on click:hide tag:mineStuff1
  615. on click:show expmenu
  616. on click:if (farm >= 1) show rebirthmenu
  617. on click:if (mines >= 20) show minemenu
  618. on clicK:hide this
  619. hidden
  620. class:menu goback
  621.  
  622. *TEMPLATE
  623. on click:show goback
  624. on click:hide tag:menu
  625. class:menu
  626. tag:menu
  627. tooltip origin:bottom
  628.  
  629. *expmenu
  630. name:Experience Shop
  631. desc:Spend your <b>Experience</b> here.<//>You have <b>[exp] Experience</b>.
  632. on click:show tag:expUps
  633. req:1 exp:earned
  634.  
  635. *rebirthmenu
  636. name:Rebirth Stuff
  637. desc:You played in this run for <b>[timeCurrent]s</b><//>You have <b>[heavenlyChips]</b> Heavenly Chips.<//>On rebirth you will have <b>[(1 * milestoneBonus * buildingBonus * (timeBonus))]</b> Heavenly Chips.<//><b>Factors:</b><.>Milestone Bonus: <b>[milestoneBonus]</b><.>Building Bonus: <b>[buildingBonus]</b><.>Time Bonus: <b>[(timeBonus)]</b>
  638. on click:show tag:rebirthStuff
  639. req:1 farm
  640.  
  641. *minemenu
  642. name:Gold Mines
  643. desc:In the gold mines you can spend your time mining instead of baking. Here you will earn gold. Gold can be spent to buy upgrades for your buildings, but first you need to unlock the Augment Factory.
  644. on click:show tag:mineStuff
  645. on click:show tag:mineStuff1
  646. req:mines >= 20
  647.  
  648. Layout
  649. *main
  650. contains:res, buttons
  651. *res
  652. contains:Resources
  653. class:fullWidth
  654. *buttons
  655. contains:Buttons
  656. *store
  657. contains:buildings, upgrades
  658. *buildings
  659. contains:Buildings
  660. header:Buildings
  661. tooltip origin:left
  662. *upgrades
  663. contains:Upgrades, tag:expUps, tag:rebirthStuff, tag:mineStuff1, tag:mineStuff
  664. header:Upgrades
  665. costs:hide
  666. names:hide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement