module Random_SE
def self.play(volume = 100, pitch = 80)
rand = rand(10) # Or however many different SFX you have for each actor.
filename = "Audio/SE/Actor#{$game_party.actors[0].id}_#{rand}"
se = RPG::AudioFile.new(filename, volume, pitch)
$game_system.se_play(se)
end
end
I haven't testes this at all, just now wrote in the window, but this should work. Just have the SFX named like this:
Actor1_0, Actor1_1, Actor3_2
The Actor1 will represent the first actor in the database, etc, and the second number after the _ will be the number of the random SE for that actor. Just make sure you start with 0, and that all actors have the same number of SFX.
Use this syntax for a call script: Random_SE.play
You can also call it with arguments, though it is not required, like this: Random_SE.play(volume, pitch)
Let me know if that works. I can't remember if "id" is a variable for game_actor, or if that is only in $data_actors.