How do you make one intro play after the other, and not at the same time?

Started by moonshine, October 24, 2012, 02:49:56 AM

Previous topic - Next topic

moonshine

Some of my characters have a video intro that plays on the screen and i was wandering how would i make it so one charaters video plays then when its done the next character video plays?

Sinnesloschen

I'm sure there's some coding in some characters (The_None's Segalow) that makes their intro play after P2's. You might want to check that out and see what the code says.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?

moonshine


Sinnesloschen

His "Within my body lies the whole of the universe, I am eternal!" and Ragna the Bloodedge intros both play after P2's intros.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?

moonshine

oh now i see the code but i find it a little hard to understand exactly what i need to put in, so ill need to make seperate intros with the two characters that have the videos?

Sinnesloschen

You mean make the intros play after one another when facing each other? I'm sure you can just specify P2 and whatnot. I don't know anything about coding, so I'm not sure I can help you past this.
Quote from: Alpaca-San on December 27, 2014, 08:50:31 AM
Is finding MUGEN to be more enjoyable to play when you're not wearing clothes an underrated opinion?

moonshine

oh ok thanks for your help ill see if someone knows how to code to specify when player 2 starts their intro.

Cyanide

If it's Nones characters, he knows how long his intros are. A basic methodology would be in state 190 you don't let them leave it until enemynear(0), stateno = 0. You will need to add that to all your changestates in state 190 and ONLY have that happen if teamside = 2 (or alternatively facing = -1)

Basically they'll be frozen in the "intro choice" state until they can see that p1 is in a standing state then they start. Can get ugly, specially with long intros.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine

Ok i dont know exactly what to write in the code but heres on characters intro, i know how long each intro goes for and it plays on the whole screen, So what exactly would i type and where?
Introduction
[Statedef 191]
type = S
ctrl = 0
anim = 190
velset = 0,0

[State 191, PlaySnd]
type = PlaySnd
trigger1 = time = 1
value = s242,0

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = time = [0,1153]
value = 190

[State 191, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = time = [0,1153]
flag = Intro

[State 191, 3] ;Change to stand state when done
type = ChangeState
trigger1 = time = 1153
value = 0

[State 191, Snd 1]
type = PlaySnd
trigger1 = AnimElem = 7
value = F5,2
volume = -40

[State 191, Snd 2]
type = PlaySnd
trigger1 = AnimElemTime(7) = 3
value = F5,3
volume = -80

[State 1027, Movie]
type = Explod
trigger1 = time = 0
anim = 242
ID = 242
pos =  0,0
postype = left  ;p2,front,back,left,right
bindtime = 2
removetime = 1153
pausemovetime = 444
sprpriority = 5

Cyanide

You need to override state 190 first. That's a solid intro, not a "picker" which we want.

We hold fire in the "choice" intro before moving onto the official one.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine

ok so heres the state decider, what should i put where?

[Statedef 190]
type = S

[State 190, 1]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 0,100

[State 190, 2]
type = ChangeState
trigger1 = Time = 1
trigger1 = var(1) = [0,35]
value = 191

[State 190, 3]
type = ChangeState
trigger1 = Time = 1
trigger1 = var(1) = [35,75]
value = 192

[State 190, 3]
type = ChangeState
trigger1 = Time = 1
trigger1 = var(1) = [75,100]
value = 193

Cyanide

[State 190, 2]
type = ChangeState
triggerall = var(1) = [0,35]
trigger1 = time = 1 && teamside = 1
trigger2 = enemynear(0), stateno = 0 && teamside = 2
value = 191

[State 190, 3]
type = ChangeState
triggerall = var(1) = [35,75]
trigger1 = time = 1 && teamside = 1
trigger2 = enemynear(0), stateno = 0 && teamside = 2
value = 192

[State 190, 3]
type = ChangeState
triggerall = var(1) = [75,100]
trigger1 = time = 1 && teamside = 1
trigger2 = enemynear(0), stateno = 0 && teamside = 2
value = 193

I don't have the DOCS available, please confirm i have the teamside triggers correct, it might be 0 and 1 rather than 1 and 2 i can't remember.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine

amazing it works now :) But now how do i make it play after eachother when their on the same team what code would i write?

Cyanide

Ugh, now you're getting complicated.

Do you want it to play after partner, with p2 still waiting or ignoring p2 altogether?

trigger3 = numpartner
trigger3 = ID > partner, ID
trigger3 = partner, stateno = 0


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine


Cyanide

change enemynear(0) triggers above to

enemynear(0), stateno = 0 && enemynear(numenemy = 2), stateno = 0


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine

ok now when their in Team vs (simul) mode only P1 plays then P3 but not P2 and P4, Heres what i put down so far

[Statedef 190]
type = S

[State 190, 2]
type = ChangeState
triggerall = var(1) = [0,35]
trigger1 = time = 1 && teamside = 1
trigger2 = enemynear(0), stateno = 0 && enemynear(numenemy = 2), stateno = 0
trigger3 = numpartner
trigger3 = ID > partner, ID
trigger3 = partner, stateno = 0
value = 191

Cyanide

All 4 are the same player? If they don't both enter state 0, it'll never get there. Some intro's may end differently.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

moonshine

no they are not the same player, but I put that code in each of the charcters intro state decider, What happens is team 1 play their intros at the same time then team 2 plays their intro at the same time, i need it to go one at a time.

2OS

trigger1=id=56
trigger2=id=57
trigger2=playeridexist(56)
trigger2=playerid(56),stateno=0
trigger3=id=58
trigger3=playeridexist(56)
trigger3=playerid(56),stateno=0
trigger3=playeridexist(57)
trigger3=playerid(57),stateno=0
trigger4=id=59
trigger4=playeridexist(56)
trigger4=playerid(56),stateno=0
trigger4=playeridexist(57)
trigger4=playerid(57),stateno=0
trigger4=playeridexist(58)
trigger4=playerid(58),stateno=0