Can you cap variables in VXAce?

Status
Not open for further replies.

kiriyubel

Villager
Member
Joined
Oct 31, 2017
Messages
11
Reaction score
2
First Language
Hebrew
Primarily Uses
RMVXA
In RPG MAKER VXAce: is there a way to make the value of a variable not go over a certain number? like: the variable's value cap is 20, if you are at 20 and you get another point then this point is ignored and the value keeps being 20?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,084
Reaction score
5,698
First Language
Indonesian
Primarily Uses
RMVXA
You can just use the Conditional Branch before adding more value to it (we can explain if you don't understand how to use Conditional Branch event). Unless you're not using the event to increase the variable.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
117
Reaction score
26
First Language
German
Primarily Uses
RMVXA
The game does not automatically cap variables either down or up, you have to set a limiter yourself. See the example in the image, it's really as easy as that though.
howtocap.png
 

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
4,944
Reaction score
4,126
First Language
English
Primarily Uses
RMVXA

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

Please do not buy games from g2a.com. The sellers have total power over you. The website has many scam sellers. It looks cheap, but the key code didn't work.
A while back I was having fun making my own custom tiles, then I hit carpet... why is it so difficult!? Lol.
Weekend is finally here... what would you like to see (?):
1) Pokemon into zelda minish-cap style
or
2) Pokemon into zelda gbc style
or
3) Zelda into pokemon style

#= Choose ===============#
||__[ Full mockup ]_[ Charset ]__||
#=======================#
I know someday I'll start working on this...

I'm so happy that I got Steam achievements to work in my game, thanks in large part to the posts by other RPG Maker devs on this issue!

Forum statistics

Threads
97,943
Messages
948,060
Members
129,193
Latest member
annygma
Top