MV Hime's hidden choice and advanced conditions

Hi, I am using Hime's hidden choice conditions plugin and I also have a small plugin that allows me to use the hasItem command to check if the player owns an item.

I am trying to make a system in which you can place an ad that you'll rent out your house. Once you put the ad up, a variable will hold the rent price. There are 3 houses. With 3 keys. And in order to have an option to put up an ad at all, the player needs at least one of the keys and the rent price for that house needs to be still at 0, meaning the ad hasn't been put up yet.

It would seem this condition should work, but it doesn't. Any idea why?


hide_choice(2, "(!hasItem(37, 0, 'item') || $gameVariables.value(184) > 0) && (!hasItem(38, 0, 'item') || $gameVariables.value(185) > 0) && (!hasItem(39, 0, 'item') || $gameVariables.value(186) > 0)")
what is the order of your plugins, especially between hime's and that hasitem one?
you can only use a function after it has been defined.

it would also help to get links to both plugin website to check how they work.

EDIT: I think your brackets and logic are wrong.
you've written:
(hasitem OR variable) AND
(hasitem OR variable) AND
(hasitem OR variable)
The logic for it appears correct, so one of your conditions must be not what you expect. You can press F8 and go to the Console tab and type in any of those commands directly (the hasItem and the variable values) to check what each one is giving you.

The code for hasItem would help (I don't know what all those arguments are for), but it should be easy enough to troubleshoot via the console.
the plugin order is not an issue and hasitem is not an issue. I have used it in hime's conditions earlier and with success. Just this one gives me a headache.

@Andar yes, that is what I have written. How is that logic wrong?
the plugin order is not an issue and hasitem is not an issue. I have used it in hime's conditions earlier and with success.
Then did you follow my suggestion and check the conditions manually in the console? It can't all be true...if you're confident the item check works as you expect, then one of the things you're checking must be returning a value that makes your check true when you think it shouldn't. That's all there is.
I will check once I am back on the PC for sure. Still, I am also suspecting the hime plugin might have some limitations. Could it be possible?
How is that logic wrong?
I misread part of it
Still, I am also suspecting the hime plugin might have some limitations. Could it be possible?
not in the way you think about it.

hime's plugin hides the option if the result of the condition is true.
if it doesn't hide, then the result is not true
and that would be a logic result, which means either some of the values are different from what you assume, or the plugin that the hasitem function comes from defines that function in another way (which is why we asked for a link to that).
it cannot be anything in tsukihimes plugin.
I will check once I am back on the PC for sure. Still, I am also suspecting the hime plugin might have some limitations. Could it be possible?
Not seen the event that you are using it in so apologies if this isn't relevant. I found that with Hime's Hidden Choices plugin that I need to avoid having any text output (such as text messages between using a plugin command to hide a choice and the "Show Choices" editor command. I presume that it will be the same if you use the script calls.

You could also check that Hidden Choices is below other plugins that affect "Show Choices", such as Large Choices.

Other than that, the hidden choices plugin works reliably in my experience.
@Piyan Glupak yeah, I noticed that too a while ago but that's not it in this case:
1635580990883.png


@ATT_Turan
Your tip helped. The variables were actually getting higer values from some other events.

Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/himes-hidden-choice-and-advanced-conditions.141650/