Hidden Choice Conditions
RPG Maker MV gives you a way to offer choice selection to your players through events, and depending on the choices they make, the game will respond differently.
One thing that it doesn’t support, however, is the ability to hide certain choices from view. For example, if you wanted to offer your players a list of quests that they can complete in any order that they wish, and to remove any completed quests from the list, your only option is to create multiple conditional branches for each combination of quests that are currently available, and create separate choice lists for all of those combinations.
With this plugin, you can use a simple event call to hide a choice. Combined with conditional branches and other event commands, you can tailor your events to your needs quickly and easily!
For perspective, this is how the event in the video is set up.
Want to hide some choices? Try this plugin out!
Plugin: download here (right-click and save as)
- Large Choices
- Disabled Choice Conditions
- Choice Display Mode – Change the way your choices are presented!
Due to the way this plugin works, this plugin must be placed below other choice-related plugins!
In your plugin manager, make sure the order of the plugins are suitable.
Want to read more about this plugin? Here are some dev logs and tutorials
- Dev Log – Hiding Choices When They Shouldn’t be Seen
- Dev Log – Designing User Input for Hidden Choices
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 HiddenChoiceConditions plugin.
Once it is in your list of plugins, turn the plugin on.
Take a look at the image above. The numbers along the left is how choices are numbered. You will use these numbers when hiding choices.
There are two ways to hide a choice.
1. Using a Plugin Command
To hide a choice, create a plugin command and write
Where the choiceNumber is the number of the choice that you would like to hide. You can use conditional branches to determine whether a choice should be hidden or not.
For example, if you want to hide the second choice, you would say
2. Using a Script Call
Create a script call and write
hide_choice( choiceNumber, condition )
For example, if you want to hide a choice if switch 3 is OFF, you can use the script call
hide_choice(3, "$gameSwitches.value(3) === false")
The following diagram shows how you might set up your event with hidden choices.
When you create a hide choice command, it will only apply to the next set of choices down the list. If you have two sets of choices, you will need to create hide choice commands for each set.