Just overwrite make_command_list in Window_TitleCommand
Or you can actually make a code compatible with other scripts instead of needlessly overwriting that method.
Spoiler
Code:
alias add_new_cmd7611 make_command_list
def make_command_list # Alias!
add_new_cmd7611
cmd = {
:name => "Command name here",
:enabled => true, # Can be true/false or custom condition
:symbol => :command_symbol_here,
:ext => nil, # Can be anything if needed
}
@list.insert(command_position_here,cmd)
end
The
command_position_here should be an integer number from 0 to infinity, although it should never exceed the maximum amount of commands your command window has. 0 will put the command at the 1st place, 1 will put it to the 2nd place, and so on.You can also use negative numbers if you want to count from the last command, in which case -1 will put it to the last place, -2 will put it to the second last place, and so on.
If you don't plan to use any other scripts which add new commands to the title menu, you can overwrite it safely, otherwise, you should alias it instead the way I wrote.
There are many scripts out there to make Yanfly's System Options script global, I made one too, you can find it on my pastebin page.