I found a script, but it's in 1 line!

Alright so I was browsing around the forum trying to find a way to have custom Sound Effects at the main menu.


I did find this script but it's all in one line, and I don't really have the skills to make it to an actual working script. Any way to fix this?

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), } 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
Fixed.


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




The update of this forum broke these that way. =/
Fixed.



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




The update of this forum broke these that way. =/



Thank you, works splendid!
can you give the link where you found it?


Aside from our rules requiring credit for any posted resource, if it was on this forum the formatting went wrong from the forum update a while ago and we can use this to fix the original post.
@Andar I think the snippet came from this thread: 





So credit goes to Sixth.

Original thread: https://forums.rpgmakerweb.com/threads/i-found-a-script-but-its-in-1-line.61898/