This is your basic “Attack” command. It just uses the “Attack” skill, or whatever skill is assigned to the “attack” command. You can add it by writing

<battle command: attack />

Command: guard

This is your basic “Guard” command. It just uses the “Guard” skill, or whatever skill is assigned to the “guard” command”. You can add it by writing

<battle command: guard />

Command: skill_list

This command adds all of the skill types that your actor can use. For example, if it can use “Magic” and “Special” skills, both will be added to your list of commands automatically. You can add this by writing

<battle command: skill_list />

Command: item

This command let’s you use the “item” command, which will bring up the item window. You can add this by writing

<battle command: item />

Command: skill_type

This is a new command provided by this plugin. It allows you to display a certain skill type. For example, if you had “Magic” as skill type 1 and “Special” as skill type 2, you can add “Special” to your actors by writing

<battle command: skill_type 2 />

Note the use of the number 2 as extra data. This is how you specify which skill type to show. Please refer to your “Types” tab to see the ID’s for your skill types.

Managing Commands using Events

A number of script calls are available for managing commands during the game. You can add or remove commands, hide or show commands, enable or disable commands, and so on.

Hiding or Showing Commands

When a command is hidden, it won’t be shown to the player.

You can hide or show battle commands for each actor during the game. To hide or show a command, use the script call

hide_actor_command(ID, SYMBOL)
show_actor_command(ID, SYMBOL)

Where the ID is the ID of the actor, and the SYMBOl is the symbol of the command. If the actor doesn’t have that command, nothing will happen.

For example if you want to hide the item command for actor 4, use

hide_actor_command(4, "item")

If you need to specify extra data, you can specify extra data like this

You may also like...

100 Responses

For some reason, with Yanfly’s EquipBattleSkills plugin, even if you unequip a skill, it still shows up in the skills menu when called with this script’s skill menu call. Is this a problem with this script, or the Yanfly one?

It’s compatibility with everything is amazing. I use escape codes for Inventory, but when using Moghunter’s Battle Commands plugin, it’s impossible to name a filename the same as the text of a command with escape codes included. Because this allows me to change the name of the command, it makes it so everything works beautifully. Amazing!

Hello, does this allow the use of a specific skill right off the battle menu as well?
For example, if I had a Lancer with the Jump skill, could I fire that right from the menu instead of say going into a submenu to activate “Jump”?

Hi Hime, is it possible to update this plugin so that if an actor has no possible options, it will just skip their turn? I want to make a system where the player can only control their actor, and anyone else in the party will be using a force action command making it seem like the other actors have their own free will XD Any help would be seriously appreciated ^^

Hello!
Thanks for the awesome plug-in! It’s just what I needed to make the final fight in my game work just right.
I did run into a problem and I hope someone here can help me fix it. After I installed the plug in and tested in the Troops tab of the software I got the effect I wanted (Removing all of the players commands except for 1, forcing them to use it). When I booted it up in the Play Test to get a feel for the whole thing. I started the fight and I got hit with an error
TypeError: Cannot read property ‘length’ of undefined.
This also happens in my previous save files I have for play testing it, before the final fight with your normal party. Every encounter starts with that message. I am using Yanfly’s plug ins for Battle Core. I have screenshots of the error and the report I get from hitting F8 if that will help.

In the game I’m making, there’s ALOT of skill types. So my question is: Is it possible to make submenus with this plugin?
For exemple, let’s say that the player chooses a skill type. After they choose that skill type, a new list of skill types would become available and finally, after choosing one of the skill types in the new list, a list a skills would become available. Is it possible to do something like that with your plug in?

I was able to make it work… but, for others, it’d need a quick fix or an extension.
That is because the skill_type “number” is ‘battleSkills’, and on line 361 every skill_type number goes through Math.floor, removing it.
To fix it, I changed that line for
var stypeId = eval(ext);
if (stypeId === Number(stypeId)) stypeId = Math.floor(stypeId);
And now it works, but only on Advanced Battle Commands to set the ext to “‘battleSkills'” since on your check for normal ones the ext is only allowed for numbers.

