How to reorder (or delete) commands from the battle menu?

The default is Attack first, Item last. But I want it so Item appears first and I want to get rid of Attack altogether. Is this possible?
The commands, and order thereof, are determined by create_actor_command_window in Scene_Battle.

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.x = Graphics.width

  end

 

You'd just need to change it to

 

def create_actor_command_window

    @actor_command_window = Window_ActorCommand.new

    @actor_command_window.viewport = @info_viewport

    @actor_command_window.set_handler🙂item, method🙂command_item))

    @actor_command_window.set_handler🙂skill,  method🙂command_skill))

    @actor_command_window.set_handler🙂guard,  method🙂command_guard))

    @actor_command_window.set_handler🙂cancel, method🙂prior_command))

    @actor_command_window.x = Graphics.width

  end
Thanks. I just found out about this script though:

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/battle-command-list/

4vr8yv.jpg


I'm trying to figure out the best combination.

Putting each item on its own line seems really cool but this takes up too much space.

I only have four spaces.

Items

Steal

Magic

Guard

So maybe I'll rename Items to "Battle Tactics" and it will include all actions that require items.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-reorder-or-delete-commands-from-the-battle-menu.40243/