Version 2.1: A couple of bugfixes and a new validator


Today I worked on some bugfix / new features for this plugin after a report from alistor1213 who discovered that negative numbers wouldn't work.

Instead of doing a bugfix on that single problem I decided to step the game up and recreated the whole rules validator process, going from a string analyser method to a RegEx method.

Oddly enough I also found that the check on the "armors" data wasn't working in the old version, I guess it's not a fan favourite as I never got a complaint about it!

So here is the bugfix for both the problems, a newer version of the validator plus a missing feature of 2.0 (now you can use item quantities as second operator)

I also decided to add HOW you want to handle errors in the plugin (for now it applies only to single  rules), you want to ignore the error and get a semi-silent warn? You want to fail the rule check to be sure no erroneous True comes out? Or you want an hard error that stops the game and slaps you in the face? Your 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

Files

WD_ConditionalChoice.js 25 kB
May 25, 2024

Get RPG Maker MZ Plugin: Conditional Disable/Hide choices v2.3

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.