<Ace>Yanfly's Extra parameter formula>> Using "level" in formula creation

Have a few questions regarding the script (you can find the script here ->> https://github.com/Archeia/YEARepo/blob/master/Core/Extra_Param_Formulas.rb

1) Does the formula support using actor or self level besides mentioned params to create a formula (ATK, DEF, AGI, LUK, MAT, MDF)?

If it does, what is the correct wording to use in a formula?

2) Supposedly, 1) is possible, the formula will also affect enemy as well but they don't have level. Is there a way to create a formula that affects only actor or class?

Thank you for your help!
Have a few questions regarding the script (you can find the script here: )
Where? If you want help with a script, include a link for it. Please don't make us spend time searching for what may or may not be the same version of the same script, when we're the ones helping you.
Where? If you want help with a script, include a link for it. Please don't make us spend time searching for what may or may not be the same version of the same script, when we're the ones helping you.
I just edited my post to insert the link. Here again the link for the script ->> https://github.com/Archeia/YEARepo/blob/master/Core/Extra_Param_Formulas.rb
Best make a space before the close parenthesis in the original post - the link is broken the way it's written.
@ 1)

The formula is evaluated as plain ruby code, so you can include any valid ruby statement. The evaluation context is the battler itself, you can use  level  and  self.level  alike to access the battlers level.

@ 2)
The formulas are used for both, actors and enemies. To distinguish between those two types, you could use a formula like this:
if self.actor?

  # Formula for actors

else

  # Formula for enemies

end
@ 1)

The formula is evaluated as plain ruby code, so you can include any valid ruby statement. The evaluation context is the battler itself, you can use level and self.level alike to access the battlers level.

@ 2)

The formulas are used for both, actors and enemies. To distinguish between those two types, you could use a formula like this:

if self.actor?

# Formula for actors

else

# Formula for enemies

end
Thank you, it works very well. May I bother you to add a checking for class_id after check for actor to your example? My scripting knowledge is not quite good. - -"Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanflys-extra-parameter-formula-using-level-in-formula-creation.37994/