VARIABLES AREN'T BEING SET [RMMV]

Posts

Pages: 1
I've put in an option where you can change the main character's hair colour in the game. The game is then supposed to assign a variable for the hair colour, as there are a few scenes where the hero graphic changes for other situations.

But for some unexplained reason, it won't put in and set that number. In the example below, it is supposed to set it to 1, but when in test play, and I check the variables, it says that it's 0.

Could somebody tell me what's going wrong?

Is there another event that sets it to 0? Like an autorun event somewhere?
Nothing in your screenshot that would explain it not working
No. I've searched for the instances of the variable being used, and this is the only occurrence. I'll keep on messing around with it a bit more, as I put in an event which changed the variable number and it worked, and then after that, the number was able to be changed.
Hi Coelocanth. It's been solved. I'd made a duplicate variable and I'd gotten confused between the two. Everything works fine now.
Pages: 1