Window_NumberInput Error

So not sure what's happening here. Seems pretty straight forward, but after I input the number for variable[84], I get the error below. Any idea what I'm doing wrong??

NumInputError.jpg

NumInputError2.jpg
See if it happens if you change the digits to 2, it is currently on 1.
Same error. Didn't think that would cause it. Good thing too, because the max number I want allowed to be entered at that moment is 9. Having 2 digits would just be confusing.


There should be no reason this isn't working. Did I find a bug?
Do you have any other scripts in your project? It may say it's from number input, but another script might be interfering with how number input works. 
I ran the same command on my system, and nothing weird happened. look at the error message more, it says comparison with Fixnum and Array failed, I don't know what those two things are, but they may lead to the solution.
@Zalerinian


I looks like Yanfly's Ace Message System uses the number input system, but I don't know why that would cause the issue. 
It's crashing because it's trying to compare a number with a list of numbers (array). This can't be done, because the computer doesn't know what you want it to do, so it yells at you that you dun broked it.


Try disabling Yanfly's message system and see if that fixes the issue. If it does, report your issue as a bug to Yanfly, as they are more likely to know what's going on with their script.
How can it be returning an array tho? Tho option just before the crash is setting that variable to a specific number. Even if there was an array setup for that variable, it would have been written over with the new input number, wouldn't it have?


Edit:


Just changed the batch of variables to 0 before the sequence. It seemed to do the trick. Still not sure why the Input Number Processor wouldn't have taken care of that for each variable as you entered in the numbers. Something is glitchy somewhere that is not allowing Input Number to write over an array.
I think you should report it, so that the author knows.
So I zeroed out the variables before the Input Number Processing, and it seemed to do the trick.


So for anyone else who ends up with this problem, this is my theory.


The variable used to hold the Input Number must have had an array assigned to it previously. I have common variables that I recycle to prevent too many variables. I did not make the variable = 0 before the event sequence, and when Input Number pulls up the window ingame, it pulls up whatever was already in that variable as a starting point. I had assumed it would start at zero, but it does not. In this case, an array - which it can't fix into a number for the Input Number window.


Hope that helps someone.
It may not be anything to do with a script.  Where do you set the value in variable 82?  Wherever that is, it's putting an array into the variable, not a single number.

Original thread: https://forums.rpgmakerweb.com/threads/window_numberinput-error.73819/