Random SFX per Letter in Messages

Status
Not open for further replies.

VanillaBrocker

Veteran
Veteran
Joined
Jul 25, 2015
Messages
68
Reaction score
82
First Language
Portuguese
Primarily Uses
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.  :p
 
Last edited by a moderator:

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
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
 

VanillaBrocker

Veteran
Veteran
Joined
Jul 25, 2015
Messages
68
Reaction score
82
First Language
Portuguese
Primarily Uses
@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!  :)
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top