==========
Tag Team
==========
Created by Sunboy

;---------------------------------------------------------------------------
Tag Team - This is a feature in those cross-over games,
where you choose 2 characters which alternate during
the fight.

This code shows how the VS style tag team is done.

Important Note: This is incomplete. (Will be updated in the
future.)

;---------------------------------------------------------------------------

1.) First, the tag team call move:

[Statedef 9000]
type = A
movetype = A
physics = N
anim = 9000
ctrl = 0

;Screen will iIgnore your character as the switch is made.
[State 9000, ScreenBound]
type = ScreenBound
trigger1 = Time <= 5
value = 0

;Illusionary effect: Makes your character look like he's
jumping away. (He really got moved with the PosSet, see below.)
[State 9000, Helper]
type = Helper
trigger1 = Time = 0
stateno = 9001
postype = p1
pos = 0,0
ownpal = 1

;XY Position to put character into, for an illusion effect
of jumping in. (Facing to the right.)
[State 9000, PosSet]
type = PosSet
trigger1 = (Facing = 1) && (Time = 1)
x = -150
y = -75

;XY Position to put character into, for an illusion effect
of jumping in. (Facing to the left.)
[State 9000, PosSet]
type = PosSet
trigger1 = (Facing = -1) && (Time = 1)
x = 150
y = -75

;Jumping in velocity.
[State 9000, VelSet]
type = VelSet
trigger1 = Time = 1
x = 14
y = 3.5

;Adjust according to your preferences. (This is Sunboy's original values!!)
[State 9000, HitDef]
type = HitDef
trigger1 = (whatever)
attr = A, NA
animtype = Hard
damage = 30
sparkxy = 0, -24
hitflag = MAFD
guardflag = MA
pausetime = 10,10
;hitsound = 
;guardsound = 
ground.type = High
ground.slidetime = 8
ground.hittime = 20
ground.velocity = -.5,-8.5
air.velocity = -.5,-8.5
fall = 1

;When you land on the ground, go to your character's taunt state.
[State 9000, ChangeState]
type = ChangeState
trigger1 = Time > 2
trigger1 = Pos Y >= -10
value = 195

Finally, the helper created from this action:

;-----------------------------------------------------------------------
; Tagging Away
[Statedef 9001]
type = A
movetype = I
physics = N
velset = -14, -3.5
anim = 9001
ctrl = 0

[State 9001, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0

2.) As for the character animation and attributes changes, you'll need to
use a variable to have your character look like the new one. (The tagged character.)

Please refer to Omniscience's Morph codes on creating this effect. (As an alternative
until this reference is completed.)


