public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MZ Javascript Conditional For Skill & Force action problem

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: MZ Javascript Conditional For Skill & Force action problem
  • Original author: CrystalCat
  • Original date: December 26, 2024
  • Source thread: https://forums.rpgmakerweb.com/threads/javascript-conditional-for-skill-force-action-problem.174188/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Hello! I am using CGMZ battle command window For some new window options, and I am trying to create an Ultimate type skill that only becomes selectable once a variable is at 3. As you can see, there are 2 javascript boxes for writing your code: one for the function and one to define when it is selectable. { "lightbox_close": "Close",

Archived First Post

Hello! I am using CGMZ battle command windowFor some new window options, and I am trying to create an Ultimate type skill that only becomes selectable once a variable is at 3.

As you can see, there are 2 javascript boxes for writing your code: one for the function and one to define when it is selectable.
Screenshot 2024-12-26 141153.png
Screenshot 2024-12-26 141210.png

So what i was planning to do was force action the skill but when i tried it with the attack skill it didnt do anything and just brought me back to the top of the command window. (yes i know i set it to last target but i tried it with random as well. i also did other troubleshooting like changing the actor)
Screenshot 2024-12-26 142523.png

So now i am left with 2 questions:

What is the javascript for enabling the command if a variable hits 3


Why isn't my force action working?

I know the plugin is paid so nobody will look at the code but i think it's just a javascript question, it doesnt have anything to do with the plugin, right?

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar