Advertisement
EstrumbiloPlease

Untitled

Apr 16th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. Let's make a game!
  2. name:NGU IDLE combat system bootleg
  3. desc:yep
  4. by:Estrumbilo
  5.  
  6. Settings
  7. //made by me, dont use without permission >:(
  8. stylesheet:https://pastebin.com/YCLb42uQ
  9. background:http://orteil.dashnet.org/cookieclicker/img/starbg.jpg
  10.  
  11. Resources
  12.  
  13. *powerBase
  14. start with:10
  15. *toughnessBase
  16. start with:10
  17. *healthBase
  18. start with:30
  19. *hpRegenBase
  20. start with:0.3
  21. *currentHealth
  22.  
  23. *enemyPower
  24. *enemyToughness
  25. *enemyBaseHealth
  26. *enemyRegen
  27. *enemyHealth
  28.  
  29. *figthCooldown
  30. start with:60
  31. *attackCooldown
  32. *enemyCooldown
  33.  
  34. Buildings
  35.  
  36. *TEMPLATE
  37. class:normalGen
  38.  
  39. *battle
  40. name:Fight
  41. text:Fight ([figthCooldown]s)
  42. on tick:lose (1/this) figthCooldown
  43. on click:
  44. if (figthCooldown = 0)
  45. enemyHealth is 30
  46. yield 1 enemy
  47. enemyPower is 10
  48. enemyToughness is 10
  49. enemyBaseHealth is 30
  50. enemyRegen is 0.3
  51. enemyHealth is 30
  52. show enemy
  53. show attack
  54. end
  55. end
  56. on tick:
  57. if (enemyHealth = 0 and currentHealth > 0 and enemy = 1)
  58. lose 1 enemy
  59. figthCooldown is 60
  60. hide attack
  61. end
  62. end
  63. on tick:
  64. if (currentHealth = 0 and enemy = 1)
  65. lose 1 enemy
  66. figthCooldown is 60
  67. hide attack
  68. end
  69. end
  70. no buy
  71. start with:1
  72.  
  73. *enemy
  74. name:Zombie
  75. text:Zombie ([enemyHealth]/[enemyBaseHealth])</>Power: [enemyPower]</>Toughness: [enemyToughness]</>Hp Regen: [enemyRegen]
  76. on tick:yield 1 enemyCooldown
  77. on tick:
  78. if (enemyCooldown = 3)
  79. lose ((enemyPower - (toughnessBase / 2)) * (frandom(0.8,1.2))) currentHealth
  80. toast <#FF0000>The enemy hit you for <b>[((enemyPower - (toughnessBase / 2)) * (frandom(0.8,1.2)))]</b> damage!</#>
  81. enemyCooldown is 0
  82. end
  83. end
  84. on tick:
  85. if (enemyHealth < enemyBaseHealth)
  86. yield enemyRegen enemyHealth
  87. end
  88. if (enemyHealth >= enemyBaseHealth)
  89. enemyHealth is enemyBaseHealth
  90. end
  91. end
  92. no buy
  93. hidden when 0
  94. no tooltip
  95.  
  96. *you
  97. name:You
  98. text:You ([currentHealth]/[healthBase])</>Power: [powerBase]</>Toughness: [toughnessBase]</>Hp Regen: [hpRegenBase]
  99. start with:1
  100. no buy
  101. on tick:
  102. if (currentHealth < healthBase)
  103. yield hpRegenBase currentHealth
  104. end
  105. if (currentHealth >= healthBase)
  106. currentHealth is healthBase
  107. end
  108. end
  109.  
  110. *attack
  111. text:Attack [?attackCooldown = 0|(Ready!)|([attackCooldown]s)]
  112. on click:
  113. if (attackCooldown = 0 and enemy = 1)
  114. lose ((powerBase - (enemyToughness / 2)) * (frandom(0.8,1.2))) enemyHealth
  115. toast <#32CD32>You hit the enemy for <b>[((powerBase - (enemyToughness / 2)) * (frandom(0.8,1.2)))]</b> damage!</#>
  116. attackCooldown is 2
  117. end
  118. end
  119. on tick:
  120. if (attackCooldown > 0)
  121. lose (1/this) attackCooldown
  122. end
  123. end
  124. start with:1
  125. no buy
  126. hidden
  127.  
  128. CSS
  129.  
  130.  
  131. .thing.normalGen
  132. {
  133. margin-top: 8px;
  134. margin-bottom: 8px;
  135. border: 4px outset #0153a7;
  136. background-color: #081018;
  137. border-radius: 20px;
  138. text-align:center;
  139. }
  140.  
  141. Layout
  142. *main
  143. contains:res, buttons
  144. *res
  145. contains:Resources, Achievements
  146. class:fullWidth
  147. *buttons
  148. contains:Buttons
  149. *store
  150. contains:buildings, upgrades
  151. *buildings
  152. contains:Buildings
  153. header:Generators
  154. tooltip origin:left
  155. *upgrades
  156. contains:Upgrades
  157. header:Upgrades
  158. costs:hide
  159. names:hide
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement