Venka's Crafting Script — Add More Sounds ?

I've been looking to add this amazing script to my game, but I have a concern.
My game's atmosphere relies A LOT on sound design, musics, etc. Each sound has been handpicked, designed purposefully to sound "professional".

Scrolling through her script's documentation, I saw that you can set up many sounds for success crafting, as well as different sounds for different crafting categories.

Ideally, what I'd like to have is a sound for each item (if you craft a legendary super godlike item, it'll play a different sound than if you craft a bottle of juice, right?). Typically : a sound for the crafting process, and a sound for the crafting result.
Like, you could still set a default sound for a crafting category, but have the possibility to "override" it with another sound if it's specified.

How hard would it be to code such thing? The script looks pretty huge, and though I have some basic knowledge of RGSS3, I don't know if someone would be down to code this (or, show me the way!).
Sorry for posting before the 72 hour delay. Just want to let y'all know I was actually able to change the script myself accordingly!

Should the thread remain open just in case other people want/need to know how I did it ?
A fix is always nice to know 🙂
Alright, so here's the fix (pretty simple).

In class Game_Recipe, added two attr_reader.

Ruby:
class Game_Recipe
  #----------------------------------------------------------------------------
  # ♦ Public Instance Variables
  #----------------------------------------------------------------------------
  attr_reader    :recipe_type,      :req_level,       :ingredients
  attr_reader    :craft_time,       :earned_exp,      :ingredient_amount
  attr_reader    :pre_failed,       :auto_learn,      :recipe_id
  attr_reader    :process_sound,    :success_sound # Added this!
  attr_reader    :display_name

Just below, in the initialize method, added these two lines below "@ingredient_amount = []" and above "get_ingredients".

Ruby:
@process_sound = @recipe[:process_sound]
@success_sound = @recipe[:success_sound]

Then, changed the method "play_sound" (comments attached) :

Ruby:
def play_sound
    return unless $craft[@craft_id].active_sound
   
    # If a process sound has been set for the current item, play it. Otherwise, play the default one.
    file_info = @recipe.process_sound ? @recipe.process_sound : $craft[@craft_id].active_sound
    begin
      RPG::BGS.new(*file_info).play
    rescue
      RPG::SE.new(*file_info).play if @timer == 120
      @timer -= 1  if @timer > 100 # Since I only use SE for crafting, no BGS, I changed that value so that the SE only plays once.
      @timer = 120 if @timer == 0
    end
  end

And finally, changed the "success_rewards" method.

Ruby:
def success_rewards
    # Same thing : if a success sound has been set for the current item, play it. Otherwise, play the default one.
    file_info = @recipe.success_sound ? @recipe.success_sound : Success_Sound
    RPG::SE.new(*file_info).play
   
    @result_exp     = @recipe.earned_exp * @number
    @result_message = Result_Msg
    @result_item    = @recipe.crafted_item
    @result_amount  = @recipe.crafted_amount * @number
    $game_party.gain_item(@result_item, @result_amount)
    $craft[@craft_id].gain_exp(@result_exp) if SceneManager.scene_is?(Scene_Crafting)
  end

That's it for the "Script" part. Now, to set up process/success sounds for each item, add those two lines in your recipe :

Ruby:
:process_sound=> ["craftprocess", 80, 100],
:success_sound=> ["craftsuccess", 80, 100],

As stated above, if you omit those two lines, the default sounds will be played.

Anyway, that's it for the fix. I use a program to compare the two script files, just to be sure I don't miss anything.

Original thread: https://forums.rpgmakerweb.com/threads/venkas-crafting-script-add-more-sounds.139337/