;-| AI |----------------------------
[Command]
name = "AI_1"
command = a,a,a,a
time = 0

[Command]
name = "AI_2"
command = a,a,a,b
time = 0

[Command]
name = "AI_3"
command = a,a,a,c
time = 0

[Command]
name = "AI_4"
command = a,a,b,a
time = 0

[Command]
name = "AI_5"
command = a,a,b,b
time = 0

[Command]
name = "AI_6"
command = a,a,b,c
time = 0

[Command]
name = "AI_7"
command = a,a,c,a
time = 0

[Command]
name = "AI_8"
command = a,a,c,b
time = 0

[Command]
name = "AI_9"
command = a,a,c,c
time = 0

[Command]
name = "AI_10"
command = a,b,a,a
time = 0

[Command]
name = "AI_11"
command = a,b,a,b
time = 0

[Command]
name = "AI_12"
command = a,b,a,c
time = 0

[Command]
name = "AI_13"
command = a,b,b,a
time = 0

[Command]
name = "AI_14"
command = a,b,b,b
time = 0

[Command]
name = "AI_15"
command = a,b,b,c
time = 0

[Command]
name = "AI_16"
command = a,b,c,a
time = 0

[Command]
name = "AI_17"
command = a,b,c,b
time = 0

[Command]
name = "AI_18"
command = a,b,c,c
time = 0

[Command]
name = "AI_19"
command = a,c,a,a
time = 0

[Command]
name = "AI_20"
command = a,c,a,b
time = 0

[Command]
name = "AI_21"
command = a,c,a,c
time = 0

[Command]
name = "AI_22"
command = a,c,b,a
time = 0

[Command]
name = "AI_23"
command = a,c,b,b
time = 0

[Command]
name = "AI_24"
command = a,b,b,c
time = 0

[Command]
name = "AI_25"
command = a,c,c,a
time = 0

[Command]
name = "AI_26"
command = a,c,c,b
time = 0

[Command]
name = "AI_27"
command = a,c,c,c
time = 0

[Command]
name = "AI_28"
command = b,a,a,a
time = 0

[Command]
name = "AI_29"
command = b,a,a,b
time = 0

[Command]
name = "AI_30"
command = b,a,a,c
time = 0

[Command]
name = "AI_31"
command = b,a,b,a
time = 0

[Command]
name = "AI_32"
command = b,a,b,b
time = 0

[Command]
name = "AI_33"
command = b,a,b,c
time = 0

[Command]
name = "AI_34"
command = b,a,c,a
time = 0

[Command]
name = "AI_35"
command = b,a,c,b
time = 0

[Command]
name = "AI_36"
command = b,a,c,c
time = 0

[Command]
name = "AI_37"
command = b,b,a,a
time = 0

[Command]
name = "AI_38"
command = b,b,a,b
time = 0

[Command]
name = "AI_39"
command = b,b,a,c
time = 0

[Command]
name = "AI_40"
command = b,b,b,a
time = 0

[Command]
name = "AI_41"
command = b,b,b,b
time = 0

[Command]
name = "AI_42"
command = b,b,b,c
time = 0

[Command]
name = "AI_43"
command = b,b,c,a
time = 0

[Command]
name = "AI_44"
command = b,b,c,b
time = 0

[Command]
name = "AI_45"
command = b,b,c,c
time = 0

[Command]
name = "AI_46"
command = b,c,a,a
time = 0

[Command]
name = "AI_47"
command = b,c,a,b
time = 0

[Command]
name = "AI_48"
command = b,c,a,c
time = 0

[Command]
name = "AI_49"
command = b,c,b,a
time = 0

[Command]
name = "AI_50"
command = b,c,b,b
time = 0

;-| 超必殺技 |--------------------------------------------------------
[Command]
name = "飛翔白麗"
command = ~D,DF,F,y+b
time = 35

[Command]
name = "空舞燕離斬"
command = ~D,DF,F,DF,D,DB,B,b
time = 35

[Command]
name = "断己相殺拳"
command = ~D,DF,F,D,DF,F,y
time = 35

[Command]
name = "南斗凄気網波"
command = ~D,DF,F,D,DF,F,x
time = 35

[Command]
name = "無想転生"
Command = ~D,DB,B,D,DB,B,a
time = 35

;-| 必殺技 |------------------------------------------------------
[Command]
name = "南斗虎破龍"
command = ~D,DB,B,y


[Command]
name = "南斗撃星嚇舞"
command = ~F,D,DF,y

[Command]
name = "南斗撃星嚇舞"
command = ~F,D,DF,x


[Command]
name = "⊂二二（　＾ω＾）⊃"
command = ~D,DF,F,y
time = 25


[Command]
name = "南斗迅襲嘴斬"
command = ~D,DB,B,b

[Command]
name = "南斗迅襲嘴斬"
command = ~D,DF,F,b


[Command]
name = "飛燕流舞"
command = ~D,DF,F,a

[Command]
name = "飛燕流舞"
command = ~D,DF,F,x


[Command]
name = "南斗狂鶴翔舞"
command = ~D,DB,B,y

[Command]
name = "緊急回避前"
command = x+a
time = 1

[Command]
name = "緊急回避後"
command = /$B,x+a
time = 1

;-| ２回押し技 |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

[Command]
name = "BB"     
command = B, B
time = 10

;-| ２・３個の同時押し技 |-----------------------------------------------
[Command]
name = "ゲージ溜め発動"
command = z+c
time = 1

[Command]
name = "recovery"
command = x+y
time = 1

[Command]
name = "グレイブシュート"
command = x+y
time = 1

[Command]
name = "へヴィーストライク"
command = x+a
time = 1

[Command]
name = "バニシングストライク"
command = y+b
time = 1

[Command]
name = "掴み投げ"
command = a+b
time = 1


[Command]
name = "ダッシュ"
command = F, F
time = 10

[Command]
name = "ダッシュ"
command = UF,N, F
time = 18


[Command]
name = "バックダッシュ"
command = B, B
time = 10

[Command]
name = "バックダッシュ"
command = UB,N, B
time = 18




[Command]
name = "投げ"
command = y+b
time = 1

[Command]
name = "ふっ飛ばし"
command = c
time = 1

[Command]
name = "おしっぱなしx"
command = /$x
time = 1

[Command]
name = "おしっぱなしy"
command = /$y
time = 1

[Command]
name = "おしっぱなしa"
command = /$a
time = 1

[Command]
name = "おしっぱなしb"
command = /$b
time = 1

[Command]
name = "おしっぱなしz"
command = /$z
time = 1

[Command]
name = "おしっぱなしc"
command = /$c
time = 1

;-| 方向とボタンで出す技 |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

;-| ボタン設定（いじらない）|---------------------------------------------------------
[Command]
name = "DF"
command = DF
time = 1

[Command]
name = "UF"
command = UF
time = 1

[Command]
name = "U"
command = U
time = 1

[Command]
name = "D"
command = D
time = 1

[Command]
name = "B"
command = B
time = 1

[Command]
name = "F"
command = F
time = 1



[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| 押しっぱなし設定（いじらない）-------------------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

[Command]
name = "holdup" 
command = /$U
time = 1

[Command]
name = "holddown"
command = /$D
time = 1


; 下の記述↓は絶対に消さないでください。
[Statedef -1]

;===========================================================================
;基本コマンド
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;飛翔白麗
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2500
triggerall = !var(59)
triggerall = command = "飛翔白麗"
triggerall = statetype != A
triggerall = var(4) = 7
trigger1 = ctrl

trigger2 = stateno = 500

;---------------------------------------------------------------------------
;空舞燕離斬
[State -1, a]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "空舞燕離斬"
triggerall = power >= 1000
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 40
trigger7 = stateno = 1400 && movecontact && var(5) = 0

trigger8 = stateno = 500
;---------------------------------------------------------------------------
;断己相殺拳
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2100
triggerall = !var(59)
triggerall = command = "断己相殺拳"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact

trigger19= stateno = 500
;---------------------------------------------------------------------------
;キリサケ
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2000
triggerall = !var(59)
triggerall = command = "南斗凄気網波"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact

trigger19= stateno = 500

;----------------------------------
;無想転生
[State -1, a]
type = ChangeState
value = 2400
triggerall = !var(59)
triggerall = !var(40)
triggerall = command = "無想転生"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;南斗虎破龍
[State -1, a]
type = ChangeState
value = 1500
triggerall = !var(59)
triggerall = command = "南斗虎破龍"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact

trigger19= stateno = 500
ignorehitpause = 1

;---------------------------------------------------------------------------
;南斗撃星嚇舞・空中
[State -1, a]
type = ChangeState
value = 1420
triggerall = !var(59)
triggerall = command = "南斗撃星嚇舞"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 40
trigger7 = stateno = 1400 && movecontact && var(5) = 0

trigger8 = stateno = 500
ignorehitpause = 1
;---------------------------------------------------------------------------
;南斗撃星嚇舞・地上
[State -1, a]
type = ChangeState
value = 1400
triggerall = !var(59)
triggerall = command = "南斗撃星嚇舞"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact

trigger19= stateno = 500
ignorehitpause = 1

;バグ昇龍？俺はバグが大嫌いなんだ[-=・=-][-=・=-]

;---------------------------------------------------------------------------
;南斗鶴翼迅斬
[State -1, a]
type = ChangeState
value = 1300
triggerall = !var(59)
triggerall = command = "⊂二二（　＾ω＾）⊃"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 40
trigger7 = stateno = 1400 && movecontact && var(5) = 0
trigger8 = stateno = 500
trigger9 = stateno = 1300 && movecontact
ignorehitpause = 1
;---------------------------------------------------------------------------
;南斗迅襲嘴斬
[State -1, a]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = command = "南斗迅襲嘴斬"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 1400 && movecontact && var(5) = 0

trigger7 = stateno = 500
ignorehitpause = 1
;---------------------------------------------------------------------------
;飛燕流舞
[State -1, a]
type = ChangeState
value = 1100
triggerall = !var(59)
triggerall = command = "飛燕流舞"
triggerall = statetype = A
triggerall = pos y <= -20
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 1400 && movecontact && var(5) = 0

trigger7 = stateno = 500
ignorehitpause = 1
;---------------------------------------------------------------------------
;南斗狂鶴翔舞
[State -1, a]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = command = "南斗狂鶴翔舞"
triggerall = statetype = A
triggerall = numhelper(1010) = 0
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 1400 && movecontact && var(5) = 0

trigger7 = stateno = 500
ignorehitpause = 1

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;グレイブシュート
[State -1, a]
type = ChangeState
value = 300
triggerall = !var(59)
triggerall = command = "グレイブシュート"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact
trigger19= stateno = 500
ignorehitpause = 1

;---------------------------------------------------------------------------
;へヴィーストライク
[State -1, a]
type = ChangeState
value = 310
triggerall = !var(59)
triggerall = command = "へヴィーストライク"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact
trigger19= stateno = 500
ignorehitpause = 1

;---------------------------------------------------------------------------
;バニシングストライク
[State -1, a]
type = ChangeState
value = 320
triggerall = !var(59)
triggerall = command = "バニシングストライク"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 225 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 240 && movecontact
trigger11= stateno = 245 && movecontact
trigger12= stateno = 250 && movecontact
trigger13= stateno = 255 && movecontact
trigger14= stateno = 400 && movecontact
trigger15= stateno = 410 && movecontact
trigger16= stateno = 420 && movecontact
trigger17= stateno = 430 && movecontact
trigger18= stateno = 440 && movecontact
trigger19= stateno = 500
ignorehitpause = 1

;---------------------------------------------------------------------------
;特殊技その１
[State -1, a]
type = ChangeState
value = 250
triggerall = !var(59)
triggerall = command = "x"
triggerall = command = "holdfwd"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 230 && movecontact
trigger7 = stateno = 235 && movecontact
trigger8 = stateno = 240 && movecontact
trigger9 = stateno = 245 && movecontact
trigger10= stateno = 400 && movecontact
trigger11= stateno = 410 && movecontact
trigger12= stateno = 430 && movecontact
trigger13= stateno = 440 && movecontact
trigger14= stateno = 500
ignorehitpause = 1

;---------------------------------------------------------------------------
;特殊技その２
[State -1, a]
type = ChangeState
value = 650
triggerall = !var(59)
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger3 = stateno = 610
trigger4 = stateno = 630
trigger5 = stateno = 640
trigger6 = stateno = 1400 && movecontact && var(5) = 0

trigger7 = stateno = 500
ignorehitpause = 1

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;ガードキャンセル攻撃
[State -1, 290]
type = ChangeState
value = 290
triggerall = !var(59)
triggerall = command = "バニシングストライク"
triggerall = command = "holdfwd"
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151

;---------------------------------------------------------------------------
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = !var(59)
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = !var(59)
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;空中ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 110
triggerall = !var(59)
triggerall = stateno != 110
triggerall = stateno != 111
triggerall = stateno != 115
triggerall = command = "ダッシュ"
triggerall = pos y <= -30
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1200 && movecontact
trigger3 = stateno = 1210

;---------------------------------------------------------------------------
;空中バックダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 115
triggerall = !var(59)
triggerall = stateno != 110
triggerall = stateno != 111
triggerall = stateno != 115
triggerall = command = "バックダッシュ"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1200 && movecontact
trigger3 = stateno = 1210

;---------------------------------------------------------------------------
;投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = !var(59)
trigger1 = ctrl
trigger1 = command = "holdfwd"|| command = "holdback"
trigger1 = command = "y"
trigger1 = command != "holddown"
trigger1 = statetype != A
trigger1 = p2bodydist X < 20
trugger1 = p2movetype != H
trigger1 = p2statetype != A
trigger1 = enemy,stateno != [120,159]


;---------------------------------------------------------------------------
;掴み投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 850
triggerall = !var(59)
trigger1 = ctrl
trigger1 = command = "掴み投げ"
trigger1 = statetype != A

;---------------------------------------------------------------------------
;空中投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 870
triggerall = !var(59)
trigger1 = ctrl
trigger1 = command = "holdfwd"|| command = "holdback"
trigger1 = command = "y"
trigger1 = command != "holddown"
trigger1 = statetype = A
trigger1 = p2bodydist X < 20
trugger1 = enemy,movetype != H
trigger1 = enemy,statetype = A
trigger1 = enemy,stateno != [120,159]

;===========================================================================
;---------------------------------------------------------------------------
;ブースト
[State -1, Stand Light Punch]
type = ChangeState
value = 500
triggerall = !var(59)
triggerall = command = "z"
triggerall = var(16) >= 20
trigger1 = ctrl
trigger2 = stateno = 200 && animelem = 3,>=0
trigger3 = stateno = 205 && animelem = 3,>=0
trigger4 = stateno = 210 && animelem = 4,>=0
trigger5 = stateno = 215 && animelem = 4,>=0
trigger6 = stateno = 230 && animelem = 3,>=0
trigger7 = stateno = 235 && animelem = 3,>=0
trigger8 = stateno = 240 && animelem = 5,>=0
trigger9 = stateno = 245 && animelem = 2,>=0
trigger10= stateno = 300 && animelem = 6,>=0
trigger11= stateno = 310 && animelem = 7,>=0
trigger12= stateno = 400 && animelem = 3,>=0
trigger13= stateno = 410 && animelem = 5,>=0
trigger14= stateno = 430 && animelem = 3,>=0
trigger15= stateno = 440 && animelem = 5,>=0
trigger16= stateno = 600 && animelem = 3,>=0
trigger17= stateno = 610 && animelem = 3,>=0
trigger18= stateno = 630 && animelem = 3,>=0
trigger19= stateno = 640 && animelem = 4,>=0
trigger20= stateno = 801 && animelemtime(8) >= 6
trigger21= stateno = 851 && animelem = 7,>=0
trigger22= stateno = 1000 && animelem = 6,>=0
trigger23= stateno = 1100 && animelem = 6,>=0
trigger24= stateno = 1210
trigger25= stateno = 1211
trigger26= stateno = 1300 && movecontact
trigger27= stateno = 1400 && animelem = 4,>=0
trigger28= stateno = 1402
trigger29= stateno = 1420 && animelem = 4,>=0
trigger30= stateno = 1501 && animelem = 1,>=0
trigger31= stateno = 1502
trigger32= stateno = 1520 && animelem = 4,>=0
trigger33= stateno = 250 && animelem = 5,>=0
trigger34= stateno = 651
ignorehitpause = 1



;---------------------------------------------------------------------------
;遠距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = P2dist X >50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact

trigger5 = stateno = 500

;---------------------------------------------------------------------------
;近距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 205
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = P2dist X <=50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 400 && movecontact

trigger4 = stateno = 500

;---------------------------------------------------------------------------
;遠距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2dist X >50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 235 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 215 && movecontact
trigger9 = stateno = 410 && movecontact

trigger10= stateno = 500


;---------------------------------------------------------------------------
;遠距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = stateno = 215 && movecontact

;---------------------------------------------------------------------------
;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall = !var(59)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2dist X <=50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 235 && movecontact
trigger7 = stateno = 430 && movecontact

trigger8 = stateno = 500

;---------------------------------------------------------------------------
;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2dist X >50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 235 && movecontact
trigger6 = stateno = 430 && movecontact

trigger7 = stateno = 500

;---------------------------------------------------------------------------
;近距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 235
triggerall = !var(59)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2dist X <=50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 430 && movecontact

trigger6 = stateno = 500

;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2dist X >50
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && animelem = 3,>=0
trigger3 = stateno = 205 && animelem = 3,>=0
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 215 && movecontact
trigger6 = stateno = 230 && animelem = 3,>=0
trigger7 = stateno = 235 && animelem = 3,>=0

trigger8 = stateno = 500

;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -1, Stand Strong Punch]
type = ChangeState
value = 240
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = stateno = 245 && movecontact

