Two Commands?

I am trying to do two commands, which I would leave it as:

A command for a certain list and another command for confirm and cancel.

for example, I have this:

def create_f_command @confirm_command = FirstCommand.new @confirm_command.set_handler🙂frozen, method🙂command_frozen)) @confirm_command.set_handler🙂cancel, method🙂command_frozencancel)) endand my second command called:

def create_s_command @confirm_commandb = SecondCommand.new @confirm_commandb.set_handler🙂morrowind, method🙂command_morrowind)) @confirm_commandb.set_handler🙂stormcloaks, method🙂command_stormcloaks)) endnow, what I did was to display them in one scene. However, both of them seems to be working. The other one is horizontal and the other one is vertical. What I wanted to do is if I select the command frozen, the other commands would be transferred to morrowind and stormcloaks. Remember that scene where you select the formation and when you cancel you go back to the menu command?

How can I exactly do that? I tried doing unselect method which I placed on the commands but it doesn't work.

i.e.

Code:
def command_frozen  @confirm_command.unselect  @confirm_commandb.activateend
Try deactivate.

@confirm_command.deactivateAlthough, the default input handling for OK in Window_Selectable should have done that already.
It works, but before it goes back to my first command, I need to press a button. It should originally select the command back.
You mean, canceling selects the last command, like in menu screen? Don't use unselect then. Alternatively, save the index somewhere, and upon reactivating the command window, call select(index), with index as the last index variable saved before.
So should I use deactivate instead and remove unselect?
Yes.

unselect deselects the selection. It is equivalent with select(-1).

deactivate sets the window's @active variable to false, which means that the selectable window does not update from any input.

Original thread: https://forums.rpgmakerweb.com/threads/two-commands.25187/