Text box message that can be turn ON/OFF during gameplay

Hello, I've been trying to installed a script that play Sounds whenever the player goes to the next textbox

I found this script by Galv which works :

http://www.rpgmakervxace.net/topic/7178-text-box-sounds/

class Window_Message < Window_Basealias galv_process_input process_inputdef process_inputgalv_process_inputRPG::SE.new("Item1", 100, 150).playendendBut now the only problem is that sometimes during the game I want to disable this script so that it doesn't play the sounds then enable it again later (This is for like Cutscenes, or textbox which I set for it to close by itself)

I try searching the forum for solutions already, and found that you can modify the script so that it can be controlled by game_switch, but I have no knowledge of scripting so I don't know what to add to the script and how to turn the script on and off later (I'm guessing the Call Script function in the event panel? I don't know....)

If someone can help me out that'll be great
Well, request fulfilled, ten times over. Not that it is a well-kept secret, but modern algebra's hugely customizable and awesome Advanced Text System for Ace includes this option in the Message Options script. Yes, you'll use Call Script in your event panel to make changes to the functionality, e.g. turning options off and on. With the Message Options script, you have some different choices for sound effects. Use what you like. You don't have to use everything it provides. For a sound effect when a textbox finishes, I think that's the option :finish_sound_on. You would call it like this in Call Script:

ats_all🙂finish_sound_on, true)So, no need for game switches. Clean and quick. That would set the sound effect in the :finish_se configuration section to play for all text messages when they finish. There's also an option for only the next message, instead of all messages, using ats_next🙂message_option, x).

Don't let the options intimidate you. I recommend that you open up the demo, take a look at how it works, and learn!
It works like a charm  🙂

Thank you very much
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/text-box-message-that-can-be-turn-on-off-during-gameplay.23915/