; Custom states
;---------------------------------------------------------------------------
; Grabbed
[Statedef 804]
type    = S
movetype= H
physics = N
velset = 0,0

[State 800, Turn]
type = Turn
trigger1 = Time = 0

[State 804, Anim2]
type = ChangeAnim2
trigger1 = Anim != 804
value = 804

[State 804, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 804, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 804, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 804, AfterImage]
type = AfterImage
triggerall = Time = 0
trigger1 = P2StateNo = 3001
trigger2 = P2StateNo = 4001
time = 1

[State 804, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 804, SelfState]
type = SelfState
trigger1 = Time >= 50
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; Grabbed
[Statedef 804123]
type    = S
movetype= H
physics = N
velset = 0,0

[State 3000, AfterImage]
type = AfterImage
trigger1 = AnimElem = 1
time = 1

[State 3000, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 800, Turn]
type = Turn
trigger1 = Time = 0

[State 804, Anim2]
type = ChangeAnim2
trigger1 = Anim != 804
value = 804

[State 804, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 804, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 804, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 804, AfterImage]
type = AfterImage
triggerall = Time = 0
trigger1 = P2StateNo = 3001
trigger2 = P2StateNo = 4001
time = 1

[State 804, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 804, SelfState]
type = SelfState
trigger1 = Time >= 50
value = 0
ctrl = 1


;---------------------------------------------------------------------------
; Grabbed Loop
[Statedef 809]
type    = A
movetype= H
physics = N
velset = 0,0



[State 809, Anim2]
type = ChangeAnim2
trigger1 = Anim != 809
value = 809

[State 809, 1]
type = HitBy
trigger1 = 1
value = S, NT
time = 1

[State 809, 1]
type = NotHitBy
trigger1 = 1
value = CA, NA, SA, HA, AP
time = 1

[State 809, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 809, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

;---------------------------------------------------------------------------
; Thrown
[Statedef 811]
type    = A
movetype= H
physics = N
velset = 0,0

[State 811, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 811, Anim2]
type = ChangeAnim2
trigger1 = Anim != 811
value = 811

[State 811, 0]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 811, LifeAdd]
type = LifeAdd
trigger1 = AnimTime = 0
value = -60

[State 811, HitVelSet]
type = HitVelSet
trigger1 = AnimTime = 0
x = 1
y = 1

[State 811, SelfState]
type = SelfState
trigger1 = AnimTime = 0
value = 5050

;---------------------------------------------------------------------------
; Hit by Counter
[Statedef 910]
type    = A
movetype= H
physics = N
velset = 0,0

[State 910, 0]
type = ChangeAnim2
trigger1 = 1
value = 930

[State 910, 1]
type = PosAdd
trigger1 = Time = 0
y = -30

[State 910, SelfState]
type = ChangeState
trigger1 = HitShakeOver
value = 911

;---------------------------------------------------------------------------
; Spun by Counter
[Statedef 911]
type    = A
movetype= H
physics = N
velset = 0,0

[State 910, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 910, 3]
type = VelAdd
trigger1 = 1
y = .44

[State 910, 4]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

;---------------------------------------------------------------------------
; Grabbed by Mexican Typhoon
[Statedef 1005]
type    = A
movetype= H
physics = N
velset = 0,0

