YesNoOk
avatar

Multiple voice clips for intro/win/loss etc (Read 262 times)

Started by Nny, March 08, 2014, 08:12:02 am
Share this topic:

Nny

Multiple voice clips for intro/win/loss etc
#1  March 08, 2014, 08:12:02 am
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
How will I be able to code them into my character? I know how to add sounds, I just want different voice clips each time for my chars intro and all that.
Re: Multiple voice clips for intro/win/loss etc
#2  March 08, 2014, 09:03:05 am
  • ****
  • English fluency I am swear!
    • Canada
Insert your sounds with the same sound "Group".
Use a combination of "Random", "Addition" and "Modulo" in the "Value" of your "PlaySnd" so that one of the sounds is played at random.

Example from my Voice Patch said:
[State -3, Win Voices] ;Win
type = PlaySnd
triggerall = life < LifeMax
triggerall = Time = 5
trigger1 = StateNo = 181
value = 180, (0+(Random%3))
channel = 0
volumescale = 100
Quote
And "Reality" is unveiled.
What did it want . . .
What did it see . . .
What did it hear . . .
What did it think . . .
What did it do . . .

Nny

Re: Multiple voice clips for intro/win/loss etc
#3  March 08, 2014, 05:05:15 pm
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
How would I be able to add them? The random, addition and modulo. And how do I add my values in to play the sounds?


Last Edit: March 09, 2014, 05:32:33 pm by Nny

Nny

Re: Multiple voice clips for intro/win/loss etc
#4  March 09, 2014, 05:32:43 pm
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
anyone? ;  ;
Re: Multiple voice clips for intro/win/loss etc
#5  March 09, 2014, 05:38:31 pm
  • *****
  • Back to the Beginnings
    • Skype - trinitro.man

  • Online
Please don't bump your thread that fast.
I make characters RP-styled (Current WIP: Marisa):
http://mugenguild.com/forum/topics/marisarp-150600.0.html
Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
you are all small and can't grow manly sideburns

Nny

Re: Multiple voice clips for intro/win/loss etc
#6  March 09, 2014, 08:16:13 pm
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
Just need help q-q
Re: Multiple voice clips for intro/win/loss etc
#7  March 09, 2014, 08:41:28 pm
  • ****
  • English fluency I am swear!
    • Canada
Insert your sounds with the same sound "Group".
Use a combination of "Random", "Addition" and "Modulo" in the "Value" of your "PlaySnd" so that one of the sounds is played at random.
value = 180, (0+(Random%3))
To set the values of your play sound, just... type it in?
For the first argument, just type in the group number for your sounds.
For the second argument however, you'll need to use some math.

First type in the "0" like I typed.
Next, type in a "plus sign" (+), so that Mugen will add the 0 and the next value.
After the + sign, type in "Random" this will generate a random value between 0 and 999.
Directly after the Random, type in "Modulo" (%)  This will divide the previous value by the value entered after it, and return the remainder.
Where I typed the "3", type in the number of sounds that you have.

So if I had 5 sounds, I would write it out like this:

value = 180, (0+(Random%5))

and have my sounds set on group 180, with indexes 0-4
The random%5 will generate a value between 0 to 4.
This value will be added to the 0 I typed at the start of the math equation.
This sum determines the index number that Mugen will play.

Quote
And "Reality" is unveiled.
What did it want . . .
What did it see . . .
What did it hear . . .
What did it think . . .
What did it do . . .

Nny

Re: Multiple voice clips for intro/win/loss etc
#8  March 10, 2014, 01:42:49 am
  • **
  • Fail Hill Zone, Act 1
    • USA
    • virtualicon@hotmail.com
    • http://www.facebook.com/FantasyVault
Oh duh.. Well thank you! :D