Version 1.08 Update


Greetings all, and Happy New Year.

I have uploaded version 1.08 with a minor feature update. This was actually a suggestion from a long time ago, which I've finally gotten a chance to implement.

  • Added a new plugin parameter, located under the 'Use Crafting Levels' parameter, to allow you to set a common event to be reserved when a specific crafting category levels up.
  • Also added the ability to call a custom code block when a category levels up.

You can use common event reservation to provide messages to the player, give rewards to them, or triggers switches/variables in the background upon leveling a crafting category. The common event is run every time the category levels, but it has a couple of potential roadblocks with it, so I added the codeblock as well:

  • Common events are not run unless the player is outside of the menu.
    • This means its possible to level up multiple times without triggering the common event.
    • You can mitigate this problem by also using switches to track rewards that have or have not yet been given out from leveling.
  • Only one common event can be reserved at a time. 
    • This means that if the player were to gain a cooking level and then a blacksmithing level, only the common event for one would trigger.
    • There are plugins out there that allow multiple common events to be queued to mitigate this problem.

You can build your common events around switches, and you can use a script check to get the current crafting level as well, and make something like the following:

◆If:bs1 reward given is OFF
  ◆Text:None, Window, Bottom
  :    :Good job getting to Blacksmithing level 2!
  ◆Control Switches:#0010 bs1 reward given = ON
  ◆
:End
◆If:Script:$gameParty._craftLevels["blacksmithing"] >= 3
  ◆If:bs2 reward given is OFF
    ◆Text:None, Window, Bottom
    :    :Wow, Level 3 already? Neat!
    ◆Control Switches:#0011 bs2 reward given = ON
    ◆
  :End
  ◆
:End

As mentioned, I also included a codeblock which will run immediately upon leveling up a crafting category. You can use this to turn on a switch, give an immediate reward, or call any other script or function that you'd have access to from a global scope. This block bypasses the limitation where the common event cannot happen while in the menu, but as a result, it cannot cause messages to be displayed on the screen at all. You'd want to use this for 'secret' backend stuff that the player shouldn't need to notice happening.

That's all for this update.

To download the updated plugin, either re-download it from the store page, or download it again from your library. The store page always has the most up to date version for download.

-Ramza

Files

Plugin Download 290 kB
Jan 06, 2021

Get MZ - Crafting System

Buy Now$18.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.