[RMVX ACE] IS IT POSSIBLE TO MAKE A VARIABLE THAT ISN'T ALTERED AFTER LOADING THE GAME?
Posts
Pages:
1
Hello there fellow RMNers, I come with an interesting question today. Is it possible to have a variable, that after loading the game, stays unaltered? I guess it should be possible with scripts, but I would like to get confirmation.
If it is possible, how would you go about? I guess using some kind of global variable or something?
If it is possible, how would you go about? I guess using some kind of global variable or something?
You mean something like this: http://www.rpgmakercentral.com/topic/6462-global-save-file-by-skul/
I think Yanfly's new game+ script does something similar.
I think Yanfly's new game+ script does something similar.
Like, constants? Those are variables that are defined once, and cannot be changed by any means. The one example I can think of off-hand would be the speed-variables of Myriad Cypher. The original definitions was commented out...
...but looked like that. As for some examples of how they might be called, I think it looked like...
...so? I could be mistaken. I partially assume the same kind of thing can be done with a class definition, and are not limited to modules.
module Angle_360 =begin MAX_VELOCITY = 5 VELOCITY_PER_FRAME = 0.1 SLOWDOWN_VELOCITY_PER_FRAME = 0.05 =end
...but looked like that. As for some examples of how they might be called, I think it looked like...
@mov_velocity += Angle_360::VELOCITY_PER_FRAME @mov_velocity = Angle_360::MAX_VELOCITY if @mov_velocity > Angle_360::MAX_VELOCITY
...so? I could be mistaken. I partially assume the same kind of thing can be done with a class definition, and are not limited to modules.
.
That's exactly what I was looking for! Thanks Kyoui, you have no idea how thankful I am. Now I can do all kinds of cool stuff.
@Marrend No, not like a constant, I would want this variable to change. But Kyoui already pointed me in exactly the direction I wanted to go. Thanks anyways Marrend! It's cool to see that scripting support for VX Ace isn't dead yet. ( -_-)b
author=Kyoui
You mean something like this: http://www.rpgmakercentral.com/topic/6462-global-save-file-by-skul/
That's exactly what I was looking for! Thanks Kyoui, you have no idea how thankful I am. Now I can do all kinds of cool stuff.
@Marrend No, not like a constant, I would want this variable to change. But Kyoui already pointed me in exactly the direction I wanted to go. Thanks anyways Marrend! It's cool to see that scripting support for VX Ace isn't dead yet. ( -_-)b
Pages:
1














