Bartman901

Veteran
Veteran
Joined
Jun 6, 2016
Messages
46
Reaction score
0
First Language
Polish
Primarily Uses
N/A
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 ;)
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
692
Reaction score
448
First Language
English
Primarily Uses
RMVXA
You can use:
Code:
$game_variables[VAR] += num
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 -.
 

Bartman901

Veteran
Veteran
Joined
Jun 6, 2016
Messages
46
Reaction score
0
First Language
Polish
Primarily Uses
N/A
Wow, thanks a lot for a reply again :o :D I'm really thankful for your help ^^
 

Latest Threads

Latest Posts

Latest Profile Posts

image_2021-06-15_212613.png
Looks a bit.....kid friendly. Then again, I suppose that does with with a lot of retro themes... Crap, already spotted a flaw xD
What a stupid week so far! I was really short on sleep yesterday thanks to my back hurting and not falling asleep fast enough, now today I am 2 hours late for work because my damn alarm clock changed from the alarm setting, to the radio setting which I always keep muted.
I introduced "booby trap" as another indirect way to fight supernatural threats in the game.
But, some of my players are using it to blow up random citizens on the street.
Not sure how "creative" they can go with it. :kaojoy:
Oh, boy. I'm now having dreams about Unity.

Forum statistics

Threads
112,259
Messages
1,066,877
Members
145,875
Latest member
Namika
Top