Global Variable reset in change scene

Plyastudio

Villager
Member
Joined
Mar 6, 2019
Messages
10
Reaction score
0
First Language
italian
Primarily Uses
VNM
I created a "Parameterized Common Events", with a global variable, that show on my screen the HP of my character and when I do hit the HP they go down without problems, but when I change scene, the HP reset themselves and return to the starting point ( for example if after the hit there were 995 at the scene change back to 1000)how do I make the variable remember the "shots" taken by the character?

If this conversation already exist, excuse me but i didn't find it :(
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Variables keep there values until they get changed by something.
So i would highly guess that the Variable has nothing to do with it.

What Plugins are you using for this?
Also show a Picture of the whole Page of the Common Event you mentioned. That could help.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Maybe you are setting the variables back on the change scene? Without seeing the project or how the scene commands are laid out, it's hard to tell.
 

Plyastudio

Villager
Member
Joined
Mar 6, 2019
Messages
10
Reaction score
0
First Language
italian
Primarily Uses
VNM
here are the screens, it will surely be a very simple thing, but I just can't understand where I went wrong
 

Attachments

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Oh Oh i feel stupid right now, i just realised this is for Visual Novel Maker, i thought about rpg maker series.
So many apologies for that.

Edit: But i dont see a Picture of the Common Event.
It would be important to see that code also, to fully understand.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
I'm honestly confused what is the error but I'll have to try on my side I guess.
 

Plyastudio

Villager
Member
Joined
Mar 6, 2019
Messages
10
Reaction score
0
First Language
italian
Primarily Uses
VNM
the error is that passing from one scene to another HP ACE returns reset itself despite being a global variable (which if I have not misunderstood are those variables that remain for the whole game and not only in a single scene like the local ones, right? ._. )
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Parameters tend to be Local Variables but I have to check. I haven't used them in a while.
 

Plyastudio

Villager
Member
Joined
Mar 6, 2019
Messages
10
Reaction score
0
First Language
italian
Primarily Uses
VNM
I tried to set them HP ACE as a local variable, but the result was the same ...
 

Plyastudio

Villager
Member
Joined
Mar 6, 2019
Messages
10
Reaction score
0
First Language
italian
Primarily Uses
VNM
I did some tests in 2 new projects and doing the same things all worked perfectly.but trying in the project that I showed no, even re-creating events ...
EDIT: it seems that the problem is that the variable is reset when I use the erase text command to make the text disappear.
 
Last edited:

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,037
Members
137,566
Latest member
Fl0shVS
Top