[SOLVED] How to play a different sound when using a specific item?

Hey, there!

So I'm basically looking how to play a sound when using an item from the menu, and I'm not talking about changing the "Equip/Use Item" overall sound, I just want to play a specific sound when a specific item is used (Meaning that I can play different sounds for different items).

Example:

I use a potion from the menu, a healing sound is played.

I use a book from the menu, a sheet sound is played.

So that's pretty much what I'm looking for, I don't know if there's a plugin out there for that.

Thanks!
Hey, there!

So I'm basically looking how to play a sound when using an item from the menu, and I'm not talking about changing the "Equip/Use Item" overall sound, I just want to play a specific sound when a specific item is used (Meaning that I can play different sounds for different items).

Example:

I use a potion from the menu, a healing sound is played.

I use a book from the menu, a sheet sound is played.

So that's pretty much what I'm looking for, I don't know if there's a plugin out there for that.

Thanks!

I'm not sure about the plugins.

But you can add a common event to the item Effects from inside the database and have it play a sound effect there. If I am understanding you correctly, that should work. It's under Other at the very bottom once you go to edit.
I'm not sure about the plugins.

But you can add a common event to the item effects inside the database and have it play a sound effect there. If I am understanding you correctly, that should work. It's under Other at the very bottom.
It worked! Marvelous! That's exactly what I needed. However, with the common event now when I use the Item, it closes the menu rather abruptly. Before adding the common event with the sound, it would use the item and stay there.

What can I do in this case?
Plugin method:

Try this from triacontane- https://www.dropbox.com/s/fugjlnqjk358kyj/ItemCallScript.js?dl=1

If you want play your own sound effect for item without default sound (Item3)-
In database > System > Sounds for "Use Item" set to (None)

To play your own sound effect for items individually

Put this tag in the item Note box. Change ' ' inside to the name of sound effect
Code:
<call:AudioManager.playSe({name: 'Item2', pan: 0, pitch: 100, volume: 100});>
It worked! Marvelous! That's exactly what I needed. However, with the common event now when I use the Item, it closes the menu rather abruptly. Before adding the common event with the sound, it would use the item and stay there.

What can I do in this case?

I'm not sure how to keep it from doing that, sorry.

The plugin Ovate posted looks like a better way than I was suggesting, especially if the menu closing down when the item is used is a problem.
I added the plugin, pasted the Script within the Item textbox with the name of the SE and when I use the Item there's no sound 🙁 What could be it
1651172997124.png

Plugin method:

Try this from triacontane- https://www.dropbox.com/s/fugjlnqjk358kyj/ItemCallScript.js?dl=1

If you want play your own sound effect for item without default sound (Item3)-
In database > System > Sounds for "Use Item" set to (None)

To play your own sound effect for items individually

Put this tag in the item Note box. Change ' ' inside to the name of sound effect
Code:
<call:AudioManager.playSe({name: 'Item2', pan: 0, pitch: 100, volume: 100});>

I'm not sure how to keep it from doing that, sorry.

The plugin Ovate posted looks like a better way than I was suggesting, especially if the menu closing down when the item is used is a problem.
Don't worry! I thank you anyways for helping me. If the plugin option doesn't work, I will use your solution while I solve the issue with the menu shutting down. Thaaaanks
Hi there!

If the Ovate suggestion does not work for you, I also have a plugin that implements specific sounds for Items:
@Quimey Try this plugin. It'll definitely keep the menu from closing on you, but I can't promise it will work with every plugin you already have.

To be clear, this would be used with Berylstone's solution.
Hi there!

If the Ovate suggestion does not work for you, I also have a plugin that implements specific sounds for Items:
Tried it, but didn't work 🙁

@Quimey Try this plugin. It'll definitely keep the menu from closing on you, but I can't promise it will work with every plugin you already have.

To be clear, this would be used with Berylstone's solution.
THIS ONE WORKED! At first the common event would play after I close the menu, but followed the instructions and put the plugin on top of all the rest and worked!

Thank you very much!

I'm not sure how to keep it from doing that, sorry.

The plugin Ovate posted looks like a better way than I was suggesting, especially if the menu closing down when the item is used is a problem.
And thank you a lot to you too! Your solution worked for me with the Plugin "Sword_of_Dusk" shared here.

God bless you all! My problem has been solved
Glad that plugin worked out for you. Good luck with your game.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-play-a-different-sound-when-using-a-specific-item.147150/