Variables and updating/refreshing in every scene

Status
Not open for further replies.

Xyonel

Indie Developer, All-in-one artist.
Veteran
Joined
Jul 22, 2018
Messages
183
Reaction score
37
First Language
Italian
Primarily Uses
RMMV
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.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,892
Reaction score
1,026
First Language
Dutch
Primarily Uses
RMMV
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
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.
 

Xyonel

Indie Developer, All-in-one artist.
Veteran
Joined
Jul 22, 2018
Messages
183
Reaction score
37
First Language
Italian
Primarily Uses
RMMV
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.
 

hiddenone

Lurker Extraordinaire
Global Mod
Joined
Feb 19, 2014
Messages
2,497
Reaction score
5,334
First Language
english
Primarily Uses
RMMZ

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top