Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] Disable menu option script (found out a way by myself ^^)

Started by Mitsarugi, June 21, 2010, 09:08:28 AM

0 Members and 1 Guest are viewing this topic.

Mitsarugi

i found a little piece of text in the Scene_Title script and it gave me an idea, so what i would like to request is a script that lets you disable  an option in the menu so the player won't be able to enter the option.
in this kind of form would be easy to understand for me. ^^
you do a script call like: Command_window , S1 = false . meaning that the option Item is disabled :)
anyone willing to make this for me?

thanks a lot
Mitsarugi

[spoiler]def create_command_window
    s1 = Vocab::item
    s2 = Vocab::skill
    s3 = Vocab::equip
    s4 = Vocab::status
    s5 = "Quest"
    s6 = Vocab::save
    s7 = Vocab::game_end
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7])
    @command_window.index = @menu_index
    if $game_party.members.size == 0          # If number of party members is 0
      @command_window.draw_item(0, false)     # Disable item
      @command_window.draw_item(1, false)     # Disable skill
      @command_window.draw_item(2, false)     # Disable equipment
      @command_window.draw_item(3, false)     # Disable status
    end
    if $game_system.save_disabled             # If save is forbidden
      @command_window.draw_item(5, false)     # Disable save
    end
  end[/spoiler]


i looked for:
Menu option disable script
disable menu option script
option disable script
deactivate an option in the menu.

modern algebra

Whuch menu option do you want to disable? If it is just save you can do that already. I don't know which other one you would want to...

Countdown

Just an idea. I use this CMS (http://rmrk.net/index.php?topic=35085.0) and it works great. It looks great, and it lets you take out and put in custom menu options as well as the original.

Mitsarugi

Quote from: modern algebra on June 21, 2010, 11:03:24 AM
Whuch menu option do you want to disable? If it is just save you can do that already. I don't know which other one you would want to...
i would like to be able to say with the script to disable an option.
like: "S1 = false" or "When 0 $scene = Scene_item.new = false/disabled"
i would like to be able to enter my "$scene = Scene_X.new" on my own and disabling the option to select it.

exemple:
[
When 0 = false
When 1 = true
When 2 = false
]

When 0
$scene = Scene_X.new
When 1
$scene = Scene_X.new
When 2
$scene = Scene_X.new

this is just an exemple i don't script good enough to know how to do it :)