Hey! My first post here! So I'm working on a game with multiple different conditional choices, with all not even branched in each other. I was looking for a way to hide choices base on some parameters, but I dont know how to use the plugin for my work. Ive installed it correctly, and can type in the appropriate code. My main problem is, that the various examples of the plug ins use involves only one choice condition. So when using the plugin to say hide choice 2, it's easy to see it hide choice 2 in the choice condition. But what if theres multiple choice conditions? How does this plugin differentiate which its to hide? Please help, thanks!
How do I use HimeWorks Hide choices plugin?
Javascript/Plugin SupportHey there. Welcome to the RMW Forums!
In the future, it's a good idea to link to the plugin you're asking for help with, so people can see the documentation on the plugin's page. I got it for you this time: Hime's Hide Choices Plugin
To answer your question - it sounds like you are saying you want a single choice's Hide/Show to be based on multiple conditions, right? If that's the case, what you need to do is combine them into a single condition, like you can see on the first screenshot on the page. One of the hide_choice lines reads:
hide_choice(3, "$gameSwitches.value(3) || !$gameSwitches.value(2)")
I believe this means the choice will be hidden if Switch #3 is On, OR if Switch #2 is Off. The || means OR (and the ! means NOT). If you want AND instead of OR (so for example you can dictate that Switch 2, 3, AND 4 need to be On in order to hide a choice), the symbol for that is &&
Note that you need to use the Script Call (not the Plugin Command) method of hiding choices in order to use this technique.
In the future, it's a good idea to link to the plugin you're asking for help with, so people can see the documentation on the plugin's page. I got it for you this time: Hime's Hide Choices Plugin
To answer your question - it sounds like you are saying you want a single choice's Hide/Show to be based on multiple conditions, right? If that's the case, what you need to do is combine them into a single condition, like you can see on the first screenshot on the page. One of the hide_choice lines reads:
hide_choice(3, "$gameSwitches.value(3) || !$gameSwitches.value(2)")
I believe this means the choice will be hidden if Switch #3 is On, OR if Switch #2 is Off. The || means OR (and the ! means NOT). If you want AND instead of OR (so for example you can dictate that Switch 2, 3, AND 4 need to be On in order to hide a choice), the symbol for that is &&
Note that you need to use the Script Call (not the Plugin Command) method of hiding choices in order to use this technique.
Thank you for your reply! To elaborate on my question, say I have in one event page, a set of 3 choices and then later down the page, another set of 3 choices, different from the 1st set. How can I use the plugin to hid the 2nd choice in the 2nd set of choices?
I've moved this thread to Javascript/Plugin Support. Thank you.
The script commands need to be given before the choice event command and affect the next such command.
simply use the same script functions, but after the first choice has already happened.
The scripts used before the first choice command will affect the first choice, the scripts used after the first choice but before the second choice will affect the second choice.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-use-himeworks-hide-choices-plugin.118855/