[Command]
name = "AI1"
command =F,F,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI2"
command = F,F,U,a+b+c+x+y+z
time = 1

[Command]
name = "AI3"
command = F,F,UF,a+b+c+x+y+z
time = 1

[Command]
name = "AI4"
command = D,D,D,F,F,D,a+b+c+x+y+z
time = 1

[Command]
name = "AI5"
command = D,D,D,F,F,DF,a+b+c+x+y+z
time = 1

[Command]
name = "AI6"
command = D,D,D,F,F,B,a+b+c+x+y+z
time = 1

[Command]
name = "AI7"
command = D,D,D,F,F,DB,a+b+c+x+y+z
time = 1

[Command]
name = "AI8"
command = D,D,D,F,F,UB,a+b+c+x+y+z
time = 1

[Command]
name = "AI9"
command = D,D,D,F,U,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI10"
command = D,D,D,F,UF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI11"
command = D,D,D,F,DF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI12"
command = D,D,D,F,D,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI13"
command = D,D,D,F,DB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI14"
command = D,D,D,F,B,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI15"
command = D,D,D,F,UB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI16"
command = D,D,D,F,F,F,a+b+c+x+y,z
time = 1

[Command]
name = "AI17"
command = D,D,D,F,F,F,a+b+c+x,y,z
time = 1

[Command]
name = "AI18"
command = D,D,D,F,F,F,a+b+c,x,y,z
time = 1

[Command]
name = "AI19"
command = D,D,D,F,F,F,a+b,c,x,y,z
time = 1

[Command]
name = "AI20"
command = D,D,D,F,F,F,a,b,c,x,y,z
time = 1

[Command]
name = "AI21"
command = D,D,D,F,F,F,a+b+c,x+y+z
time = 1

[Command]
name = "AI22"
command = D,D,D,F,F,U,a+b,c+x+y+z
time = 1

[Command]
name = "AI23"
command = D,D,D,F,F,UF,a,b+c+x+y+z
time = 1

[Command]
name = "AI24"
command = D,D,D,F,F,U,a+b,c+x+y+z
time = 1

[Command]
name = "AI25"
command = D,D,D,F,F,DF,a,b,c+x+y+z
time = 1

[Command]
name = "AI26"
command = D,D,D,F,F,B,a+b,c+x,y+z
time = 1

[Command]
name = "AI27"
command = D,D,D,F,F,DB,a,b+c+x,y+z
time = 1

[Command]
name = "AI28"
command = D,D,D,F,F,UB,a,b+c+x+y,z
time = 1

[Command]
name = "AI29"
command = DF,D,D,F,U,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI30"
command = B,D,D,F,UF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI31"
command = B,B,BD,F,DF,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI32"
command = D,F,F,F,D,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI33"
command = DF,D,DF,UF,DB,F,a+b+c+x+y+z
time = 1

[Command]
name = "AI34"
command = D,D,D,F,DB,DF,a+b+c+x+y+z
time = 1

[Command]
name = "AI35"
command = D,D,UF,DF,UB,UF,a+b+c+x+y+z
time = 1

[Command]
name = "AI36"
command = D,DF,DF,DF,DF,F,a+b+c+x+y,z
time = 1

[Command]
name = "AI37"
command = D,D,DB,UF,DF,UF,a+b+c+x,y,z
time = 1

[Command]
name = "AI38"
command = F,U,F,F,F,F,a,b+c,x,y,z
time = 1

[Command]
name = "AI39"
command = DF,UF,D,DF,U,F,a+b,c+x,y,z
time = 1

[Command]
name = "AI40"
command = D,D,D,D,F,D,a+b,c,x,y+z
time = 1

[Command]
name = "AI41"
command = D,D,D,F,F,F,a+b+c+x+y+z,a
time = 1

[Command]
name = "AI42"
command = D,D,D,F,F,U,a+b+c+x+y+z,b
time = 1

[Command]
name = "AI43"
command = D,D,D,F,F,UF,a+b+c+x+y+z,c
time = 1

[Command]
name = "AI44"
command = D,D,D,F,F,D,a+b+c+x+y+z,x
time = 1

