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

Work on Yanfly's MZ plug-ins is coming along nicely. Looking forward to getting them: http://www.yanfly.moe/wiki/Core_Engine_VisuStella_MZ
so uh variables can only be used for num lol? I guess I gotta fix that once MZ come out lol
I didn't think I'd spend the evening jamming out to the battle theme of a Hole Punch.
Welcome back to the dark era, where everything is in dark mode!
.
.
.
I'm not complaining! :o

Forum statistics

Threads
100,726
Messages
978,827
Members
132,353
Latest member
BM_ANDERSON
Top