I have figured out how to make it work so that a certain sound will play at the end of each message window's text, i.e. when the pause sign (cursor icon, you might call it) is displayed. That's at the end of the text display, not after user input to close the Message Window. But I need help to make it stop working, selectively.
The following lines of script should be run on each map at least once to make it run...
Replace NAME, X, Y, Z. "NAME" is the name of the audio file in the se folder, no extension. Leave the inverted commas.
I've tried updating the playSe function with a zero volume setting, or with a sound file that plays silence, but nothing has worked.
Could a more capable scripter offer a solution? Even a completely different method would be welcome, as long as it works selectively. Thanks in advance.
The following lines of script should be run on each map at least once to make it run...
// Play sound at end of textvar TH_WindowMessage_onEndOfText = Window_Message.prototype.onEndOfText; Window_Message.prototype.onEndOfText = function() { TH_WindowMessage_onEndOfText.call(this); AudioManager.playSe({name: 'NAME', pan: X, pitch: Y, volume: Z}); };Replace NAME, X, Y, Z. "NAME" is the name of the audio file in the se folder, no extension. Leave the inverted commas.
I've tried updating the playSe function with a zero volume setting, or with a sound file that plays silence, but nothing has worked.
Could a more capable scripter offer a solution? Even a completely different method would be welcome, as long as it works selectively. Thanks in advance.