I have a custom scene where the player chooses two of nine factions to ally with using a command window. I have a command window that displays the factions as well as some information about them (A different window is used to finalize the choice). I want to use the same window both times, and just remove the previously selected option. My first idea was to refresh the window and redraw the commands, skipping over the one that was previously selected, as determined by $game_variable 14:
@command_window = Window_Factions.new(0,0) @command_window.width = 200 @command_window.refresh if $game_variables[14] != 1 @command_window.set_handler🙂Guild, method🙂Ally_Guild)) end if $game_variables[14] != 2 @command_window.set_handler🙂Sacceris, method🙂Ally_Sacceris)) end if $game_variables[14] != 3 @command_window.set_handler🙂Isendra, method🙂Ally_Isendra)) end if $game_variables[14] != 4 @command_window.set_handler🙂Ashther, method🙂Ally_Ashther)) end if $game_variables[14] != 5 @command_window.set_handler🙂Champions, method🙂Ally_Champions)) end if $game_variables[14] != 6 @command_window.set_handler🙂Fraternity, method🙂Ally_Fraternity)) end if $game_variables[14] != 7 @command_window.set_handler🙂Ettaia, method🙂Ally_Ettaia)) end if $game_variables[14] != 8 @command_window.set_handler🙂Sovereign, method🙂Ally_Sovereign)) end if $game_variables[14] != 9 @command_window.set_handler🙂Guardians, method🙂Ally_Guardians)) end @display_window = Window_Base.new(200, 0, Graphics.width - 200, Graphics.height)This doesn't seem to work, however. How do I remove a command, or otherwise more completely redraw a window?
@command_window = Window_Factions.new(0,0) @command_window.width = 200 @command_window.refresh if $game_variables[14] != 1 @command_window.set_handler🙂Guild, method🙂Ally_Guild)) end if $game_variables[14] != 2 @command_window.set_handler🙂Sacceris, method🙂Ally_Sacceris)) end if $game_variables[14] != 3 @command_window.set_handler🙂Isendra, method🙂Ally_Isendra)) end if $game_variables[14] != 4 @command_window.set_handler🙂Ashther, method🙂Ally_Ashther)) end if $game_variables[14] != 5 @command_window.set_handler🙂Champions, method🙂Ally_Champions)) end if $game_variables[14] != 6 @command_window.set_handler🙂Fraternity, method🙂Ally_Fraternity)) end if $game_variables[14] != 7 @command_window.set_handler🙂Ettaia, method🙂Ally_Ettaia)) end if $game_variables[14] != 8 @command_window.set_handler🙂Sovereign, method🙂Ally_Sovereign)) end if $game_variables[14] != 9 @command_window.set_handler🙂Guardians, method🙂Ally_Guardians)) end @display_window = Window_Base.new(200, 0, Graphics.width - 200, Graphics.height)This doesn't seem to work, however. How do I remove a command, or otherwise more completely redraw a window?