Changing Sounds and Terms for Certain Actors

Alright. I've got a little request for you scripting peeps out there if you don't mind reading.

So, I've got two separate actors from different stories in a game I'm developing, and I'm using custom sounds for their collapse. The trouble is, I want to use a different sound effect for Actor 1's collapse than Actor 2's, without messing with the boss collapse sounds, which was something I considered but quickly said no to myself for.

I'd like to know if there is a script that can change which sound file is played for a certain actor's collapse in game, without changing the main sound for the collapse as to make the two sound effects different.

As an added little bonus, I'd like to change the battle victory message for separate parties, although that can easily be dropped as I believe it may not be possible.

I know scripts that can change the GameOver sound and screen exist, but I can't seem to find any that fit what I need to do. I also took a look at Collapse Redux by Soulpour777 and VE Custom Collapse by Victor Saint, but I'm also unsure they will achieve the desired effect.

If all else fails, instructions on how to possibly change/add to the base script to get my desired effects would be acceptable.

Thanks for reading again and helping me out.
The following code should take care of the first part of your request (different sound effects for each actor) :

Code:
#==============================================================================# ** Game_Actor#------------------------------------------------------------------------------#  This class handles actors. It is used within the Game_Actors class# ($game_actors) and is also referenced from the Game_Party class ($game_party).#==============================================================================class Game_Actor < Game_Battler  #--------------------------------------------------------------------------  # * ALIAS - Execute Collapse Effect  #--------------------------------------------------------------------------  unless method_defined?(:custcol_a2HVrFnD_gb_perform_collapse_effect)    alias_method(:custcol_a2HVrFnD_gb_perform_collapse_effect, :perform_collapse_effect)  end    def perform_collapse_effect(*args, &block)        if $game_party.in_battle      case self.name        when "Eric"          @sprite_effect_type = :collapse          RPG::SE.new("Collapse4").play        when "Natalie"          @sprite_effect_type = :collapse          RPG::SE.new("Collapse3").play        # when "ActorName"        #  @sprite_effect_type = :collapse        #  RPG::SE.new("SEName").play        else          custcol_a2HVrFnD_gb_perform_collapse_effect(*args, &block)      end    end      end  end # Game_Actor 
 
Thank you very much! It seems to work absolutely perfect.

Also, and I should have mentioned this above, is there also a way to vary the encounter sound this way?
Sure, not a problem. The following goes off of who is currently the party leader.

Code:
#==============================================================================# ** Sound#------------------------------------------------------------------------------#  This module plays sound effects. It obtains sound effects specified in the# database from the global variable $data_system, and plays them.#==============================================================================module Sound  #--------------------------------------------------------------------------  # * ALIAS - Battle Start  #--------------------------------------------------------------------------  unless method_defined?(:custsnd_lQtHR2MM_sound_play_battle_start)    class << self  	  alias :custsnd_lQtHR2MM_sound_play_battle_start :play_battle_start    end  end    def self.play_battle_start(*args, &block)    case $game_party.leader.name      when "Eric"        RPG::SE.new("Chicken").play      when "Natalie"        RPG::SE.new("Cat").play      # when "ActorName"      #  @sprite_effect_type = :collapse      #  RPG::SE.new("SEName").play      else        custsnd_lQtHR2MM_sound_play_battle_start(*args, &block)    end  end  #--------------------------------------------------------------------------  # * ALIAS - Escape  #--------------------------------------------------------------------------  unless method_defined?(:custsnd_LD33YWMD_sound_play_escape)    class << self  	  alias :custsnd_LD33YWMD_sound_play_escape :play_escape    end  end    def self.play_escape(*args, &block)    case $game_party.leader.name      when "Eric"        RPG::SE.new("Cow").play      when "Natalie"        RPG::SE.new("Dog").play      # when "ActorName"      #  @sprite_effect_type = :collapse      #  RPG::SE.new("SEName").play      else        custsnd_LD33YWMD_sound_play_escape(*args, &block)    end  end  end # Sound 
What victory message exactly where you wanting changed? The "<Actor's Party> was victorious!" message? Have you checked into Yanfly's Victory Aftermath script?
I haven't checked up on that, but I will. Thanks for the awesome support on the matter!
I am not sure you search a custom gameover screen I think?

I worked in the past on a advance custom gameover scene it not's complete but I just had to add some code and it should be alright I doubt you need the layers effects and advance movement

Original thread: https://forums.rpgmakerweb.com/threads/changing-sounds-and-terms-for-certain-actors.40380/