I want to make a skill that actors can cast with the press of a button in battle.

Hi, so basically my game revolves a lot around using one particular skill and I want players to be able use that one skill with the press of a button to make battles more fluid, anyone has an idea of how can I do that? Is there a plugin that could help me? :dizzy:
Would you like to use a common event for this? I found a plugin that lets you press buttons to activate common events and I think it could be used for what you specified.
I found a plugin that lets you press buttons to activate common events
It would help if you linked to the plugin you're talking about - those generally don't function in battle.
Hang on a minute; I'm trying to find it.....

Ok, I found it. Not exactly sure if this can do exactly what you want but I hope it does.


Anyway this is the closest I could find so far to what you want to do. Might need to look some more if it won't fulfill what you need it to do in your game.
Thanks for the help, but I tried with that plugin and I can't get button common events to work in battle, just outside of it 😢
Hang on a minute; I'm trying to find it.....

Ok, I found it. Not exactly sure if this can do exactly what you want but I hope it does.


Anyway this is the closest I could find so far to what you want to do. Might need to look some more if it won't fulfill what you need it to do in your game.
Oh. Sorry. I'll try to search for one that allows it in battle then.

Ok, so-only other stuff I've been able to find on the web is more button common events, but not for battle.
You can try that, or ask @Eliaquim.

The other problem with @SpyroFan67's suggestion is that there isn't any easy way to use event commands to start the process of selecting a skill available to the actor and initiate the target selection.

You'd have to look up and duplicate a fair bit of code.
The other problem with @SpyroFan67's suggestion is that there isn't any easy way to use event commands to start the process of selecting a skill available to the actor and initiate the target selection.

You'd have to look up and duplicate a fair bit of code.
I really wish there was a plugin for this so he wouldn't have to do that. Programming can be quite complicated.
You can do it with that NRP Parallel Common Event in Battle plugin. I can't link it now, on phone.

E: Here
You can do it with that NRP Parallel Common Event in Battle plugin. I can't link it now, on phone.

E: Here
Oh nice! Can I use that plugin in comercial games? Sorry for the dumb question, but the plugin autor's page is in japanese and idk about the terms for using their plugins. 😅
Oh nice! Can I use that plugin in comercial games? Sorry for the dumb question, but the plugin autor's page is in japanese and idk about the terms for using their plugins. 😅
Embedded in the plugin itself in the header, in English, is the following:

Code:
 * [Terms]
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but we will respond to defects as far as possible.

So you're good there!
Thank you! I have another dumb question, is there a way (Like a script for example) to force the current selected actor in battle to do an action?
Alright, so I thought of a way to make this work. Using Hime's actor battle command plugin, I created a common event in battle that deactivates all standard battle commands (Such as attack, using items, skills, etc.) and only adds a command for using the important skill of my game. The only problem being that I need to manually refresh the actors' commands during battle by accessing the skills menu and then exiting it, making an actor do something and then canceling it, and so on. Is there a script or method to automatically refresh the command window in battle?
Yes, but then what's really the point?

If you need to press the button to change the list of commands, then still select the command, isn't that as many keystrokes as just always having the command on the list, pressing down from Attack to highlight it, then select?

But the script call SceneManager._scene._actorCommandWindow.refresh() should do what you want.
Yes, but then what's really the point?

If you need to press the button to change the list of commands, then still select the command, isn't that as many keystrokes as just always having the command on the list, pressing down from Attack to highlight it, then select?

But the script call SceneManager._scene._actorCommandWindow.refresh() should do what you want.
I mean, yeah, I get your point, but I probably wouldn't be able to do something better due to my lack of programming knowledge and some RPG Maker limitations. Besides, I think it's better to find that skill with two button presses, which you can do pretty quickly, rather than scrolling through menus and choosing the skill. By the way, the script call you gave me worked. Thank you so much for that! 😂
Besides, I think it's better to find that skill with two button presses, which you can do pretty quickly, rather than scrolling through menus and choosing the skill.
My point is you can still do that in exactly the way I described - use Victor Engine's Command Replace to add the skill directly to the command list, so all you have to do is press down from Attack then Enter to activate it. Two button presses.

And you don't have to worry about the player remembering your special keybind, or the visual oddity of the window changing, or having a separate common event.

But if you prefer it that way, that's cool.

Good luck with your project!

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-make-a-skill-that-actors-can-cast-with-the-press-of-a-button-in-battle.163995/