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.
COMMUNITY QUESTION
Is there a way to reflect Damage to opponent by script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
We don't give away scripts. This is not Script Givers.
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.
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).
What I literally just stated is that you should convert the percent to a decimal.