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

Is there a way to reflect Damage to opponent by script? [closed]

Asked by
Yuuwa0519 197
5 years ago

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.

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

Closed as Not Constructive by DeceptiveCaster and User#24403

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?