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

How can I replicate this ability from battle cats?

Asked by 2 years ago

Hello!

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
1
Answered by
Jac_00b 157
2 years 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.

Ad

Answer this question