Please look at this Example Class, Stat, and Formula

Starting Stats for Class:Embracer
ATK: 20---Key Stat

DEF: 20

MAT: 25

MDF: 20
AGI: 30

LUK: 30
 

Fury Strike:

*Physical Attack

*Hp Damage

*Formula: 8*a.atk-4*b.def

*Variance: 20

Attacking

Demon Slime:

ATK: 25

DEF:20---Key Stat

MAT: 25

MDF: 20

AGI: 25

LUK: 20

So:  8*20-4*20=80

with Variance makes 64-96 Hp Damage

Did I get this right?

Don't know how to factor in Luk or if that has anything to do with this formula or if it should.

Also I'd like to know of any ideas to manipulate the equation.

Thanks for looking....
Hmmm... yes, it's correct since varience is taken off normally as percent... so variance of 20 means 20% variance... 80*0.2 = 16 which is why it results to 64-96 damage

 

To use stats you simply use "battler"."stat"

 

you replace "battler" normally with a (caster/user) and b (target)

 

which is why the default atk - def fomula is like that: a.atk and b.def 

 

so if you want to use LUK, you just need to include a.luk or b.luk

 

but if you want LUK to influence variance, that's a different thing...

 

if it's specific to that skill alone, you can set variance to 0, then just apply some kind of variance formula in the damage formula that uses LUK... but if it's for all skills, then you might just want to edit the variance formula in the script itself...
Hmmm... yes, it's correct since varience is taken off normally as percent... so variance of 20 means 20% variance... 80*0.2 = 16 which is why it results to 64-96 damage
Okay so is this right: 8 * a.atk - 4 * b.def - b.luk

                                 8 *   20  -  4 *   20   -   20 =  60

                                 Variance 20%=48-72
yes...
Thank You!  I think I have a beginning understanding how to manipulate the skills equation now.
You should read this great tutorial on using the custom Damage Forumula to it's higher extents.

http://cobbtocs.co.uk/wp/?p=271

Getting technical with switches/variables effecting formulas, user/target (a/b) syntaxes suches as .id, as well as add_state and remove_state.  It's really good to know.
there's also a thread here about the custom formula bar... it's worth a look too...

basically, anything that can be evaluated by Ruby will work on the formula bar...
You should read this great tutorial on using the custom Damage Forumula to it's higher extents.

http://cobbtocs.co.uk/wp/?p=271

Getting technical with switches/variables effecting formulas, user/target (a/b) syntaxes suches as .id, as well as add_state and remove_state.  It's really good to know.
This is cool...
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/please-look-at-this-example-class-stat-and-formula.19281/