A downloadable plugin

Buy Now$5.00 USD or more

Hi all,

This plugin allows you to write and run custom JavaScript code when certain actions occur. Some of these actions are from the base code, while others are CGMZ functions. Below is a list of the current hooks you can write custom JS for via this plugin:

RMMZ:

  • Common Event
  • Gold Changed
  • Item Changed
  • Actor Added
  • Actor Removed
  • Level Up
  • Level Down
  • Learn Skill
  • Forget Skill
  • Use Skill
  • Change Class
  • Get On Vehicle
  • Get Off Vehicle
  • Battle Start
  • Battle Win
  • Battle Escape
  • Enemy Kill
  • Variable Change
  • Switch Change

CGMZ:

  • After Load
  • Toast Window
  • Screenshot
  • Achievement Earned
  • Profession Level Up
  • Profession Level Down
  • Craft
  • Fast Travel
  • Difficulty Change
  • Skill Purchase
  • Dungeon Tool Use
  • Dungeon Tool Interact

You can also make custom hooks, assign them an ID, and then call that hook via plugin command. This is useful if you have a script command you use frequently, you can write (and edit it) once as a custom hook and then run it in many different places via the plugin command, similar to how my Sound IDs plugin works.

Hook parameters are an array and have an unused note parameter so you can tell what your hook is for at a glance of the list. You do not need to have complicated hooks all in one hook, you can separate them into multiple hooks for ease of use.

Of course over the course of the alpha/beta process this list will expand quite a lot! But, it will be helpful for me to know which other actions you'd like to run your own custom JavaScript code for. Leave suggestions below or in the #suggestions channel on my Discord!

PLEASE READ BEFORE PURCHASING:

Please be aware that you can access this as well as all of my other Alpha plugins for $5 on my Patreon: https://www.patreon.com/CasperGamingRPGM

This is posted to Itch.io since some people only use Itch and are not aware my Patreon and all of my beta/alpha plugins exist, or want to have everything in one convenient location (itch.io), or do not want to do a monthly subscription.

Casper Gaming's Beta/Alpha plugins are treated as an "early access" and will eventually be free for everyone once they are fully released, though this process can take months/years. By purchasing in beta/alpha, you are able to provide early feedback/suggestions which are more likely to make it into the final fully released plugin.

Please see terms of use here: Terms of Use

Requires CGMZ Core plugin: CGMZ Core

Happy RPG Making!

Purchase

Buy Now$5.00 USD or more

In order to download this plugin you must purchase it at or above the minimum price of $5 USD. You will get access to the following files:

CGMZ_Hooks.zip 6.7 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.