Custom Formula Assist pls

*waves*
Alrighty. So, I've scoured the 'net to try to find a solution myself. I've tried several things to no avail. It's very likely that I'm simply being a derp.

But, never hurts to ask.

I'm trying to make a custom formula to increase damage based on how much tp a character has gained in battle. The higher the tp, the higher the damage.

Now I understand that this isn't inherently easy to do, and most likely requires some variable juggling, which I'm no stranger to.

So. To set a variable to track the player (ID=1)'s tp, is there a specific script call that can do this?

And, given that the above works, in the actual formula box, would I then simply use $game_variables[7] * whatever damage multiplier and rest of formula?

Thanks in advance!
Cheers
~Lit
Hello, reading actors TP is kinda easy, expecially if you want to access the user's TP via battle formula. It can be done using this:
Code:
a.tp
Here is an example of a formula to increase skill damage based on how many TP the character gained.
Code:
# This formula sums the tp value to skill damage
a.atk*4 - b.def*2 + a.tp

# This formula multiplies damage up to 3 times based on TP gained
(a.atk*4 - b.def*2) * (1 + 2*a.tp.to_f/100)

In this second case you can use TP rate instead of TP.
The code above is untested but it should work. Of course you can do more complex things but due to the limitations imposed by damage formula box (you can only use a limited ammount of characters) you will probably need to use a script to achieve complex things.
Hello, reading actors TP is kinda easy, expecially if you want to access the user's TP via battle formula. It can be done using this:
Code:
a.tp
Here is an example of a formula to increase skill damage based on how many TP the character gained.
Code:
# This formula sums the tp value to skill damage
a.atk*4 - b.def*2 + a.tp

# This formula multiplies damage up to 3 times based on TP gained
(a.atk*4 - b.def*2) * (1 + 2*a.tp.to_f/100)

In this second case you can use TP rate instead of TP.
The code above is untested but it should work. Of course you can do more complex things but due to the limitations imposed by damage formula box (you can only use a limited ammount of characters) you will probably need to use a script to achieve complex things.

Of course I was over complicating it >.<
Tested your formula and it works beautifully! Thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/custom-formula-assist-pls.82862/