Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Let's make a game!
- name:NGU IDLE combat system bootleg
- desc:yep
- by:Estrumbilo
- Settings
- //made by me, dont use without permission >:(
- stylesheet:https://pastebin.com/YCLb42uQ
- background:http://orteil.dashnet.org/cookieclicker/img/starbg.jpg
- Resources
- *powerBase
- start with:10
- *toughnessBase
- start with:10
- *healthBase
- start with:30
- *hpRegenBase
- start with:0.3
- *currentHealth
- *enemyPower
- *enemyToughness
- *enemyBaseHealth
- *enemyRegen
- *enemyHealth
- *figthCooldown
- start with:60
- *attackCooldown
- *enemyCooldown
- Buildings
- *TEMPLATE
- class:normalGen
- *battle
- name:Fight
- text:Fight ([figthCooldown]s)
- on tick:lose (1/this) figthCooldown
- on click:
- if (figthCooldown = 0)
- enemyHealth is 30
- yield 1 enemy
- enemyPower is 10
- enemyToughness is 10
- enemyBaseHealth is 30
- enemyRegen is 0.3
- enemyHealth is 30
- show enemy
- show attack
- end
- end
- on tick:
- if (enemyHealth = 0 and currentHealth > 0 and enemy = 1)
- lose 1 enemy
- figthCooldown is 60
- hide attack
- end
- end
- on tick:
- if (currentHealth = 0 and enemy = 1)
- lose 1 enemy
- figthCooldown is 60
- hide attack
- end
- end
- no buy
- start with:1
- *enemy
- name:Zombie
- text:Zombie ([enemyHealth]/[enemyBaseHealth])</>Power: [enemyPower]</>Toughness: [enemyToughness]</>Hp Regen: [enemyRegen]
- on tick:yield 1 enemyCooldown
- on tick:
- if (enemyCooldown = 3)
- lose ((enemyPower - (toughnessBase / 2)) * (frandom(0.8,1.2))) currentHealth
- toast <#FF0000>The enemy hit you for <b>[((enemyPower - (toughnessBase / 2)) * (frandom(0.8,1.2)))]</b> damage!</#>
- enemyCooldown is 0
- end
- end
- on tick:
- if (enemyHealth < enemyBaseHealth)
- yield enemyRegen enemyHealth
- end
- if (enemyHealth >= enemyBaseHealth)
- enemyHealth is enemyBaseHealth
- end
- end
- no buy
- hidden when 0
- no tooltip
- *you
- name:You
- text:You ([currentHealth]/[healthBase])</>Power: [powerBase]</>Toughness: [toughnessBase]</>Hp Regen: [hpRegenBase]
- start with:1
- no buy
- on tick:
- if (currentHealth < healthBase)
- yield hpRegenBase currentHealth
- end
- if (currentHealth >= healthBase)
- currentHealth is healthBase
- end
- end
- *attack
- text:Attack [?attackCooldown = 0|(Ready!)|([attackCooldown]s)]
- on click:
- if (attackCooldown = 0 and enemy = 1)
- lose ((powerBase - (enemyToughness / 2)) * (frandom(0.8,1.2))) enemyHealth
- toast <#32CD32>You hit the enemy for <b>[((powerBase - (enemyToughness / 2)) * (frandom(0.8,1.2)))]</b> damage!</#>
- attackCooldown is 2
- end
- end
- on tick:
- if (attackCooldown > 0)
- lose (1/this) attackCooldown
- end
- end
- start with:1
- no buy
- hidden
- CSS
- .thing.normalGen
- {
- margin-top: 8px;
- margin-bottom: 8px;
- border: 4px outset #0153a7;
- background-color: #081018;
- border-radius: 20px;
- text-align:center;
- }
- Layout
- *main
- contains:res, buttons
- *res
- contains:Resources, Achievements
- class:fullWidth
- *buttons
- contains:Buttons
- *store
- contains:buildings, upgrades
- *buildings
- contains:Buildings
- header:Generators
- tooltip origin:left
- *upgrades
- contains:Upgrades
- header:Upgrades
- costs:hide
- names:hide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement