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.
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)
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?
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.
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)
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 downloadCreator 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.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...