This is an edit by waynee95.
https://www.dropbox.com/s/ndh9qorv6hyikhw/BOB_BattleCommandList_waynee95-edit.js?dl=0
Make sure to
not rename this file and import it instead of the original one. Make sure to place the plugin at the bottom, otherwise the Yanfly commands will not work.
It allows you to specify conditions for commands in order to disable/enable or show/hide them. It also includes every yanfly command addition I posted in this thread (Actor Party Switch, Equip Battle Skills, etc..)
Added features of this edit:
- Equip - Adds the YEP_X_ChangeBattleEquip command
- ActorSwitch - Adds the YEP_X_ActorPartySwitch command
- EquipSkills - Adds the YEP_EquipBattleSkills command
- EquipSkill:slotID - Adds the skill equipped in the specified slot id
- BattleStatus - Adds the YEP_X_InBattleStatus command
All these command should work with the features already provided by the original plugin, like icon etc.
Conditional Battle Commands
This plugin adds a new syntax to the commands.
i208-Items!
{put condition here}
You can add a block of { } at the end of every command. Inside this block you can define your condition. If you add the ! before the { }-Block it will
hide the command if that condition is false, if there is no ! it will just grey the command out if the condition is false.
The following variables are available inside the { }-Block:
a - for the current actor
s - switches (for example s[42] would refer to switch with id 42)
v - variables (for example v[12] would refer to variable with id 12)
p - party
Here are some example commands:
Attack{a.level > 5} - This would grey out the attack command until the actor is level 5
Attack!{a.level > 5} - This would hide the attack command until the actor is level 5
i34-Items!{!a.isStateAffected(10)} - This would hide the items command if the user is affected by state 10
This should work with most of the commands. Although I haven't tested every command!
@Bobstah I hope you don't mind that I post an edited version here.