Infinity MUGEN Team
IMT Main => M.U.G.E.N Help => Topic started by: ~Wolfpaul~ on November 09, 2007, 08:23:38 PM
-
How to you make more than one character intro like before the round starts?
-
the other character is a helper
-
No i mean 2 intros for one character
-
Oops, i interpreted it wrong... Go under statedef 5900 in your character, most likely the very last line of code should be a changestate that might look something like this:
[State 5900, 3] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190
Depending on how many intro's you want you either want to use the VarRandom sctrl to generate a random number that will determine which intro to choose or if you just have 2 intro's you could do something like this:
[State 5900, 3] ;Intro for round 1 (option 1)
type = ChangeState
trigger1 = roundno = 1 && random >= 500
value = 190
[State 5900, 3] ;Intro for round 1 (option 2)
type = ChangeState
trigger1 = roundno = 1
value = 191
-
To code it like sludge told you you need to add the common1 to the char. you can code the intro selects directly on the statedef 190
[Statedef 190]
type = S
ctrl = 0
[State 190, ]
type = ChangeState
trigger1 = random <=500
value = 191
[State 190, ]
type = ChangeState
trigger1 = random >=501
value = 192
the system randomize a number if the number is = or less than 500, it will change to the statedef 191, and if the number its between 501 and 999, it will change to the statedef 192 (999 its the maximum number of the random). If you want to add more you need to change the random you soud use something like these random = [0,250]; these means from 0 to 250
-
Thanks i needed this :thumbsup:
-
Random is generated each time you call the trigger isn't it? So it would have to look like:
[Statedef 190]
type = S
ctrl = 0
[State 190, ]
type = ChangeState
trigger1 = random <=500
value = 191
[State 190, ]
type = ChangeState
trigger1 = 1
value = 192
-
This would also be a good place to use the modulo (%) function.
-
Random is generated each time you call the trigger isn't it? So it would have to look like:
[Statedef 190]
type = S
ctrl = 0
[State 190, ]
type = ChangeState
trigger1 = random <=500
value = 191
[State 190, ]
type = ChangeState
trigger1 = 1
value = 192
I think that he way you code it its correct , because the first changestate would only activate half of the times, but I prefer using more random becauase if I want to add 3 or 4, I only need to adjust the values of the random :thumbsup: