Play different sound depending on which actor utilizes an item?

Like the title says, I'd like it for every actor to have a different soundbyte for when using an item, this soundbyte should also change depending on what item it is.

Example:
Silas uses Cigarettes > Play voice clip of Silas saying "Hold on gotta smoke"
Tristan uses Ipecac > Play sound clip of Tristan saying "I'm gonna puke"
Lazarus uses Cigarettes > Play sound clip of Lazarus saying "*coughing*, God, people actually like this??"

Any way this could be achieved?
i did a similar thing with a set of my skills for my project. using yanfly's skill plugin you can do something like this


Code:
<Before Eval>
if (user._actorId==1){
user.startAnimation(151)
}
if (user._actorId==2){
user.startAnimation(152)
}
if (user._actorId==3){
user.startAnimation(153)
}
if (user._actorId==4){
user.startAnimation(154)
}
if (!user.isActor()) {
user.startAnimation(155)
}
</Before Eval>
if youre only doing sound effects you could call the soundmanager directly and just play the voiceline instead of animations, but in mine, the visual animations and sound effects themselves are also slightly different for each user
i did a similar thing with a set of my skills for my project. using yanfly's skill plugin you can do something like this


Code:
<Before Eval>
if (user._actorId==1){
user.startAnimation(151)
}
if (user._actorId==2){
user.startAnimation(152)
}
if (user._actorId==3){
user.startAnimation(153)
}
if (user._actorId==4){
user.startAnimation(154)
}
if (!user.isActor()) {
user.startAnimation(155)
}
</Before Eval>
if youre only doing sound effects you could call the soundmanager directly and just play the voiceline instead of animations, but in mine, the visual animations and sound effects themselves are also slightly different for each user
WOW, I really thought i was asking too much, and you came here and delivered in such a short amount of time! Thank you so much dude!!!

Original thread: https://forums.rpgmakerweb.com/threads/play-different-sound-depending-on-which-actor-utilizes-an-item.162084/