[Command]
name = "AI45"
command = D,D,D,F,F,DF,a+b+c+x+y+z,y
time = 1

[Command]
name = "AI46"
command = D,D,D,F,F,B,a+b+c+x+y+z,z
time = 1

[Command]
name = "AI47"
command = D,D,D,F,F,DB,a+b+c+x+y+z,a+b
time = 1

[Command]
name = "AI48"
command = D,D,D,F,F,UB,a+b+c+x+y+z,a+c
time = 1

[Command]
name = "AI49"
command = D,D,D,F,U,F,a+b+c+x+y+z,b+c
time = 1

[Command]
name = "AI50"
command = D,D,D,F,UF,F,a+b+c+x+y+z,x+z
time = 1




;-| 挻昁嶦媄 |--------------------------------------------------------
;偙偙偵偼挻昁嶦媄傪婰弎偟偰偔偩偝偄丄摨偠柤慜傪乽name =乿棑偵彂偗傑偡偑
;僐儅儞僪偼愨懳偵堘偭偨傕偺偵偟偰偔偩偝偄丅
;僇儞僼乕儅儞偼庛僷儞僠偲嫮僷儞僠偱媄偑弌偣傞傛偆偵摨偠柤慜偺僐儅儞僪偱
;撪梕偑庛偲嫮偵側偭偰偄傑偡丅
;乽time=20乿偲彂偔偙偲偱乽僐儅儞僪傪20僼儗乕儉埲撪偵擖椡乿偲愝掕偱偒傑偡丅

;-| 昁嶦媄 |------------------------------------------------------
[command]
name = "down"
command = D
time = 1
[command]
name = "fwd"
command = F
time = 1
[command]
name = "up"
command = U
time = 1
[command]
name = "back"
command = B
time = 1


[Command]
name = "qcfa"
command = ~D, DF, F, a
[Command]
name = "qcfa"
command = ~D, DF, F, ~a
[Command]
name = "qcfb"
command = ~D, DF, F, b
[Command]
name = "qcfb"
command = ~D, DF, F, ~b
[Command]
name = "qcfc"
command = ~D, DF, F, c
[Command]
name = "qcfc"
command = ~D, DF, F, ~c

[Command]
name = "qcba"
command = ~D, DB, B, a
[Command]
name = "qcba"
command = ~D, DB, B, ~a
[Command]
name = "qcbb"
command = ~D, DB, B, b
[Command]
name = "qcbb"
command = ~D, DB, B, ~b
[Command]
name = "qcbc"
command = ~D, DB, B, c
[Command]
name = "qcbc"
command = ~D, DB, B, ~c

[Command]
name = "hcba"
command = ~F, DF, D, DB, B, a
time = 25
[Command]
name = "hcbb"
command = ~F, DF, D, DB, B, b
time = 25
[Command]
name = "hcbc"
command = ~F, DF, D, DB, B, c
time = 25
[Command]
name = "hcba"
command = ~F, DF, D, DB, B, ~a
time = 25
[Command]
name = "hcbb"
command = ~F, DF, D, DB, B, ~b
time = 25
[Command]
name = "hcbc"
command = ~F, DF, D, DB, B, ~c
time = 25

[Command]
name = "fdfda"
command = ~D, F, DF, a
[Command]
name = "fdfdb"
command = ~D, F, DF, b
[Command]
name = "fdfdc"
command = ~D, F, DF, c
[Command]
name = "fdfda"
command = ~D, F, DF, ~a
[Command]
name = "fdfdb"
command = ~D, F, DF, ~b
[Command]
name = "fdfdc"
command = ~D, F, DF, ~c

[Command]
name = "dda"
command = ~D, D, a
[Command]
name = "ddb"
command = ~D, D, b
[Command]
name = "ddc"
command = ~D, D, c
[Command]
name = "dda"
command = ~D, D, ~a
[Command]
name = "ddb"
command = ~D, D, ~b
[Command]
name = "ddc"
command = ~D, D, ~c

[command]
name = "holda"
command = /a
time = 1
[command]
name = "holdb"
command = /b
time = 1

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


[Command]
name = "Resshin zan"
command = ~B, D, DB, z
time = 20

[command]
name = "yy"
command = ~y, y
time = 10

[command]
name = "zz"
command = ~z, z
time = 10

[command]
name = "special1"
command = ~F, b
time = 10

[command]
name = "special1"
command = ~F+b
time = 10

[command]
name = "special2"
command = ~B, b
time = 10

[command]
name = "special2"
command = ~B+b
time = 10

[command]
name = "special3"
command = ~D, b
time = 10

[command]
name = "special3"
command = ~D+b
time = 10

[Command]
name = "tiny"
command = /y
time = 10

[Command]
name = "secret"
command = ~U, D, F, B, s

[Command]
name = "throw"
command = ~B + a

[Command]
name = "upattack"
command = ~U, b

[Command]
name = "QCF_y"
command = ~D, DF, F, y

[Command]
name = "QCF_xy"
command = ~D, DF, F, x+y

[Command]
name = "QCB_a"
command = ~D, DF, F, a

[Command]
name = "QCB_b"
command = ~D, DF, F, b

[Command]
name = "FF_ab"
command = ~D, DB, B, a

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, F, b

;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸僴僀僕儍儞僾僐儅儞僪
;壓傪偪傚偭偲墴偟偰忋傪墴偡丄偲尵偆堄枴丅
[Command]
name = "jump"
command = ~D,$U
time = 10

;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸慜旔偗
;慜傪墴偟側偑傜俙亄俛丄偲偄偆堄枴
[Command]
name = "away-f"
command = /F,a+b
time = 10

;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸慜旔偗
;屻傪墴偟側偑傜俙亄俛丄偲偄偆堄枴
[Command]
name = "away-b"
command = /B,a+b
time = 10

;-| 俀夞墴偟媄 |-----------------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10

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

;-| 俀丒俁屄偺摨帪墴偟媄 |-----------------------------------------------
[Command]
name = "recovery"
command = ~a,a,a
time = 15

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

;-| 曽岦偲儃僞儞偱弌偡媄 |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

[Command]
name = "down_c"
command = /$D,c
time = 1



;-| 儃僞儞愝掕乮偄偠傜側偄乯|---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

[Command]
name = "combo1"
command = F,b
time = 10


[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

[Command]
name = "holdx"
command = /$x
time = 1

[Command]
name = "holdb"
command = /$b
time = 1

[Command]
name = "holda"
command = /$a
time = 1

[Command]
name = "holdc"
command = /$c
time = 1



[Command]
name = "masenko"
command = ~D, F, D, F, x
time = 30

[Command]
name = "kamehameha"
command = ~D, F, D, F, y
time = 30


; 壓偺婰弎伀偼愨懳偵徚偝側偄偱偔偩偝偄丅
[Statedef -1]



;------------------------------------------------------------------------
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl




;------------------------------------------------------------------------
[State -1, Air Run Fwd]
type = ChangeState
value = 101
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl

;------------------------------------------------------------------------
[State -1, Air Run Back]
type = ChangeState
value = 102
trigger1 = command = "BB"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

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


;-------------------------------------------------------------------
;Punch
[State -1, Special D]
type = ChangeState
value = 1300
triggerall = var(9) = 0
Triggerall = command = "fdfda" || command = "fdfdb" || (command = "fdfdc" && power < 1000)
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1, Special D EX]
type = ChangeState
value = 1310
triggerall = var(9) = 0
Triggerall = command = "fdfdc"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 1300 && movehit

;-------------------------------------------------------------------
;Punch
[State -1, Getsuga Tenshou]
type = ChangeState
value = 1000
triggerall = var(9) = 0
Triggerall = command = "qcfa" || command = "qcfb" || (command = "qcfc" && power < 1000)
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1, Getsuga Tenshou EX]
type = ChangeState
value = 1010
triggerall = var(9) = 0
Triggerall = command = "qcfc"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 1300 && movehit

;-------------------------------------------------------------------
;Punch
[State -1, Special C]
type = ChangeState
value = 1200
triggerall = var(9) = 0
Triggerall = command = "hcba" || command = "hcbb" || (command = "hcbc" && power < 1000)
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1, Special C EX]
type = ChangeState
value = 1900
triggerall = var(9) = 0
Triggerall = command = "hcbc"
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 1300 && movehit

;-------------------------------------------------------------------
;Punch
[State -1, Special B ]
type = ChangeState
value = 1100
triggerall = var(9) = 0
Triggerall = command = "qcba" || command = "qcbb" || (command = "qcbc" && power < 1000)
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 600 && movecontact
trigger9 = stateno = 610 && movecontact
trigger10 = stateno = 620 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1, Special B EX]
type = ChangeState
value = 1110
triggerall = var(9) = 0
Triggerall = command = "qcbc"
;triggerall = statetype != A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 600 && movecontact
trigger9 = stateno = 610 && movecontact
trigger10 = stateno = 620 && movecontact
trigger11 = stateno = 1300 && movehit

;-------------------------------------------------------------------
;Punch
[State -1,Air Getsuga Tenshou]
type = ChangeState
value = 2000
triggerall = var(9) = 0
Triggerall = command = "qcfa" || command = "qcfb" || (command = "qcfc" && power < 1000)
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 610 && movecontact
trigger9 = stateno = 620 && movecontact
trigger10 = stateno = 620 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1,Air Getsuga Tenshou EX]
type = ChangeState
value = 2010
triggerall = var(9) = 0
Triggerall = command = "qcfc"
triggerall = statetype = A
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 610 && movecontact
trigger9 = stateno = 620 && movecontact
trigger10 = stateno = 620 && movecontact
trigger11 = stateno = 1100 && movehit


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

; lanzar espada--------------------------------------------------------------------------
[State -1];
type            = ChangeState
value      = 510
triggerall      = (command = "z")
triggerall      = (power >= 100)
trigger1        = (statetype = S) && (ctrl)


;combo1------------------------------------------------



;abanico espada--------------------------------------------------------------------------


[State -1]
type = ChangeState
value = 430
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C  && ctrl
;rafaga espada agachado--------------------------------------

[State -1]
type = ChangeState
value = 209
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C  && ctrl
;rafaga espada agachado------------------------

[State -1]
type = ChangeState
value = 206
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C  && ctrl


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



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

;masenko
[State -1:      boomerang]
type            = ChangeState
value      = 1900
triggerall      = (command = "masenko")
triggerall      = (power >= 1000)
trigger1        = (statetype = S) && (ctrl)
trigger2        = p2bodydist X < 50
trigger2        = stateno = 212
trigger2        = movecontact = 1
trigger3        = p2bodydist X < 50
trigger3        = stateno = 232
trigger3        = movecontact = 1
trigger4        = p2bodydist X < 50
trigger4        = stateno = 233
trigger4        = movecontact = 1


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

;kamehameha
[State -1:      boomerang]
type            = ChangeState
value      = 1906
triggerall      = (command = "kamehameha")
triggerall      = (power >= 1000)
trigger1        = (statetype = S) && (ctrl)
trigger2        = p2bodydist X < 50
trigger2        = stateno = 212
trigger2        = movecontact = 1
trigger3        = p2bodydist X < 50
trigger3        = stateno = 232
trigger3        = movecontact = 1
trigger4        = p2bodydist X < 50
trigger4        = stateno = 233
trigger4        = movecontact = 1

;---------------------------------------------------------------------------
; Standing Light Punch
[State -1:      Light Punch]
type            = ChangeState
value      = 207
triggerall      = (command = "x")
triggerall      = command != "holddown"
trigger1        = (statetype = S) && (ctrl)
trigger2        = (stateno = 302) || (stateno = 301)|| (stateno = 300)|| (stateno = 303)

;---------------------------------------------------------------------------
; Standing Hard Punch
[State -1:      Hard Punch]
type            = ChangeState
value      = 208
triggerall      = (command = "y")
triggerall      = command != "holddown"
trigger1        = (statetype = S) && (ctrl)
trigger2        = (stateno = 200) || (stateno = 211)|| (stateno = 213) && (time > 10) ||(stateno = 302) || (stateno = 301)|| (stateno = 300)|| (stateno = 303)
trigger2        = (movecontact)


;-------------------------------------------------------------------
;Punch
[State -1, Taunt]
type = ChangeState
value = 199
triggerall = var(9) = 0
Triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl && stateno != 199
;-------------------------------------------------------------------
;Punch
[State -1, Shunpo]
type = ChangeState
value = 700
triggerall = var(9) = 0
Triggerall = command = "dda" || command = "ddb" || command = "ddc"
triggerall = stateno != 700
triggerall = var(7) < 2
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact

[State -1, sparry]
type=hitoverride
trigger1= var(59)<=0
trigger1= roundstate=2 && statetype=S
trigger1= command="fwd" && command!="back" && command!="up" && command!="down"
trigger1= ctrl || (stateno=[800,801])
trigger1= var(21):=1
attr=SA,AA,AP
stateno=800
slot=0
time=8

[State -1, cparry]
type=hitoverride
trigger1= var(59)<=0
trigger1= roundstate=2 && statetype!=A
trigger1= command="down" && command!="fwd" && command!="back" && command!="up"
trigger1= ctrl || (stateno=[800,801])
trigger1= var(21):=2
attr=C,AA,AP
stateno=801
slot=0
time=8

[State -1, aparry]
type=hitoverride
trigger1= var(59)<=0
trigger1= roundstate=2 && statetype=A
trigger1= command="fwd" && command!="back" && command!="up" && command!="down"
trigger1= ctrl || stateno=802
trigger1= var(21):=3
attr=SA,AA,AP
stateno=802
forceair=1
slot=0
time=7

;-------------------------------------------------------------------
;Punch
[State -1, A]
type = ChangeState
value = 200
triggerall = var(9) = 0
Triggerall = command = "a"
Triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact

;-------------------------------------------------------------------
;Jump Kick
[state -1, B]
type = ChangeState
value = 210
triggerall = var(9) = 0
Triggerall = command = "b"
Triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 410 && movecontact
;-----------------------------------------------------------------
;Heavy Punch
[state -1, C]
type = ChangeState
value = 220
triggerall = var(9) = 0
Triggerall = command = "c"
Triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 420 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1,Crouch A]
type = ChangeState
value = 400
triggerall = var(9) = 0
Triggerall = command = "a"
Triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact

;-------------------------------------------------------------------
;Jump Kick
[state -1,Crouch B]
type = ChangeState
value = 410
triggerall = var(9) = 0
Triggerall = command = "b"
Triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
;-----------------------------------------------------------------
;Heavy Punch
[state -1,Crouch C]
type = ChangeState
value = 420
triggerall = var(9) = 0
Triggerall = command = "c"
Triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact

;-----------------------------------------------------------------
;Jump Punch
[State -1, Air A]
type = ChangeState
value = 600
triggerall = var(9) = 0
Triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl

;-----------------------------------------------------------------
;Jump Punch
[State -1, Air B]
type = ChangeState
value = 610
triggerall = var(9) = 0
Triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact

;-----------------------------------------------------------------
;Jump Punch
[State -1, Air C]
type = ChangeState
value = 620
triggerall = var(9) = 0
Triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact

;-------------------------------------------------------------------
;Punch
[State -1, Charge]
type = ChangeState
value = 900
triggerall = var(9) = 0
triggerall = var(50) = 0
Triggerall = command = "holda" && command = "holdb"
triggerall = power < 3000
triggerall = statetype != A
trigger1 = ctrl

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

[State -3, AI ON]
type = VarSet
triggerall = var(50) != 1
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
trigger41 = command = "AI41"
trigger42 = command = "AI42"
trigger43 = command = "AI43"
trigger44 = command = "AI44"
trigger45 = command = "AI45"
trigger46 = command = "AI46"
trigger47 = command = "AI47"
trigger48 = command = "AI48"
trigger49 = command = "AI49"
trigger50 = command = "AI50"
var(50) = 1

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

;----------------------------------------------------------------------------
;light punch
[State -1, AI Hop Back]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = random <= 150
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = Life = [100,400]
triggerall = P2bodydist X < 60
trigger1 = ctrl
value = 105

; ==========================
[State -1,AI Standing Guard]
type = ChangeState
triggerall = var(50) = 1
triggerall = Statetype != A
triggerall = P2statetype != C ;
triggerall = Statetype = S
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
triggerall = ctrl
trigger1 = random <= 200
value = 130

;----------------------------------------------------------------------------
;light punch
[State -1, AI A]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = random >= 100
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact
value = 200

;----------------------------------------------------------------------------
;light punch
[State -1, AI B]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = random >= 100
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 410 && movecontact
value = 210

;----------------------------------------------------------------------------
;light punch
[State -1, AI C]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = random >= 100
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 420 && movecontact
value = 220

;----------------------------------------------------------------------------
;light punch
[State -1, AI Crouch A]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = random >= 100
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
value = 400

;----------------------------------------------------------------------------
;light punch
[State -1, AI Crouch B]
type = ChangeState
triggerall = var(50) = 1
triggerall = random >= 100
triggerall = var(9) = 0
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
value = 410

;----------------------------------------------------------------------------
;light punch
[State -1, AI Crouch C]
type = ChangeState
triggerall = var(50) = 1
triggerall = random >= 100
triggerall = var(9) = 0
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
value = 420


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

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Getsuga Tenshou]
type = ChangeState
triggerall = var(50) = 1
triggerall = var(9) = 0
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 60
triggerall = random <= 25
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1000

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Getsuga Tenshou EX]
type = ChangeState
triggerall = var(50) = 1
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = var(9) = 0
triggerall = P2bodydist X <= 100
triggerall = random <= 25
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1010

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

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


;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special B]
type = ChangeState
triggerall = var(50) = 1
triggerall = Movetype != H
triggerall = var(9) = 0
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
triggerall = random <= 50
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 610 && movecontact
trigger9 = stateno = 620 && movecontact
trigger10 = stateno = 620 && movecontact
value = 1100

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special B EX]
type = ChangeState
triggerall = var(9) = 0
triggerall = var(50) = 1
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
triggerall = random <= 50
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 610 && movecontact
trigger9 = stateno = 620 && movecontact
trigger10 = stateno = 620 && movecontact
value = 1110

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special C]
type = ChangeState
triggerall = var(50) = 1
triggerall = StateType != A
triggerall = var(9) = 0
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X <= 30
triggerall = random <= 50
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1200

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special C EX]
type = ChangeState
triggerall = var(50) = 1
triggerall = StateType != A
triggerall = Movetype != H
triggerall = var(9) = 0
triggerall = P2Life > 0
triggerall = P2bodydist X <= 30
triggerall = random <= 50
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1210

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special D]
type = ChangeState
triggerall = var(50) = 1
triggerall = StateType != A
triggerall = Movetype != H
triggerall = var(9) = 0
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
triggerall = random <= 100
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1300

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Special D EX]
type = ChangeState
triggerall = var(50) = 1
triggerall = StateType != A
triggerall = Movetype != H
triggerall = var(9) = 0
triggerall = P2Life > 0
triggerall = P2bodydist X <= 20
triggerall = random <= 100
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
value = 1310



;----------------------------------------------------------------------------
;light punch
[State -1, AI Charge]
type = ChangeState
triggerall = var(50) = 1
triggerall = random >= 800
triggerall = var(9) = 0
triggerall = StateType != A
triggerall = Movetype != H
triggerall = P2Life > 0
triggerall = P2bodydist X >= 100
trigger1 = ctrl
value = 900

;----------------------------------------------------------------------------
;heavy punch
[State -1, AI Shunpo]
type = ChangeState
triggerall = var(50) = 1
triggerall = Movetype != H
triggerall = var(9) = 0
triggerall = P2Life > 0
triggerall = P2bodydist X <= 60
triggerall = p2movetype = A
triggerall = random <= 100
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 400 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 410 && movecontact
trigger6 = stateno = 220 && movecontact
trigger7 = stateno = 420 && movecontact
trigger8 = stateno = 610 && movecontact
trigger9 = stateno = 620 && movecontact
trigger10 = stateno = 620 && movecontact
value = 700



