Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's make a game!
- name:Clickarmy
- by:Pentalogion
- desc:Collect gold to build your army and conquer the world!
- created:19/07/2024
- version:1.0
- Settings
- background:https://th.bing.com/th/id/OIP.Z6brPME-C1lrlTege7-9_AHaE9?rs=1&pid=ImgDetMain
- building cost increase:100%
- CSS
- #game
- {
- font-family:Garamond;
- font-size:1.5em
- }
- #game.on,.thing-icon,.icon
- {
- background-size:cover;
- }
- .thing,.box-header,.box-footer,.box-bit
- {
- background: rgba(112, 112, 112, 1);
- margin: 1px;
- }
- .thing
- {
- border-radius:0px;
- border:thick outset rgba(0,128,0,0.75);
- }
- .box-bit
- {
- border-radius:20px;
- }
- .box-header,.box-footer,.box-bit,.building,.upgrade
- {
- box-shadow:0px 0px 4px rgba(0,0,0,0.2),1px 1px 2px rgba(0,0,0,0.5),0px 0px 4px rgba(255,255,255,0.5) inset;
- }
- .box-header,.box-footer,.box-bit
- {
- border:thick outset #707070;
- }
- .box-header,.box-footer
- {
- font-weight:bold;
- border-bottom-left-radius:20px;
- border-bottom-right-radius:20px;
- margin-bottom:4px;
- margin-top:4px;
- }
- #box-buttons
- {
- padding:100px;
- top:0px;
- right:0px;
- bottom:0px;
- left:0px;
- position:absolute;
- }
- .building
- {
- display:block;
- margin-right:0px;
- }
- .fullWidth,.fullWidth:hover
- {
- background:rgba(0,0,0,0.5);
- background:linear-gradient(to bottom,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0.5) 100%);
- background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 100%);
- box-shadow:none;
- }
- .fullWidth:before,.fullWidth:after
- {
- content:'';
- height:1px;
- background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0) 100%);
- position:absolute;
- left:0px;
- right:0px;
- z-index:-1;
- }
- #box-buildings
- {
- background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 20%);
- }
- #box-upgrades
- {
- background:rgba(0,0,0,0.3);
- top:43px;
- }
- #box-store
- {
- bottom:20%;
- }
- #box-logBox
- {
- width:40%;
- height:20%;
- top:70%;
- left:60%;
- }
- #log
- {
- border-radius:0px;
- }
- #logInner
- {
- vertical-align:middle;
- }
- .messageContent
- {
- text-shadow:1px 1px 0px rgba(0, 0, 0, 0.5);
- text-align:center;
- }
- #bulkDisplay
- {
- background:#707070;
- border:thick outset #707070;
- box-shadow:0px 0px 4px rgba(0,0,0,0.2),1px 1px 2px rgba(0,0,0,0.5),0px 0px 4px rgba(255,255,255,0.5) inset;
- margin:-11px 24px 4px 24px;
- }
- .box-things-upgradeSwitcher
- {
- width:50%;
- }
- #box-upgradeMenu
- {
- width:50%;
- left:50%;
- height:43px;
- overflow-y:scroll;
- }
- .upgradeSwitch
- {
- height:43px;
- width:50%;
- margin:0px;
- float:left;
- font-weight:bold;
- }
- Layout
- *main
- contains:res, buttons
- *res
- contains:Resources
- class:fullWidth
- *buttons
- contains:Buttons
- *store
- contains:buildings, upgrades, upgradeMenu
- *buildings
- contains:BulkDisplay, Buildings
- header:Buildings
- tooltip origin:left
- *upgrades
- contains:Upgrades
- header:Upgrades
- costs:hide
- names:hide
- *upgradeMenu
- contains:tag:upgradeSwitcher
- *logBox
- contains:Log
- header:News:
- Buttons
- *tributeButton
- name:Demand tribute
- desc:Click to demand tribute from the lands under your control.
- icon:https://art.pixilart.com/sr2272671317aaws3.png
- no text
- on click:yield gold
- on click:anim icon wobble
- class:bigButton hasFlares
- icon class:shadowed
- show clicks
- *showAvailableUpgrade
- name:Available
- tag:upgradeSwitcher
- class:upgradeSwitch
- on click:
- hide :Upgrades:owned
- show :Upgrades:notOwned
- anim glow
- end
- no tooltip
- *showOwnedUpgrade
- name:Owned
- tag:upgradeSwitcher
- class:upgradeSwitch
- on click:
- show :Upgrades:owned
- hide :Upgrades:notOwned
- anim glow
- end
- no tooltip
- Resources
- *gold
- name:Gold
- desc:You need gold to train soldiers, buy upgrades, etc.
- icon:https://art.pixilart.com/sr2272671317aaws3.png
- class:noBackground
- show max
- *meleePower
- name:Melee power
- desc:The close range attack force of your army.
- icon:https://art.pixilart.com/sr5z16ddd7acb1aws3.png
- class:noBackground
- show max
- *rangedPower
- name:Ranged power
- desc:The ranged attack force of your army.
- icon:https://art.pixilart.com/sr2c24442f639aws3.png
- class:noBackground
- show max
- *totalUnit|totalUnits
- is always:soldiers + archers + knights + crossbowmen
- always hidden
- *success
- on earn:
- $loot=gold/(random(5,10))
- yield $loot gold
- clear log
- log <b><#0f0>Your incursion was successful and you took gold as loot!</#></b>
- end
- always hidden
- *invasion
- on earn:
- $goldLoss=gold/(random(-5,-10))
- $meleePowerLoss=meleePower/(random(-5,-10))
- $rangedPowerLoss=rangedPower/(random(-5,-10))
- yield $goldLoss gold
- yield $meleePowerLoss meleePower
- yield $rangedPowerLoss rangedPower
- clear log
- log <b><#f00>Your incursion has caught the enemy's attention, and you've been invaded! You've used some of your gold and power to repel it.</b></#>
- end
- always hidden
- *averagePpS
- is always:(meleePower:ps+rangedPower:ps)/2
- always hidden
- Buildings
- *conquest|conquests
- name:Conquest
- desc:Click to start a new conquest and earn gold. You need to have at least 3 units to conquest a place. You have [totalUnits] units now.
- icon:https://art.pixilart.com/sr5z16ddd7acb1aws3.png
- cost:3 meleePower, 3 rangedPower
- cost increase:125%
- req:3 totalUnits
- no text
- on click:anim icon wobble
- on earn:yield 5 gold
- passive:multiply gold yield of this by 1.1
- icon class:shadowed
- *TEMPLATE
- tag:unit
- *soldier|soldiers
- name:Soldier
- desc:<.>Produces 1 melee power every 5 seconds.<//><q>The basic soldier.</q>
- icon:https://art.pixilart.com/sr2576193a8cfaws3.png
- cost:15 gold
- on tick:yield 0.2 meleePower
- unlocked
- *archer|archers
- name:Archer
- desc:<.>Produces 1 ranged power every second.<//><q>A fairly cost-effective long-range unit.</q>
- icon:https://art.pixilart.com/sr2b6c7fb619daws3.png
- cost:75 gold
- on tick:yield rangedPower
- req:75 gold:earned
- *knight|knights
- name:Knight
- desc:<.>Produces 2 melee power every second.<//><q>A heavily armored melee unit.</q>
- icon:https://art.pixilart.com/sr2db1b186074aws3.png
- cost:150 gold
- on tick:yield 2 meleePower
- req:150 gold:earned
- *crossbowman|crossbowmen
- name:Crossbowman
- desc:<.>Produces 2 ranged power every second.<//><q>An effective long-range unit with a slow but powerful weapon.<q>
- icon:https://art.pixilart.com/sr260acdbe692aws3.png
- cost:150 gold
- on tick:yield 2 rangedPower
- req:150 gold:earned
- *cavalryman|cavalrymen
- name:Crossbowman
- desc:<.>Produces 4 melee power and 1 ranged power every second.<//><q>A swift knight on horseback. The more you have on your side, the better.<q>
- icon:https://art.pixilart.com/sr5z58bcb21497aws3.png
- cost:300 gold, 1 knight
- on tick:
- yield 4 meleePower
- yield meleePower
- req:300 gold:earned, knight
- Upgrades
- *TEMPLATE
- on earn:hide this
- *orderOfChivalry
- name:Order of Chivalry
- desc:<.>Your cavalrymen are twice as efficient.<//>
- icon:https://art.pixilart.com/sr5z52bc46b76faws3.png
- cost:3000, 10 chivalrymen
- passive:multiply yield of cavalrymen by 2
- req:cavalryman
- *TEMPLATE
- on earn:hide this
- *general
- name:General
- desc:<.>Produces 10 gold every second.<//><q>Leads your troops and you will get the loot from the victories automatically.</q>
- icon:https://art.pixilart.com/sr266841759faaws3.png
- cost:120 gold, 3 soldiers, 3 archers
- on tick:yield 10 gold
- req:3 totalUnits
- *commander
- name:Commander
- desc:<.>General is five times more efficient.<//><q>Boosts strategic coordination, increasing overall troop efficiency.</q>
- icon:https://art.pixilart.com/sr5zd1a40fa114aws3.png
- cost:1500 gold, 15 soldiers, 15 archers
- passive:multiply gold yield of general by 5
- req:general
- *strategist
- name:Strategist
- desc:<.>General is five times more efficient.<//><q>Introduces refined tactics to maximize the output of your army.</q>
- icon:https://art.pixilart.com/sr5zb9dcbd8c72aws3.png
- cost:30000 gold, 75 soldiers, 75 archers
- passive:multiply gold yield of general by 5
- req:commander
- *quartermaster
- name:Quartermaster
- desc:<.>General is five times more efficient.<//><q>Enhances supply chains and resource distribution for faster gold generation.</q>
- icon:https://art.pixilart.com/sr5zf3ba4657c0aws3.png
- cost:600000 gold, 375 soldiers, 375 archers
- passive:multiply gold yield of general by 5
- req:strategist
- *logistician
- name:Logistician
- desc:<.>General is five times more efficient.<//><q>Optimizes logistics to streamline operations, significantly boosting efficiency.</q>
- icon:https://art.pixilart.com/sr5zd667cf7c2aaws3.png
- cost:1200000 gold, 1875 soldiers, 1875 archers
- passive:multiply gold yield of general by 5
- req:quartermaster
- *TEMPLATE
- desc:<.>You earn twice the gold with the tributes you ask for.
- passive:multiply yield of tributeButton by 2
- on earn:hide this
- *copperTributes
- name:Copper tributes
- icon:https://art.pixilart.com/sr5zfca4bff05eaws3.png
- cost:300 gold
- req:1 tributeButton:clicks
- *silverTributes
- name:Silver tributes
- icon:https://art.pixilart.com/sr5z95543d06a6aws3.png
- cost:3600 gold
- req:copperTributes
- *goldTributes
- name:Gold tributes
- icon:https://art.pixilart.com/sr5z787775e8b1aws3.png
- cost:45000 gold
- req:silverTributes
- *diamondTributes
- name:Diamond tributes
- icon:https://art.pixilart.com/sr5zabeacd053caws3.png
- cost:520000 gold
- req:goldTributes
- *TEMPLATE
- desc:<.>Gold gained from conquests is increased by 1% of the average between your MPpS and your RPpS.
- passive:increase yield of conquest by (averagePpS*0.01)
- on earn:hide this
- *looting
- name:Looting
- icon:https://art.pixilart.com/sr5z4bc5043c4faws3.png
- cost:36000 gold
- req:1 conquest
- *TEMPLATE
- desc:<.>Gold gained by your general is increased by 1% of the average between your MPpS and your RPpS.
- passive:increase yield of general by (averagePpS*0.01)
- on earn:hide this
- *moraleBoost
- name:Morale boost
- icon:https://art.pixilart.com/sr5z439893126aaws3.png
- cost:72000 gold
- req:general
- *TEMPLATE
- desc:<.>Gold gained from tributes is increased by 1% of the average between your MPpS and your RPpS.
- passive:increase yield of tributeButton by (averagePpS*0.01)
- on earn:hide this
- *taxes
- name:Taxes
- icon:https://art.pixilart.com/sr5zce01b9c80eaws3.png
- cost:144000 gold
- req:copperTributes
- *TEMPLATE
- desc:<.>You lose 20% less gold in invasions.
- passive:
- multiply gold yield of invasion by 0.8
- multiply meleePower yield of invasion by 0.8
- multiply rangedPower yield of invasion by 0.8
- end
- on earn:hide this
- *guards
- name:Guards
- icon:https://art.pixilart.com/sr5zdd4f0fac5aaws3.png
- cost:25000 gold, 10 soldiers
- req:1 incursion:clicks
- *walls
- name:Walls
- icon:https://art.pixilart.com/sr5zc3c0b07163aws3.png
- cost:400000 gold
- req:guards
- *sentinelArchers
- name:Sentinel Archers
- icon:https://art.pixilart.com/sr5z4600104ff9aws3.png
- cost:5600000 gold, 20 archers
- req:walls
- Achievements
- *firstTribute
- name:First tribute
- desc:Earn 1 gold.
- icon:https://art.pixilart.com/sr28c9d03d8dcaws3.png
- req:1 gold:earned
- *goldCollector
- name:Gold collector
- desc:Earn 1k gold.
- icon:https://art.pixilart.com/sr5z4cf494fbb4aws3.png
- req:1000 gold:earned
- *goldenTouch
- name:Golden touch
- desc:Earn 50k gold.
- icon:https://art.pixilart.com/sr2b027db6d51aws3.png
- req:50000 gold:earned
- *treasureHoarder
- name:Treasure hoarder
- desc:Earn 1 million gold.
- icon:https://art.pixilart.com/sr2c3c68e8bf1aws3.png
- req:1000000 gold:earned
- *empiresFortune
- name:Empire's fortune
- desc:Earn 50 million gold.
- icon:https://art.pixilart.com/sr22efd4d84a6aws3.png
- req:50000000 gold:earned
- *wealthOfLegends
- name:Wealth of legends
- desc:Earn 1 billion gold.
- icon:https://art.pixilart.com/sr2d43dcb6698aws3.png
- req:1000000000 gold:earned
- *endlessVaults
- name:Endless vaults
- desc:Earn 50 billion gold.
- icon:https://art.pixilart.com/sr2f7b61912a8aws3.png
- req:50000000000 gold:earned
- *godlikeGold
- name:Godlike gold
- desc:Earn 1 trillion gold.
- icon:https://art.pixilart.com/sr29eb32c80ddaws3.png
- req:1000000000000 gold:earned
- *armyOfOne
- name:Army of One
- desc:Train the first soldier of your army.
- icon:https://art.pixilart.com/sr2576193a8cfaws3.png
- req:1 soldier
- *charge
- name:Charge!
- desc:Recruit the general.
- icon:https://art.pixilart.com/sr266841759faaws3.png
- req:general
- Shinies
- *incursion
- icon:https://art.pixilart.com/sr2a9e3af904daws3.png
- req:15 gold, 15 meleePower, 15 rangedPower
- frequency:30
- frequency variation:15
- duration:10
- movement:anywhere wiggle pulse fade growShrink
- class:hasFlares
- on click:
- if (chance(50%))
- yield success
- else
- yield invasion
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment