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?
 

Waterguy

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,400
Reaction score
316
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.
 

Waterguy

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,400
Reaction score
316
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?
 

Waterguy

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,400
Reaction score
316
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!
 

Waterguy

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,400
Reaction score
316
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


The main character of the book)
Things you can say about your rpg maker project but not your bf/gf: I'm not super committed but it's fun to play around with it.
putting a puzzle in my game that BSODs the player's computer if they complete it
I finally got a book out the door after seven years of nothing \^-^/ Now if I can get a game out the door too, that'd be great...

Forum statistics

Threads
94,366
Messages
920,302
Members
124,132
Latest member
voltrone
Top