YesNoOk
avatar

Randomize character lines during special winpose. (Read 1302 times)

Started by PRØJECT.13, March 30, 2020, 08:56:38 pm
Share this topic:
Randomize character lines during special winpose.
#1  March 30, 2020, 08:56:38 pm
  • ***
    • USA
    • YouTube.com/MugenX000
DW's recently released Kyosuke has a special winpose if you finish a round with Final Grade Remix, where Batsuband Hinata pose with him. They have voice lines in the sound file, but I can't make it so they all can say a line at random, only two at a time. Here's the code I'm using:

Code:
[State 182, Voice]
type = PlaySnd
trigger = AnimElemTime(1) = 0
value = 6565,ifelse(Random <= 500,1,2)
channel = 0

I can't add more than 3 numbers at the end there, if I do then MUGEN crashes whenever it tries to load Kyosuke. Changing the values and symbols don't seem to work either, and as someone who really isn't versed in code to begin with, I'm genuinely at a loss. Any and all help is greatly appreciated!
Re: Randomize character lines during special winpose.
#2  May 04, 2020, 08:54:42 am
  • ****
DW's recently released Kyosuke has a special winpose if you finish a round with Final Grade Remix, where Batsuband Hinata pose with him. They have

Code:
[State 182, Voice]
type = PlaySnd
trigger = AnimElemTime(1) = 0
value = 6565,1 + (Random%3)
channel = 0

this will randomly pick 6565,1 2 and 3
Re: Randomize character lines during special winpose.
#3  May 04, 2020, 10:27:21 pm
  • ***
    • USA
    • YouTube.com/MugenX000
I'm using 1.1 so that code cause Kyosuke to crash my MUGEN. I did get a workaround for it with DW's guidance in the thread, and I forgot to close this one lol ^^; This is the code:

Code:
; Win pose (FGR)
; CNS difficulty: basic
[Statedef 182]
type = S
ctrl = 0
anim = 181
velset = 0,0

[State 181, Voice]
type = PlaySnd
trigger1 = AnimElemTime(1) = 1
value = 6565,ifelse(Random <= 500,0,1)
channel = 0

[State 182, AssertSpecial]
type = AssertSpecial
trigger1 = time = [0, 280]
flag = roundnotover

I do still appreciate your help all the same.