Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

How can I replicate this ability from battle cats?

Asked by 1 year ago


I wanted to replicate this ability from the mobile game: "Battle Cats". Anyway, there Is an ability for metal enemies, there HP Is how much times they need to be hit

(An example: If a metal enemy has 20 HP, the player must hit them 20 times before dying)

However, when It meets a critical hit, It will Ignore the metal enemy's ability and damage the enemy

1 answer

Log in to vote
Answered by
Jac_00b 157
1 year ago

Make a boolvalue that if true it is metal and the weapon only inflicts one damage on it. If you want to replicate a crit, make another boolvalue and make the weapon have a random chance of turning it to true. Whenever its true the normal damage is given.


Answer this question