Equip Battle Command

You're awesome, thank you so much. I went ahead and created a new file, and it works like a charm.

If you could figure out a way to make it use up a turn, that would be incredible!
You're awesome, thank you so much. I went ahead and created a new file, and it works like a charm.

If you could figure out a way to make it use up a turn, that would be incredible!

Here you go!


http://pastebin.com/2LEgUHkp


This plugin both incorporates the previous fix and adds cooldowns to equip changing.


You'll have to make a cooldown state.


(Instructions are in the help section of the plugin.)
I appreciate this so much! This is a great feature that I've been trying to implement but failing. It works beautifully. How should I credit you?
As your handle here, or full name?

Oh, one thing! The file has the .js extension twice, so anyone downloading it should rename and pull one of those off. 
Thanks for pointing that out.  I'll correct it.


As for thanks, my handle here will be fine.


Glad to have been able to help!
I tried this plugin with MV and found a bug. When you select equip and then equip again in battle then the game breaks.
Would there be a way to remove certain equip slots from the menu in battle? I have a few custom equip slots and I'd prefer the equip menu to just be those instead of including the default ones (Weapon, Accessory, Head, Body) as well. I'm aware you can disable them and I do have them disabled, but I'd rather them not be there at all.
Would there be a way to remove certain equip slots from the menu in battle?
The problem with this is that the plugin simply uses the engine's default equip slot window. That window knows which slot you're using by where it is in the list (you can see that list under Equipment Types in the Types tab of your database).

And that index (e.g. where on the list your cursor is) is also what's used for viewing and placing the equipment.

So you could make the window skip printing some of the slots, but then (using the default list as an example) when you highlight the second slot which says Head, you'd still be looking at and equipping Shields.

To do what you're asking, you'd have to code a new window type that had the slot type associated with it in a separate way from its index in the list.
I'm getting this error when trying to equip stuff. Seems to be another Yanfly issue.


YEP_CoreEngine.js:1098

TypeError: Cannot read property 'setObject' of undefined
at Game_Actor.forceChangeEquip (rpg_objects.js:3638)
at Window_EquipItem.updateHelp (rpg_windows.js:2502)
at Window_EquipItem.Window_Selectable.callUpdateHelp (rpg_windows.js:1233)
at Window_EquipItem.Window_Selectable.select (rpg_windows.js:797)
at Window_EquipItem.Window_Selectable.reselect (rpg_windows.js:805)
at Window_EquipItem.Window_Selectable.activate (rpg_windows.js:784)
at Scene_Battle.onSlotOk (Equip Battle Command.js:403)
at Window_EquipSlot.Window_Selectable.callHandler (rpg_windows.js:902)
at Window_EquipSlot.Window_Selectable.callOkHandler (rpg_windows.js:1171)
at Window_EquipSlot.Window_Selectable.processOk (rpg_windows.js:1156)
SceneManager.catchException @ YEP_CoreEngine.js:1098
Hi @herohammerstudios

Did you apply my fix plugin?

That should correct this.

Original thread: https://forums.rpgmakerweb.com/threads/equip-battle-command.49324/