I'm working on my own title menu script that has an option for "Credits". There are a few out there, I know. But I want the knowledge to do it myself. Ive been watching diamondplatinums tutorials and I've a few other resources I go to when I get stumped but I've been stuck on this for months without any sort of breakthrough. I'm not sure how to explain my exact issue...
I've successfully been able to hash together a script that adds a "Credits" option to the title menu. When i select that, it opens up another menu with the following options
Graphics
Audio
Scripts
Other
When I select one of those options, it should open a window on the right of the menu that lists my credits. I CANNOT make it open a window when i select one of the above options. What am i doing wrong?
Please bare with me, I'm very new at this and I'm not sure what info I need to post to get the advice I need. If more is needed, I will gladly provide.
I just have the Graphics option set up right now. Nothing is meant to show for the other options right now, its all in testing phase.
Thank you!
I've successfully been able to hash together a script that adds a "Credits" option to the title menu. When i select that, it opens up another menu with the following options
Graphics
Audio
Scripts
Other
When I select one of those options, it should open a window on the right of the menu that lists my credits. I CANNOT make it open a window when i select one of the above options. What am i doing wrong?
#==============================================================================# ** Scene_Title#------------------------------------------------------------------------------# This class performs the title screen processing.#==============================================================================class Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- alias customscene_credits_create_command_window create_command_window #-------------------------------------------------------------------------- def create_command_window customscene_credits_create_command_window() #Call Original Method @command_window.set_handler🙂credits, method🙂command_credits)) end def command_credits SceneManager.call (Scene_Credits) endend#==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- alias customscene_credits_make_command_list make_command_list #-------------------------------------------------------------------------- def make_command_list customscene_credits_make_command_list() #Call Original Method add_command("Credits", :credits, true) end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 200 endend#==============================================================================# ** Window_CreditsMenu#------------------------------------------------------------------------------# This command window appears on the credits screen.#==============================================================================class Window_CreditsMenu < Window_Command #-------------------------------------------------------------------------- # * Initialize Command Selection Position (Class Method) #-------------------------------------------------------------------------- def self.init_command_position @@last_command_symbol = nil end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Get Number of Lines to Show #-------------------------------------------------------------------------- def visible_line_number item_max end #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_main_commands add_original_commands end #-------------------------------------------------------------------------- # * Add Main Commands to List #-------------------------------------------------------------------------- def add_main_commands add_command("Graphics", :graphics, true) add_command("Audio", :audio) add_command("Scripts", :scripts) add_command("Other", 😮ther) end #-------------------------------------------------------------------------- # * For Adding Original Commands #-------------------------------------------------------------------------- def add_original_commands end #-------------------------------------------------------------------------- # * Processing When OK Button Is Pressed #-------------------------------------------------------------------------- def process_ok @@last_command_symbol = current_symbol super endend#==============================================================================# ** Scene_Credits#------------------------------------------------------------------------------# This is the Credits Scene.#==============================================================================class Scene_Credits < Scene_Base #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super() @Window_CreditsMenu = Window_CreditsMenu.new(x=0, y=71) end #-------------------------------------------------------------------------- # * Post-Start Processing #-------------------------------------------------------------------------- def post_start super() end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super() return_scene() if Input.trigger?🙂 return_scene() if Input.trigger?🙂C) end #-------------------------------------------------------------------------- # * Pre-Termination Processing #-------------------------------------------------------------------------- def pre_terminate end #-------------------------------------------------------------------------- # * Termination Processing #-------------------------------------------------------------------------- def terminate super() @Window_CreditsMenu.dispose() end end#==============================================================================# ** Window_TitleCommand#------------------------------------------------------------------------------# This window is for selecting New Game/Continue on the title screen.#==============================================================================class Window_Graphics < Window_Message #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- def start super() @Window_Graphics = Window_Graphics.new(100, 100) @credits_window = Window_Help.new() @text = "Test" end #-------------------------------------------------------------------------- # * Post-Start Processing #-------------------------------------------------------------------------- def post_start super() end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super() @window_graphics.set_text(@text) return_scene() if Input.trigger?🙂 return_scene() if Input.trigger?🙂C) end #-------------------------------------------------------------------------- # * Pre-Termination Processing #-------------------------------------------------------------------------- def pre_terminate end #-------------------------------------------------------------------------- # * Termination Processing #-------------------------------------------------------------------------- def terminate super() @Window_Graphics.dispose() endend
I just have the Graphics option set up right now. Nothing is meant to show for the other options right now, its all in testing phase.
Thank you!