So I want to create a state that has the class gain Attack Power based on how high his TP is. Higher TP = more Attack Power. I have all of Yanfly's plugins (among others).
How would I go about doing this?
*edit* The answer I came up with thanks to the help of Kiriseo is this formula within a passive state:
<Custom Turn Start Effect>
user._paramPlus[2] = (user.tp / 200) * user.atk;
</Custom Turn Start Effect>
Thanks again, Kiriseo! 😀
simplest solution would be to add a.tp into the damage formula of every skill of that class.
This only works if all skills are exclusive to that class however.
They're not. lol I have a class change and subclass system. The "Soldier" class has a skill which offers an auto passive state (this way if it's a subclass it will still be in effect, unlike a trait) that increases attack power based on TP. This way if the main class is... say.. "Assassin" with "Soldier" subclass it'll still benefit from the TP to ATK gain.
Tried that without the state with about 22 attack power and did around 90 damage.
Tried that with your formula in the state with about 22 attack power (and 100 TP) and still did around 90 damage.
Yep it works! Now how would I use a formula to turn that into a percentage? Like at 100TP I gain 50% additional Attack.
EG: I gain 0.5% additional Attack Power per point of TP.
*edit* I have a hard time wrapping my head around math, but would this work?
<Custom Turn Start Effect>
user._paramPlus[2] = (user.tp / 200) * user.atk;
</Custom Turn Start Effect>
*edit* After some testing with a variety of classes this formula works. Thank you very much Kiriseo (Love the name, btw!).
Now that I know how to do this with parameters and formulas I can create a plethora of states for HP, MP, all kinds of stuff!
I'll update my first post with this information.