[CGMZ] Conditional Choices (Patreon)
Downloads
Content
! SEE BOTTOM OF POST FOR UPDATES !
Hi all, introducing [CGMZ] Conditional Choices!
The Basics
This plugin allows you to add conditions to your choices in the choice window. You can add simple conditions such as a switch being ON or the party having an item in their inventory via text codes. You can also add more complex conditions, including an unlimited number of conditions, via an id text code which will refer to a group of complex conditions set up via the Plugin Manager.
You can configure the text code used, in case you do not want to use <cgmzcc> you can make it whatever you want via the plugin parameters.
Condition Types
Currently the different conditions you can add are:
Switch is ON/OFF
Variable is <|<=|=|!=|>=|> some value
Self Switch is ON/OFF
Weapon is in inventory, optionally specify an amount that the party must have, or specify if the weapon must be equipped
Item is in inventory, optionally specify an amount that the party must have
Armor is in inventory, optionally specify an amount that the party must have, or specify if the armor must be equipped
Player has a certain amount of gold - also works with [CGMZ] Currency System custom currencies.
If the party (or a specific actor) knows a skill.
If an actor is in the party, or if an actor is a specific level or greater
JS Condition, for everything else not available in a no-code format
[CGMZ] Quest System conditions based on quest status
Example
Here is a short gif of a conditional choice that required an item to be in the player's inventory to display:
Disabling Choices
This plugin can handle both hiding (shown above) and showing but disabling the choice. You simply swap the text code out from cgmzcc to cgmzccd if you want to disable instead of hide the command should its conditions not be met. See below gif for how it can look:
Complex Conditions
You can also set up more complex chains of choices via an ID choice condition. This ID will then reference a group of choice conditions set up in the Plugin Manager. This way, you can have a choice with a lot of conditions, such as maybe an entire set of armor, a weapon, a switch being ON, and an item in the inventory before the player will see the choice.
Happy RPG Making!
This version adds a disable text code, in addition to the standard text code that hides / shows your conditional choices. The disable text code will instead still show the choice, but will have it be in a disabled state (greyed out, play buzzer sound if selected) if the condition is not met.See below gif for how it can look: