Variables and updating/refreshing in every scene

As title say, i must refresh some variables in every scene of the game.
I managed to get this work in map scene through a parallel common event but if eg. I open main menu and change a weapon, the variable doesn't refresh.

i'm using variable 41 as "attack damage" since i used the normal param "atk" for "strength" cause i use algorythm to increase exponentially the attack( and there's another place where to fit attack, cause the params are only 6).

All params are:
Strength(original attack)
Intelligence(orginal m.attack)
Constitution(original def)
Spirit(original mdf)
Dexterity(original agility)
Luck

So i created trough Yep actorvariable script, a bunch of new param(variables used as param) and now I'm getting the update problem.

could you suggest the best ways to make this extra param works and refresh properly?
I'm used to scripts and could modify something in order to get this done, thanks.
if you use variables for abs system, you need those events in every single map to be able
to load it correctly else it stops working.

if you make a common event, make sure you place that common event on every map
as parallel.
your problem is in a different area than you think, and you'll have to go at it from a different direction.

Your problem is that the game interpreter only works on the map and in the battlescene. All other scenes (which includes every menu page) do not have an interpreter and thereby cannot handle common events or other ways of processing. And unfortunately there is no MV plugin that adds a scene interpreter.

That leaves you with two options only:
1) custom menu plugin - request a custom menu plugin that adds code to all menues to handle those additional data segments. This is very specific work that requires javascript knowledge and might create incompatibilities with other plugins, but it is the only way to have those variables be updates every step in the menu.

2) have a common event run on the map that updates everything as soon as the player leaves the menu.
This can cause problems if the player made several changes in the menu - but that depends completely on how your mechanics work. If all changes are independent on each other this should be no problem.
yeah and the second option is my standard for now, i'm using this option and all works very well but this missing refresh on outfit change is so annoying..

thanks for the infos guys.

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/variables-and-updating-refreshing-in-every-scene.121007/