MV Yanfly - BaseParamControl Assistance

Hello!

I currently am working on a very unique formula for base MMP Formula that all actors will have.

What I am attempting to accomplish is have individual applied user state conditions to determine which parameter is used to produce the user's base MMP value.

For example - Ill be using MDF to determine certain actor's total MP, but I will need a state to be checked in order for MDF to be used in this way as their maximum MP value.

Here's an example of what I'm looking for (I know it's not the actual code I need, and that's why I need help here):

if user.hasState(1)? = mdf

if user.hasState(2)? = agi

if user.hasState(3)? = luk

Please let me know if there are questions.

Thank you!
In the plugin settings, you can write formulas for parameters. Try this:
user.isStateAffected(X) ? Y : Z
X will be the ID of the state the actor needs to get the custom formula.
Y will be the formula if the actor has that state.
Z will be the formula if the actor doesn't have it.
That worked great. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-baseparamcontrol-assistance.131512/