Heya all. So, I'm pretty dumb in writing scripts, so I decided to ask for such a little thing there. So, I just need 1 command that could allow me to change [x] variable by [(+/-) y]. I hope I said all clearly and I will be glad for an answer 😉
Changing Variables by Script
RGSS3 Script RequestsYou can use:
Where VAR is the number of the variable, e.g. 6, and num is the number you want to add. If you want to minus, then replace the + with -.
Code:
$game_variables[VAR] += num
Wow, thanks a lot for a reply again 😮 😀 I'm really thankful for your help ^^
Original thread: https://forums.rpgmakerweb.com/threads/changing-variables-by-script.95124/