;---------------------------------------------------------------------------
;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2dist X <=50
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 430 && movecontact
trigger6 = stateno = 215 && movecontact
trigger7 = stateno = 410 && movecontact

trigger6 = stateno = 500

;---------------------------------------------------------------------------
;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = stateno = 215 && movecontact

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 199
triggerall = !var(59)
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = !var(59)
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact

trigger5 = stateno = 500

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = !var(59)
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 210 && movecontact
trigger6 = stateno = 215 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 430 && movecontact

trigger11= stateno = 500

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = !var(59)
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 235 && movecontact
trigger7 = stateno = 430 && movecontact

trigger8 = stateno = 500

;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = !var(59)
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact
trigger4 = stateno = 400 && movecontact
trigger5 = stateno = 210 && movecontact
trigger6 = stateno = 215 && movecontact
trigger7 = stateno = 410 && movecontact
trigger8 = stateno = 230 && movecontact
trigger9 = stateno = 235 && movecontact
trigger10= stateno = 430 && movecontact
trigger11= stateno = 240 && movecontact
trigger12= stateno = 245 && movecontact

trigger13= stateno = 500

;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = !var(59)
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl

trigger2 = stateno = 500

;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = !var(59)
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

trigger4 = stateno = 500

;---------------------------------------------------------------------------
;空中弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = !var(59)
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact

trigger3 = stateno = 500
;---------------------------------------------------------------------------
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = !var(59)
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact
trigger4 = stateno = 610 && movecontact

trigger5 = stateno = 500

;以下AI

[State -3]
type = Varset
triggerall = !var(59)
trigger1 = command = "AI_1" || command = "AI_2" || command = "AI_3" || command = "AI_4" || command = "AI_5"
trigger2 = command = "AI_6" || command = "AI_7" || command = "AI_8" || command = "AI_9" || command = "AI_10"
trigger3 = command = "AI_11" || command = "AI_12" || command = "AI_13" || command = "AI_14" || command = "AI_15"
trigger4 = command = "AI_16" || command = "AI_17" || command = "AI_18" || command = "AI_19" || command = "AI_20"
trigger5 = command = "AI_21" || command = "AI_22" || command = "AI_23" || command = "AI_24" || command = "AI_25"
trigger6 = command = "AI_26" || command = "AI_27" || command = "AI_28" || command = "AI_29" || command = "AI_30"
trigger7 = command = "AI_31" || command = "AI_32" || command = "AI_33" || command = "AI_34" || command = "AI_35"
trigger8 = command = "AI_36" || command = "AI_37" || command = "AI_38" || command = "AI_39" || command = "AI_40"
trigger9 = command = "AI_41" || command = "AI_42" || command = "AI_43" || command = "AI_44" || command = "AI_45"
trigger10 = command = "AI_46" || command = "AI_47" || command = "AI_48" || command = "AI_49" || command = "AI_50"
var(59) = 10;ここの数字を1〜10に変えてレベル設定

;---------------------------------------------
[State -3];テーレッテー用
Type = varset
Trigger1 = win
Trigger1 = !fvar(36)
fvar(36)=1
IgNoreHitPause = 1
;---------------------------------------------
;ジャンプ
[State -3]
type = ChangeState
value = 40
triggerall = var(59) && roundstate = 2
triggerall = statetype != A && ctrl
triggerall = random < var(59)*5
trigger1 = p2movetype = A
trigger1 = p2bodydist X > 70/2
trigger2 = p2statetype = L
trigger2 = p2bodydist X > 110/2
trigger2 = p2stateno != 5120

;---------------------------------------------
;立ちガード
[State -3]
type = ChangeState
value = 130
triggerall = var(59) && roundstate = 2
triggerall = p2statetype != C
triggerall = inguarddist
trigger1 = statetype != A && ctrl
trigger1 = random < var(59)*100

;---------------------------------------------
;屈みガード
[State -3]
type = ChangeState
value = 131
triggerall = var(59) && roundstate = 2
triggerall = p2statetype = C
triggerall = inguarddist
trigger1 = statetype != A && ctrl
trigger1 = random < var(59)*100

