Hello, will be asking another question again. I am using Yanfly's Skill Learn System. I want to know if there is a way to check who is the actor currently selected in the Skill Learn System. The System offers a notetag function which gives you the ability to execute codes after the skill has been learned. So, I just want to know if there is such a function similar to the logic of the example which I will give:
if(currentActor.name == "Zombie"){
$gameVariables.setValue(1, 0)
}
Thank you :)
EDIT:
Solved, after fiddling aroung rpg_object.js and Yanfly's YEP_SkillLearnSystem.js
I have found out that you could use the name() function to retrieve a name for the actor, where on the other side, the system uses either a, user or subject as the current actor. so it goes
(a.name(), user.name() or subject.name()).
if(currentActor.name == "Zombie"){
$gameVariables.setValue(1, 0)
}
Thank you :)
EDIT:
Solved, after fiddling aroung rpg_object.js and Yanfly's YEP_SkillLearnSystem.js
I have found out that you could use the name() function to retrieve a name for the actor, where on the other side, the system uses either a, user or subject as the current actor. so it goes
(a.name(), user.name() or subject.name()).
Last edited: