Help with Yanfly Extra Param Formulas

Hi everyone, I love this script but I'm running into a strange problem.

link to script:  https://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/

I am trying to change the eva formula, but the script returns an error depending on the parameter I call.  What I mean is, I am getting an error when I use this:

:eva_n_value => "def * 0.200",

:eva_formula => "(n * 0.010) + base_eva",

but I DON'T receive the error when I use the same exact code but substitute "agi" in place of "def".

I AM using some custom parameter names, but I have kept DEF the same.  The attached screenshot shows the error I get when I try to change the formula from agi to def.

What's also strange is that I DON'T receive the error for other formulas I've called the Def parameter for, such as hit rate and crit chance. 

I eventually would like to make the formula more complex than the above, but currently can't figure out how to get past this problem.  Thanks so much in advance for any help.

scripterror.jpg
use self.def instead or params(3)...

That error happens sometimes since def is actually a keyword used in RGSS3 to define new methods...

Code:
def method_nameend
AHH it works! Thank you so much!

Question, does it matter if I use self.  or not for the other parameters like atk / mat / mdf / agi / luk ?
not really... by default, the engine would search for those inside self anyway so putting self. before the others would just be for clarity, it just gets confused with def due to it's nature as a keyword
gotcha.  thanks so much again. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanfly-extra-param-formulas.36495/