;---------------------------------------------
;空中ガード
[State -3]
type = ChangeState
value = 132
triggerall = var(59) && roundstate = 2
triggerall = inguarddist
trigger1 = statetype = A && ctrl
trigger1 = random < var(59)*100

;===========================================================================
;---------------------------------------------------------------------------
;飛翔白麗
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2500
triggerall = var(59) && roundstate = 2
triggerall = var(57)
triggerall = statetype != A
triggerall = P2life>400||fvar(36)||RoundsExisted>2
triggerall = var(4) = 7
trigger1 = ctrl || stateno = 500
trigger1 = p2bodydist X = [-20/2,60/2]
trigger1 = prevstateno = 851 || var(11) && p2stateno = [551,553]
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;空舞燕離斬
[State -1, a]
type = ChangeState
value = 2200
triggerall = var(59)
triggerall = power >= 1000
triggerall = statetype = A
trigger1 = stateno = 610 && movehit > 1 || stateno = 640 && movehit
trigger1 = var(4) < 7
trigger1 = !var(9) && !var(11)
trigger1 = p2statetype = A
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;断己相殺拳
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2100
triggerall = var(59) && roundstate = 2
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger1 = var(4) < 7
trigger1 = p2bodydist X > 70/2
trigger1 = prevstateno = 5120
trigger1 = random < var(59)*5

;---------------------------------------------------------------------------
;キリサケ
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2000
triggerall = var(59) && roundstate = 2
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger1 = var(11)
trigger1 = p2bodydist X = [-5/2,150/2]
trigger1 = target,gethitvar(hitcount) > 6
trigger1 = random < var(59)*100

[State -1 ,buppa]
type = ChangeState
value = 2000
triggerall = var(59) && roundstate = 2
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X = [-5,10]
trigger1 = p2bodydist Y = [-5,10]
trigger1 = p2movetype = A

;----------------------------------------------------
;無想転生
[State -1,無想転生]
type = ChangeState
value = 2400
triggerall = var(59) && roundstate = 2
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X >= 50
trigger1 = var(40) = 0

;===========================================================================
;---------------------------------------------------------------------------
;南斗虎破龍
[State -1, a]
type = ChangeState
value = 1500
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
triggerall = p2movetype = A
triggerall = random < var(59)*100
trigger1 = stateno = 200 && movecontact
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 215 && movecontact
trigger5 = stateno = 220 && movecontact
trigger6 = stateno = 225 && movecontact
trigger7 = stateno = 230 && movecontact
trigger8 = stateno = 235 && movecontact
trigger9 = stateno = 240 && movecontact
trigger10= stateno = 245 && movecontact
trigger11= stateno = 250 && movecontact
trigger12= stateno = 255 && movecontact
trigger13= stateno = 400 && movecontact
trigger14= stateno = 410 && movecontact
trigger15= stateno = 420 && movecontact
trigger16= stateno = 430 && movecontact
trigger17= stateno = 440 && movecontact
ignorehitpause = 1

;---------------------------------------------------------------------------
;南斗鶴翼迅斬
[State -1, a]
type = ChangeState
value = 1300
triggerall = var(59)
triggerall = statetype = A
trigger1 = stateno = 1400 && movehit && var(5) = 0
trigger1 = pos Y < -50/2
trigger1 = random < var(59)*100
ignorehitpause = 1

;---------------------------------------------------------------------------
;南斗迅襲嘴斬
[State -1, a]
type = ChangeState
value = 1200
triggerall = var(59)
triggerall = statetype = A
trigger1 = stateno = 610 || stateno = 640 || (stateno = 600 || stateno = 630) && var(11)
trigger1 = movehit
trigger1 = var(11) || p2statetype = A
trigger1 = p2bodydist Y > -50/2
trigger1 = random < var(59)*100
ignorehitpause = 1

;---------------------------------------------------------------------------
;飛燕流舞
[State -1, a]
type = ChangeState
value = 1100
triggerall = var(59) && roundstate = 2
triggerall = statetype = A
triggerall = pos y <= -20/2
trigger1 = ctrl
trigger1 = numhelper(1010)
trigger1 = p2bodydist X > 70/2
trigger1 = random < var(59)*10
trigger2 = ctrl
trigger2 = p2statetype != L
trigger2 = p2bodydist X > 160/2
trigger2 = vel Y < 0
trigger2 = random < var(59)*3
ignorehitpause = 1

