
;---------------------------------------------------------------------------
; バイク轢き・地上弱
[Statedef 1000]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 120
velset = 0,0
anim = 1000
ctrl = 0
sprpriority = 2


[State 1010]
type = PlaySnd
trigger1 = Time = 0
value = 3, 13+random%2

[State 1010, 1]
type = PlaySnd
trigger1 = Time = 9
value = 0, 2

;--------------------------
[State 210, ]
type = veladd
trigger1 = AnimElem >= 4
x = 12

[State 210, ]
type = null;veladd
trigger1 = AnimElem >= 7
x = -3

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

[State 1010, 6] 
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X < 40
attr = S, SA
animtype  = Hard
damage    = 94, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1

[State 1010, 7] 
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X >= 40
attr = S, SA
animtype  = Hard
damage    = 89, 4
priority  = 5
guardflag = MA
pausetime = 15,15
sparkno = s6001                      
guard.sparkno = s6002 
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -7
air.velocity = -4,-2.5

[State 1010, 8]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
;---------------------------------------------------------------------------
; バイク轢き・地上強
[Statedef 1005]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 120
velset = 0,0
anim = 1000
ctrl = 0
sprpriority = 2


[State 1010]
type = PlaySnd
trigger1 = Time = 0
value = 3, 13+random%2

[State 1010, 1]
type = PlaySnd
trigger1 = Time = 9
value = 0, 2

;--------------------------
[State 210, ]
type = veladd
trigger1 = AnimElem >= 4
x = 16

[State 210, ]
type = null;veladd
trigger1 = AnimElem >= 7
x = -3

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

[State 1010, 6] 
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X < 40
attr = S, SA
animtype  = Hard
damage    = 94, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1

[State 1010, 7] 
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X >= 40
attr = S, SA
animtype  = Hard
damage    = 89, 4
priority  = 5
guardflag = MA
pausetime = 15,15
sparkno = s6001                    
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -7
air.velocity = -4,-2.5

[State 1010, 8]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; バイク轢き・空中弱
[Statedef 1050]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 110
velset = 3,0
anim = 1000
ctrl = 0
sprpriority = 2


[State 1010]
type = PlaySnd
trigger1 = Time = 3
value = 3, 13+random%2

[State 1000]
type = PlaySnd
trigger1 = Time = 3
value = 0, 2

[State 1000, 2]
type = PosAdd
trigger1 = AnimElem = 2
x = 20

[State 1000, 3]
type = PosAdd
trigger1 = AnimElem = 3
trigger2 = AnimElem = 12
x = 10

[State 1000, 4]
type = PosAdd
trigger1 = AnimElem = 5
x = 5

[State 1000, 5] ;相手が近い時
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X < 40
attr = S, SA
animtype  = Hard
damage    = 85, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002 
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1

[State 1000, 6] ;相手が遠い時
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X >= 40
attr = S, SA
animtype  = Hard
damage    = 80, 4
priority  = 5
guardflag = MA
pausetime = 15,15
sparkno = s6001                    
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -7
air.velocity = -4,-2.5

[State 1000, 6]
type = PosAdd
trigger1 = AnimElem = 8
x = -5

[State 1000, 7]
type = ChangeAnim
trigger1 =AnimTime = 0
value = 1000
elem = 13

[State 1000, 7]
type = null;ChangeState
trigger1 = AnimTime = 0
value = 50
ctrl = 1

;---------------------------------------------------------------------------
; バイク轢き・空中強
[Statedef 1055]
type    = A
movetype= A
physics = A
juggle  = 4
poweradd= 110
velset = 5,0
anim = 1000
ctrl = 0
sprpriority = 2


[State 1010]
type = PlaySnd
trigger1 = Time = 3
value = 3, 13+random%2

[State 1000]
type = PlaySnd
trigger1 = Time = 3
value = 0, 2

[State 1000, 2]
type = PosAdd
trigger1 = AnimElem = 2
x = 20

[State 1000, 3]
type = PosAdd
trigger1 = AnimElem = 3
trigger2 = AnimElem = 12
x = 10

[State 1000, 4]
type = PosAdd
trigger1 = AnimElem = 5
x = 5

[State 1000, 5] ;相手が近い時
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X < 40
attr = S, SA
animtype  = Hard
damage    = 85, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                      
guard.sparkno = s6002 

sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1

[State 1000, 6] ;相手が遠い時
type = HitDef
trigger1 = AnimElem = 5
trigger1 = p2bodydist X >= 40
attr = S, SA
animtype  = Hard
damage    = 80, 4
priority  = 5
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002  
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -7
air.velocity = -4,-2.5

[State 1000, 6]
type = PosAdd
trigger1 = AnimElem = 8
x = -5

[State 1000, 7]
type = ChangeAnim
trigger1 =AnimTime = 0
value = 1000
elem = 13

[State 1000, 7]
type = null;ChangeState
trigger1 = AnimTime = 0
value = 50
ctrl = 1

;---------------------------------------------------------------------------
; バイク轢き・ＥＸ
[Statedef 1020]
type    = S
movetype= A
physics = S
juggle  = 6
poweradd= -1000
velset = 6,0
anim = 1020
ctrl = 0
sprpriority = 2



[State 195]
type = PlaySnd
trigger1 = Time = 3
value = 3, 2

[State 1010, 1]
type = PlaySnd
trigger1 = Time = 5
value = 0, 3
channel = 2


[State 1020, Afterimage]
type = AfterImage
trigger1 = Time = 0
length = 13
PalBright   =  30, 30,  0
PalContrast =  70, 70, 20
PalAdd      = -10,-10,-10
PalMul      = .85,.85,.50
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 2

[State 1020, Afterimage]
type = AfterImageTime
trigger1 = AnimElemTime(8) < 0
time = 2

[State 1020, Blink Yellow]
type = PalFX
trigger1 = Time = 0
time = 20
add = 32,16,0
sinadd = 64,32,5,3

[State 1020, 1]
type = PlaySnd
trigger1 = Time = 2
value = 0, 3


;--------------------------
[State 210, ]
type = veladd
trigger1 = AnimElem >= 4
x = 16

[State 210, ]
type = veladd
trigger1 = AnimElem >= 6
x = -.25

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

[State 1020, 6]
type = HitDef
trigger1 = animelem = 6 || animelem = 7 || animelem = 8 || animelem = 9 || animelem = 10
trigger2 = animelem = 11 || animelem = 12 || animelem = 13
attr = S, SA
animtype  = Hard
damage    = 40, 5
getpower  = 0
priority  = 5
guardflag = MA
pausetime = 12,14
sparkno = s6001                  
guard.sparkno = s6002
sparkxy = -32,-60
hitsound   = s6,3
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 20
ground.velocity = -4,-0
guard.velocity = -2
air.velocity = -4,-0
airguard.velocity = -2, -0
;fall = 1
;p2stateno = 1025

[State 210, ]
type = posadd
trigger1 = AnimElem = 13
x = 26


[State 1020, 7]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------------------
; 攻撃をくらった相手の状態

[Statedef 1025]
type    = A
movetype= H
physics = N
velset = 0,0

[State 1025, Anim] ;２Ｐのスプライトステートを変更しています
type = ChangeAnim2
trigger1 = 1
value = 1025

[State 1025, State]
type = ChangeState
trigger1 = HitShakeOver = 1
value = 1026

;------------------
; 飛んでいく相手のステート

[Statedef 1026]
type    = A
movetype= H
physics = N

[State 1026, Velocity]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 1026, Gravity]
type = VelAdd
trigger1 = 1
y = .45

[State 1026, No scroll]
type = ScreenBound
triggerall = Pos y < -15
trigger1 = BackEdgeBodyDist < 65
trigger2 = FrontEdgeBodyDist < 65
value = 1
movecamera = 0,1

[State 1026, Hit wall]
type = ChangeState
triggerall = Pos y < -15
trigger1 = BackEdgeBodyDist <= 20
trigger2 = FrontEdgeBodyDist <= 20
value = 1027

[State 1026, Hit ground]
type = SelfState
trigger1 = (Vel y > 0) && (Pos y >= 0)
value = 5100

;------------------
; 飛んでいった相手の壁に当たる状態のステート

[Statedef 1027]
type    = A
movetype= H
physics = N

[State 1027, Turn]
type = Turn
trigger1 = (Time = 0) && (FrontEdgeBodyDist <= 30)

[State 1027, Pos]
type = PosAdd
trigger1 = Time = 0
x = 15 - BackEdgeBodyDist

[State 1027, Stop moving]
type = PosFreeze
trigger1 = 1
x = 1
y = 1

[State 1027, No scroll]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,1

[State 1027, Spark]
type = Explod
trigger1 = Time = 0
anim = F72
pos = 0, floor (screenpos y) - 50
postype = back
sprpriority = 3

[State 1027, Anim]
type = ChangeAnim2
trigger1 = Time = 0
value = 1027

[State 1027, Sound]
type = PlaySnd
trigger1 = Time = 0
value = F7,0

[State 1027, State]
type = ChangeState
trigger1 = AnimTime = 0
value = 1028

;------------------
; 壁に当たった相手が落ちるステート

[Statedef 1028]
type    = A
movetype= H
physics = N

[State 1028, 1]
type = NotHitBy
trigger1 = 1
value = , NA, NP

[State 1028, Vel Y]
type = VelSet
trigger1 = Time = 0
y = -6

[State 1028, Vel X]
type = VelSet
trigger1 = Time = 0
x = 1.6

[State 1028, Turn]
type = Turn
trigger1 = (Time = 0) && (BackEdgeDist < 30)

[State 1028, Gravity]
type = VelAdd
trigger1 = 1
y = .35

[State 1028, Anim 5050] 
type = ChangeAnim
trigger1 = Time = 0
trigger1 = !SelfAnimExist(5052)
value = 5050

[State 1028, Anim 5052] 
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5052)
value = 5052

[State 1028, Anim 5060] 
type = ChangeAnim
trigger1 = Vel Y > -2
trigger1 = Anim = 5050
trigger1 = SelfAnimExist(5060)
persistent = 0
value = 5060

[State 1028, Anim 5062] 
type = ChangeAnim
trigger1 = Vel Y > -2
trigger1 = Anim = 5052
trigger1 = SelfAnimExist(5062)
persistent = 0
value = 5062

[State 1028, Hit ground]
type = SelfState
trigger1 = (Vel y > 0) && (Pos y >= 0)
value = 5100


;---------------------------------------------------------------------------
; ジャンプ轢き潰し　弱
[Statedef 1030,出だし]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 120
velset = 3,0
;anim = 1030
ctrl = 0
sprpriority = 2

;--------------------------
[State 1010]
type = PlaySnd
trigger1 = Time = 3
value = 3, 15


;--------------------------
x = 5

[State 1010, 5]
type = Veladd
trigger1 = time >= 0
x = .7

;--------------------------
[State 1027, State]
type = ChangeState
trigger1 = time = 6
value = 1031


;--------------------------
; ジャンプ轢き潰し
[Statedef 1031,上昇]
type    = A
movetype= A
physics = A
juggle  = 14
poweradd= 0
velset = 3,-8
anim = 1030
ctrl = 0
sprpriority = 2


