YEP Skill Learn System

Howdy,

So I'm working with the Yanfly Skill Learn System for MV, and to my dismay, there is no way to reset a characters JP/Skills learned.

I had decided to attempt to use Lunatic mode to tell it to save abilities purchased to actor specific variables, but I kept getting errors. I'm no wiz with java script, so I was wondering if one fine java wizard wouldnt mind enlightening me on what to put within the note tags.

I was thinking it'd be something along the lines of: (Note, this isnt what I used, I actually deleted the original code strings that I attempted, this is more or less a mock up of how I thought it should go)


<Learn Cost Eval>
if ($gameActors.actor(actorId).skills().contains($dataSkills[skill_Id]) {


 return $gameVariables.setVariable(61, + <whatever JP price of current skill is>) }


</Learn Cost Eval>

Thanks much for any response!!

::EDIT::
I resolved my dilemma, I am currently using the following for anyone else who might be interested in having different actors control different variables.


<Learn Cost Eval>


var id = user._actorId;


if (user._actorId == 1) {


$gameVariables.setValue(61, ($gameVariables.value(61)) + 1);


}


if (user._actorId == 2) {


$gameVariables.setValue(62, ($gameVariables.value(62)) + 1);


}


if (user._actorId == 3) {


$gameVariables.setValue(63, ($gameVariables.value(63)) + 1);


}


if (user._actorId == 4) {


$gameVariables.setValue(64, ($gameVariables.value(64)) + 1);


}


user.forgetSkill(37);


user.refresh();


</Learn Cost Eval>
I actually did something similar to this, but I ran into an issue where the JP requirement from one actor appears on another actor, until they make a purchase on their screen.


E.G


Actor 1 makes a purchase of a skill 3 times, and their purchase price instead of being 1 JP is now 3 JP.


Actor 2 who has never made a purchase and should have a purchase price of 1 JP is showing the 3 JP from actor 2... however if you make the purchase it only deducts the 1 JP from their total and then the screen is refreshed with the correct amount relevant to the actor.



Did you run into the same issue? and did manage to fix it?

The only thing I can think of to do to fix it is to make multiple copies of the skill for each actor... but that would be very annoying.

Original thread: https://forums.rpgmakerweb.com/threads/yep-skill-learn-system.58872/