Set Character Stats to a Variable

Hey!
I make a Roguelike game where the Player can upgrade the Character Stats (MaxHp, MaxMP, Attack etc....) and everytime the Player dies the Characters Stats should reset to a base Value.

So i set up a Variable for every stat and give it a base Value on the start of the game, but i cant "set" the Parameters to a Variable i only can subtract or add them..... is there a easy way to do this? (maybe even a javascript call?)
You can reset an actor using the Initialize checkbox in the Change Party Member command. This should reset everything on the actor: their param bonuses, class levels, skills, etc.

Alternatively, you can calculate the difference between the target value and the current value, then add that difference, e.g.

◆Control Variables:#0030 = 50 ◆Control Variables:#0030 -= Luck of Reid ◆Change Parameter:Reid, Luck + {#0030}
The "target" value here is simply 50, but you could set it to the value of another variable or whatever you like.

Or there's a script call, e.g. $gameActors.actor(1).clearParamPlus(); (clears permanent basic param bonuses for actor ID 1).
You can reset an actor using the Initialize checkbox in the Change Party Member command. This should reset everything on the actor: their param bonuses, class levels, skills, etc.

Alternatively, you can calculate the difference between the target value and the current value, then add that difference, e.g.

◆Control Variables:#0030 = 50 ◆Control Variables:#0030 -= Luck of Reid ◆Change Parameter:Reid, Luck + {#0030}

The "target" value here is simply 50, but you could set it to the value of another variable or whatever you like.

Or there's a script call, e.g. $gameActors.actor(1).clearParamPlus(); (clears permanent basic param bonuses for actor ID 1).
ohh thank you for your fast reply!
i think the initialize > change party member workaround will do it.
thank you very much!
Great, you're welcome! Happy RPG Making~

Original thread: https://forums.rpgmakerweb.com/threads/set-character-stats-to-a-variable.162815/