Struggling with base stats manipulations (get back to where it was)

Hello fellow makers !

I'm currently coming back to RM (using MV, that I've bought years ago but didn't use much. 580hours only xD ). I'm "working" on a Gacha system as I find this kind of system challenging on different levels. (I'm trying to get some experience back...)

So, I mainly work using events. (I'm a 2k3 guy)
The game has currently 16 actors to unlock; if an actor is pulled multiple times its stats increase by 1% every time. There's also actor rarity which scale the stats further more.
The problem I encounter is when switching party members. I use to be able to do it up to VXAce (using script calls) but with MV, I'm kinda lost. I've tried many things but nothing works.

When switching party member, I need to reset the actor to it's default state (as it was at the beginning of the game), but there is no event command nor script call able to do that. So when switching actors again and again you get different values.

Without re-setting the stats properly, they keep on growing... Here's the "script" that gets me the closest to what I'm looking for :

A001Power : Nb of pull for Actor001
438 : Harold base HP at Lvl 1 (the lvl are added after this common event)

stats1.png


stats2.png


Sorry about my RPG Maker being in French if you need some details please ask and I'll translate it for you. But it's should be fairly understandable for a veteran.

Thanking you beforehand !
Sorry about my RPG Maker being in French
Next time, you can just change the language to English before taking the screenshots. Right-click it in your Steam library, select Preferences and there's a language drop-down there.

I'm a little confused by some of your event, particularly the top section is using variables before they're given values in this event, so I don't know what numbers they're supposed to be.

I'm also a little unsure of your problem overall. You say you want to reset to the original max HP: 438.

But your event doesn't do that, it uses a second variable to divide by 100 (resulting in 4) then subtracts that from Harold's Max HP. That's not what you said you want to do.

If you want to set Harold's Max HP to 438, you'd get his current max HP, subtract 438 from that, then subtract that from the parameter.

1718031102338.png
Thank you for the reply! I didn't know I could change the language through steam, my bad...

I think I've brainstormed too much and ended up with over complexified solution.
I got stuck thinking about percentages...
Here the translated version. I'll update the original post as well.

stats1commented.png
stats2commented.png

stats3commented.png


I'll try with your method, it makes sense but I'll see if it's versatile enough. As I said I might have overthought this...

Thanks again mate.
I'll try with your method, it makes sense but I'll see if it's versatile enough.
I don't understand what needs to be versatile. If you want to reset an actor, then you're telling it a specific number to go back to, its starting value.

If you mean something else by "reset," then you'll have to explain more precisely what you're trying to achieve.

Good luck.
but there is no event command
no, but the add/remove actor has a checkbox "initialize" that resets all actor values to database defaults.
Under normal circumstances it should be used on first adding the actor but not later to keep the values gained during play.
but if you don't want to keep the values from last play just use it on every adding.

Original thread: https://forums.rpgmakerweb.com/threads/struggling-with-base-stats-manipulations-get-back-to-where-it-was.169408/