View difference between Paste ID: m0iK04Ua and fQzn1jy0
SHOW: | | - or go back to the newest paste.
1
Let's make a game!
2
	name:Clickarmy
3
	by:Pentalogion
4
	desc:Collect gold to build your army and conquer the world!
5-
	version:0.1
5+
6
	version:1.0
7-
Settings:
7+
8-
	background: https://stock.adobe.com/es/images/pixel-art-medieval-castle-with-trees-and-mountains-background-in-retro-style-for-8-bit-game-generative-ai/562001295
8+
Settings
9-
	cost increase:110%
9+
	background:https://th.bing.com/th/id/OIP.Z6brPME-C1lrlTege7-9_AHaE9?rs=1&pid=ImgDetMain
10
	building cost increase:100%
11
12
CSS
13
	#game
14
		{
15
			font-family:Garamond;
16
			font-size:1.5em
17
		}
18
19-
			background:rgba(50,50,50,0.5);
19+
	#game.on,.thing-icon,.icon
20
		{
21
  			background-size:cover;
22-
	#game.filtersOn .thing.cantAfford.notOwned
22+
23-
  {
23+
24-
    filter:blur(3px);
24+
	.thing,.box-header,.box-footer,.box-bit
25-
  }
25+
26
			background: rgba(112, 112, 112, 1);
27
			margin: 1px;
28-
	use default
28+
29
30-
Buttons:
30+
31
		{
32
			border-radius:0px;
33-
		desc:Demand tribute from the lands under your control.
33+
			border:thick outset rgba(0,128,0,0.75);
34-
		icon:https://th.bing.com/th/id/OIP.cM02dBL4yG5zPQA6fEkGrAAAAA?rs=1&pid=ImgDetMain
34+
35
36-
		on click: yield 1 tribute
36+
	.box-bit
37
		{
38-
		class:bigButton
38+
			border-radius:20px;
39
		}
40-
Resources:
40+
41-
	*gold|golds
41+
	.box-header,.box-footer,.box-bit,.building,.upgrade
42
		{
43
			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;
44-
		icon:https://th.bing.com/th/id/OIP.cM02dBL4yG5zPQA6fEkGrAAAAA?rs=1&pid=ImgDetMain
44+
45-
		text:[?(this=0)|No gold|[this] gold from tributes].
45+
46
	.box-header,.box-footer,.box-bit
47-
Buildings:
47+
48-
	*soldier
48+
			border:thick outset #707070;
49
		}
50-
		desc:<//>The basic soldier.<//><b>Effect:</b><.>Produces 1 gold every 5 seconds.
50+
51-
		// icon
51+
	.box-header,.box-footer
52-
		cost:15 golds
52+
53-
		on tick:yield 0.2 fossil
53+
			font-weight:bold;
54-
		unlocked
54+
			border-bottom-left-radius:20px;
55
			border-bottom-right-radius:20px;
56
			margin-bottom:4px;
57
			margin-top:4px;
58
		}
59
60
	#box-buttons
61
		{
62
			padding:100px;
63
			top:0px;
64
			right:0px;
65
			bottom:0px;
66
			left:0px;
67
			position:absolute;
68
		}
69
70
	.building
71
		{
72
			display:block;
73
			margin-right:0px;
74
		}
75
76
	.fullWidth,.fullWidth:hover
77
		{
78
			background:rgba(0,0,0,0.5);
79
			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%);
80
			background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 50%,rgba(0,0,0,0) 100%);
81
			box-shadow:none;
82
		}
83
84
	.fullWidth:before,.fullWidth:after
85
		{
86
			content:'';
87
			height:1px;
88
			background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0) 100%);
89
			position:absolute;
90
			left:0px;
91
			right:0px;
92
			z-index:-1;
93
		}
94
95
	#box-buildings
96
		{
97
			background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 20%);
98
		}
99
100
	#box-upgrades
101
		{
102
			background:rgba(0,0,0,0.3);
103
			top:43px;
104
		}
105
106
	#box-store
107
		{
108
			bottom:20%;
109
		}
110
111
	#box-logBox
112
		{
113
			width:40%;
114
			height:20%;
115
			top:70%;
116
			left:60%;
117
		}
118
119
	#log
120
		{
121
			border-radius:0px;
122
		}
123
124
	#logInner
125
		{
126
    		vertical-align:middle;
127
		}
128
129
	.messageContent
130
		{
131
			text-shadow:1px 1px 0px rgba(0, 0, 0, 0.5);
132
			text-align:center;
133
		}
134
135
	#bulkDisplay
136
		{
137
			background:#707070;
138
			border:thick outset #707070;
139
			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;
140
			margin:-11px 24px 4px 24px;
141
		}
142
143
	.box-things-upgradeSwitcher
144
		{
145
			width:50%;
146
		}
