Item command suddenly gone?!

Okay, so while testing my game one last time, I've encountered a very weird and very annoying bug.


During the last dungeon (including boss) the item command during battle is completely gone. I have a script that disables the item command, but I made sure to turn that off once I don't want it to be active anymore. At first I thought I accidentaly put the switch that disables items somewhere, where it's not supposed to be, but I haven't found anything. Just to be sure, I turned that switch off just before the last boss, but it's still gone.


This never happend before and I am really confused right now. I really hope someone could help me with it. I was so close to releasing the full game...
OK, here a few facts to help you on your search for the cause


1) only scripts can change the menu


if the item command disappears, then that is caused by a script - either by the one you know about or another one, possibly one in an unnamed slot that you've forgotten.


2) switches and variables change only when commanded to do so


It really sounds as if something triggers that switch that controls the script, because a double script would create other bug in most cases.


So if you haven't found the place where the switch gets changed, then that means exactly that - you haven't found the cause yet, but it exists somewhere.


I suggest checking your other scripts for their configurations, because some scripts require the use of switches and change them themselves.


Best way to check: change the script you know about to use a different switch that is unused so far (increas maximum by one and use the new switch)


If it works then, that script was responsible and you have used the original switch somewhere else.


If it doesn't work after that, another script is removing the command.
Okay, I've found the problem. I used different switches in my gameplay file and my event file and I had forgotten to change in the script which file I had used ^^° I feel a little stupid for not seeing such an obvious mistake ^^°


Thank you for helping me.


(Thread can be closed now^^)

Original thread: https://forums.rpgmakerweb.com/threads/item-command-suddenly-gone.67484/