I did your edit however it didn’t work untill I made some edit’s to himeworks plugin.Once I did that I got it to work with both advance and regular commands. the symbol used is “skill” plus no ext needed.

Using Yanfly’s Weapon Unleash Plugin, I had replaced the attack command with other skills, depending on weapon equipped.
With this plugin, the plugin will still replace the skill used, however the command still appears as Attack.
For example, when equipped with a Cane, the Attack command would be replaced with a skill called Pray which, instead of attacking, would restore some MP to the user.
With this plugin, having a Cane equipped will still restore MP to the user, but it still says Attack on the command menu instead of replacing it with Pray.
Is there anyway to fix this?

Well, I followed @TravelingBard’s post and was able to get my weapons to dictate the type of attack again.
Guess I won’t be needing Yanfly’s Weapon Unleash.
Although I do wonder if I ever wanted to use the “Unleash” part of that plugin, if it would be compatible.
For now though, I’m good.
Thanks for this amazing plugin!

I love your work, Tsukihime! lol, thanks to this, the two battle command scripts, and that yanfly equip change script… I was finally able to accomplish what I thought impossible… being able to swap weapons using Equip, mid battle, and have that change the first battle command from Heavy Strike to Precision Strike based on the weapon the character currently has equipped. I used commands like so (for those of you attempting the same):

Probably the reason that using advanced notetags don’t sort well with the normal battle command tags 😉 I mean we have the workaround to just set all of those normal battle command tags as advanced notetags in the order we want so it’s all good. Just answering drcakey from a few months back (can’t reply to his comment directly for some reason…)

Come to think of it there really isn’t a logical way to go about it lol I guess you could always just add a sort property and set it through 1-9 or nothing. Currently by default your sort goes “normal battle command tags” then “advanced battle command tags”. I feel like the expectation is to simply sort by the order you entered it in the notetag… for example:

Should yield my choice of attack skill command at the top, then guard, then relevant skill list, and finally item. Currently, the above notetag will yield guard at the top, skill list, item, and then choice of attack skill command at the bottom. I am not sure if there is a logical way programmatically to sort like this, if not perhaps providing a sort order property would help. Just throwing out ideas 🙂 great work though! Always love your stuff. If I have a crazy specific thing I am trying to implement I can always count on your plugin lists to help and for that I thank you 🙂

Actually that isn't due to sorting, but instead the script parses all "basic" note-tags, and then goes and parses all "advanced" note-tags. Basically I was taking the easy way out and just parsing them in two steps rather than trying to find a way to parse both basic and advanced note-tags in one regex.

I like the priority idea. It is something I use often in other scripts where you want to specify that something appears before something else, and you want to have some sense of control over it.

Hello!
First, I’ld like to thank you, this plugin is just what I was looking for quite a while. ^^
Secondly, I have a problem with using the commands into a script. Each time I try to disable or hide a command, I got an error: “disable_actor_command is not defined” or “hide_actor_command is not defined”.

This is the syntax I used: disable_actor_command(1, “item”)

I’m pretty sure it could be something with plugins priorities since I’m also using some Yanfly’s plugins, but I cannot put the finger on it. =x

First off thank you very much for this amazing plugin. It seems like its everything I need right now. A few things I cant seem to figure out despite my best efforts (im sure the fault is on my end). I cant figure out how to rename any battle commands. the way I understood it was that under an actors note section I could put to rename it. Also is this plugin capable of removing the “Fight” “Run” menu that appears when a battle starts? I also would like to add the option for an actor to pass on their turn simply giving the next actor without the enemy getting a free turn in between. Is this possible? I apologize for the questions I just cant seem to find this info anywhere.

It looks like I didn't include it on the description on this page. If you look at the plugin instructions through the "help" section when setting up the plugin, there is a section called "Working with Advanced Battle Command" that provides an example how to customize the command name, among other things.

For removing the party commands at the start of battle, no, this plugin does not change the battle sequence logic. You would need a different plugin that will bypass that initial command.

