Variable Names Allowing Invalid Formatting

Hey All,

Kappa was running into issues on the discord, and we found the problem was related to their variable names.

This were the events that weren’t working.

I was able to recreate the events and confirmed it would not work. I noticed they had a variable name listed as “2ndMenu” and remembered that you can’t name objects with a number as the first character, so I reproduced their events and tried changing it to “SecondMenu”.

Changing the variable name allowed the events to work immediately.

The variable editor allows you to use numbers as the first character, no error message is displayed. Is that intentional? (as in, variables are supposed to allow for numbers as the first character?)

If not, can we get a similar error message to what happens when you try to set an object name with a numerical character as the first character?

3 Likes