Jomarcenter

jomarcenter-MJM
Veteran
Joined
Apr 24, 2012
Messages
1,272
Reaction score
213
First Language
ENGLISH
Primarily Uses
RMMV
It is possible that you  can have a different sound file played when pressed the new game in the title menu select screen.

I kinda like when you press the new game button it will played a different sound file instead of the already set "OK" sound effect on the title screen.

And make it compatible with this script.

https://yamiworld.wordpress.com/title-decorate/vertical-commands/
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,201
Reaction score
854
First Language
Hungarian
Primarily Uses
RMVXA
Assuming Yami's script did not change the overwritten method I used, here is a little snippet doing what you want:

Code:
module TitleSE   

  Setup = {   #  RPG::SE.new("file_name", volume, pitch),   
    :new_game => RPG::SE.new("Absorb2",       80,   100),   
    :continue => RPG::SE.new("Bell1",         80,   100),   
    :shutdown => RPG::SE.new("Crash",         80,   100), 
  } 

end

class Window_TitleCommand < Window_Command
  
  def process_ok   
    if current_item_enabled?     
      TitleSE::Setup[current_symbol].play     
      Input.update     
      deactivate     
      call_ok_handler   
    else     
      Sound.play_buzzer   
    end 
  end 

end
You can setup the SE for each command on the title screen with this in the module settings with the 'Setup' options.

I guess the settings do not need further explanations, they are rather self-explanatory.

Insert this at the top of your custom script list.

If it doesn't work with Yami's script, let me know and I will try to make a compatibility patch.
 
Last edited:

Jomarcenter

jomarcenter-MJM
Veteran
Joined
Apr 24, 2012
Messages
1,272
Reaction score
213
First Language
ENGLISH
Primarily Uses
RMMV
Assuming Yami's script did not change the overwritten method I used, here is a little snippet doing what you want:

module TitleSE Setup = { # RPG::SE.new("file_name", volume, pitch), :new_game => RPG::SE.new("Absorb2", 80, 100), :continue => RPG::SE.new("Bell1", 80, 100), :shutdown => RPG::SE.new("Crash", 80, 100), } endclass Window_TitleCommand < Window_Command def process_ok if current_item_enabled? TitleSE::Setup[current_symbol].play Input.update deactivate call_ok_handler else Sound.play_buzzer end end end
You can setup the SE for each command on the title screen with this in the module settings with the 'Setup' options.

I guess the settings do not need further explanations, they are rather self-explanatory.

Insert this at the top of your custom script list.

If it doesn't work with Yami's script, let me know and I will try to make a compatibility patch.
Works Great, Thanks for the scripts.
 

Latest Threads

Latest Profile Posts

Ugh, can't decide what to make next!
The Dystopia
ikW0BYF.png
Recently got RPG Maker MZ. A bit slower with my current PC but I will be getting a new one soon.
evening progress; pretty happy where this is at so i'll take the rest of the night to myself =w=
5NJGyKY.png
It would seem learning JS is not a know it all for making plugins. While it has enabled me to understand what I'm looking at, I still have to find the relevant information in the core scripts. This is much harder than learning JS IMO.

Forum statistics

Threads
118,403
Messages
1,115,672
Members
155,343
Latest member
sograyish
Top