Extra Stats Not Updating

Scripts

N.A.S.T.Y Extra Stats - http://forums.rpgmakerweb.com/index.php?/topic/998-nasty-extra-stats/

YEA Ace Status Menu - https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-status-menu/

YEA Status Addon - http://bmscripts.weebly.com/advanced-yea-status.html#.VeFWkpfiUZM

So, I used the Extra Stats scripts to more or less reference how damage is calculated in battle. The damage formula itself does not use stats from the script, I simply copied some stat calculations so that player can see their damage value in the menu. I've been able to get the stat to display in the 'properties' menus provided by both of the status menu scripts listed above. The problem is, these new stats do not update beyond starting a new game.

The stats I want you to focus on include Physical Damage, Physical Influence, and Physical Resist

As proof. Lets say I start the game up with this weapon equipped.
It adds 50 points directly to Physical Damage, +50 ATK, and * 50% Physical Resist
no_update2.PNG

Here's what the stats look like in game... Note the stats I requested you focus on.
no_update1.PNG

Now if I remove the weapon in question and return to the properties window.

Notice that Physical Damage and Physical Resist do change.

no_update3.PNG

Okay, now what if I load the game without the weapon equip?

no_update6.PNG

Huge difference in Physical Damage and Physical Influence is also affected this time. This is because the stats aren't being updated properly, the change in ATK also impacts Physical Damage and Physical Influence.

We need to look at NASTY Extra stats to find out why. ATK influences the Physical Damage stat.

no_update5.PNG

And this is how I got it to display within the YEA Status Addon. The implementation is similar to that of YEA Status Menu and the problem still occurs with both scripts. The eval for Physical Influence is a bit different due to additional testing, but this doesn't affect the issue. Also, the xstat wpnp is added to Physical Damage, changes in wpnp take affect immediately when the weapon is added or removed.

no_update4.PNG
Still need help with this...

Original thread: https://forums.rpgmakerweb.com/threads/extra-stats-not-updating.44211/