;---------------------------------------------------------------------------
;南斗狂鶴翔舞
[State -1, a]
type = ChangeState
value = 1000
triggerall = var(59) && roundstate = 2
triggerall = statetype = A
triggerall = numhelper(1010) = 0
trigger1 = ctrl
trigger1 = p2statetype = L || p2bodydist X > 160/2
trigger1 = p2movetype != A
trigger1 = pos Y < -70/2
trigger1 = vel Y < 0
trigger1 = random < var(59)*50
ignorehitpause = 1

;===========================================================================
;---------------------------------------------------------------------------
;へヴィーストライク
[State -1, a]
type = ChangeState
value = 310
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
trigger1 = ctrl
trigger1 = var(16) < 20
trigger1 = stateno != 500
trigger1 = p2stateno = 550
trigger1 = random < var(59)*100
ignorehitpause = 1

;---------------------------------------------------------------------------
;バニシングストライク
[State -1, a]
type = ChangeState
value = 320
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
trigger1 = stateno = 215 || stateno = 240 || stateno = 245 || stateno = 440
trigger1 = movehit
trigger1 = !var(11)
trigger1 = p2statetype != C
trigger1 = random < var(59)*100
ignorehitpause = 1

;---------------------------------------------------------------------------
;グレイブシュート
[State -1, a]
type = ChangeState
value = 300
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
trigger1 = stateno = 215 || stateno = 240 || stateno = 245 || stateno = 440 || stateno = 410
trigger1 = movehit
trigger1 = random < var(59)*100
ignorehitpause = 1

;===========================================================================
;---------------------------------------------------------------------------
;ガードキャンセル攻撃
[State -1, 290]
type = ChangeState
value = 290
triggerall = var(59) && roundstate = 2
triggerall = power >= 1000
trigger1 = stateno = 150 || stateno = 151
trigger1 = p2bodydist X = [-5/2,60/2]
trigger1 = random < var(59)*2

;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59) && roundstate = 2
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = var(58) != 3 || power < 1000
trigger1 = p2statetype = L
trigger1 = p2bodydist X = [-5/2,20/2]
trigger1 = backedgebodydist != 0
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;空中ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 110
triggerall = var(59) && roundstate = 2
triggerall = stateno != 110
triggerall = stateno != 111
triggerall = stateno != 115
triggerall = pos y <= -30/2
triggerall = random < var(59)*100
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = p2statetype != A && p2bodydist X > 60/2 || p2movetype = H && pos y < -60/2
trigger1 = p2statetype != L
trigger1 = p2movetype != A
trigger2 = stateno = 1210

;---------------------------------------------------------------------------
;投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(59) && roundstate = 2
trigger1 = ctrl
trigger1 = statetype != A
trigger1 = p2bodydist X < 20/2
trugger1 = p2movetype != H
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = enemy,stateno != [120,159]
trigger1 = random < var(59)*5

;---------------------------------------------------------------------------
;掴み投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 850
triggerall = var(59) && roundstate = 2
trigger1 = ctrl
trigger1 = statetype != A
trigger1 = p2bodydist X < 60/2
trugger1 = p2movetype != H
trigger1 = p2statetype = S
trigger1 = enemy,stateno != [120,159]
trigger1 = p2stateno != 350
trigger1 = random < var(59)*5

;===========================================================================
;---------------------------------------------------------------------------
;ブースト
[State -1, Stand Light Punch]
type = ChangeState
value = 500
triggerall = var(59) && roundstate = 2
triggerall = var(16) >= 20
triggerall = random < var(59)*100
trigger1 = ctrl && p2stateno = 550
trigger2 = stateno = 1501 && movehit
trigger2 = animelemtime(3) > 0
trigger2 = p2statetype != A
ignorehitpause = 1

;---------------------------------------------------------------------------
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) && roundstate = 2
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = p2statetype = A && p2movetype = H && p2bodydist X > 50
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;遠距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = var(59) && roundstate = 2
triggerall = P2dist X >50/2
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2statetype = A
trigger1 = p2movetype != H
trigger1 = p2bodydist X < 55/2
trigger1 = p2bodydist Y > -80/2
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;近距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 205
triggerall = var(59) && roundstate = 2
triggerall = P2dist X <=50/2
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2statetype = A
trigger1 = p2bodydist Y > -80/2
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;遠距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = var(59) && roundstate = 2
triggerall = P2dist X >50/2
triggerall = statetype != A
trigger1 = stateno = 200 || stateno = 205
trigger1 = movecontact
trigger1 = p2statetype = A
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall = var(59) && roundstate = 2
triggerall = P2dist X <=50
triggerall = statetype != A
triggerall = p2statetype = A
triggerall = p2bodydist Y > -90
triggerall = random < var(59)*100
trigger1 = ctrl || stateno = 500 && p2stateno != 550
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 205 && movecontact

