MZ VisuStella Skill Learn System - Returning Skill Points and force opening Skill Menu.

Is there a way to return the number of skill points you currently have from the Skill Learn system? I want to use the value in a calculation.

Is there also a way to force open the Skill Learn menu and prevent closing until all skill points are spent?
Well if you open the js file, even though it's obfuscated, you can read that there's a function
getSkillPoints()
Then you can guess that it wants a class id as argument. So if you want the skill points for actor 1, class 1, it's:
$gameActors.actor(1).getSkillPoints(1)
That seemed to work for me, though I only quickly tested it.

Don't know how to prevent you from leaving the menu, but you can at least push open the scene skill from the map (and before that show message that says that you still have points remaining).
You can use a script to get the current SP value of a character. try the following code in an event or condition:

$gameActors.actor(ID).sp()

Replace ID with the desired actor's number.

If you need to store this value in a game variable, use:

$gameVariables.setValue(1,$gameActors.actor(ID).sp());


This will store the Skill Points of the actor in game variable 1, which you can use for calculations later.

To open the skill learning window via event/script, use:

SceneManager.push(Scene_SkillLearn);

To prevent the player from exiting until all points are spent, you can create a common event that continuously checks if the character still has SP and reopens the menu if they try to leave before using all points:

if ($gameActors.actor(ID).sp() > 0) {
SceneManager.push(Scene_SkillLearn);
}


For stricter control, you can modify the plugin directly to prevent closing while SP is available.

If you need help, tell me!
Are you posting some kind of AI replies?

I only tested that quickly, but it doesn't seem to give the skill points with .sp() and I can't push that Scene_SkillLearn
Obviously the checkers have limitations and faults, but it is dinging it as high likelihood of being AI generated.

If that is the case—

4.4 Do NOT post AI generated responses. These will be considered spam.

Obviously the checkers have limitations and faults, but it is dinging it as high likelihood of being AI generated.

If that is the case—

4.4 Do NOT post AI generated responses. These will be considered spam.

Ok.

I don't have the VS suite and so can't test directly, but I can make a suggestion that MIGHT help.

Use the damage formula to see if you can get the code needed.

To do this, consider adding a console.log to the actors.

Easiest way would be to add it to a PC skill.
Just add:
console.log(a); *the actual damage formula*
to a skill's damage formula.

Once the skill is used, it should show a bunch of data for the user on the console (I think F12 opens it).
You can screenshot that and most plugin makers could parse that info to find what most likely will be the skill learning points for that actor and can let you know.

And of course if you are familiar with coding yourself, you can just add the info you need from there.

This isn't foolproof, but since the plugin is obfuscated and locked behind a paywall, it's your best bet.
Well if you open the js file, even though it's obfuscated, you can read that there's a function
getSkillPoints()
Then you can guess that it wants a class id as argument. So if you want the skill points for actor 1, class 1, it's:
$gameActors.actor(1).getSkillPoints(1)
That seemed to work for me, though I only quickly tested it.

Don't know how to prevent you from leaving the menu, but you can at least push open the scene skill from the map (and before that show message that says that you still have points remaining).
This was what I was looking for. Haven't figured out how to directly go to the Skill Learn menu but I can just open the Skill menu. I added a check in my tutorial for SP > 0 so it'll keep opening the skill menu until all skill points are spent.

Thanks!
This was what I was looking for. Haven't figured out how to directly go to the Skill Learn menu but I can just open the Skill menu. I added a check in my tutorial for SP > 0 so it'll keep opening the skill menu until all skill points are spent.

Thanks!
Did you ever figure out how to open the Skill menu? Cause SceneManager.push(Scene_SkillLearn) isn't working for me either. :/

EDIT: Apparently this is because it's a nested scene. Guess the workaround is to have an event enable access when you want to use it, and disable it otherwise.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skill-learn-system-returning-skill-points-and-force-opening-skill-menu.175428/