This article serves as an extension to Hime’s Choice Options script and deals solely with $game_variables and $game_switches conditions
$game_switches supported conditional statements
We can also disable a choice based on the status of a switch. Imagine that we have an NPC that offers the player a list of weapon to choose from.
To disable an option based on the status of a switch, we need to enter the following command before presenting the player with the choices, disable_choice(x, “s[y]”). Replace x with a number to represent the option to disable, and replace y with the switch number. If we want to disable/hide Hand Axe if switch number 10 is ON, we will need to use disable_choice(1, “s”). Now whenever switch number 10 is ON, option 1, the Hand Axe, will be disabled.
Note: s[…] is the same as $game_switches[…].
disable_choice(x, “s[…]”) is the same as disable_choice(x, “$game_switches[…]”)
$game_variables supported conditional statements
This is very very similar to switches, except that you use v[…] or $game_variables[…] instead of s[…] or $game_switches[…].
Imagine we have a variable to store the number of Dragons we slayed for a quest, the number will be stored in variable 11. Before that value in variable 11 reaches 10, we do not want player to be able to have access to the “Dragon Shield” option.
Note: v[…] is the same as $game_variables[…].
disable_choice(x, “v[…]”) is the same as disable_choice(x, “$game_variables[…]”)