Is there any way to reflect damage you recieved by percentage(say, 40%) to the original attacker? it would be helpful if there is script with it.

4 comments

0

We don't give away scripts. This is not Script Givers.

0

But, to help anyway, you can multiply the damage taken by 0.x, where x is the first digit if a two-digit percentage (ex. for 50% you would do 0.5). Using that number you can reflect that amount to damage back to the attacker.

0

In the event where the second digit is not 0, multiply the damage taken by 0.xy, where x is the first digit of the two-digit percentage whereas y is the second digit. (For example, 25% would be 0.25.) If the percentage consists of one digit (ex. 5%), x is 0 and y is the digit of that percentage (0.05).

0

What I literally just stated is that you should convert the percent to a decimal.