Menu Command Manager

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

n RPG Maker, you have access to a number of commands in the menu.

You can also disable some of them using events, such as the save command, or the formation command.

From the System database, you can choose which commands you want to hide or show in the menu.

However, these may not be enough for your project!
With the menu command manager, you have full control over your menu commands!

You can hide or show any commands at anytime.
You can disable or enable any commands at anytime.
You can even rename commands at anytime.

If you have multiple parties, each party can have their own set of commands.
Need some more control over your commands? Try this plugin out!

Download

Script: download here (right-click, save as)

This is for MV only. For the Ace version, click here.

Installation

Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_MenuCommandManager plugin.

Once it is in your list of plugins, turn the plugin on.

Usage

Before we begin, here is some terminology. Commands are composed of three basic properties:

1. A symbol, which is the ID of the command.
2. A name, which is the text that is displayed to players
3. Extra data, which is information that comes with the command

For example, if you think of the “Item” command, we can describe it as:

1. Symbol = item
2. Name = Item
3. No extra data

Here are a list of default symbols, assuming default command names:

SYMBOL - NAME
==============
item - Item
skill - Skill
equip - Equip
status - Status
formation - Formation
options - Options
save - Save
gameEnd - Game End

Party Menu Commands

When you access the menu, you are accessing the current party’s menu.
All of the commands that are available are therefore assigned to the party.

In order to access the current party’s list of commands, you could say

$gameParty.menuCommands()

This may be useful if you need to get all of a party’s menu commands.

Disabling Party Menu Commands

To disable or enable commands, use the following script calls

$gameParty.disableMenuCommand(SYMBOL)
$gameParty.enableMenuCommand(SYMBOL)

For example, assuming “item” is the symbol for your “Item” command, you
can disable or enable it using

$gameParty.disableMenuCommand("item")
$gameParty.enableMenuCommand("item")

Hiding Party Menu Commands

To hide or show commands, use the following script calls

$gameParty.hideMenuCommand(SYMBOL)
$gameParty.showMenuCommand(SYMBOL)

For example, assuming “item” is the symbol for your “Item” command, you
can hide or show it using

$gameParty.hideMenuCommand("item")
$gameParty.showMenuCommand("item")

Renaming Commands

Commands can be renamed at anytime. To rename a command, use the script call

$gameParty.renameMenuCommand(SYMBOL, NAME)

For example, if you wanted to make make the Item command unknown until it is
enabled, you can disable it and then rename it to “???” as follows:

$gameParty.disableMenuCommand("item");
$gameParty.renameMenuCommand("item", "???");

 

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

4 Responses

  1. Carter says:

    I’ve been trying to use this plugin so I can disable item use in a certain battle, but for whatever reason it doesn’t work in battle and its effects outside of battle disappear as soon as the battle starts.

  2. Tennetry Knighthawk says:

    Unfortunately, this appears to be incompatible with SOUL MV Item Book EX, witch I’m using in conjunction with the Yoji Ojima Item Book at the same time (No issues) the EX version is being used for a collectible game with in the main game trading cards in this case, the SOUL item book logs the cards, separate from all the other items in the game which the Yoji Book holds.

    The issue being is while this incredibly versatile plug-in is active, it removes the menu chioce for the SOUL MV Item Book EX.

    • Hime says:

      You will need an add-on for every plugin that adds a command to the menu. The purpose of this plugin is to change the way menu commands are handled. If you require assistance with writing such a plugin you may request one, but I will need to know what script calls are required in order to open the custom scene.

  3. Vic White says:

    It’s brilliant in order to get more customization on a game. Great work, thanks one more time.

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax