HMS: Choice Display Mode

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

By default, when you present players with a set of choices for them to select, the choices will be displayed in a window separate from the message window.

However, what if you wanted to present your choices differently in certain situations?

Here is an example of how the choices normally look. They appear on the side, separate from the window.

hms_choiceDisplayMode4

This plugin allows you to display the choices in-line with your messages, with the option to switch between the default display method and the new display method.

With this plugin, you can have your choice selection look like this:

hms_choiceDisplayMode5

MV

Download

Plugin: download here (right-click, save-as).

Related Plugins

This plugin is compatible with all of my other choice-related plugins:

Installation

Download ths 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_HMSChoiceDisplayMode plugin.

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

Usage

Choice Display Mode

There are two ways to display choices

1. Default
2. Embedded

Default mode means the choices will be displayed outside of the message as usual.
Embedded mode means the choices will be displayed inside the message.

In the plugin parameters, you can choose the default choice mode

hms_choiceDisplayMode2

Change Display Mode

You can also change the display mode during the game. To switch between modes, use the script call

HMS.setChoiceMode( MODE )

Where MODE is one of

  • Default
  • Embed

All choices displayed after will use the specified mode.

hms_choiceDisplayMode3

Choice Indentation

When the choices are embedded in the message window, you can choose how much indentation they will have in the plugin parameters.

By default, it is 36 pixels.

VX Ace

Download

Plugin: download here

Usage

There are two choice display modes:

:default - the default way where choices are shown separately
:embed - choices are shown in the message window

In the configuration, you can choose which mode will be used by default.
You can use script calls to change the mode as well

$game_message.choice_display_mode = :embed
$game_message.choice_display_mode = :default

You can also set the indentation, which is the number of pixels that all choices, in embed mode, will be indented by. This may be useful if you plan to have all choices indented, but don’t want to manually do it yourself.

Note: this script does not handle what happens if you have too many choices to display, but not enough room.

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...

14 Responses

  1. Shadowflame says:

    How are you doing the cool little underline? In the video it’s replacing the the standard highlight box for the choice options. Is is part of this plugin or another one?

  2. Jetsada S. says:

    I use RGPMV version 1.3 (now upgrade to 1.3.4).
    I found HIME_HMSChoiceDisplayMode is incompatible with YEP_MessageCore. It makes YEP’s MessageWidth command disable.
    By the way, I can force it to work by script: $gameSystem._messageWidth = x;

    While YEP_MessageCore make embedded command by HIME_HMSChoiceDisplayMode disable, and I can not force it by any script that I know.

    Would you help?

  3. Erick says:

    Hello, i have a problem with this plugin; i dont know why but in a decision event it gives me a error and is just when i use the “Embed” mode, in default mode dont give me error.. The error that displays is the following:
    “Cannot read property “y” of null”
    and in the console displays this:
    TypeError: Cannot read property ‘y’ of null
    at Window_ChoiceList.numVisibleRows (/C:/Users/Fabiola/Documents/Games/Proyecto%202/js/plugins/HIME_HMSChoiceDisplayMode.js:195)
    at Window_ChoiceList.Window_Command.windowHeight (rpg_windows.js:1309)
    at Window_ChoiceList.updatePlacement (rpg_windows.js:3847)
    at Window_ChoiceList.updatePlacement (/C:/Users/Fabiola/Documents/Games/Proyecto%202/js/plugins/YEP_MessageCore.js:885)
    at Window_ChoiceList.updatePlacement (/C:/Users/Fabiola/Documents/Games/Proyecto%202/js/plugins/HIME_HMSChoiceDisplayMode.js:155)
    at Window_ChoiceList.start (rpg_windows.js:3831)
    at Window_ChoiceList.start (/C:/Users/Fabiola/Documents/Games/Proyecto%202/js/plugins/HIME_HMSChoiceDisplayMode.js:146)
    at Window_Message.startInput (rpg_windows.js:4437)
    at Window_Message.update (rpg_windows.js:4309)
    at Window_Message.update

  4. Anonymous says:

    Terrible news. Crashes with MV 1.3.3 as soon as the title screen appears.

  5. Anonymous says:

    This causes an error in RPG Maker MV 1.3.1 when run on an iOS device. Removing line 208: “delete WindowLayer.prototype._canvasClearWindowRect;” fixes it, although I don’t know what impact that may have on IAVRA compatibility.

  6. Izeck says:

    I’m a pest, I know. Sorry lol.

    When i use this it makes the choices appear outside of the text box. Is there a way to change the offset?

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