======================
Text and Custom Intros
======================
Created by Tenebrous

;---------------------------------------------------------------------------
Text intros can be used to simulate a conversation between fighters before
a fight, to tell back story, or just to add flare to your character. They
normally consist of a special intro triggered when fighting certain opponents
that contains several explode "text box" statements.
;---------------------------------------------------------------------------

1.) Triggering the custom Intro

This should be in your intro (Statedef 191) state. Notice the Pos triggers: these
are used to determine whether your character is on the left or right side. This is important
because without two states your text boxes can appear reversed when he/she is on the right.

[State 191, 1] ;If P1 is on the left
type = ChangeState
trigger1 = (Time = 0) && (P2Name = "Whomever you want the intro with") && (Pos X < 0)
value = 1990

[State 19 , 1] ;If P1 is on the right
type = ChangeState
trigger1 = (Time = 0) && (P2Name = "Whomever you want the intro with") && (Pos X > 0)
value = 1991

2.) Custom Intro, left side.

[Statedef 1990]
type = S
ctrl = 0
physics = N
anim = 191 ;Whatever animation number your intro is in the air file

[State 1990, 1]
type = AssertSpecial
trigger1 = Time <= 510 ;Make sure this is enough time for your intro to be displayed
flag = Intro
flag2 = NoBarDisplay

[State 1990, 2] ;This box is above P1
type = Explod ;These explod statements are in pairs, this one displays a transparent background for the text
trigger1 = Time = 26
anim = 8300
pos = -210,170
postype = right
id = 8300
sprpriority = 2
removetime = 115
ownpal = 0

[State 1990, 2b] ;And this one displays the text. Make sure both display long enough for the text to be read.
type = Explod
trigger1 = Time = 30
anim = 8322
pos = -210,170
postype = right
id = 8322
sprpriority = 3
removetime = 110
ownpal = 0

[State 1990, 3] ;This box is above P2
type = Explod ;This is the box
trigger1 = Time = 140
anim = 8300
pos = -105,170
postype = right
id = 8300
sprpriority = 2
removetime = 115
ownpal = 0

[State 1990, 3b]
type = Explod ;This is the text
trigger1 = Time = 144
anim = 8323
pos = -105,170
postype = right
id = 8323
sprpriority = 3
removetime = 110
ownpal = 0

[State 1990, 4] ;This box is above P1
type = Explod ;This is the box
trigger1 = Time = 255
anim = 8300
pos = -210,170
postype = right
id = 8300
sprpriority = 2
removetime = 115
ownpal = 0

[State 1990, 4b]
type = Explod ;This is the text
trigger1 = Time = 260
anim = 8324
pos = -210,170
postype = right
id = 8324
sprpriority = 3
removetime = 110
ownpal = 0

[State 1990, 5] ;This box is above P2
type = Explod ;This is the box
trigger1 = Time = 370
anim = 8300
pos = -105,170
postype = right
id = 8300
sprpriority = 2
removetime = 115
ownpal = 0

[State 1990, 5b]
type = Explod ;This is the text
trigger1 = Time = 374
anim = 8325
pos = -105,170
postype = right
id = 8325
sprpriority = 3
removetime = 110
ownpal = 0

For the right side custom intro (statedef 1991) us the same code but switch the explod pos attributes, so P1 would have
pos = -105,170

and P2 would have
pos = -210,170
