MV Quesiton about Party Limit Gauge

For my rpg, I was planning on using Yanfly's party limit gauge as a sort of ultimate move for each of my characters.
I saw how you can increase the gauge with this in the actor notes,
image_2023-08-25_234524249.png

<Ally Party Limit Gauge: +x>
What I was wondering is if it's possible if I can edit this limit gauge with the stats of an actor, instead of a set number, cause if I can, that would be an interesting mechanic where certain actors can increase the gauge more, the more they level up. If I cannot, no worries it aint the end of the world
If you keep going in the instructions 😉, you'll find the Custom Ally Party Limit Gauge notetag which allows you to use whatever JavaScript you like to determine what's added to the gauge.
Ok so good news, I found it easy, my fault for not reading it through lol.
Bad news is, it doesnt seem to work. I am able to implement it well enough, but when I test it out in battle, the gauge increment stays as the default
This is the formula I used
<Custom Ally Party Limit Gauge>
value += user.mdf;
</Custom Ally Party Limit Gauge>
I know for a fact I am doing something wrong, but I still do not know what it is.
Can you show a screenshot of your skill in the database?
Yep I see the problem now. I have used the formula for an actor, when I should have used it for a skill. I have once again failed to read what was right in front of me, sorry.
Oh my god I cannot for the life of me read lmao.
I've been accidentally showing you all the wrong code I wanna look at
image_2023-08-26_181244774.png

It was this,
<Party Limit: +x>
I am genuinely sorry about this kerfuffle, would someone be able to help me with this?
You can do it right in the plugin parameters. The Per Party Member parameter says "this is a formula" - that means you can use JavaScript in it.

So if you want to add 50 per party member and actor ID 4 also adds his Magic Defense:
Code:
50 + this.actorId()==4 ? this.mdf : 0
I see. Since I want multiple actors to have different values that can change over time, how to I rewrite the formula so that any actor can change the gauge, not just actor 4?
Also thank you very much for being patient with me during all of this, it really does mean a lot
I see. Since I want multiple actors to have different values that can change over time, how to I rewrite the formula so that any actor can change the gauge, not just actor 4?
Also thank you very much for being patient with me during all of this, it really does mean a lot
That depends. Is each actor going to have a *unique* formula? Or is it the same formula and will only be different because of differing stats?
It will be the same formula, just different stats
It will be the same formula, just different stats
Just write whatever that formula is into the parameter, then.
All I had to do was type this for the formula,
50 + user.mdf
and it worked.
Thank you so much guys, it really means a lot

Original thread: https://forums.rpgmakerweb.com/threads/quesiton-about-party-limit-gauge.160638/