Hi everyone,
I wasn't sure where to put this, I hope this is where it belongs.
Anyway, I've noticed that when I write \V[anything] without actually setting the variable to anything I get 0 as text.
Does that mean that all variables are simply equal to 0 by default or is it simply used there to avoid errors?
Thanks!
Are all variables equal to 0 by default?
● ARCHIVED · READ-ONLY
-
-
Yes all variables start at 0 until assigned. Similarly all switches start in the off position. You can check by pushing F9 during test play. That gives you all switch and variable values
-
Thanks, great. This means I don't have to set all the variables to 0 at the start.
I also wish more tutorials mentioned the F9 thing... I'd have saved so much time. I guess I got some practice having to type \V[X] every time though ;)
Anyway, feel free to close the thread. -
Be warned however, that there are scripts that change the variable value for the variables they're configured to use.
However, if that happens without your knowledge, then you forgot to configure the script causing this, so you'll have to hunt down which script it is and take care of its configuration description... -
@CrazyCrab
Also, I think if you hold down the Control key, it disables ALL random encounters and lets you walk through walls. This can be very helpful for debugging. -
It happened to me already, I didn't notice that Yanfly's message system uses 021 and 022 and I spend quite a while figuring it out - thanks for reminding me though ;)Be warned however, that there are scripts that change the variable value for the variables they're configured to use.
However, if that happens without your knowledge, then you forgot to configure the script causing this, so you'll have to hunt down which script it is and take care of its configuration description...
This will also be useful, thanks :)@CrazyCrab
Also, I think if you hold down the Control key, it disables ALL random encounters and lets you walk through walls. This can be very helpful for debugging. -
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.