Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Check Current Actor

Status
Not open for further replies.

Saif

Towns Guard
Xy$
0.00
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()).
 
Last edited:

eivl

Local Hero
Xy$
0.00
Not sure if this helps, but if you want to know who is the current selected actor you can use : $gameParty.menuActor();
 
Status
Not open for further replies.
Top