If you require a “wait” command, that largely depends on the battle system you’re using.

Hey! I was wondering… I’m using yanfly’s subclass plugin and have it enabled where equipping a subclass grants that subclass command. How would i be able to display that subclass command? since currently it doesn’t show.

Hi, I’m super-confused as to the location of where to use these scripts.
I’m trying to build a tutorial in the game to show how to use a specific skill, and I want all the other commands disabled.
Since it’s only for a particular battle (the demo one), I’m trying to call it during a Battle Event.
Where do I put disable_actor_command(1, "attack")?

Hi! I’m getting an error whenever this plugin is on and a battle starts. It says “Cannot read property “length” of “undefined”. I do have a lot of other plugins running too (nearly all yanfly stuff), so that could be it. Any help?

Hi so I’m having trouble with this plugin, literally everything in this plugin works except for the hide skill type part, which is exactly what i need it for. 🙁
I just need to hide the passive skills from battle so that players can still see them outside of battle but its not in their way during…

There was an issue where using the skill_list command to display all skill types that you can use didn't check whether the skill type was hidden or not. I have updated the plugin to address this issue.

So for example, let's say your actor can use Magic and Special skill types. You displayed them all using the skill_list command since you didn't know which ones would be available depending on which traits were applied to the actor.

If you used the script call

hide_actor_command(2, "skill_type", 1)

This would hide the first skill type, and it won't be listed even if you use the skill_list command.

How do I add a command using the Yanfly plugin ‘Change Battle Equip’? This plugin prevents the command from appearing in the battle menu, and I want players to be able to change their equipment mid-battle.

Doesn’t work right now as of latest RPG Maker version and latest Equip plugin version. Gives me ‘invalid battle command type: change_equip’. I do have the Yanfly plugin, and your plugin right beneath it.

I hope I’m not a to late on the message board to get a response or anything, but I would love a little input…

Is anyone else having issues with the “hide_actor_command(ID, SYMBOL, EXT)” function?

I’m trying to add a mechanic to my game where a certain skill set only becomes available when a specific condition is met
Example:
I have it set up to that if your fighting an enemy with a lasso and they use a move to wrap you up in their rope, you become “constricted”
When you are “constricted, you cannot attack or use any traditional moves and a new move set would become available called “struggle”

The thing is, when I call on the script ” hide_actor_command(1, “skill_type”, 1) ” nothing happens. the battle plays out as if I had made no changes.
But when I call on the script ” hide_actor_command(1 “skill_list”) it will hide all skill lists just fine!

For some reason, the plugin doesn’t work anymore. At least, as far as disabling and hiding commands. I’ve even started a new project just to see if it was still having problems, and the plugin won’t even work on a new project, either.

Just in case anyone else makes the same mistake… I thought I was supposed to use “Plugin Command”, but after reading carefully, it’s actually “Script”. It’s a script call.
I had actually made a brand new project, and STILL used “Plugin Command”, which is why it still wouldn’t work. I was SO sure it was “Plugin Command” until I finally took a look, noticed the help text said to “use a script call”, and after using that, it now works perfectly fine again.

Is there a way I can hide a skill type using skill_list in battle, but still have it appear in another location in the command list?
For example, there are several attack skills, and the Attack skill type appears first in battle. But it needs to only appear once in the list in battle while still appearing in the menu screen.

Hey I’m having a bit of an issue as well, I watched the video of this on youtube and found that you can place a skill in the command bar as well I was trying that by making one of my classes unable to attack she is a songstress so I wanted her to sing as an attack which will heal the party 10% when I took her attack away and went to add a skill its adding the drop
down for the skills and I just want the one skill called sing to be used not the skills command. what did I do wrong?

Also, I’ve noticed something odd. If the basic notetags like <battle command: item> are used in the same notebox as the advanced notetags, the advanced notetags will appear at the bottom of the command list, no matter the order they’re in in the notebox. This can be solved by using only the advanced notetags, but it’s still strange.

