Hi, okay, so first of all, this is amazing. Love, love, love this. Quick question, though. RPG Maker doesn't have conditions anymore for things like the party NOT having items when setting up a conditional branch (it only has a check for having items). I could use an else command if I were just eventing, but what I'm trying to do is say IF the party does NOT have item X, disable option Y from the available choices via this plugin. I suspect that currently, as the comments don't have any way of being based on on the else branch, that I'd have to use a script command to check for the item. If this is true, any chance you'd veer off topic of the plugin and guide me to how you have the system check for an item? Because then I could use the script command alternative for disabling options. (Trying to learn to code, but I'm a bit of a no0b). Thanks in advance!
Let me start by answering your question directly: the following formula will return true if the party has item 4
$gameParty.hasItem($dataItems[4])Now, if you want to negate it, you can simply put a ! in front.
Code:!$gameParty.hasItem($dataItems[4])
Which will return true if the party does NOT have item 4.Now, what I could do instead is to provide you with a way to "enable" choices.
That is, if you say something like
enable_choice 2This would tell the engine to only enable the second choice if the condition is met.You should be able to use the normal "party has item" condition when this is implemented.
This solution also allows you to choose whether you want to enable or disable options explicitly, giving you full control over the "negated" problem.
I have discussed my solution in this dev log:
https://www.patreon.com/posts/dev-log-choices-3698791