Lunatic Damage/Power Package question

As I didn't find a general thread for Lunatic Damage script I post that question here.

Power Package of Lunatic Damage contains some great additions like increased dmg/defence % depending on how much HP or MP the attacker/defender has. Is there some addition with the same conditions for TP? It would make some great skills like rage attack or strategic defence or whatever you want...
That can be done with damage formulas without the additional aid of a script. Unless I'm missing something?

For example:

y = a.tp / 50 ; x = a.atk * 4 - b.def * 2 ; x * yDeals between 2% and 200% skill damage based on the attacker's TP.
That can be done with damage formulas without the additional aid of a script. Unless I'm missing something?

For example:

y = a.tp / 50 ; x = a.atk * 4 - b.def * 2 ; x * y Deals between 2% and 200% skill damage based on the attacker's TP.
Yes, I see. I would probably change the formulas last line to  x * (y + 0,1) to avoid 0 TP effect.

Or probably I would do it like that:

y = a.tp / 100 ; x = a.atk * 4 - b.def * 2 ; x + x * y

or probably even:

y = a.tp / 100 ; x = a.atk * 4 - b.def * 2 / (1 + y) ; x

Now as I see the potential of damage formula (not for the fist time of course) I don't know why Power Package is made at all.

By the way I don't know how brackets work in damage formula. Also, I don't know which of the symbol I can use. Can someone show me a tutorial (if any) for Damage formula?

Thank you, Rinobi.
Those fomulae will not work as intended because all values are integer by default. You either need to switch to float or do your divisions last.

For example:

If a.tp is 99 and a.atk is 400, then the results of the formulae would be:

y = a.tp/100; x = a.atk * y ==> results in zero damage, because 99/100 is zero for integers

a.atk * a,tp /100 will result in 396 because a.atk*a.tp is 39600 before the division.
Minor correction to fix the potential integer problem. I thought I edited my post before, but I guess not.

Code:
y = a.tp / 50.00 ; x = a.atk * 4 - b.def * 2 ; x * y 

Original thread: https://forums.rpgmakerweb.com/threads/lunatic-damage-power-package-question.45299/