RPG Maker MZ

RPG Maker MZ

Not enough ratings
Conditional Choice Plugin
   
Award
Favorite
Favorited
Unfavorite
Type: Resources
Resources Type: Plugins
Flavor: Fantasy
File Size
Posted
Updated
103.299 MB
27 Jul, 2023 @ 7:58am
26 May @ 8:04am
3 Change Notes ( view )

Subscribe to download
Conditional Choice Plugin

Description
Please support me on Ko-Fi[ko-fi.com] for more!
Other plugins on my Itch[winterdreamgamescreator.itch.io] store!


This plugin let you disable or hide choices in the Show Choice window of RPG Maker based on your conditions!

You can tell the plugin to check for Switches, Variables, Actors, Items and Gold, he will do the rest!

From version 2.0 you can also decide to display a different text when a choice is enabled or disabled


Terms of use

Please refer to the Terms of Use[drive.google.com]. By using this plugin you accept WinterDream terms


Version, bugs and further development

VERSION 1.1:
  • Fixed the height of the Show Choice Window

VERSION 1.2:
  • Removed the HIDE functionality due to big indexing problems
  • Now using the "escape choice" functionality doesn't ovverride the plugin
  • Using the action button while there is no choice selected no longer cause to skip the Show Choice event
  • Trimming of the <<[]>> tags are now limited to the Show Choice box

VERSION 2.0:
  • 100% rework of the code, it has been rebuilt from scratch
  • Kept retro-compatibility with previous versions
  • Return of the HIDE funtionality, now perfectly working (use (([])) for hide conditions.
  • Plugin now support more conditions check! (Actors in party, Items in inventory, gold carried)
  • Added plugin parameters to personalize buzzer sound and handle default selection in case it falls on an hidden choice.
  • Added the possibility to change the text of a disabled choice

VERSION 2.1:
  • Changed the rules check mechanism from string reader to RegEx
  • Fixed a bug that wouldn't retrieve armors data
  • Fixed a bug that prevents the correct execution of the rule if a negative number was used (Thanks to alistor1213 for the report)
  • Now it allows to use items quantity as second operator
  • Added Error Handling option for wrong or broken formulas

VERSION 2.1.1:
  • Hotfix for v2.1, the rule check were giving the oppostire result (Thanks again to alistor1213)

At the moment no known bug are under investigation but feel free to report them to me!
26 Comments
alistor1213 26 May @ 11:21am 
It's working great in my project as well; thank you!
Winthorp Darkrites  [author] 26 May @ 8:11am 
Plugin updated! I tried the workshop demo and it's all ok!
Winthorp Darkrites  [author] 26 May @ 4:30am 
I misplaced a negative, I'll update all today, thanks again!
alistor1213 25 May @ 11:55am 
Hello again. I got the patch from ITCH and it seems to have introduced some odder bugs. (([v[1]<3]) is now hidden while V1 is NOT less than 3. All of the conditions are now hiding when condition is false. Likewise !conditions are hiding while condition is true. On the plus side, (([v[1]>-3])) is hidden when V1 is -4 so it is accounting for negatives.
Winthorp Darkrites  [author] 25 May @ 5:45am 
Hi alistor1213,

The plugin has been patched and updated, for now only on Itch and KoFi. I'll be able to patch up the Steam Workshop tomorrow :)
Winthorp Darkrites  [author] 24 May @ 9:50pm 
Hi Alistor, I didn't though about negative numbers and the formula analysis don't recognise the minus symbol. I'll work on a patch asap!
alistor1213 24 May @ 9:57am 
Hello; loving this plug in. Great job!
But I'm having a small issue with it I hope you can assist with. I can't seem to get it to work when checking for negative values.
Ex: (([v[1]>-3])) is hiding the choice no matter what value V1 is at. I want it to show when the variable is at -3 or lower.
Tripled Supset 1 Jan @ 4:25pm 
Sweet! it works now! thanks!
Winthorp Darkrites  [author] 1 Jan @ 3:55pm 
You have an extra comma and the value shouldn't be between brackets, the code should be:

<<[!v[1]>=1]>>

Aka Disable if the variable 1 is not greater or equal than 1 :)
Tripled Supset 1 Jan @ 1:53pm 
returning back for help, so i'm having trouble having the choices regester that an choice condition is set. For context, the idea is lets say the choice requires acting to be at 1. rn you just need to go to a person, and they raise the value of acting by 1, but the person who is supposed to test the acting stat either won't let me test it because the choice condition is disabled, or i have to make it visable, showing the math

ex.
either
[!v[1],>=[1]
or
<<[!v[1],>=[1]>>.

Is there something i'm supposed to do to tell the game that a choice is open? and that the variable is greater then equal?