Random SFX per Letter in Messages

First of all, sorry if it would be better to ask directly to one of the mentioned plugins' creators first. If so, I ask to some moderator to delete this topic.


So, I know we have many plugins that gives us the possibility to use SFX in our games' messages, like these:






I was thinking about a plugin which we could set random SFX per characters, like what can be seen here:




The main difference between those two examples is the speed and lenght between each played sound (please, correct me if I'm wrong).  Would it be too complicated to allow the player to set a custom sfx range? 


\lsn<filename>


It's great, because lets us define different sfx for different NPCs. But what if we could have something like:


\lsn<filename[3]>


This would let us to play randomly the files filename1.wav, filename2.wav and filename3.wav in a "show message" command.


Thank you very much.  😛
https://raw.githubusercontent.com/DreamXRMMV/Rpg-Maker-MV/master/DreamX_RandomLetterSFX.js

Code:
 * Place under both Yanfly Message Core and Yanfly Yanfly Extended Message 
 * Pack 1
 * 
 * When you use \lsn<filename> in a message, it will do this:
 * Add filename to the list of possible sound effects.
 * Add filename0...x to the possible list of sound effects.
 * For example, if you filename, filename0, filename1, filename2, filename3
 * it will add it to the possible list.
 * It will keep adding until it finds an iteration that doesn't exist (ie. 
 * if filename7 doesn't exist)
 * 
 * Then, it will choose randomly from this list to play.
 * You can also start with 1 instead of 0, like: filename, filename1, filename2
 * ============================================================================
 * Terms Of Use
 * ============================================================================
 * Free to use and modify for commercial and noncommercial games, with credit.
 * ============================================================================
 * Credits
 * ============================================================================
 * DreamX
@DreamX


Wow! Thanks!


I haven't received the notification that someone replied to this topic and just saw your reply when I was about to bump it. Sorry about the delay and thank you very much! Really REALLY appreciate that!  🙂

Original thread: https://forums.rpgmakerweb.com/threads/random-sfx-per-letter-in-messages.61923/