[State 1005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 1004

[State 1005, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 1005, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 1005, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 1000, 8]
type = ChangeAnim2
trigger1 = Time >= 30
trigger1 = Anim = 1004
trigger1 = Vel Y > 0
value = 1005

;---------------------------------------------------------------------------
; Land from Mexican Typhoon
[Statedef 1006]
type    = A
movetype= H
physics = N
velset = 0,0

[State 3000, AfterImage]
type = AfterImage
trigger1 = AnimElem = 1
time = 1

[State 3000, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 1005, NotHitBy]
type = NotHitBy
trigger1 = Time < 10
value = SCA
time = 1

[State 1005, PlayerPush]
type = PlayerPush
trigger1 = Time < 10
value = 0

[State 1005, ScreenBound]
type = ScreenBound
trigger1 = Time < 10
value = 1
movecamera = 0,0

[State 1005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 1006

[State 1005, Turn]
type = Turn
trigger1 = Time > 15
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0

[State 1005, EnvShake]
type = EnvShake
trigger1 = Time = 0
time = 10
freq = 100
ampl = -5
phase = 10

[State 1005, PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = F7, 3

[State 1005, GameMakeAnim]
type = GameMakeAnim
trigger1 = Time = 0
value = 62
pos = 0, 0

[State 1005, 1]
type = PosSet
trigger1 = AnimElem = 1
y = 0

[State 1005, 2]
type = HitVelSet
trigger1 = Time = 10
x = 1
y = 1

[State 1005, 3]
type = VelAdd
trigger1 = Time > 10
y = .4

[State 1005, 4]
type = SelfState
trigger1 = Time > 15
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

;---------------------------------------------------------------------------
; Grabbed by Raging Typhoon
[Statedef 3005]
type    = A
movetype= H
physics = N
velset = 0,0

[State 3005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 3004

[State 3005, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 3005, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 3005, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 3005, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 3005, 8]
type = ChangeAnim2
trigger1 = Time > 40
trigger1 = Anim = 3004
trigger1 = Vel Y > 0
value = 3005

;---------------------------------------------------------------------------
; Land from Raging Typhoon
[Statedef 3006]
type    = A
movetype= H
physics = N
velset = 0,0

[State 1005, AfterImageTime]
type = AfterImageTime
trigger1 = Time < 10
time = 2

[State 1005, NotHitBy]
type = NotHitBy
trigger1 = Time < 20
value = SCA
time = 1

[State 1005, PlayerPush]
type = PlayerPush
trigger1 = Time < 20
value = 0

[State 1005, ScreenBound]
type = ScreenBound
trigger1 = Time < 20
value = 1
movecamera = 0,0

[State 1005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 1006

[State 1005, EnvShake]
type = EnvShake
trigger1 = Time = 0
time = 20
freq = 100
ampl = -5
phase = 20

[State 1005, PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = F7, 3

[State 1005, GameMakeAnim]
type = GameMakeAnim
trigger1 = Time = 0
value = 62
pos = 0, 0

[State 1005, Turn]
type = Turn
trigger1 = Time > 30
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0

[State 1005, 1]
type = PosSet
trigger1 = AnimElem = 1
y = 0

[State 1005, 2]
type = HitVelSet
trigger1 = Time = 20
x = 1
y = 1

[State 1005, 3]
type = VelAdd
trigger1 = Time > 20
y = .4

[State 1005, 4]
type = SelfState
trigger1 = Time > 30
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

;---------------------------------------------------------------------------
; Grabbed by Super Typhoon
[Statedef 4005]
type    = A
movetype= H
physics = N
velset = 0,0

[State 4005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 3004

[State 4005, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 4005, 2]
type = PlayerPush
trigger1 = 1
value = 0

[State 4005, ScreenBound]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 4005, AfterImageTime]
type = AfterImageTime
trigger1 = 1
time = 2

[State 4005, 8]
type = ChangeAnim2
trigger1 = Time >= 60
trigger1 = Anim = 3004
trigger1 = Vel Y > 0
value = 3005

;---------------------------------------------------------------------------
; Land from Super Typhoon
[Statedef 4006]
type    = A
movetype= H
physics = N
velset = 0,0

[State 4005, NotHitBy]
type = NotHitBy
trigger1 = Time < 20
value = SCA
time = 1

[State 4005, PlayerPush]
type = PlayerPush
trigger1 = Time < 20
value = 0

[State 4005, ScreenBound]
type = ScreenBound
trigger1 = Time < 20
value = 1
movecamera = 0,0

[State 4005, Anim2]
type = ChangeAnim2
trigger1 = Time = 0
value = 1006

[State 4005, EnvShake]
type = EnvShake
trigger1 = Time = 0
time = 20
freq = 100
ampl = -5
phase = 20

[State 1005, PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = F7, 3

[State 4005, GameMakeAnim]
type = GameMakeAnim
trigger1 = Time = 0
value = 62
pos = 0, 0

[State 4005, Turn]
type = Turn
trigger1 = Time > 30
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0

[State 4005, 1]
type = PosSet
trigger1 = AnimElem = 1
y = 0

[State 4005, 2]
type = HitVelSet
trigger1 = Time = 20
x = 1
y = 1

[State 4005, 3]
type = VelAdd
trigger1 = Time > 20
y = .4

[State 4005, 4]
type = SelfState
trigger1 = Time > 30
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground

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