147
148
	#box-upgradeMenu
149
		{
150
			width:50%;
151
			left:50%;
152
			height:43px;
153
			overflow-y:scroll;
154
		}
155
156
	.upgradeSwitch
157
		{
158
			height:43px;
159
			width:50%;
160
			margin:0px;
161
			float:left;
162
			font-weight:bold;
163
		}
164
165
Layout
166
	*main
167
		contains:res, buttons
168
		*res
169
			contains:Resources
170
			class:fullWidth
171
 		*buttons
172
			contains:Buttons
173
	*store
174
		contains:buildings, upgrades, upgradeMenu
175
		*buildings
176
			contains:BulkDisplay, Buildings
177
			header:Buildings
178
			tooltip origin:left
179
		*upgrades
180
			contains:Upgrades
181
			header:Upgrades
182
			costs:hide
183
			names:hide
184
		*upgradeMenu
185
			contains:tag:upgradeSwitcher
186
		*logBox
187
			contains:Log
188
			header:News:
189
	
190
Buttons
191
	*tributeButton
192
		name:Demand tribute
193
		desc:Click to demand tribute from the lands under your control.
194
		icon:https://art.pixilart.com/sr2272671317aaws3.png
195
		no text
196
		on click:yield gold
197
		on click:anim icon wobble
198
		class:bigButton hasFlares
199
		icon class:shadowed
200
		show clicks
201
202
	*showAvailableUpgrade
203
		name:Available
204
		tag:upgradeSwitcher
205
		class:upgradeSwitch
206
		on click:
207
			hide :Upgrades:owned
208
			show :Upgrades:notOwned
209
			anim glow
210
		end
211
		no tooltip
212
213
	*showOwnedUpgrade
214
		name:Owned
215
		tag:upgradeSwitcher
216
		class:upgradeSwitch
217
		on click:
218
			show :Upgrades:owned
219
			hide :Upgrades:notOwned
220
			anim glow
221
		end
222
		no tooltip
223
224
Resources
225
	*gold
226
		name:Gold
227
		desc:You need gold to train soldiers, buy upgrades, etc.
228
		icon:https://art.pixilart.com/sr2272671317aaws3.png
229
		class:noBackground
230
		show max
231
232
	*meleePower
233
		name:Melee power
234
		desc:The close range attack force of your army.
235
		icon:https://art.pixilart.com/sr5z16ddd7acb1aws3.png
236
		class:noBackground
237
		show max
238
239
	*rangedPower
240
		name:Ranged power
241
		desc:The ranged attack force of your army.
242
		icon:https://art.pixilart.com/sr2c24442f639aws3.png
243
		class:noBackground
244
		show max
245
246
	*totalUnit|totalUnits
247
		is always:soldiers + archers + knights + crossbowmen
248
		always hidden
249
250
	*success
251
		on earn:
252
			$loot=gold/(random(5,10))
253
			yield $loot gold
254
			clear log
255
			log <b><#0f0>Your incursion was successful and you took gold as loot!</#></b>
256
		end
257
		always hidden
258
259
	*invasion
260
		on earn:
261
			$goldLoss=gold/(random(-5,-10))
262
			$meleePowerLoss=meleePower/(random(-5,-10))
263
			$rangedPowerLoss=rangedPower/(random(-5,-10))
264
			yield $goldLoss gold
265
			yield $meleePowerLoss meleePower
266
			yield $rangedPowerLoss rangedPower
267
			clear log
268
			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></#>
269
		end
270
		always hidden
271
272
	*averagePpS
273
		is always:(meleePower:ps+rangedPower:ps)/2
274
		always hidden
275
276
Buildings
277
	*conquest|conquests
278
		name:Conquest
279
		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.
280
		icon:https://art.pixilart.com/sr5z16ddd7acb1aws3.png
281
		cost:3 meleePower, 3 rangedPower
282
		cost increase:125%
283
		req:3 totalUnits
284
		no text
285
		on click:anim icon wobble
286
		on earn:yield 5 gold
287
		passive:multiply gold yield of this by 1.1
288
		icon class:shadowed
289
290
	*TEMPLATE
291
		tag:unit
292
293
	*soldier|soldiers
294
		name:Soldier
295
		desc:<.>Produces 1 melee power every 5 seconds.<//><q>The basic soldier.</q>
296
		icon:https://art.pixilart.com/sr2576193a8cfaws3.png
297
		cost:15 gold
298
		on tick:yield 0.2 meleePower
299
		unlocked
300
301
	*archer|archers
302
		name:Archer
303
		desc:<.>Produces 1 ranged power every second.<//><q>A fairly cost-effective long-range unit.</q>
304
		icon:https://art.pixilart.com/sr2b6c7fb619daws3.png
305
		cost:75 gold
