MV YEP_JobPoints/SkillCore plugin Javascript assistance

I am using Yanfly's Skill Core & Job Points plugins (links below) to utilize job points (Mastery Points/EM in my game) as a secondary EXP, making specific skills visible after an actor has received a certain number of EM.

Before someone says, "Why not use the Job Points plugin coupled with Yanfly's Skill Learn System plugin so the player can unlock skills?" I tried that, but the mentioned skills are gained via attachable augments, and I ran into issues when the actor unequips said augments. They maintained all skills learned via job points even with the augment gone, which is not the desired outcome.

So I decided to pursue a different route: the augment provides all the skills that can be learned, but specific skills only become visible when an actor has accumulated enough EM. If the player removes the augment, all their skills go with it.

That being said, after looking inside the Job Points plugin, I was unsuccessful in creating a code embedded within the test skill to achieve the desired result. My failed code is below:

JavaScript:
<Custom Show Eval>
// Visible when the user's EM is greater than 30.
visible=user.Jp()=>30;
</Custom Show Eval>

I also tried "actor()" in place of "user," but I am assuming that would only call on individual actors. I did look inside the Job Points plugin, but could not figure out what to call on. I am still learning JS and am not the fastest learner. Thank you for being so patient.

Community assistance is appreciated.


Try this instead?

<Custom Show Eval> // Visible when the user's EM is greater than 30. visible = user.jp() >= 30; </Custom Show Eval>
Try this instead?

<Custom Show Eval> // Visible when the user's EM is greater than 30. visible = user.jp() >= 30; </Custom Show Eval>

Awesome, thank you! It is good to know I was close 🙂

Solved.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/yep_jobpoints-skillcore-plugin-javascript-assistance.153907/