;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = var(59) && roundstate = 2
triggerall = P2dist X >50/2
triggerall = statetype != A
trigger1 = stateno = 210 || stateno = 230
trigger1 = movehit
trogger1 = p2statetype != A
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;遠距離立ち強キック
[State -1, Stand Strong Punch]
type = ChangeState
value = 240
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
trigger1 = stateno = 245 && movehit
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = var(59) && roundstate = 2
triggerall = P2dist X <=50/2
triggerall = statetype != A
trigger1 = stateno = 205 || stateno = 235 || stateno = 430 || stateno = 215 || stateno = 410
trigger1 = movehit
trigger1 = p2statetype != A
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
triggerall = var(11)
triggerall = p2bodydist Y > -40/2
triggerall = random < var(59)*100
trigger1 = ctrl
trigger1 = p2bodydist X = [-5/2,60/2]
trigger2 = stateno = 215 && movehit

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
trigger1 = ctrl || stateno = 500
trigger1 = p2statetype != A
trigger1 = p2statetype != L || var(59) = 3 && power >= 1000
trigger1 = p2bodydist X = [-5/2,60/2]
trigger1 = p2movetype != H || p2bodydist X < 50/2
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = var(59) && roundstate = 2
triggerall = statetype != A
triggerall = p2statetype != A && p2statetype != L
triggerall = random < var(59)*100
trigger1 = ctrl
trigger1 = p2bodydist X = [-5/2,70/2]
trigger1 = p2movetype != H || p2bodydist X < 60/2
trigger2 = stateno = 430 || stateno = 240 || stateno = 245
trigger2 = movehit

;---------------------------------------------------------------------------
;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = var(59) && roundstate = 2
triggerall = P2dist X >50/2
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2statetype != A || p2statetype != L
trigger1 = p2bodydist X < 60/2
trigger1 = p2stateno != [150,153]
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(59) && roundstate = 2
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = p2statetype != L
trigger1 = (p2bodydist X = [-5/2,60/2]) || stateno = 110 && p2bodydist X = [-5/2,80/2]
trigger1 = p2bodydist Y = [-70/2,60/2]
trigger1 = !var(11) && (p2statetype = A || stateno = 110 && animelemtime(2) > 0) || vel Y > 0
trigger1 = p2statetype != A || p2movetype != H || stateno = 110 && p2bodydist X = [-5/2,40/2]
trigger1 = random < var(59)*100

;---------------------------------------------------------------------------
;空中弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(59) && roundstate = 2
triggerall = p2bodydist X < 70/2 || stateno = 110 && p2bodydist X < 110/2
triggerall = p2bodydist Y = [-20/2,80/2]
triggerall = random < var(59)*100
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = p2statetype != L
trigger1 = p2statetype = A || vel Y > 0 || stateno = 110 && animelemtime(2) > 0
trigger1 = p2statetype != A || p2movetype != H || stateno = 110 && p2bodydist X = [-5/2,40/2]
trigger2 = stateno = 600 && movecontact

;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = var(59) && roundstate = 2
triggerall = (p2bodydist X = [-5/2,60/2]) || stateno = 110 && p2bodydist X = [-5/2,120/2]
triggerall = p2bodydist Y = [-100/2,20/2]
triggerall = random < var(59)*100
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = p2statetype = A
trigger1 = prevstateno = 1300 || stateno = 110 && animelemtime(2) > 0
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = var(59) && roundstate = 2
triggerall = (p2bodydist X = [-5/2,60/2]) || stateno = 110 && p2bodydist X = [-5/2,120/2]
triggerall = p2bodydist Y = [20/2,120/2]
triggerall = random < var(59)*100
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = p2statetype != A
trigger1 = p2statetype != L
trigger1 = vel Y > 0 || stateno = 110 && animelemtime(2) > 0 && p2bodydist X = [-5/2,40/2]
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact
trigger4 = stateno = 610 && movecontact

[state -3,AI用]
type = changestate
trigger1 = var(59)
trigger1 = stateno = 2101
trigger1 = random < var(59)*100
value = 2102

[State -3]
Type = DisplayToClipboard
Trigger1 = 1
Text = "AI:%d, Pos X:%f, Pos Y:%f"
Params = Var(59), P2BodyDist X, P2BodyDist Y
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
