How to add a new battle command?

Hello everyone :3!

here Nio Kasgami 

So i don't pass with multiple road..i go directly!

I try to add some new sort of battle commands in my game but When I tried is so not work or I take a bug

so 

I know for create new a command I need to go in the Vocab section and write exemple my Tactic command

def self.Tactic; command(24) ; end
And after i need to go in Party_command

for write a new feature (for this i use Formation command) because I want to add a formation command

so I use the yanfly Free turn battle and yami battle engine symphony 

But i want to add by myself the possibility to change party in battle (i use the Yanfly Scene_party)

So is looks like this 

def make_command_list

    add_command(Vocab::fight,  :fight)

    add_command(Vocab::escape, :escape, BattleManager.can_escape?)

    add_command(Vocab::formation, :formation)

    end
But I don't know what to add  for permit the Formation command to work is appear but don't work

I think I need to do this but i am not sure 

add_command(Vocab::formation, formation, call Scene_Party)

I am a beginner in the RGSS3 but i want to do my own script!

I am really thankfull for someone can help me :3!
you don't necessarily need the vocab part... because you can specify the strings directly on the command creation...

You're missing a command handler for the :formation command in the battle scene...

btw, since ur using Yanfly's scripts, you can utilize his party command script to make things easier...
I know Yanfly had create a script for do formation command but i want to do by my own self 

So I add the miss part in the scene battle 

 def create_party_command_window

    @party_command_window = Window_PartyCommand.new

    @party_command_window.viewport = @info_viewport

    @party_command_window.set_handler🙂fight,  method🙂command_fight))

    @party_command_window.set_handler🙂escape, method🙂command_escape))

    @party_command_window.set_handler🙂formation, method🙂command_formation))

    @party_command_window.unselect

  end
But is don't work what is missing for the moment wich section i need to check for doing the command?
You need to modify the window itself to display the new command.
Hoo hello Tsukihime I see your work is really beautiful x3)

HUm you mean the Window_Base?
No, your specific command window.
Specific window....Ho okai you mean Party or actor command :3!
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Specific window....Ho okai you mean Party or actor command :3!
What are you trying to do again? Add an actor command?
Ha sorry stukihime ._. i bad explain what i want to do 

I want to add a Party command call :: Formation 

is simply open the formation window permit me to change my team 

I am sorry for the bad explanation .__.'

And after again in the party command I want to add a specific command Call Tactic 

(A project script i want to do but i think is a little bit hard for do this ?)

Is simply a script add a bonus in the battle

(like exemple : The tactic "Support " who the Strengh was low but the defense and the healing power was upgrade ...I think you understand what i mean ...is a project i want to do for a game i do early Name Toby Quest
you need to make sure that :command_formation exists in the scene_battle (or the windows part maybe)...

which I think is not present... so you'd probably need to look at the menu scene and it's windows and look at how the formation is done
What you're saying is, you want to be able to change the party formation in the middle of battle, right?
Yes yes :3! I know yanfly do a special script for that but i want to add by myself my own personal command :3!
Adiktuzmiko : Yes I check in Scene menu and i obtain the part for the Basic formation command is simple but i think i need to rewrite the portion  of this 

def command_formation

    @status_window.select_last

    @status_window.activate

    @status_window.set_handler🙂ok,     method🙂on_formation_ok))

    @status_window.set_handler🙂cancel, method🙂on_formation_cancel))

  end
 

in the Scene_battle...or the party command

in other Way if do that is sure I take a stupid bug

 

 

EDIT : Is work Partialy Now I have The 'Formation'' command because I add 

in Party_command 


 

def make_command_list

    add_command(Vocab::fight,  :fight)

    add_command(Vocab::escape, :escape, BattleManager.can_escape?)

    add_command(Vocab::formation, :formation)
I also Find the way for add the new fonction with simply go in the Scene_battle and Add a two new setting

def create_party_command_window

    @party_command_window = Window_PartyCommand.new

    @party_command_window.viewport = @info_viewport

    @party_command_window.set_handler🙂fight,  method🙂command_fight))

    @party_command_window.set_handler🙂escape, method🙂command_escape))

    @party_command_window.set_handler🙂formation, method🙂command_formation))

    @party_command_window.unselect

    end
For doing the command work I needed automaticly to add this command

Now for Open the Formation Command I needed to go in the Scene_menu and copy this 

def command_formation

    @status_window.select_last

    @status_window.activate

    @status_window.set_handler🙂ok,     method🙂on_formation_ok))

    @status_window.set_handler🙂cancel, method🙂on_formation_cancel))

     end
For copy this in the Scene_Battle

Is don't make bug but when i action the command is give me that : 

Script 'Scene_Battle' line 223: No methodError Occured.

Undefined method 'select_last for #<WindowBattleStatus:0x3bb9858>
I think I need to change the specific Method..but i am not sur...
You see, you only added the line that determines which function/method handles the button,

but you still yet to add the actual method...

for example, if you use that command_formation as the handler, then you see there are still other handlers inside right? for OK and Cancel... so you will then need to insert those handlers too... Also, it uses the Status window, which is not present in battle so you still need to do lots of editing, really... I think...

BTW, I suggest just looking at how YF did his formation command script...
I look is look pretty simple he reunit all the fonction in one fonction

(but simple question : I want for reduce the run in my data ..reunit most of the information in a One script...but How look the structure for the script?)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-a-new-battle-command.15523/