I'll be referencing a plugin in this thread, but for all intents and purposes, this is chiefly a script call question. Though please do move this if it's otherwise in the wrong section. I have tried looking through the MV script call spreadsheet and cannot find anything on this.
In short: What is the script call for Conditional Branch > 4 > Item (to check if the party has at least one in the inventory)?
I'm using YEP_CommonEventMenu, which lets you make a custom menu with a common event. With comment notetags, you can determine whether a menu option is visible or not based on defined criteria, such as with the following example:
What I want to do however is I want a menu option to be visible is if the player has an item in their inventory (such as Potions). Since the above plugin has to be achieved with notetags, this needs to be done with javascript, not done with eventing.
Also I'm trying to achieve this with common items, like Potions, so I can't use any switches as compromise.
Thank you.
In short: What is the script call for Conditional Branch > 4 > Item (to check if the party has at least one in the inventory)?
I'm using YEP_CommonEventMenu, which lets you make a custom menu with a common event. With comment notetags, you can determine whether a menu option is visible or not based on defined criteria, such as with the following example:
<Menu Visible Eval>
if ($gameSwitches.value(20)) {
visible = true;
} else {
visible = false;
}
</Menu Visible Eval>What I want to do however is I want a menu option to be visible is if the player has an item in their inventory (such as Potions). Since the above plugin has to be achieved with notetags, this needs to be done with javascript, not done with eventing.
Also I'm trying to achieve this with common items, like Potions, so I can't use any switches as compromise.
Thank you.