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>
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>