MV [Solved]RPG Maker MV - Skill Tree System - Get actor ID from Menu select?

Hello everyone.

I need help with possible a simple script call. 😅
I have made a way to distribute stats in this Skill Tree System plugin.
Thanks to Frostorm in this forum he explains how to use common events to distribute a stat.
However, this $gameParty._targetActorId he used to store the actor's Id in a variable, returns to 0.
This means that all actors will get the distribute stat rather than the selected actor.
After some searching and testing, I discover that the line of code is for menu item and skill targeting...?
I tried several different codes even from those of yanfly plugins and from the Skill Tree System like this._ActorId but I guess I am looking at the wrong direction here.

I am trying to look for a line of code that gives me the actor's ID during the menu select so I can store it in a variable. during this scene.
-I open the menu,
--select the "Skill Tree",
---select the actor I want to open the skill tree of,
----and then learn the selected skill in the skill tree of the actor.

Maybe there is a way to store the actor's id during the "learn skill" progress within the Skill Tree System plugin?
Or at the Selecting an actor scene? I can't seem to find it. 🙁
Thank you for your time.

Greetings
D.
Seems to me that the skill tree scene has a function to retrive the displayed actor. So try the following:
JavaScript:
SceneManager._scene.actor().actorId()

Maybe there is a way to store the actor's id during the "learn skill" progress within the Skill Tree System plugin?
For the exact purpose of another skill tree plugin not allowing me quite what I wanted to do I made a mini-plugin that allows the execution of arbitrary javascript when a skill is learned. You could use that to store the actor's id.
I have already posted the plugin in the following thread:
Seems to me that the skill tree scene has a function to retrive the displayed actor. So try the following:
JavaScript:
SceneManager._scene.actor().actorId()


For the exact purpose of another skill tree plugin not allowing me quite what I wanted to do I made a mini-plugin that allows the execution of arbitrary javascript when a skill is learned. You could use that to store the actor's id.
I have already posted the plugin in the following thread:
Ayt! Thank you! That code line works perfectly!
I was about to use Yanfly's Common Event plugin and make one from that. But you saved me.
Thank you so much Eomereolsson.

D.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-rpg-maker-mv-skill-tree-system-get-actor-id-from-menu-select.150981/