Can you cap variables in VXAce?

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?
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.
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
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.
View attachment 139164
Thank you very much.
Thread closed f

Original thread: https://forums.rpgmakerweb.com/threads/can-you-cap-variables-in-vxace.119946/