MZ Is it possible to duplicate parts of a plugin?

Hi all,
I'm using the Core Engine VisuStella MZ plugin from Yanfly and part of it lets me cap base parameters. What I would like to do is set a different cap for each level. For example, the maximum Attack a player can achieve through any means at level 1 might be 100 but at level 2 it moves up to 200. The problem is that it only let's you set a single cap for one actor.

I was thinking one possible way to get around this might be to somehow make it so that I can do this for multiple actors and just switch out the main actor upon level up with a level up event plugin I have. Maybe another, probably less tedious option might be to make it so that there are multiple caps based on variables.

I have no coding experience and don't know how any of this works but, if anything to this effect is possible to do, I'm willing to put some work in to figure it out. Though I'd think I'd favor technically easier, albeit more tedious solutions over more advanced and probably also more efficient ones. Easy and efficient is a no-brainer, haha.
Hi all,
I'm using the Core Engine VisuStella MZ plugin from Yanfly and part of it lets me cap base parameters. What I would like to do is set a different cap for each level. For example, the maximum Attack a player can achieve through any means at level 1 might be 100 but at level 2 it moves up to 200. The problem is that it only let's you set a single cap for one actor.

I was thinking one possible way to get around this might be to somehow make it so that I can do this for multiple actors and just switch out the main actor upon level up with a level up event plugin I have. Maybe another, probably less tedious option might be to make it so that there are multiple caps based on variables.

I have no coding experience and don't know how any of this works but, if anything to this effect is possible to do, I'm willing to put some work in to figure it out. Though I'd think I'd favor technically easier, albeit more tedious solutions over more advanced and probably also more efficient ones. Easy and efficient is a no-brainer, haha.
it's kinda hard to help when including VisuStella Plugin... because their code is obfuscated...
but i think Core Engine VisuStella have feature to use JS code as formula of their stat cap... i think the notetags is:
Code:
<JS param Max: code>

since i don't use VisuStella... this code below might be not too efficient or might potentially have fault... if anyone have better solution feel free to fix this to neater solution.

for example for actor 1
you want ATK capped at Level * 100 so when lv 1 max ATK is 100, lv 2 max ATK is 200, and so on.
add this notetags to the actor 1:
Code:
<JS ATK Max: $gameActors.actor(1).level * 100>
this should set the max atk of actor 1 to actor 1 level * 100 points in theory...

for actor 2 just change 1 inside $gameActors.actor(1) to 2

hope this help.
The plugin's help section doesn't seem to mention it (maybe just my old version of the plugin?) but I'd guess that you can use user or something to reference the current battler.
The plugin's help section doesn't seem to mention it (maybe just my old version of the plugin?) but I'd guess that you can use user or something to reference the current battler.
from what i read at the plugin page documentation in visustella website... there's no mention about user for that specific notetags too... so it's not because your old version of the plugin.
also... since the notetags is used in Actor, Class, Weapon, Armor, Enemy, State... i think there might be no user variable implemented... but we can always try though... who knows visustella team added user variable... 😀.
Thanks for advice guys! I can't get the note tag thing to work so I'm trying to structure my game a little bit differently instead. I'm having a lot of difficulty getting that to work the way I want it to so I'll probably post about it after I've exhausted my options.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-duplicate-parts-of-a-plugin.134494/