Custom Stat Evaluation Formulae (Yanfly Plugins)

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Hello all. 


I'd like your help concerning custom stat formulae. I know this is a fairly easy thing to do with YF's plugins, yet I can't seem to be able to find out exactly how.


I'm looking for a way to calculate battler base stats via equations. Let me give you an example:


Max Health = (Defense + Guard Rate) * Level


Could you please explain to me which plugins would help me to implement that, and how?
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,636
Reaction score
417
First Language
Portuguese
Primarily Uses
RMMV
Wait... Isn't that what their Base Parameter Control is for?
 

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
That's what I figured too, but I'm more of a pen & paper guy. I tried to set the formulae up, but the precious little I know about JS syntax isn't helping.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,636
Reaction score
417
First Language
Portuguese
Primarily Uses
RMMV
I think the formula would become "((user.def + user.grd) * user.level + plus) * paramRate * buffRate + flat" for that one over there...
 

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Oh, thanks! I was missing the "user." part. That should do it!
One last thing; would you happen to know how to use resistance to a specific element or state in there?
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,636
Reaction score
417
First Language
Portuguese
Primarily Uses
RMMV
I'd have too. Saw it on the Extra Parameters plugin explanations, not on the Base one.


I think it is user.elementRate(x) and user.stateRate(x). Need to test it though
 

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Yeah, that seems to work! Thank you very much!
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,636
Reaction score
417
First Language
Portuguese
Primarily Uses
RMMV
You're welcome! ^_^
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

It look that somehow MZ tracks are messed up (for example battle4 is obviously a theme, castle2 is a ship, ship1 is a scene and so on..). Maybe they just named them after with some ambiguity.
is there a script call that return how much turn has passed in battle?
Does anyone find this hard to read?

Enjoying my weekend at home to stay Covid free. How is everyone else doing?
If you enjoy speed mapping for RPG Maker MV check out my YouTube Channel. My latest video includes custom made tiles which makes a simple map look dynamic!

Check out my short game Hikari's World! : Chapter I, on itch.io/games.

Forum statistics

Threads
100,603
Messages
977,730
Members
132,214
Latest member
qwertyben
Top