Link to the Script itself: Custom Battle Actions
Last Updated: 2009.06.23
For those who would like to have more than just Attack, Skill, Guard, and Item for their actions in their list, this script allows just that. You can rearrange the ordering of the actions, bind new custom actions to skills, and even incorporate subskill actions into the individual command lists.
HOW TO USE THIS SCRIPT
Here’s some screenshots to explain how to use the script. It’s not a long script, but it can get a bit confusing.
———
Each character class will have different commands associated with it. Under CLASS_COMMANDS is a hash of class ID’s and their respective commands. Input the class ID and list the commands you desire in the array next to it. If a class ID is not present in that hash, the command list will take class 0’s command list. That said, do NOT remove class 0 from the hash.
The reserved commands you can give classes are:
- “-Attack” for regular attacking.
- “-Skill” for skill selection.
- “-Subclass” for subclass unique skills.
- “-Guard” for guarding.
- “-Item” for using items.
- “-Wait” for doing nothing.
If you want to input your own custom commands, look below.
———
If you have inputted a custom command that does not appear on that reserved commands list, it will then redirect the action’s functionality towards the CUSTOM_COMMANDS hash. Here, you can bind a custom command to a skill (and yes, it has to be a skill). This custom command will run off the same rules the skill does. It will cost MP (or HP if you have Custom Skill Effects), target the same enemy or ally groups, or target the user depending on what the skill you referred it to is like.
Make sure you type in your command name correctly.
———
For those using the Subclass Selection System, using “-Subclass” will reveal a subclass unique command. Match the subclass ID with the command name you would like to appear. Note that this command name will refer back to the CUSTOM_COMMANDS hash. If a subclass does not exist or if it isn’t listed, it will take on subclass 0. Note that if the command referred is “”, it will skip adding that command to the actions list. Easy as pie, right?
———
And that’s it~
———
IF YOU ARE HAVING PROBLEMS WITH THESE SCRIPTS, REVIEW THE TROUBLESHOOTING PAGE FIRST!





2009, May 29 at 7:45 pm |
is it possible to make a steal command with this?
2009, May 29 at 9:24 pm |
Yes, you would require KGC Steal Item though. Make a steal item skill, then use that skill to represent the Steal command.
2009, June 20 at 2:36 pm |
When I add a skill to the battle menu, if the player chooses it and then clicks cancel it restarts every players choice.
So right now if player 2 can do “Focus” and player 1 sets it moves to cast fire, then I pick Focus for player 2 but change my mind and click cancel it will restart the entire choices from player 1 and 2.
Is there a way to fix this?
2009, June 20 at 7:08 pm |
This seems more like a conflict with a non-YERD script. Try the YERD troubleshooting page.
http://pockethouse.wordpress.com/vx/toubleshooting/
2009, June 21 at 9:40 am |
I just tested it in an empty project folder with just that script and the default font view battle system, it still resets each choice for that turn.
I have Class ID 2
2 => ["-Attack", "Focus", "-Skill", "-Subclass", "-Guard", "-Item"],
followed by custom command
“Focus” => 84,
Skill effects one ally, adds the focus state and does -5 base dmg with -1 Attack F, 20 variance, Spirit F 1.
State Priority 1 adds 150 Attack % ends in 3 turns or at end of battle.
Tested it on 2 slime troop with Class ID2 being Ulrika.
Also checked it as states to cancel under Incapacitated.
Script placed below Scene_Gameover and above Main Process.
Saved project and tested.
Ran in an empty project.
Did not alter any other script.
Did not change anything else inside that script.
It’s not a major problem since you can just restart that entire turn I guess, but it would be great if it could be fixed ^^
2009, June 21 at 11:00 am |
Thanks much for the detail in delivering me the conditions of replicating the problem! Seems like it was a problem in the default scripts that couldn’t determine whether or not to activate the actor command window. -.-
Anyways, problem fixed. Just redownload. =]
http://www.pockethouse.com/rpgvx/scripts/custombattleactions.txt
2009, June 21 at 4:58 pm |
Wow. That does sound strange. Thanks so much for fixing the problem! I’ll redownload the script and try it again as soon as I get time. =)
Sorry that I keep bothering you so much ^^;
2009, June 22 at 6:39 pm |
I am using this script for my death note game, I have removed all selections but ’skill’ and renamed ’skill’ as ‘death note’ and am using that to execute my skills… why is it that it is gray and I cant use it?
2009, June 23 at 11:57 am |
HEEEEELP … please…
2009, June 23 at 1:24 pm |
ok, I found that it’s not just when I make death note… the whole script renders me useless in battle… everything is greyed out… what do I do?
2009, June 23 at 1:24 pm |
why will nobody help
… i cant move on otherwise
2009, June 23 at 4:53 pm |
Read the instructions.
It’s likely a user created issue.
Also, this is somewhat of an Add-On to Custom Skill Effects
2009, June 27 at 10:50 am |
I was just testing this, it doesn’t work with Enu’s ATB Script. Shame, I really wanted to use this.
Selecting any command yields the error:
Script ‘YERD Custom Battle Actions’ line 197: NoMethodError occured. Undefined method ‘custom_action_flag=’ for nil:NilClass
I am 100% positive that the ATB is causing this problem. I put the script in a clean Project with only Enu’s Sideview first (where the script worked) and then with ATB (where the script didn’t work).
2009, June 29 at 1:03 pm |
As it turns out, that was just an ordering error. Putting Custom Battle Actions above ATB solves the problem. Yet it creates another.
Even with the custom battle actions the commands still do the same thing. The second command will always open the skill windows, the third will always defend and the 4th will always be items. Any 5th command doesn’t work.
I would really love to use this script, it would be great to see a fix for all the ATB users out there.
2009, September 15 at 5:17 pm |
Is there a way to just type, say, “2-31″ for the commands instead of having to type out ALL of the skill IDs?
2009, September 17 at 7:34 am |
I’m having a bit of trouble with it, I can change “Skill” to “Zephyr” but when i click “Zephyr” it doesn’t let me pick a skill, it just uses the first one i have learned…