I want to hide the 'Passive' command for all my actors in battle-only.
I see I can use this?
hide_actor_command(ID, SYMBOL) so it would appear as hide_actor_command(1, Passive)
But I'm unsure of where exactly this is to be put??
Those are script calls. Page 3, second to last, right above "Plugin Command."
They're meant as a way to directly manipulate the properties of the commands.
To hide them in battle, you'd have to fire off a setup event at the start of every battle that executes the script. (Which is direct javascript)
If you don't want to make a setup event at the beginning of every combat turn for every troop you design, you can use Yanfly's base troop events:
www.yanfly.moe
That allows you to make a "basic template" that is called for and applies to every other troop as well.
Use that to make a turn 0 one-off event that launched the script call to disable the commands right at the beginning of combat and before it begins.
And that should be it.
Alternatively you can use a utility common event plugin to launch a common event executing the script at the start and the end of every battle.
www.yanfly.moe
This, however, requires some javascript know-how since yanfly hasn't included the battle start and battle exit states.
With a bit of copy-past you can do it however, but I'm not - per yanfly's terms - allowed to give you my version of the plugin that includes those changes.
To be able to trigger a battle start event you need to add a parameter near the top:
JavaScript:
* @param Battle Start Event
* @parent ---General---
* @type common_event
* @desc Run this common event each time the player starts a battle.
* Set as 0 if you do not wish to run a common event.
* @default 0
In the "Yanfly.Param.UtilCommonEvents = {" function you need to add the line:
JavaScript:
battleStart: Number(Yanfly.Parameters['Battle Start Event']) || 0,
Under "Game System" add this function:
JavaScript:
Yanfly.UCE.Game_System_onBattleStart = Game_System.prototype.onBattleStart;
Game_System.prototype.onBattleStart = function() {
Yanfly.UCE.Game_System_onBattleStart.call(this);
if (Yanfly.Param.UtilCommonEvents['battleStart'] > 0) {
$gameTemp.reserveCommonEvent(Yanfly.Param.UtilCommonEvents['battleStart']);
}
};
Note that you'd use battle won and battle escape common events to activate the command again, and the battle start common event to hide it.
For losing you'd have to manually launch the script in the losing condition event bracket. (if the player can lose)
I'd recommened the general troop event, though. It's easier.