RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Disable menu option script (found out a way by myself ^^)

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 81
Monster Hunter
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 for:
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


i looked for:
Menu option disable script
disable menu option script
option disable script
deactivate an option in the menu.
« Last Edit: June 24, 2010, 11:32:36 AM by Mitsarugi »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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...

****
Rep:
Level 84
3...2...1...
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.

***
Rep:
Level 81
Monster Hunter
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 :)