This script provides “choice options” that provide finer control over your choices.
You can now hide choices that should not be shown using a few simple conditions rather than duplicating a choice list several times using conditional branches.
You can disable choices from being selected, which is simply impossible under normal circumstances.
Additional options may be added in the future
A list of tutorials that show how choice options can be used.
- Using Choice Options – by Sinweaver
In your event, before the show choices commands, use script calls to set each choice option
The general format of the script call is
method_name(choice_number, arguments, ... )
You can look up the available methods in the reference section of the script.
The choice_number is 1 for the first choice, 2 for the second choice, and so on.
The arguments are specified in in the reference.
Any option that uses a formula can use formula variables. The following formula variables are available
p = $game_party t = $game_troop s = $game_switches v = $game_variables
All formulas are evaluated within the context of the game interpreter, so any game interpreter methods can be called directly.
When the condition is true, the specified choice will not be shown on the list. Use a script call
condition is a string representing your conditional statement.
When the condition is true, the specified choice will not be selectable, though it will be shown on the list. Use a script call
The text of the specified choice will be drawn with the selected color. The color is currently a number from 0 to 32, which is not very useful.
Disabled Choice Color
The colored choice ignores whether the choice is enabled or not. You can use the “disable colored” option to set the color of the text if the choice is disabled.
The text of the specified choice will be replaced by the text for this option. This allows you to exceed the 50-char limit imposed by the editor.
You can also specify a condition along with the text. When the condition is satisfied, the text will be displayed.
text_choice(choice_num, text, condition)
For example, to make it so that the first choice’s text will be changed to “???” if Switch 3 is OFF, you would write
text_choice(1, "???", "$game_switches == false")
This is a common issue. When you are trying to condition on a switch or variable, you may be tempted to write things like
Because that’s how the editor displays it. This is wrong. Leading zeroes are treated as octal numbers, which is completely different.
The correct way to write numbers is to remove all leading zeroes like this