Specific Text Script?

Is there a script that plays a sound effect when a specific piece of text is played?


For example: When '!' is displayed it wil play a sound effect.


I couldn't find a script that does this.
Could you be more specific? Do you want the sound to be player when the ! is displayed in the text box or just when the text box contains a sentence with a ! in it?


Both can be achieved and it shouldn't be difficult. Knowing what you mean can help.
@Heirukichi


The second option would be better actually.


But is it done with scripting or is there already a tool in rpg maker to do so?
@pokopish Please do not quote posts simply to indicate who you are answering.  It makes the page slow to load and to scroll down, especially for those accessing this on their phones.  If you want to make it clear who you are replying to, just use the @membername convention as I have done in this post.  Tagging someone in this way also has the advantage of letting them know that you have answered them, if they have that option turned on in their Notification settings.


Thank you.
Oh, I'm sorry.


I'm quite new to this forum and I must've overlooked this in the rules...
No problem. 
@pokopish what you want to achieve can only be done via scripting. To be more specific you have to edit the Game_Message class so that every time a symbol you decide is displayed the related sound will play.
@Heirukichi Thank you very much for your answer, it helped a lot. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/specific-text-script.73304/