MZ VisuStella JavaScript Documentation ?

Hi everyone.

I'm looking for a Documentation for a more JavaScript approach of some VisuStella MZ Plugins.
I can't found it by myself, maybe it dosn't exist but if it is, where can you please help me found it ?

Here is an exemple of what I'm looking for :

I'm using VisuStella MZ Skill Mastery Plugin and I want my skill to apply a state depending on the skill level.
I can easely do it through JavaScript code with something like :
1716074308521.png

"skill.level" is an exemple of what I'm looking for. It might not work, i didn't tested it.
Since everything is coded in JavaScript, I know it is possible. I just need the key word and so i'm asking.
There is nowhere on the plugin helper to found that 'skill.target' is the correct spelling like it was with Yanfly's MV plugins.

Thanks in advance !
"skill.level" is an exemple of what I'm looking for. It might not work, i didn't tested it.
There's no such thing - the mastery level belongs to the actor, not the skill.

From the Skill Mastery instructions:
1716076973084.png


There is nowhere on the plugin helper to found that 'skill.target' is the correct spelling like it was with Yanfly's MV plugins.
From the Battle Core instructions:
1716076829620.png


So it's telling you there's user, target, and it's coming from Game_Action.apply() so you can refer to the current action with this (I don't know if there's also a skill variable for the same thing, it doesn't say).

So what you're trying to do would be:
Code:
if ($actorSkillMasteryLevel(user.actorId(), this.item().id) == 1)
    target.addState(11);
etc.

Of course, since your state IDs are sequential, you could make it all much shorter on one line by just doing:
Code:
target.addState($actorSkillMasteryLevel(user.actorId(), this.item().id) + 10);

That only doesn't work if your skill can have more than three levels and you want to stop adding states after level 3, in which case you'd just put an if statement first:
Code:
if ($actorSkillMasteryLevel(user.actorId(), this.item().id) < 4)
    target.addState($actorSkillMasteryLevel(user.actorId(), this.item().id) + 10);
There's no such thing - the mastery level belongs to the actor, not the skill.

From the Skill Mastery instructions:
View attachment 305549


From the Battle Core instructions:
View attachment 305548

So it's telling you there's user, target, and it's coming from Game_Action.apply() so you can refer to the current action with this (I don't know if there's also a skill variable for the same thing, it doesn't say).

So what you're trying to do would be:
Code:
if ($actorSkillMasteryLevel(user.actorId(), this.item().id) == 1)
    target.addState(11);
etc.

Of course, since your state IDs are sequential, you could make it all much shorter on one line by just doing:
Code:
target.addState($actorSkillMasteryLevel(user.actorId(), this.item().id) + 10);

That only doesn't work if your skill can have more than three levels and you want to stop adding states after level 3, in which case you'd just put an if statement first:
Code:
if ($actorSkillMasteryLevel(user.actorId(), this.item().id) < 4)
    target.addState($actorSkillMasteryLevel(user.actorId(), this.item().id) + 10);
Thank you for this one ! I of course didn't saw this part somehow and I got deeper into the plugins documentation.

It wans't a good exemple to explain myself sadly, i'm sorry for that, so here is another one :

On Rpg Maker MV with Yanfly's Plugins, there is a Documentation for every plugins so you can use them through Note Tags OR with a JS approach.

For the Grid Battle System, there is no explaination about how to get the target's rank or flank through JS code. I had to manually log the target, search for the information and use it.
So I found that :
1716106947738.png
is the way to get the information I was looking for but there is nowhere in the plugin to know it beforehand.

The kind of Documentation i'm looking for is that. Every code line to get or tweek every plugins information through js code like it was on MV with Yanfly's Plugins.

Something like :

Grid System:
Get Grid Location:
battler._gridLocation.rank; // Return battler rank
battler._gridLocation.flank; // Return battler flank


I don't know if such docu exist so i'm asking.
The kind of Documentation i'm looking for is that. Every code line to get or tweek every plugins information through js code like it was on MV with Yanfly's Plugins.
Unfortunately, VisuStella has simply chosen not to make that available.

Much of the stuff you come across for Yanfly's plugins isn't all in the documentation, but people who know how to read JavaScript can just open the plugin files and find what they need.

VisuStella obfuscates their plugins, so you only know things if
- it's one of the few script calls listed in there

- it's the same as a Yanfly version and you guess

- they've told someone in a help request and that info gets shared

- someone tries to poke through the structure of data types in the console to pick apart how the code is working
Unfortunately, VisuStella has simply chosen not to make that available.

Much of the stuff you come across for Yanfly's plugins isn't all in the documentation, but people who know how to read JavaScript can just open the plugin files and find what they need.

VisuStella obfuscates their plugins, so you only know things if
- it's one of the few script calls listed in there

- it's the same as a Yanfly version and you guess

- they've told someone in a help request and that info gets shared

- someone tries to poke through the structure of data types in the console to pick apart how the code is working
Ok. Thank you for the answer. I guess i'll have to make my own through trial and error.
You could also try asking on Visustella’s discord… someone might know. I often just end up poking around in the Chrome dev console though…

Grid battle looks really cool and I’d like to play around with it but the limited documentation is a concern…

Original thread: https://forums.rpgmakerweb.com/threads/visustella-javascript-documentation.168811/