Hi, the plugin seems to not be working for me (or more likely I’m doing something wrong).

I can define each command in the notetags and that seems to work (for example, if I leave out a command from the class/actor’s notetags the ones I haven’t listed like ‘guard’ stop appearing). But when I use the script call “disable_actor_command(1, “item”)” in a troop or any other combination then nothing happens. I can still select item just fine. It’s definitely Actor 1 i’m using as well.

I also disabled all my other plugins, so it doesn’t seem to be a conflict with any of them. No one else in the comments seems to be having this problem though, so I don’t know why it’s happening to me. I must be overlooking something, any ideas?

Hello, I have an issue with your plugin: actor 1 has the ability to change class during combat (through skill that calls common event), I have set the available commands for each class but when changing commands during combat the default class commands remain (except that the unavailable commands are simply disabled). There is the same issue with your Skill Command add-on where the command from the new class doesn’t show up. Is there a way around that? Am I doing something wrong? Would you be able to update the plugin? Thanks!

Hello again,
I am writing to report I am actually getting the same thing ^^’ . I even tried a simple event to hide the command if the actor is another class, but that didn’t work. Like the last time you helped me, I made sure the event was activating by using a message that was showing with the rest of the event. So the message shows, but the commands don’t hide/show with the new class. only the initial class can be affected.

Hi Tsukihime.
Is there a way to hide a command until an actor learn a certain skill? For exemple, until actor 1 learns ice, the Ice Magic command would be hidden or grayed out. Is it possible to do that?

This depends on how you learn skills. For fairly simple situations, you can have an event run a conditional branch to check whether the actor has learned a certain skill or not (second page of conditions), and then enable/disable or hide/show commands as needed.

For more complex situations, I am currently looking at how you could specify conditions directly for disabling or hiding commands.

Hi, I found a weird limitation in rpg maker’s system. Pretty sure its not a bug with the plugin, just something I thought I’d let you know about. If you have commands set in a classes note tag. and events to hide/show the commands during battle. If you have 2 actors with the same class with different events that require the same condition ie. actor 1 is in a certain state, and the other event actor 2 is in a similar certain state. The system will consider the 2 actors the same actor. This happens when battle testing in database and not ingame, so I am pretty sure its not a bug in the plugin ^-^ just something weird I thought I’d share

Definitely a bug in the plugin. Both actors are referencing the same class command, which means if you disable/hide that command, all actors will not have it. This is a bug because you're not actually "sharing" the command between different actors; each actor should have their own copy of it.

Though, the idea of sharing a command isn't too bad…but I will assume all commands should be independent.

Hello,
I believe I have found a bug with the plugin. When using the scripts in a conditional branch, the script call being read won’t change when the conditional branch changes from true to false or vise-versa. EX: I placed a command/skill to be shown while a character is under a certain state, and hidden if not in that state. Since, at the start of the battle the character will not be in the state, the condition is false and the command/skill is hidden. Note I did also make sure that the game is checking each turn to make sure the condition is still false or not, but when the condition changes to true, the skill still won’t appear. I have double/triple checked all the settings and even tried to vise-versa the show/hide. Of course I tried it without the conditional branch and even tried a conditional branch that only checks to see if the condition is true. Without the conditional branch it works, but not with it. It just won’t work in a conditional branch :(. Anyway I just thought I’d point that out and see if it was an actual bug or not.

Are you sure the conditional branch is actually running? If it works without the conditional branch, I would imagine your condition is never true.
Try displaying a message before you show the command to see if the condition actually works.

Yay, the problem was that while I had set it to it to turn 0 as the trigger point with each turn checking if the trigger condition is met… I changed it to end turn and added a different event with a turn 0 trigger to hide the command and it works thank you 😀 this plugin is awesome.

To create code blocks or other preformatted text, indent by four spaces:

This will be displayed in a monospaced font. The first four
spaces will be stripped off, but all other whitespace
will be preserved.
Markdown is turned off in code blocks:
[This is not a link](http://example.com)