Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: ~Wolfpaul~ on November 09, 2007, 08:23:38 PM

Title: I need help
Post by: ~Wolfpaul~ on November 09, 2007, 08:23:38 PM
How to you make more than one character intro like before the round starts?
Title: Re: I need help
Post by: Sludge on November 09, 2007, 08:34:48 PM
the other character is a helper
Title: Re: I need help
Post by: ~Wolfpaul~ on November 09, 2007, 08:55:07 PM
No i mean 2 intros for one character
Title: Re: I need help
Post by: Sludge on November 10, 2007, 02:15:12 AM
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
Title: Re: I need help
Post by: Fallen_Angel on November 10, 2007, 09:04:04 AM
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
Title: Re: I need help
Post by: ~Wolfpaul~ on November 10, 2007, 11:21:02 AM
Thanks i needed this  :thumbsup:
Title: Re: I need help
Post by: Sludge on November 10, 2007, 11:38:56 AM
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
Title: Re: I need help
Post by: MirageAtoli on November 10, 2007, 04:34:54 PM
This would also be a good place to use the modulo (%) function.
Title: Re: I need help
Post by: Fallen_Angel on November 10, 2007, 11:30:17 PM
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:
SimplePortal 2.3.5 © 2008-2012, SimplePortal