Khas message system "vowel effect" edit

Heeya!

I was making my new game with Khas message system on it and I wanted the actors and people to sound more alive so I made this.

This little edit is for anyone who is using Khas message system. Just edit 1 line to make the sound effect be more like "talking".

Replace line 785 to this:
Audio.se_play("Audio/se/#{@voice}", SE_Volume, (98..102).to_a.sample) if @sound && c != " " && @voice

If you want to edit how much vowely the sound is, edit the randomized pitch at (98..102).to_a.sample)
Basically this edit just changes the pitch of the sound effect to go between 98 and 102 pitch, making it sound more like talking. If you want more variety, change the numbers to something "higher between from each other" let's say 90 and 110. This would make the pitch go randomly between 1-10 on the lower or higher pitch side. 100 is default pitch.


Link to Khas message system (ITS AMAZING AND UNIQUE)
http://arcthunder.blogspot.com/p/khas-message-system.html
Scripts is where people who have written a script they want to share with others can post it.

Moved to: RGSSx Script Support
Scripts is where people who have written a script they want to share with others can post it.

Moved to: RGSSx Script Support
I'we seen similar "edits" here so I thought it might be the right place.

Sorry about that.

Original thread: https://forums.rpgmakerweb.com/threads/khas-message-system-vowel-effect-edit.114849/