Is there a way to assign MP Regen Rate to a variable? I need that to designate how much mp will be saved depending on the current MP regen rate the player has (it can vary according to the equipments the player is using).
I couldn't find the option in MV's database.
I believe this is the correct script call to use.
$gameVariables.setValue(var, $gameActors._data[actorID]._xparam[paramID]);
This is the script call to assign a value to a particular variable:
$gameVariables.setValue(var, value);
And this, I believe, is the script call to reference an actor's ex-parameter:
$gameActors._data[actorID]._xparam[paramID]
In theory, you just need to replace the value in the first with the ex-param reference.
Thanks for the correction.
So to be clear, it would look like this?
$gameVariables.setValue(var, $gameActors.actor(actorID).mrg);
Yes; however if you're not in a large Script block already, I would instead use a Control Variables command and just paste $gameActors.actor(actorID).mrg into the Script field.
Also: note that the value is a ratio rather than a percentage. Multiply by 100 to get a percentage.