Derived Stats with YEP - Class Base Params?

Hello all,

I'm trying to make Max HP and Max MP derived from DEF and MDF specifically.

Using this plugin: http://yanfly.moe/2016/04/24/yep-95-class-base-parameters/

I've used this in the class note:
<Custom Class Parameters>

maxhp = (def * 2) + 1;

maxmp = mdf * 2;

</Custom Class Parameters>

But it doesn't seem to work. Any ideas?
Did you also install YEP Base Parameters? It's a requirement for that plugin.

Edit I just tested this and using def and mdf set my hp to 1 and my mp to 0. I don't think you can use stats to set the max HP/MP but I will look more.

Edit 2: Indeed that is the case. You can't reference Base stats to set HP or MP in this case. What you might consider doing is figuring out your base and using a custom HP/MP formula instead.
Did you also install YEP Base Parameters? It's a requirement for that plugin.

Edit I just tested this and using def and mdf set my hp to 1 and my mp to 0. I don't think you can use stats to set the max HP/MP but I will look more.

Edit 2: Indeed that is the case. You can't reference Base stats to set HP or MP in this case. What you might consider doing is figuring out your base and using a custom HP/MP formula instead.

Yeah it looks like the plugin doesn't recognize using stats as a base. The reason I'm doing it this ways is to streamline and make easier the process of using distribute stats plugin by some random dude. I can probably still get this to work, but I'd need to use lunatic mode java script.
I don't remember the exact call for it, but you might be able to reference the actor's stat from outside itself. I think it's something like $gameActor but I can't remember.

EDIT: Found it.

Using $gameActors.actor(actorId).param[3] will return the DEF of the chosen actor. It's not perfect, but it might work.

EDIT2: I don't know why it isn't just being a hyperlink 🙁

EDIT3: It doesn't work like that, but $gameActors.actor(actorId).def does work. It is throwing errors at me for some reason, though...
use user.def for $gameActors.actor(actorId).def

Original thread: https://forums.rpgmakerweb.com/threads/derived-stats-with-yep-class-base-params.77997/