Hi everyone! I’m working on a custom state effect in RPG Maker MZ using the VisuStella Battle Core plugin, and I’ve run into a wall I just can’t seem to climb over.
I'm creating a State called “Glitch” that functions like this:
Think of it as a semi-stun with backlash punishment for trying to act.
Still, the enemy can act freely and the damage/effect doesn’t trigger.
I even get errors like:
TypeError: this.subject is not a function
TypeError: user.requestAnimation is not a function
TypeError: Cannot read property 'scope' of null
I know this is a pretty advanced request and probably a weird edge case, but I’d really appreciate any insight, workaround, or correction. I’ve been banging my head on this for a while
Let me know if you need to see screenshots or test project files!
— CEA
I'm creating a State called “Glitch” that functions like this:
- When afflicted, the target has a 50% chance to fail any action they attempt.
- If the action fails, they:
- Take minor Void-elemental MATK damage.
- Have a 10% chance to be re-inflicted with Glitch.
Think of it as a semi-stun with backlash punishment for trying to act.
What I’ve Tried So Far:
- Set up the state in the database with Restriction = None.
- Used the <Action Start Eval> notetag in the state to try to run conditional JS on each action.
- Tried integrating it via the JS Pre-Action Start field in the Battle Core plugin settings.
- Made sure the plugin load order is correct, and even reinstalled the plugin.
Still, the enemy can act freely and the damage/effect doesn’t trigger.
I even get errors like:
TypeError: this.subject is not a function
TypeError: user.requestAnimation is not a function
TypeError: Cannot read property 'scope' of null
Details You Might Need:
- RPG Maker MZ (latest version)
- VisuStella Core Engine + Battle Core plugins installed
- Glitch State ID: 0011
- I attempted using state.meta["Action Start Eval"] from inside plugin eval scripts
- I’m not using any Skill Sequences plugin, since it’s not part of the current VisuStella bundle
- Tried placing the logic in Battle Core's JS Pre-Start Action as well
What I’m Looking For:
- Is there a correct way to check and intercept an action attempt while a State is applied?
- Should I be using a different plugin (e.g. Skill Sequences or Buffs & States Core, if available)?
- Am I putting the logic in the wrong place (plugin eval section vs state notetag)?
- Is this something doable with just Battle Core? Or do I need another plugin/plugin combo.
I know this is a pretty advanced request and probably a weird edge case, but I’d really appreciate any insight, workaround, or correction. I’ve been banging my head on this for a while
Let me know if you need to see screenshots or test project files!
— CEA