Let's say we have a random window which calls command window.
class Random_Window_One < Window_Base def initialize() super(0, 0, Graphics.width, 200) @random_command_window = Random_Command_Window.new @random_command_window.start endendclass Random_Command_Window < Window_Command def initialize super(0, 200) deactivate set_handler🙂one, method🙂on_one)) set_handler🙂two, method🙂on_two)) end def on_one deactivate end def on_two deactivate end def start activate open refresh select(0) end def make_command_list add_command("Option One", 😮ne) add_command("Option Two", :two) endend And creating it through event using
@random_window = Random_Window_One.newThe window shows up properly, but it doesn't let the player choose between the options, it just stays there.
You can even move away from the event.
Any ideas/tips how to do this properly?
class Random_Window_One < Window_Base def initialize() super(0, 0, Graphics.width, 200) @random_command_window = Random_Command_Window.new @random_command_window.start endendclass Random_Command_Window < Window_Command def initialize super(0, 200) deactivate set_handler🙂one, method🙂on_one)) set_handler🙂two, method🙂on_two)) end def on_one deactivate end def on_two deactivate end def start activate open refresh select(0) end def make_command_list add_command("Option One", 😮ne) add_command("Option Two", :two) endend And creating it through event using
@random_window = Random_Window_One.newThe window shows up properly, but it doesn't let the player choose between the options, it just stays there.
You can even move away from the event.
[IMG]https://mrtrivelvx.files.wordpress.com/2014/06/ss-2014-06-09-at-12-48-19.png[/IMG]