;--------------------------
[State 1010, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0, 2

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

[State 1010, 5]
type = Veladd
trigger1 = vel Y >= 0
y = .25

;--------------------------
[State 1010, 6] 
type = HitDef
trigger1 = animelem <= 2
;trigger1 = p2bodydist X < 40
attr = A, SA
animtype  = Hard
damage    = 96, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1
persistent=0

;---------------------------------------------------------------------------
; ジャンプ轢き潰し　強
[Statedef 1035,出だし]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 120
velset = 3,0
;anim = 1030
ctrl = 0
sprpriority = 2




;--------------------------
[State 1010]
type = PlaySnd
trigger1 = Time = 3
value = 3, 15


;--------------------------
x = 5

[State 1010, 5]
type = Veladd
trigger1 = time >= 0
x = .7

;--------------------------
[State 1027, State]
type = ChangeState
trigger1 = time = 6
value = 1036


;--------------------------
; ジャンプ轢き潰し1
[Statedef 1036,上昇]
type    = A
movetype= A
physics = A
juggle  = 14
poweradd= 0
velset = 3,-10
anim = 1030
ctrl = 0
sprpriority = 2


;--------------------------
[State 1010, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0, 2

;--------------------------
[State 1010, 5]
type = Veladd
trigger1 = vel Y >= 0
y = .25

;--------------------------
[State 1030,上昇] 
type = HitDef
;triggerall = animelem <= 3
trigger1 = vel Y < 0
attr = A, SA
animtype  = Hard
damage    = 64, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001                     
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -2,-7
air.velocity = -2,-6
fall = 1
persistent=0

;--------------------------
[State 1010, 5]
type = ChangeState
trigger1 = vel Y >= 0
value = 1037


;--------------------------
; ジャンプ轢き潰し1
[Statedef 1037,下降]
type    = A
movetype= A
physics = A
juggle  = 14
poweradd= 0
anim = 1031
ctrl = 0
sprpriority = 2



;--------------------------
[State 1010, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0, 2

;--------------------------
[State 1010]
type = PlaySnd
trigger1 = movecontact
value = 3, 16
persistent = 0 

;--------------------------
[State 1010, 5]
type = Veladd
trigger1 = vel Y >= 0
y = .25

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

[State 1030,下降] 
type = HitDef
triggerall = stateno = 1037
trigger1 = vel Y > 3
attr = A, SA
animtype  = Hard
damage    = 64, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = -1;s6001                     
guard.sparkno = -1;s6002
sparkxy = 0,0
random = 12,0
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -2,3.5
air.velocity = -2,3
fall = 1
persistent=0

[State 191];----------------------------スパーク
type = Explod
trigger1 = movehit
anim = 6001
ID = 6001
facing = 1       
vfacing = 1   
bindtime = 1  
pos = 0, 0
random = 8,8  
postype = p1    
;scale = .5,.5    
sprpriority = 4   
ownpal = 1  
ignorehitpause = 1
persistent = 0 

[State 191];----------------------------ガードスパーク
type = Explod
trigger1 = MoveGuarded
anim = 6002
ID = 6002
facing = 1       
vfacing = 1   
bindtime = 1  
pos = 0, 0
random = 8,8  
postype = p1    
;scale = .5,.5    
sprpriority = 4   
ownpal = 1  
ignorehitpause = 1
persistent = 0 
;-------------------------
[State 1010, 5]
type = ChangeState
trigger1 = movecontact
value = 1038


;--------------------------
; ジャンプ轢き潰し3
[Statedef 1038,再上昇]
type    = A
movetype= A
physics = A
juggle  = 14
poweradd= 0
anim = 1037
ctrl = 0
sprpriority = 2

[State 1030,キャラ幅]
type = Width
trigger1 = 1
edge = 32,32
player = 0,0

;--------------------------
[State 1010, 1]
type = PlaySnd
trigger1 = Time = 0
value = 0, 2

;--------------------------
[State 1010]
type = PlaySnd
trigger1 = movecontact
value = 3, 16
persistent = 0 
;--------------------------
[State 1010, 5]
type = Velset
trigger1 = Time = 0
y = -8

[State 1010, 5]
type = Veladd
trigger1 = Time = 0
trigger1 = vel X > 0
x = -.75

[State 1010, 5]
type = Veladd
trigger1 = vel Y >= 0
y = .25

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

[State 1030,下降] 
type = HitDef
triggerall = stateno = 1038
trigger1 = time >= 10
attr = A, SA
animtype  = Hard
damage    = 48, 4
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = -1;s6001                     
guard.sparkno = -1;s6002
sparkxy = 0,0
hitsound   = s6,2
guardsound = s7,2
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4,-3.5
air.velocity = -4,-3
fall = 1
persistent=0

[State 191];----------------------------スパーク
type = Explod
trigger1 = movehit
anim = 6001
ID = 6001
facing = 1       
vfacing = 1   
bindtime = 1  
pos = 0, 0
random = 8,8  
postype = p1    
;scale = .5,.5    
sprpriority = 4   
ownpal = 1  
ignorehitpause = 1
persistent = 0 

[State 191];----------------------------ガードスパーク
type = Explod
trigger1 = MoveGuarded
anim = 6002
ID = 6002
facing = 1       
vfacing = 1   
bindtime = 1  
pos = 0, 0
random = 8,8  
postype = p1    
;scale = .5,.5    
sprpriority = 4   
ownpal = 1  
ignorehitpause = 1
persistent = 0 
;-------------------------


[State 1010, 5]
type = ChangeState
trigger1 = movecontact
value = 1038

