Status screen error

Due to the kind of game I'm making (which is an adventure game rather than an RPG) I did something to the script to hide the characters' levels in the menu (can't quite remember what, but it wasn't improvised, someone told me how to do it).

I recently tried to check a character's status to show she was inflicted with "turned into a rabbit" (it's part of the story, eventually all three MCs will be a rabbit for a time) and the only reason to show she is inflicted is that she can't cast spells while she is a rabbit.

I got this error message, and I think it might have to do with the level hiding:

statusError.png


I'm not sure if it matters much, since no one would look at that screen much anyway for this type of game, but I don't want it to make people think my game is poorly made, especially since I plan to sell this game.

Can anyone help or tell me if it will even matter to the customer?
Some questions:

You wanted to check if a character has a state in the menu, going to the Status window? Isn't the state visible in the main window of the menu?

Or, did you want the state to be shown, set it up and the error message was when you entered the menu?

If this happened after accessing the Status window and you think it's connected with hiding the level, you might just remove the Status window command from the menu, since you say it won't be useful for your game anyway. But I'm not sure I understand correctly :LZSlol:
@NoPatience I just checked the screen in another game (just for fun) and it doesn't appear to show state names (only icons), and mainly equipment and attack and defense and stuff. I thought the screen gave a state name.

Could I remove the command somehow? I'm concerned that the blank command and the error message would still give impressions of a poorly made game. I think for the state itself I'll just change the icon to a rabbit.
Please post the entire function (from def to end) where this error is happening, this is needed to get as much context as possible since the script is modified. When the error has popped up and game closes back into RPGVXAce, the script-editor, once you open it, will jump right into that code-area.

~炬燵あ
You can remove the Status command from the menu by deleting or commenting out (using # at the beginning of the line, like you can see in the screenshot I did to the formation command in the Create Command List section) the "add_command(Vocab::status, :status, main_commands_enabled)" line. I'd recommend commenting out, in case you change your mind later.

status command.jpg




Adding for @AkiraKotatsuhime - below is what the error message refers to, can you tell what the problem is? I can't...

status error.jpg


​

The error refers to a line where a temporary variable named s1 is referenced by reading that wasn't set before. Since the code of Window_Status is modified in some unknown way, I asked for how it looks right now, the original doesn't help us here.

~炬燵あ
Oh, I see, sorry about that. So OP will need to show us what they have if they want to be sure it won't cause any other problems.

Original thread: https://forums.rpgmakerweb.com/threads/status-screen-error.150773/