Advertisement
Turgen

CHI

Mar 24th, 2025 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.91 KB | None | 0 0
  1. Let's make a game!
  2. name:CargoHold Idle
  3. by:Kasperja
  4. desc:Write the game description here.<//>Click to play the game!
  5. created:18/03/2025
  6. updated:18/03/2025
  7. version:1.0
  8.  
  9. Settings
  10. background:https://raw.githubusercontent.com/kasperja/CHI/refs/heads/main/tp.png
  11. building cost increase:110%
  12. building cost refund:50%
  13. spritesheet:icons, 48 by 48, https://raw.githubusercontent.com/kasperja/CHI/main/BlankSpritesheet.png
  14. stylesheet:https://pastebin.com/raw/Vm3tnr6N
  15. no particles
  16. no bulk particles
  17.  
  18. Layout
  19.  
  20. *main
  21. contains:buttons, log, logHeader
  22. *res
  23. icons:show
  24. contains:Resources
  25. class:fullWidth
  26. *buttons
  27. contains:Buttons
  28. tooltip origin:left
  29. *store
  30. contains:buildings, upgrades, buildingsHeader, upgradesHeader, buildings2, upgrades2, buildings2Header, upgrades2Header
  31. *buildings
  32. icons:hide
  33. contains:Buildings
  34. tooltip origin:right
  35. *buildingsHeader
  36. header:Modules
  37. *buildings2
  38. icons:hide
  39. contains:tag:buildings2
  40. tooltip origin:left
  41. *buildings2Header
  42. header:Generators
  43. *upgrades
  44. tooltip origin:left
  45. contains:Upgrades
  46. costs:show
  47. names:show
  48. icons:hide
  49. *upgradesHeader
  50. header:Upgrades
  51. *upgrades2
  52. tooltip origin:right
  53. contains:tag:upgrades2
  54. costs:show
  55. names:show
  56. icons:hide
  57. *upgrades2Header
  58. header:Command Console
  59. *log
  60. contains:Log
  61. class:log
  62. *logHeader
  63. header:Comms
  64.  
  65.  
  66.  
  67. Buttons
  68. *koroButton
  69. name:Test4 Name 1
  70. desc:Press the button to earn Koros.
  71. on click:anim icon wobble
  72. on click:yield 1 koro
  73. on click:yield 1 tkor
  74. on click:yield 1 tkor2
  75. on start:log Welcome to </#></><t>CargoHold Idle</#> <//> Game version: 1.0</#>
  76. on start:lose BuyIce1
  77. on load:lose BuyIce1
  78. on start:timeB1=random(10,50)
  79. on load:timeB1=random(10,50)
  80. on start:lose BuyIce2
  81. on load:lose BuyIce2
  82. on start:timeB2=random(10,50)
  83. on load:timeB2=random(10,50)
  84. on start:lose BuyIce3
  85. on load:lose BuyIce3
  86. on start:timeB3=random(10,50)
  87. on load:timeB3=random(10,50)
  88. on load:log Welcome to </#></><t>CargoHold Idle</#> <//> Game version: 1.0</#>
  89. on load:log Game loaded.
  90. on tick:
  91. if (timeB1>60)
  92. lose BuyIce1
  93. timeChk=1
  94. ice1=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
  95. koros1=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
  96. end
  97. end
  98. on tick:
  99. if (timeB2>60)
  100. lose BuyIce2
  101. timeChk2=1
  102. ice2=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
  103. koros2=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
  104. end
  105. end
  106. on tick:
  107. if (timeB3>60)
  108. lose BuyIce3
  109. timeChk3=1
  110. ice3=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
  111. koros3=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
  112. end
  113. end
  114. icon:https://github.com/kasperja/CHI/raw/main/ButtonTest2.png
  115. no text
  116. class:bigButton
  117. icon class:shadowed
  118. tooltip origin:bottom
  119. tooltip class:red
  120.  
  121. Resources
  122. *koro|koros
  123. name:Koros|Koros
  124. desc:This is your Koros, click and upgrade to earn Koros.
  125. class:noBackground
  126. show earned
  127.  
  128. *ice
  129. hidden
  130.  
  131.  
  132. *tice
  133. hidden
  134.  
  135. *tice2
  136. hidden
  137. tag:prestige
  138.  
  139. *tkor
  140. hidden
  141.  
  142. *tkor2
  143. hidden
  144. tag:prestige
  145.  
  146. *prestigio
  147. name:Anomaly Fragment|Anomaly Fragments
  148. desc:Unstable remnants of spacetime distortions with unpredictable effects.
  149. class:noBackground
  150. show earned
  151. hidden when 0
  152. tag:prestige
  153.  
  154. *prestigio2
  155. name:Shadow Core|Shadow Cores
  156. desc:A swirling mass of pure darkness that absorbs all light and energy.
  157. class:noBackground
  158. show earned
  159. hidden when 0
  160. tag:prestige prestige2
  161.  
  162. *ice1
  163. hidden
  164.  
  165. *koros1
  166. hidden
  167.  
  168. *timeB1
  169. hidden
  170. passive:yield 1 timeB1
  171. on tick:
  172. if (timeB1>80)
  173. timeB1 is 0
  174. timeChk=0
  175. end
  176. end
  177. on tick:
  178. if (timeB1>60)
  179. lose BuyIce1
  180. timeChk=1
  181. end
  182. end
  183.  
  184. *timeChk
  185. hidden
  186.  
  187. *ice2
  188. hidden
  189.  
  190. *koros2
  191. hidden
  192.  
  193. *timeB2
  194. hidden
  195. passive:yield 1 timeB2
  196. on tick:
  197. if (timeB2>80)
  198. timeB2 is 0
  199. timeChk2=0
  200. end
  201. end
  202. on tick:
  203. if (timeB2>60)
  204. lose BuyIce2
  205. timeChk2=1
  206. end
  207. end
  208.  
  209. *timeChk2
  210. hidden
  211.  
  212. *ice3
  213. hidden
  214.  
  215. *koros3
  216. hidden
  217.  
  218. *timeB3
  219. hidden
  220. passive:yield 1 timeB3
  221. on tick:
  222. if (timeB3>80)
  223. timeB3 is 0
  224. timeChk3=0
  225. end
  226. end
  227. on tick:
  228. if (timeB3>60)
  229. lose BuyIce3
  230. timeChk3=1
  231. end
  232. end
  233.  
  234. *timeChk3
  235. hidden
  236.  
  237.  
  238.  
  239. Shinies
  240.  
  241.  
  242. Buildings
  243.  
  244. *TEMPLATE
  245.  
  246. *CargoRack|CargoRacks
  247. name:Cargo Racks
  248. desc:Cargo Racks are storage frameworks designed to secure and organize freight in transport vessels.<//><b>Effect:</b><.>Produces 1 Koros every 10 seconds.
  249. icon:icons[10,12]
  250. cost:30 koros
  251. on tick:yield 0.1 koro
  252. on tick:yield 0.1 tkor
  253. on tick:yield 0.1 tkor2
  254. req:20 tkor
  255.  
  256. *autoLoader|autoLoaders
  257. name:Automated Loaders
  258. desc:Automated loaders efficiently move cargo with minimal human intervention.<//><b>Effect:</b><.>Produces 1 Koro every second.
  259. icon:icons[10,12]
  260. cost:200 koros
  261. on tick:yield 1 koro
  262. on tick:yield 1 tkor
  263. on tick:yield 1 tkor2
  264. req:400 tkor
  265.  
  266. *RetArm|RetArms
  267. name:Retractable Loading Arms
  268. desc:Retractable loading arms extend and retract for quick, efficient cargo transfer in tight spaces.<//><b>Effect:</b><.>Produces 30 Koros every second.
  269. icon:icons[10,12]
  270. cost:50000 koros
  271. on tick:yield 30 koro
  272. on tick:yield 30 tkor
  273. on tick:yield 30 tkor2
  274. req:50000 tkor
  275.  
  276. *GenCryo|GenCryos
  277. name:Genetic Cryo Storages
  278. desc:Stores encoded life, frozen deep.<//><b>Effect:</b><.>Produces 200 Koros every second.
  279. icon:icons[10,12]
  280. cost:400000 koros, 200 ice
  281. on tick:yield 200 koro
  282. on tick:yield 200 tkor
  283. on tick:yield 200 tkor2
  284. req:400000 tkor, 1 tice
  285.  
  286. //Buildings2 / Generators
  287.  
  288. *IceGen|IceGens
  289. name:Ice-Generators
  290. desc:Ice-Generators are necessary for Cryo-based modules.<//><b>Effect:</b><.>Produces 1 Ice every 10 seconds.
  291. icon:icons[10,12]
  292. cost:140000 koros
  293. on tick:yield 0.1 ice
  294. on tick:yield 0.1 tice
  295. on tick:yield 0.1 tice2
  296. req:140000 tkor
  297. tag: buildings2
  298.  
  299. //Auction posts
  300.  
  301. *BuyIce1
  302. name:Buy Ice 1
  303. text:Buy <b><#ffffff>[ice1] </b></#>Ice for [?(koros1<koros)|<b><#33ff00>[koros1] Koros </b></#>|<b><#ff3300>[koros1] Koros </b></#> Koros] : [(koros1/ice1)] K/unit : Expires in [((timeB1-60)*-1)]s
  304. desc:Buy <b><#ffffff>[ice1] </b></#>Ice for <b><#ff3300>[koros1]</b></#> Koros : [(koros1/ice1)] K/unit : Expires in [((timeB1-60)*-1)]s
  305. tag:upgrades2
  306. req:timeB1<60 and timeChk==0 and AuctionHouse
  307. on click:
  308. if (koros1<=koros)
  309. lose BuyIce1
  310. timeChk=1
  311. else if (timeB1>60)
  312. lose BuyIce1
  313. timeChk=1
  314. else
  315. log Can't afford
  316. end
  317. end
  318. on lose:
  319. if (timeChk==0)
  320. ice is ice+ice1
  321. tice is tice+ice1
  322. tice2 is tice2+ice1
  323. koros is koros-koros1
  324. log <b><#ffffff>[ice1]</b></#> Ice bought for <b><#ffffff>[koros1]</b></#> Koros
  325. timeChk=1
  326. timeB1 is 60
  327. end
  328. end
  329.  
  330. *BuyIce2
  331. name:Buy Ice 2
  332. text:Buy <b><#ffffff>[ice2] </b></#>Ice for [?(koros2<koros)|<b><#33ff00>[koros2] Koros </b></#>|<b><#ff3300>[koros2] Koros </b></#> Koros] : [(koros2/ice2)] K/unit : Expires in [((timeB2-60)*-1)]s
  333. desc:Buy <b><#ffffff>[ice2] </b></#>Ice for [?(koros2<koros)|<b><#33ff00>[koros2] Koros </b></#>|<b><#ff3300>[koros2] Koros </b></#> Koros] : [(koros2/ice2)] K/unit : Expires in [((timeB2-60)*-1)]s
  334. tag:upgrades2
  335. req:timeB2<60 and timeChk2==0 and AuctionHouse
  336. on click:
  337. if (koros2<=koros)
  338. lose BuyIce2
  339. timeChk2=1
  340. else if (timeB2>60)
  341. lose BuyIce2
  342. timeChk2=1
  343. else
  344. log Can't afford
  345. end
  346. end
  347. on lose:
  348. if (timeChk2==0)
  349. ice is ice+ice2
  350. tice is tice+ice2
  351. tice2 is tice2+ice2
  352. koros is koros-koros2
  353. log <b><#ffffff>[ice2]</b></#> Ice bought for <b><#ffffff>[koros2]</b></#> Koros
  354. timeChk2=1
  355. timeB2 is 60
  356. end
  357. end
  358.  
  359. *BuyIce3
  360. name:Buy Ice 3
  361. text:Buy <b><#ffffff>[ice3] </b></#>Ice for [?(koros3<koros)|<b><#33ff00>[koros3] Koros </b></#>|<b><#ff3300>[koros3] Koros </b></#> Koros] : [(koros3/ice3)] K/unit : Expires in [((timeB3-60)*-1)]s
  362. desc:Buy <b><#ffffff>[ice3] </b></#>Ice for [?(koros3<koros)|<b><#33ff00>[koros3] Koros </b></#>|<b><#ff3300>[koros3] Koros </b></#> Koros] : [(koros3/ice3)] K/unit : Expires in [((timeB3-60)*-1)]s
  363. tag:upgrades2
  364. req:timeB3<60 and timeChk3==0 and AuctionHouse
  365. on click:
  366. if (koros3<=koros)
  367. lose BuyIce3
  368. timeChk3=1
  369. else if (timeB3>60)
  370. lose BuyIce3
  371. timeChk3=1
  372. else
  373. log Can't afford
  374. end
  375. end
  376. on lose:
  377. if (timeChk3==0)
  378. ice is ice+ice3
  379. tice is tice+ice3
  380. tice2 is tice2+ice3
  381. koros is koros-koros3
  382. log <b><#ffffff>[ice3]</b></#> Ice bought for <b><#ffffff>[koros3]</b></#> Koros
  383. timeChk3=1
  384. timeB3 is 60
  385. end
  386. end
  387.  
  388. Upgrades
  389. *TEMPLATE
  390.  
  391. *AdaptiveCargoRacks
  392. name:Adaptive Cargo Racks
  393. desc:Adaptive Cargo Racks automatically adjust to secure cargo using smart restraints and gravity modulation.<//><b>Effect:</b><.>+1 Koros/click<.>Cargo Racks production x2
  394. cost:200 koros
  395. passive:increase koro yield of koroButton by 1
  396. passive:multiply yield of CargoRacks by 2
  397. req:200 tkor
  398.  
  399. *HyperLoad
  400. name:HyperLoad X-500
  401. desc:HyperLoad X-500 is a next-gen automated loader with enhanced speed and precision.<//><b>Effect:</b><.>Automated Loaders production x3
  402. cost:2000 koros
  403. passive:multiply yield of autoLoaders by 3
  404. req:2000 tkor
  405.  
  406. *RackMaster
  407. name:RackMaster 3000
  408. desc:RackMaster 3000 is an advanced cargo rack system designed for maximum efficiency and flexibility.<//><b>Effect:</b><.>Cargo Racks production x10
  409. cost:10000 koros
  410. passive:multiply yield of CargoRacks by 10
  411. req:10000 tkor
  412.  
  413. *AuctionHouse
  414. name:Auction House
  415. desc:With the Auction House you can buy and sell goods.<//><b>Effect:</b><.>Cargo Racks production x10
  416. cost:200000 koros
  417. req:200000 tkor
  418.  
  419.  
  420.  
  421.  
  422.  
  423. *AucHouse
  424. name:Auction House
  425. desc:Buy and sell goods.
  426. tag:upgrades2 auchouse
  427. req:AuctionHouse
  428. no click
  429.  
  430. *GoodsNum
  431. name:Owned Goods Numbers
  432. text:[?(ice==0)||Ice : <b><#ffffff>[ice]</b></#> ([ice:ps]/s)]
  433. desc:Goods you have in your cargo.
  434. tag:upgrades2
  435. req:AuctionHouse
  436. no click
  437.  
  438. *Goods
  439. name:Owned Goods
  440. desc:Goods you have in your cargo.
  441. tag:upgrades2 auchouse
  442. req:AuctionHouse
  443. no click
  444.  
  445. *ResetPrestige
  446. name:Gain Anomaly Fragments.
  447. text:Sell all cargo and modules for <b><#ffffff>[tkor2*0.01] -[tkor]-[tkor2]-</b></#> Anomaly Fragments i[tice]i[tice2]
  448. desc:Sell all cargo and modules for <b>[tkor2*0.01]</b> Anomaly Fragments.<//><b>Effect:</b><.>Gain 1 Anomaly Fragment per 100 Koros collected (Koros earned in previous runs included).
  449. tag:prestige upgrades2
  450. req:tkor>300 and prestigio<10000
  451. on earn:log <b>Cargo and modules sold.<//>
  452. on earn:log <b>[tkor2*0.01] Anomaly Fragments</b> earned.
  453. on earn:
  454. yield (tkor2*0.01) prestigio
  455. lose notTag:prestige
  456. lose ResetPrestige
  457. end
  458.  
  459.  
  460. *ResetPrestige2
  461. name:Gain Shadow Core
  462. desc:Reset everything, <b>even your Anomaly Fragments</b>, gaining <b>1</b> Shadow Core.<//><b>Effect:</b><.>Complete the game and start from scratch with a Shadow Core.
  463. tag:prestige upgrades2
  464. req:10000 prestigio
  465. on earn:log <b>You gain a Shadow Core.
  466. on earn:
  467. lose notTag:prestige2
  468. yield 1 prestigio2
  469. lose ResetPrestige2
  470. end
  471.  
  472. //Upgrades2
  473.  
  474. *parsley2
  475. name:Mining Drone Tech II
  476. desc:Powers up the efficiency of the Mining Drones II.<//><b>Effect:</b><.>+1 Koros/click<.>Mining Drone II production x2
  477. cost:300 koros
  478. passive:increase koro yield of koroButton by 1
  479. passive:multiply yield of CargoRacks by 2
  480. req:30000000000000000000000000000000000000000000000000 tkor
  481. tag: upgrades2
  482.  
  483. Achievements
  484. *TEMPLATE
  485.  
  486. *Achiev1
  487. name:Your First Achievement!
  488. desc:Buy a Mining Drone.
  489. req:(CargoRacks>=1)
  490. tag:prestige prestige2
  491.  
  492. *Achiev2
  493. name:Your Second Achievement!
  494. desc:Have 2 Mining Drones.
  495. req:(CargoRacks>=2)
  496. tag:prestige prestige2
  497.  
  498. CSS
  499.  
  500.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement