- Joined
- Jul 13, 2013
- Messages
- 78
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I made some variables through events, can anyone tell me how to set the max number to 100? So say I have 99 X and I add 50 x it only goes to 100X
You will need to explain what you are trying to do.How do I subtract variables this way?
Thank you
Control Variables [0001: Number]: Script: [$game_variables[1] - 50, 0].maxI haven't tested this, but it should work (assuming that you want to substract variables without getting into negatives, if you want something else, please explain.How do I subtract variables this way?
Thank you
Your way does not work, it even contradicts the adding of the variable.Control Variables [0001: Number]: Script: [$game_variables[1] - 50, 0].maxI haven't tested this, but it should work (assuming that you want to substract variables without getting into negatives, if you want something else, please explain.
Edit: (one error already corrected)
Control Variables [0001: ] Script: [$game_variables[1] + 50, 100].min
Control Variables [0001: ] Script: [$game_variables[1] - 50, 0].max
