Yanfly learn skill engine check actor param

Hi guys, I'm using Yanfly's learn skill engine v1. There are ways to set requirements for skills to be learned, but I want to have a minimum parameter value requirement.


There's this:

# <learn require eval>
#  string
#  string
# </learn require eval>



But I don't know anything about coding. How do I check the value of an actor's specific parameter? (Eg ATK, DEF)


Thanks
<learn require eval>
@actor.param(id) >= value
<\learn require eval>


Replace id with the ID of the parameter you want to check for.


0 = HP, 1 = MP, 2 = ATK, and so on.


Replace value with the requirement value from that stat. If the actor got less than that from that parameter, the skill will be locked.


If you want multiple parameter requirements:


<learn require eval>
@actor.param(id) >= value &&;
@actor.param(id) >= value &&;
# And so on here...
@actor.param(id) >= value
<\learn require eval>


Note the semi-colons and the && signs at the end!


Those are needed if you want to check for something else.


The last check should NOT have those signs at the end!


Ohh, and keep in mind that this will include the parameter values gained from equipment and states as well!


For some odd reason, the default engine got no method to get the parameter values without those stats. >.>
Thanks very much Sixth, appreciate it.


EDIT: I get this error-

error.png
You must put the <learn require eval> and <\learn require eval> lines in new lines, they can't be on the same line as the actual requirement text(s).
I did, it looks like this in the skill note tag box:

 <learn require eval>


@actor.param(2) >= 8


<\learn require eval>
Ohh, sorry, my bad! *-*


If you copied my example, than that is the problem.


I wrote these examples from my memory, and that tends to mess up the little details often, unfortunately.


The \ sign in the last line should be a / sign actually, so if you change that, it should work.
Oh haha, that works, thanks so much for your help Sixth!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-learn-skill-engine-check-actor-param.68446/