306
		on tick:yield rangedPower
307
		req:75 gold:earned
308
309
	*knight|knights
310
		name:Knight
311
		desc:<.>Produces 2 melee power every second.<//><q>A heavily armored melee unit.</q>
312
		icon:https://art.pixilart.com/sr2db1b186074aws3.png
313
		cost:150 gold
314
		on tick:yield 2 meleePower
315
		req:150 gold:earned
316
317
	*crossbowman|crossbowmen
318
		name:Crossbowman
319
		desc:<.>Produces 2 ranged power every second.<//><q>An effective long-range unit with a slow but powerful weapon.<q>
320
		icon:https://art.pixilart.com/sr260acdbe692aws3.png
321
		cost:150 gold
322
		on tick:yield 2 rangedPower
323
		req:150 gold:earned
324
325
	*cavalryman|cavalrymen
326
		name:Crossbowman
327
		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>
328
		icon:https://art.pixilart.com/sr5z58bcb21497aws3.png
329
		cost:300 gold, 1 knight
330
		on tick:
331
			yield 4 meleePower
332
			yield meleePower
333
		req:300 gold:earned, knight
334
335
Upgrades
336
	*TEMPLATE
337
		on earn:hide this
338
339
	*orderOfChivalry
340
		name:Order of Chivalry
341
		desc:<.>Your cavalrymen are twice as efficient.<//>
342
		icon:https://art.pixilart.com/sr5z52bc46b76faws3.png
343
		cost:3000, 10 chivalrymen
344
		passive:multiply yield of cavalrymen by 2
345
		req:cavalryman
346
347
	*TEMPLATE
348
		on earn:hide this
349
350
	*general
351
		name:General
352
		desc:<.>Produces 10 gold every second.<//><q>Leads your troops and you will get the loot from the victories automatically.</q>
353
		icon:https://art.pixilart.com/sr266841759faaws3.png
354
		cost:120 gold, 3 soldiers, 3 archers
355
		on tick:yield 10 gold
356
		req:3 totalUnits
357
358
	*commander
359
		name:Commander
360
		desc:<.>General is five times more efficient.<//><q>Boosts strategic coordination, increasing overall troop efficiency.</q>
361
		icon:https://art.pixilart.com/sr5zd1a40fa114aws3.png
362
		cost:1500 gold, 15 soldiers, 15 archers
363
		passive:multiply gold yield of general by 5
364
		req:general
365
366
	*strategist
367
		name:Strategist
368
		desc:<.>General is five times more efficient.<//><q>Introduces refined tactics to maximize the output of your army.</q>
369
		icon:https://art.pixilart.com/sr5zb9dcbd8c72aws3.png
370
		cost:30000 gold, 75 soldiers, 75 archers
371
		passive:multiply gold yield of general by 5
372
		req:commander
373
374
	*quartermaster
375
		name:Quartermaster
376
		desc:<.>General is five times more efficient.<//><q>Enhances supply chains and resource distribution for faster gold generation.</q>
377
		icon:https://art.pixilart.com/sr5zf3ba4657c0aws3.png
378
		cost:600000 gold, 375 soldiers, 375 archers
379
		passive:multiply gold yield of general by 5
380
		req:strategist
381
382
	*logistician
383
	name:Logistician
384
		desc:<.>General is five times more efficient.<//><q>Optimizes logistics to streamline operations, significantly boosting efficiency.</q>
385
		icon:https://art.pixilart.com/sr5zd667cf7c2aaws3.png
386
		cost:1200000 gold, 1875 soldiers, 1875 archers
387
		passive:multiply gold yield of general by 5
388
		req:quartermaster
389
390
	*TEMPLATE
391
		desc:<.>You earn twice the gold with the tributes you ask for.
392
		passive:multiply yield of tributeButton by 2
393
		on earn:hide this
394
395
	*copperTributes
396
		name:Copper tributes
397
		icon:https://art.pixilart.com/sr5zfca4bff05eaws3.png
398
		cost:300 gold
399
		req:1 tributeButton:clicks
400
401
	*silverTributes
402
		name:Silver tributes
403
		icon:https://art.pixilart.com/sr5z95543d06a6aws3.png
404
		cost:3600 gold
405
		req:copperTributes
406
407
	*goldTributes
408
		name:Gold tributes
409
		icon:https://art.pixilart.com/sr5z787775e8b1aws3.png
410
		cost:45000 gold
411
		req:silverTributes
412
413
	*diamondTributes
414
		name:Diamond tributes
415
		icon:https://art.pixilart.com/sr5zabeacd053caws3.png
416
		cost:520000 gold
417
		req:goldTributes
418
419
*TEMPLATE
420
		desc:<.>Gold gained from conquests is increased by 1% of the average between your MPpS and your RPpS.
