[Resolved] End Turn Option in Actor Command?

Woo, got it solved! Going to post the solution here in case anyone else needs it.

Original Post:

Spoiler
Hey, I'm hoping this will just be a relatively simple thing to add. Basically, I just need to add a working "End Turn" option to the Actor Command window (The "Attack", "Special", "Magic", "Item" window in battles). The text is easy enough to add, but I'm not sure how to add a method to that text to prompt the turn ending. I've got a battle system going where the actor can take 0-100 actions in a single turn (by editing make_action_time), but I can't figure out a way to allow them to end the turn at any time during their turn.

Scripts Involved that might throw off compatibility:

Victor Engine Map Battle

Yanfly's Instant Cast

Aeirex's Skip Party Command
Code:
Scene_Battle  #--------------------------------------------------------------------------  # * Create Actor Commands Window  #--------------------------------------------------------------------------  def create_actor_command_window    @actor_command_window = Window_ActorCommand.new    @actor_command_window.viewport = @info_viewport    @actor_command_window.set_handler(:attack,  method(:command_attack))    @actor_command_window.set_handler(:skill,   method(:command_skill))    @actor_command_window.set_handler(:guard,   method(:command_guard))    @actor_command_window.set_handler(:item,    method(:command_item))    @actor_command_window.set_handler(:cancel,  method(:prior_command))    @actor_command_window.set_handler(:endturn, method(:command_endturn))    @actor_command_window.x = Graphics.width  end.........  #--------------------------------------------------------------------------  # * [End Turn] Command  #--------------------------------------------------------------------------  def command_endturn    BattleManager.actor.clear_actions    next_command  end

Code:
Window_ActorCommand:  #--------------------------------------------------------------------------  # * Create Command List  #--------------------------------------------------------------------------  def make_command_list    return unless @actor    add_attack_command    add_skill_commands    add_endturn_command #end turn    add_guard_command    add_item_command  end.........  #--------------------------------------------------------------------------  # * Add End Turn Command to List  #--------------------------------------------------------------------------  def add_endturn_command    add_command("End Turn", :endturn)  end

Original thread: https://forums.rpgmakerweb.com/threads/resolved-end-turn-option-in-actor-command.35032/