MV Storing Base Stats in a Variable... Complicated

I have stored my character's stats in variables to be used in the calculations of my enemies. But every time he gains a boost from equipment or item the variable stores that stat instead, negating the point of having the boost since the enemy will now have the new stat. What I want to do is store the original stat, before the boost, instead of the new stat.

I'm using Yanfly's Stat Allocation script as well, but I'm only worried about the changes the equipment and states make. Passive States and boosts from equipment or items are meaningless if the enemies get them as well.

Is there a way to store the base stat before the equipment/state boost?
the base stat of the actor before any boost should be in
Code:
Game_Actor.prototype.paramBase
you did not clear enough on how you store the character stat... i assume you're using event command
control variable => game data => actor => stat you want...

you can try to change that to
control variable => script
then in script box use:
Code:
$gameActors.actor(youractoridhere).paramBase(paramidhere)
change youractoridhere to your actor id
change paramidhere with parameter id
if i remember correctly:
0 => max hp
1 => max mp
2 => atk
3 => def
4 => matk
5 => mdef
6 => agi
7 => luk

hope this help.
@estriole Thank you for the script... and, though it works great for the equipment and stuff, the fact that it doesn't change after I use Yanfly's Stat Allocation is problematic. I'll try something and see if I can modify the script you gave me to work with the Stat Allocation plugin...

EDIT: Nevermind, I got it to work. If anyone is interested, the code I used is:
Code:
$gameActors.actor(actorid).paramBase(paramid) + $gameActors.actor(actorid).paramAllocationBonus(paramid)

It works great, it's just what I needed... And I never would have figured it out without the starting point that @estriole gave me. Thank you!
@estriole Thank you for the script... and, though it works great for the equipment and stuff, the fact that it doesn't change after I use Yanfly's Stat Allocation is problematic. I'll try something and see if I can modify the script you gave me to work with the Stat Allocation plugin...

EDIT: Nevermind, I got it to work. If anyone is interested, the code I used is:
Code:
$gameActors.actor(actorid).paramBase(paramid) + $gameActors.actor(actorid).paramAllocationBonus(paramid)

It works great, it's just what I needed... And I never would have figured it out without the starting point that @estriole gave me. Thank you!
ah yes i forgot the yanfly stat allocation 😀...
but glad it work out for you.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/storing-base-stats-in-a-variable-complicated.128672/