Can`t remove menu-choices

● ARCHIVED · READ-ONLY
Started by AntiRel 7 posts View original ↗
  1. Hi.

    I have been trying to adjust the regular menu in my game, not the main menu. I would simply like to remove Equip, Skills and some stuff.

    I have searched online and found out that I have to edit the default script, under Window_MenuCommand. There I find the lines:

        add_command(Vocab::item,   :item,   main_commands_enabled)
        add_command(Vocab::skill,  :skill,  main_commands_enabled)
        add_command(Vocab::equip,  :equip,  main_commands_enabled)
        add_command(Vocab::status, :status, main_commands_enabled)

    -and people say to either delete the ones you want to, or put a # in front of the lines.

    Neither works, I`m sure I`m at the right place in the script and have edited some

    scripts before. And have found several places online where they say this without saying more.

    Sorry but what am I doing wrong?
  2. it should work, if it doesn't that means there's another script that overwrite that method somewhere else down in the hirearchy of script editor. to Ensure that it is work, just copy this in your editor in the most below but above Main Process.

    class Window_MenuCommand < Window_Command def add_main_commands add_command(Vocab::item, :item, main_commands_enabled) #add_command(Vocab::skill, :skill, main_commands_enabled) #add_command(Vocab::equip, :equip, main_commands_enabled) add_command(Vocab::status, :status, main_commands_enabled) endend Copy that in place it at the most bottom slot in Script Editor but above Main Process. This should do what you want.
  3. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
  4. Did you start a new game after the changes?


    One thing often overlooked is that a lot of script changes need a new game for initialization, because loading a savegame also loads old data.
  5. Only if you're talking about actor or map data. Loading a saved game would not affect what options you see in the menu.


    If you've definitely commented out those lines and it's not working (I'm pretty sure you have to save your game in order to test the menu, so it's not that), then I'd suspect that you've actually got two copies of that script somewhere, or that you're using a custom menu script that's taken precedence over the default class you're editing above.
  6. Do you have other scripts included in your project? They might be changing the menu scene, which would men you'll have to change those as well.
  7. Are you sure you hit apply/Ok and saved the game before testing?