421
		passive:increase yield of conquest by (averagePpS*0.01)
422
		on earn:hide this
423
424
	*looting
425
		name:Looting
426
		icon:https://art.pixilart.com/sr5z4bc5043c4faws3.png
427
		cost:36000 gold
428
		req:1 conquest
429
430
 	*TEMPLATE
431
		desc:<.>Gold gained by your general is increased by 1% of the average between your MPpS and your RPpS.
432
		passive:increase yield of general by (averagePpS*0.01)
433
		on earn:hide this
434
435
	*moraleBoost
436
		name:Morale boost
437
		icon:https://art.pixilart.com/sr5z439893126aaws3.png
438
		cost:72000 gold
439
		req:general
440
441
	*TEMPLATE
442
		desc:<.>Gold gained from tributes is increased by 1% of the average between your MPpS and your RPpS.
443
		passive:increase yield of tributeButton by (averagePpS*0.01)
444
		on earn:hide this
445
446
	*taxes
447
		name:Taxes
448
		icon:https://art.pixilart.com/sr5zce01b9c80eaws3.png
449
		cost:144000 gold
450
		req:copperTributes
451
452
	*TEMPLATE
453
		desc:<.>You lose 20% less gold in invasions.
454
		passive:
455
			multiply gold yield of invasion by 0.8
456
			multiply meleePower yield of invasion by 0.8
457
			multiply rangedPower yield of invasion by 0.8
458
		end
459
		on earn:hide this
460
461
	*guards
462
		name:Guards
463
		icon:https://art.pixilart.com/sr5zdd4f0fac5aaws3.png
464
		cost:25000 gold, 10 soldiers
465
		req:1 incursion:clicks
466
467
	*walls
468
		name:Walls
469
		icon:https://art.pixilart.com/sr5zc3c0b07163aws3.png
470
		cost:400000 gold
471
		req:guards
472
473
	*sentinelArchers
474
		name:Sentinel Archers
475
		icon:https://art.pixilart.com/sr5z4600104ff9aws3.png
476
		cost:5600000 gold, 20 archers
477
		req:walls
478
479
Achievements
480
	*firstTribute
481
		name:First tribute
482
		desc:Earn 1 gold.
483
		icon:https://art.pixilart.com/sr28c9d03d8dcaws3.png
484
		req:1 gold:earned
485
486
	*goldCollector
487
		name:Gold collector
488
		desc:Earn 1k gold.
489
		icon:https://art.pixilart.com/sr5z4cf494fbb4aws3.png
490
		req:1000 gold:earned
491
492
	*goldenTouch
493
		name:Golden touch
494
		desc:Earn 50k gold.
495
		icon:https://art.pixilart.com/sr2b027db6d51aws3.png
496
		req:50000 gold:earned
497
498
	*treasureHoarder
499
		name:Treasure hoarder
500
		desc:Earn 1 million gold.
501
		icon:https://art.pixilart.com/sr2c3c68e8bf1aws3.png
502
		req:1000000 gold:earned
503
504
	*empiresFortune
505
		name:Empire's fortune
506
		desc:Earn 50 million gold.
507
		icon:https://art.pixilart.com/sr22efd4d84a6aws3.png
508
		req:50000000 gold:earned
509
510
	*wealthOfLegends
511
		name:Wealth of legends
512
		desc:Earn 1 billion gold.
513
		icon:https://art.pixilart.com/sr2d43dcb6698aws3.png
514
		req:1000000000 gold:earned
515
516
	*endlessVaults
517
		name:Endless vaults
518
		desc:Earn 50 billion gold.
519
		icon:https://art.pixilart.com/sr2f7b61912a8aws3.png
520
		req:50000000000 gold:earned
521
522
	*godlikeGold
523
		name:Godlike gold
524
		desc:Earn 1 trillion gold.
525
		icon:https://art.pixilart.com/sr29eb32c80ddaws3.png
526
		req:1000000000000 gold:earned
527
528
	*armyOfOne
529
		name:Army of One
530
		desc:Train the first soldier of your army.
531
		icon:https://art.pixilart.com/sr2576193a8cfaws3.png
532
		req:1 soldier
533
534
	*charge
535
		name:Charge!
536
		desc:Recruit the general.
537
		icon:https://art.pixilart.com/sr266841759faaws3.png
538
		req:general
539
540
Shinies
541
	*incursion
542
		icon:https://art.pixilart.com/sr2a9e3af904daws3.png
543
		req:15 gold, 15 meleePower, 15 rangedPower
544
		frequency:30
545
		frequency variation:15
546
		duration:10
547
		movement:anywhere wiggle pulse fade growShrink
548
		class:hasFlares
549
		on click:
550
			if (chance(50%))
551
				yield success
552
			else
553
				yield invasion
554
			end
555
		end