MZ Stats calculated by levels

I used Yanfly's class core system to make actors' stats based on a formula in RPG Maker MV in the class note box like this:

<Custom Class Parameters>
maxhp = level * 17 + 213;
</Custom Class Parameters>

I'm trying to figure out how to do this in RPG maker MZ with VisuStella scripts. I sorta of looked through and I believe it's done in the core engine now but still a little lost.
There's a whole section in the instructions for parameter notetags (two, actually, but since you want to use a formula you'd look at the JavaScript notetags):

You'd use the very first notetag there to do what you want. Note that it would be +212 at the end, since you have to have a value of at least 1 in the database for the classes.
Yeah, The first Notetags <param> I think you can only use integers if I read it correctly so I will have to make the formula with one of the <JS parm> in the Javascript.

Any recommendations on JavaScript learning (I struggle with coding)?
Also, would the script call file be a place to start for commands for Java?
JavaScript and Java are two different programming languages.

If you want to learn JavaScript, it's pretty easy to Google "javascript tutorial" and find a number of places. I like w3schools, starting with the Statements chapter.

But it's basically what you already typed, you just need to reference the actor.

So, for example,
Code:
<JS maxhp param plus: user.level * 17 + 212>
Okay thanks, I see what I can find there.

As far as the code I did try that it didn't work but I messed around with it and found out it wants the script called $gameActors.actor().stat

<JS maxhp param plus: $gameActors.actor(1).level * 17 +221;>

Thank you for the help to get my brain thinking (I got used to all the nice note tags of Yanfly's scripts in MV)

Update: It causes RangeError: Maximum call stack size exceeded so I think I may be missing something in the code that makes it loop.
As far as the code I did try that it didn't work but I messed around with it and found out it wants the script called $gameActors.actor().stat
It shouldn't - you don't want all members of a class to be basing their HP on the same actor.

Update: It causes RangeError: Maximum call stack size exceeded so I think I may be missing something in the code that makes it loop.
Huh. I don't see what, the level doesn't reference max HP, so I don't know what could be looping.

But if you need more help, you need to provide information beyond just typing it out for us.

Post a screenshot of how you're using the notetag in your database.

Post a screenshot of the error trace; when the game crashes, press F8 and go to the Console tab.
1726789035542.png

The only script on is VizuMZ core engine and it even happens if I change it from levels to other stats, such as $gameActors.actor(1).def; .

The game does start and it works however once you select new game it takes a while to load (With 6 takes about 30 seconds to load)

Original thread: https://forums.rpgmakerweb.com/threads/stats-calculated-by-levels.171982/