Version 1.27 Update


Good morning fellow rpgmakers!

I have uploaded version 1.27 of the crafting system plugin, which makes the following change:

  • The 'Modified Success Chance' plugin parameter has had the way in which it is parsed changed around.
    • The way it originally was prevented the user from doing much more than a simple math formula, or at best, a ternary operation to use variables in their success rate formula.
    • The new way it is parsed allows the user to use return statements, so you can have a very complex function nested inside of this parameter, and it will actually work now. It will also now throw an error without crashing if there is a problem with it, although since the success rate will end up as NaN%, it is still likely going to crash when an actual craft attempt is made.

The reason for this change is pretty straightforward. I had originally determined that the success rate was going to be a formula that calculated to a number, so the way I parsed the note box basically required it to end up being a number. This worked much like how the damage formula box is parsed as well, so that's probably what I was going for at the time. I recently decided that more flexibility is always better, so now with the changes, users can have complex functions in the note box using return statements to set the success chance. The new way the box works also still allows for it to parse the old way that the formula worked as well, so it shouldn't cause any crashes if you've changed it from the default, as long as it worked before too.

Also, a late revision to 1.26 was included in this update, though I never got a chance to upload that separately:

  • The default value for the recipe list plugin parameter is now set to [], which will prevent an error where loading the project with only the default plugin parameter values would cause this plugin not to load, causing a crash error if you tried to enter the menu while using the CraftingLevels extension plugin.
    • This has been a longstanding problem with the plugin, but the fix for it is fairly straightforward. Basically, if you left everything as default, and never tried to make your own recipes, the plugin would not load, because it would fail at trying to parse your recipe list. A user having this problem could fix it on their own by making at least one recipe in the recipe list. 
    • This fix makes it so that the default blank value for the recipe list is an array, so the plugin won't error out on load. Keep in mind, though, that it'll be hard to see if the plugin is working at all unless you actually make some recipes first.

That's all for this update. To download it, head on over to the store page and download the plugin again, or check out your library on itch and download it from there.

~Ramza

Files

Plugin Download 300 kB
Mar 07, 2021

Get MV - Crafting System

Buy Now$18.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.