[ACE] Script call to update battle command list

Hello, I'm using Yanfly's Battle Command List in my current VXA project. There are one-on-one battles using Action Times + X00% to give each side the chance to choose several moves each turn. (Basically, pre-programming a couple rounds of the conflict at a time to make it a bit more strategic rather than playing out actions & reactions as they occur.)

My issue is that of the several actions available to the player, I want them only be able to choose each option once. So, if they've already picked "Avoid" for one of the three actions in this round of combat, I want to disable that as an option for the next two actions. I know you can make skills available / unavailable through the use of switches, and that's what I was planning to do, but the command list doesn't update without switching party members.

What would the script call be to refresh the list, or is there a simpler way to make those skills / skill types one-use only each round? Right now, I'm just having the skills call a common event to flip the switch to disable each skill type on use, then refreshing those switches at the top of each round. So it would be fairly trivial to drop in a script call to $Scene_blahblahblah.updateBattleCommandList or whatever if that's easily determined.

EDIT - I also just tried using skill cooldowns of 1 turn with Skill Restrictions instead, that similarly doesn't update on the same turn.
Generally the battle command list should already be updated between actions, unless you are using other scripts that prevent that. I'm currently not sure how you set up your actions to enable a switch upon selection, if you used the "Call Common Event" effect then that should only be triggered when the action is actually executed.

There may be better options for this, but since you mentioned the Skill Restrictions script, you could try to use a script note tag like this:
Code:
<restrict eval>
$game_party.in_battle &&
!BattleManager.in_turn? &&
((enemy? || auto_battle?) ? @actions :
(@actions.take(@action_input_index))).any? {
|action| action.item == skill }  #
</restrict eval>
Keep in mind that any line breaks in this code are removed.
Currently the linked script also seems to contain a bug that makes it ignore the closing </restrict eval> tag. You can counteract this by ending your code with a #
Code:
<restrict eval>
$game_party.in_battle &&
!BattleManager.in_turn? &&
((enemy? || auto_battle?) ? @actions :
(@actions.take(@action_input_index))).any? {
|action| action.item == skill }  #
</restrict eval>
Hmm, this makes sense - I'll take a look! I tried a couple different options, but ultimately, I think it might make more sense just to use a more simple one-action-per turn system and give actions cooldowns, which would preserve the idea of strategic planning-ahead while bringing it more inline with what's easily doable within a less-modified codebase. (Though my current testing doing it that way has now raised its own bugs, of course.) Thanks for your suggestion, I'll take a look back if I go back down that path!

Original thread: https://forums.rpgmakerweb.com/threads/ace-script-call-to-update-battle-command-list.161387/