Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's make a game!
- name:CargoHold Idle
- by:Kasperja
- desc:Write the game description here.<//>Click to play the game!
- created:18/03/2025
- updated:18/03/2025
- version:1.0
- Settings
- background:https://raw.githubusercontent.com/kasperja/CHI/refs/heads/main/tp.png
- building cost increase:110%
- building cost refund:50%
- spritesheet:icons, 48 by 48, https://raw.githubusercontent.com/kasperja/CHI/main/BlankSpritesheet.png
- stylesheet:https://pastebin.com/raw/Vm3tnr6N
- no particles
- no bulk particles
- Layout
- *main
- contains:buttons, log, logHeader
- *res
- icons:show
- contains:Resources
- class:fullWidth
- *buttons
- contains:Buttons
- tooltip origin:left
- *store
- contains:buildings, upgrades, buildingsHeader, upgradesHeader, buildings2, upgrades2, buildings2Header, upgrades2Header
- *buildings
- icons:hide
- contains:Buildings
- tooltip origin:right
- *buildingsHeader
- header:Modules
- *buildings2
- icons:hide
- contains:tag:buildings2
- tooltip origin:left
- *buildings2Header
- header:Generators
- *upgrades
- tooltip origin:left
- contains:Upgrades
- costs:show
- names:show
- icons:hide
- *upgradesHeader
- header:Upgrades
- *upgrades2
- tooltip origin:right
- contains:tag:upgrades2
- costs:show
- names:show
- icons:hide
- *upgrades2Header
- header:Command Console
- *log
- contains:Log
- class:log
- *logHeader
- header:Comms
- Buttons
- *koroButton
- name:Test4 Name 1
- desc:Press the button to earn Koros.
- on click:anim icon wobble
- on click:yield 1 koro
- on click:yield 1 tkor
- on click:yield 1 tkor2
- on start:log Welcome to </#></><t>CargoHold Idle</#> <//> Game version: 1.0</#>
- on start:lose BuyIce1
- on load:lose BuyIce1
- on start:timeB1=random(10,50)
- on load:timeB1=random(10,50)
- on start:lose BuyIce2
- on load:lose BuyIce2
- on start:timeB2=random(10,50)
- on load:timeB2=random(10,50)
- on start:lose BuyIce3
- on load:lose BuyIce3
- on start:timeB3=random(10,50)
- on load:timeB3=random(10,50)
- on load:log Welcome to </#></><t>CargoHold Idle</#> <//> Game version: 1.0</#>
- on load:log Game loaded.
- on tick:
- if (timeB1>60)
- lose BuyIce1
- timeChk=1
- ice1=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
- koros1=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
- end
- end
- on tick:
- if (timeB2>60)
- lose BuyIce2
- timeChk2=1
- ice2=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
- koros2=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
- end
- end
- on tick:
- if (timeB3>60)
- lose BuyIce3
- timeChk3=1
- ice3=((max(random(5,10),random(ice:ps*10*1,ice:ps*20*3)))*10)
- koros3=((max(random(50,100),random(koros:ps*10*1,koros:ps*20*3)))*10)
- end
- end
- icon:https://github.com/kasperja/CHI/raw/main/ButtonTest2.png
- no text
- class:bigButton
- icon class:shadowed
- tooltip origin:bottom
- tooltip class:red
- Resources
- *koro|koros
- name:Koros|Koros
- desc:This is your Koros, click and upgrade to earn Koros.
- class:noBackground
- show earned
- *ice
- hidden
- *tice
- hidden
- *tice2
- hidden
- tag:prestige
- *tkor
- hidden
- *tkor2
- hidden
- tag:prestige
- *prestigio
- name:Anomaly Fragment|Anomaly Fragments
- desc:Unstable remnants of spacetime distortions with unpredictable effects.
- class:noBackground
- show earned
- hidden when 0
- tag:prestige
- *prestigio2
- name:Shadow Core|Shadow Cores
- desc:A swirling mass of pure darkness that absorbs all light and energy.
- class:noBackground
- show earned
- hidden when 0
- tag:prestige prestige2
- *ice1
- hidden
- *koros1
- hidden
- *timeB1
- hidden
- passive:yield 1 timeB1
- on tick:
- if (timeB1>80)
- timeB1 is 0
- timeChk=0
- end
- end
- on tick:
- if (timeB1>60)
- lose BuyIce1
- timeChk=1
- end
- end
- *timeChk
- hidden
- *ice2
- hidden
- *koros2
- hidden
- *timeB2
- hidden
- passive:yield 1 timeB2
- on tick:
- if (timeB2>80)
- timeB2 is 0
- timeChk2=0
- end
- end
- on tick:
- if (timeB2>60)
- lose BuyIce2
- timeChk2=1
- end
- end
- *timeChk2
- hidden
- *ice3
- hidden
- *koros3
- hidden
- *timeB3
- hidden
- passive:yield 1 timeB3
- on tick:
- if (timeB3>80)
- timeB3 is 0
- timeChk3=0
- end
- end
- on tick:
- if (timeB3>60)
- lose BuyIce3
- timeChk3=1
- end
- end
- *timeChk3
- hidden
- Shinies
- Buildings
- *TEMPLATE
- *CargoRack|CargoRacks
- name:Cargo Racks
- desc:Cargo Racks are storage frameworks designed to secure and organize freight in transport vessels.<//><b>Effect:</b><.>Produces 1 Koros every 10 seconds.
- icon:icons[10,12]
- cost:30 koros
- on tick:yield 0.1 koro
- on tick:yield 0.1 tkor
- on tick:yield 0.1 tkor2
- req:20 tkor
- *autoLoader|autoLoaders
- name:Automated Loaders
- desc:Automated loaders efficiently move cargo with minimal human intervention.<//><b>Effect:</b><.>Produces 1 Koro every second.
- icon:icons[10,12]
- cost:200 koros
- on tick:yield 1 koro
- on tick:yield 1 tkor
- on tick:yield 1 tkor2
- req:400 tkor
- *RetArm|RetArms
- name:Retractable Loading Arms
- desc:Retractable loading arms extend and retract for quick, efficient cargo transfer in tight spaces.<//><b>Effect:</b><.>Produces 30 Koros every second.
- icon:icons[10,12]
- cost:50000 koros
- on tick:yield 30 koro
- on tick:yield 30 tkor
- on tick:yield 30 tkor2
- req:50000 tkor
- *GenCryo|GenCryos
- name:Genetic Cryo Storages
- desc:Stores encoded life, frozen deep.<//><b>Effect:</b><.>Produces 200 Koros every second.
- icon:icons[10,12]
- cost:400000 koros, 200 ice
- on tick:yield 200 koro
- on tick:yield 200 tkor
- on tick:yield 200 tkor2
- req:400000 tkor, 1 tice
- //Buildings2 / Generators
- *IceGen|IceGens
- name:Ice-Generators
- desc:Ice-Generators are necessary for Cryo-based modules.<//><b>Effect:</b><.>Produces 1 Ice every 10 seconds.
- icon:icons[10,12]
- cost:140000 koros
- on tick:yield 0.1 ice
- on tick:yield 0.1 tice
- on tick:yield 0.1 tice2
- req:140000 tkor
- tag: buildings2
- //Auction posts
- *BuyIce1
- name:Buy Ice 1
- 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
- desc:Buy <b><#ffffff>[ice1] </b></#>Ice for <b><#ff3300>[koros1]</b></#> Koros : [(koros1/ice1)] K/unit : Expires in [((timeB1-60)*-1)]s
- tag:upgrades2
- req:timeB1<60 and timeChk==0 and AuctionHouse
- on click:
- if (koros1<=koros)
- lose BuyIce1
- timeChk=1
- else if (timeB1>60)
- lose BuyIce1
- timeChk=1
- else
- log Can't afford
- end
- end
- on lose:
- if (timeChk==0)
- ice is ice+ice1
- tice is tice+ice1
- tice2 is tice2+ice1
- koros is koros-koros1
- log <b><#ffffff>[ice1]</b></#> Ice bought for <b><#ffffff>[koros1]</b></#> Koros
- timeChk=1
- timeB1 is 60
- end
- end
- *BuyIce2
- name:Buy Ice 2
- 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
- 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
- tag:upgrades2
- req:timeB2<60 and timeChk2==0 and AuctionHouse
- on click:
- if (koros2<=koros)
- lose BuyIce2
- timeChk2=1
- else if (timeB2>60)
- lose BuyIce2
- timeChk2=1
- else
- log Can't afford
- end
- end
- on lose:
- if (timeChk2==0)
- ice is ice+ice2
- tice is tice+ice2
- tice2 is tice2+ice2
- koros is koros-koros2
- log <b><#ffffff>[ice2]</b></#> Ice bought for <b><#ffffff>[koros2]</b></#> Koros
- timeChk2=1
- timeB2 is 60
- end
- end
- *BuyIce3
- name:Buy Ice 3
- 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
- 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
- tag:upgrades2
- req:timeB3<60 and timeChk3==0 and AuctionHouse
- on click:
- if (koros3<=koros)
- lose BuyIce3
- timeChk3=1
- else if (timeB3>60)
- lose BuyIce3
- timeChk3=1
- else
- log Can't afford
- end
- end
- on lose:
- if (timeChk3==0)
- ice is ice+ice3
- tice is tice+ice3
- tice2 is tice2+ice3
- koros is koros-koros3
- log <b><#ffffff>[ice3]</b></#> Ice bought for <b><#ffffff>[koros3]</b></#> Koros
- timeChk3=1
- timeB3 is 60
- end
- end
- Upgrades
- *TEMPLATE
- *AdaptiveCargoRacks
- name:Adaptive Cargo Racks
- 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
- cost:200 koros
- passive:increase koro yield of koroButton by 1
- passive:multiply yield of CargoRacks by 2
- req:200 tkor
- *HyperLoad
- name:HyperLoad X-500
- desc:HyperLoad X-500 is a next-gen automated loader with enhanced speed and precision.<//><b>Effect:</b><.>Automated Loaders production x3
- cost:2000 koros
- passive:multiply yield of autoLoaders by 3
- req:2000 tkor
- *RackMaster
- name:RackMaster 3000
- desc:RackMaster 3000 is an advanced cargo rack system designed for maximum efficiency and flexibility.<//><b>Effect:</b><.>Cargo Racks production x10
- cost:10000 koros
- passive:multiply yield of CargoRacks by 10
- req:10000 tkor
- *AuctionHouse
- name:Auction House
- desc:With the Auction House you can buy and sell goods.<//><b>Effect:</b><.>Cargo Racks production x10
- cost:200000 koros
- req:200000 tkor
- *AucHouse
- name:Auction House
- desc:Buy and sell goods.
- tag:upgrades2 auchouse
- req:AuctionHouse
- no click
- *GoodsNum
- name:Owned Goods Numbers
- text:[?(ice==0)||Ice : <b><#ffffff>[ice]</b></#> ([ice:ps]/s)]
- desc:Goods you have in your cargo.
- tag:upgrades2
- req:AuctionHouse
- no click
- *Goods
- name:Owned Goods
- desc:Goods you have in your cargo.
- tag:upgrades2 auchouse
- req:AuctionHouse
- no click
- *ResetPrestige
- name:Gain Anomaly Fragments.
- text:Sell all cargo and modules for <b><#ffffff>[tkor2*0.01] -[tkor]-[tkor2]-</b></#> Anomaly Fragments i[tice]i[tice2]
- 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).
- tag:prestige upgrades2
- req:tkor>300 and prestigio<10000
- on earn:log <b>Cargo and modules sold.<//>
- on earn:log <b>[tkor2*0.01] Anomaly Fragments</b> earned.
- on earn:
- yield (tkor2*0.01) prestigio
- lose notTag:prestige
- lose ResetPrestige
- end
- *ResetPrestige2
- name:Gain Shadow Core
- 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.
- tag:prestige upgrades2
- req:10000 prestigio
- on earn:log <b>You gain a Shadow Core.
- on earn:
- lose notTag:prestige2
- yield 1 prestigio2
- lose ResetPrestige2
- end
- //Upgrades2
- *parsley2
- name:Mining Drone Tech II
- desc:Powers up the efficiency of the Mining Drones II.<//><b>Effect:</b><.>+1 Koros/click<.>Mining Drone II production x2
- cost:300 koros
- passive:increase koro yield of koroButton by 1
- passive:multiply yield of CargoRacks by 2
- req:30000000000000000000000000000000000000000000000000 tkor
- tag: upgrades2
- Achievements
- *TEMPLATE
- *Achiev1
- name:Your First Achievement!
- desc:Buy a Mining Drone.
- req:(CargoRacks>=1)
- tag:prestige prestige2
- *Achiev2
- name:Your Second Achievement!
- desc:Have 2 Mining Drones.
- req:(CargoRacks>=2)
- tag:prestige prestige2
- CSS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement