Yanfly Base Parameters Issue

Hello,

I'm not sure exactly how to set up this formula and would like some assistance.

Basically, I'm wanting MHP to be based off the base DEF value and not affected by any DEF changes caused by armor or weapons. Currently this is how I have the formula set up:
Code:
((Math.pow(this.def,2) * 73.6) / 64) * Math.cbrt( Math.floor(this.def / 3))

As you can imagine, this is not working how I want since as soon as equipment is changed, MHP changes.

Any help is appreciated
But doesn't the equipment changing mhp mean the formula is working? I mean, if you have the equipment's mhp stat at 0, which I think you did since you don't want the equipment to affect mhp, then the mhp shouldn't change, and yet it does. This would happen if the equipment is affecting def, and since def affects mhp, the mhp changes.

Some things to change in your formula:

You started the equation with three brackets, but never closed one of them. Start with two brackets instead since one of them is redundant anyways.

Replace this.def with user.def
But doesn't the equipment changing mhp mean the formula is working? I mean, if you have the equipment's mhp stat at 0, which I think you did since you don't want the equipment to affect mhp, then the mhp shouldn't change, and yet it does. This would happen if the equipment is affecting def, and since def affects mhp, the mhp changes.

Some things to change in your formula:

You started the equation with three brackets, but never closed one of them. Start with two brackets instead since one of them is redundant anyways.

Replace this.def with user.def
Using the formula still causes the issue:
Spoiler
Ff81IcQjmgieklPymPSxcFX7vIjUPSQWSxfYZHGp3sOox0lVGqBYlQlNA5_UaGblyeO4Mve3CQs6P2Q=w1920-h974
What I'm wanting is for the DEF I have set in the database for that class at that level to be used instead of the user's DEF.

At level one, the actor's base DEF is 17. When they equip armor, I want the formula to still use the base DEF of 17. Is there a way to specify the class DEF instead of the actor's?
Oh, so you want it to depend on the base defense.

In that case, replace user.def with user.paramBase(3).

So you're formula would be:

Code:
((Math.pow(user.paramBase(3),2) * 73.6) / 64) * Math.cbrt( Math.floor(user.paramBase(3) / 3))
Oh, so you want it to depend on the base defense.

In that case, replace user.def with user.paramBase(3).

So you're formula would be:

Code:
((Math.pow(user.paramBase(3),2) * 73.6) / 64) * Math.cbrt( Math.floor(user.paramBase(3) / 3))
It works! Thank you for your help! I ended up tweaking it a little but the end formula looks like this:

Code:
(((Math.pow(user.paramBase(3),2) * 73.6) / 128) + plus) * paramRate * buffRate + flat

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-base-parameters-issue.80193/