
;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1

;-|A.I.|------------------------------------------------------------------



;-| Super Motions |--------------------------------------------------------

;------------mvc2
[Command]
name = "WFX"
command = ~D, DB, B,  x+y
time =15

[Command]
name = "WFX"
command = ~D, DB, B,  y+z
time = 15

[Command]
name = "WFX"
command = ~D, DB, B,  x+z
time = 15


[Command]
name = "MHG"   ;Same name as above
command = ~D, DF, F,  x+y
time = 15

[Command]
name = "MHG"   ;Same name as above
command =  ~D, DF, F,   x+z
time = 15

[Command]
name = "MHG"   ;Same name as above
command = ~D, DF, F,  y+z
time = 15

[Command]
name = "AB"   ;Same name as above
command = ~F, $D, B,  a+b
time = 15

[Command]
name = "AB"   ;Same name as above
command = ~F, $D, B,  a+c
time = 15

[Command]
name = "AB"   ;Same name as above
command = ~F, $D, B, b+c
time = 15
;--------------

;------------mvc3 alpha
[Command]
name = "WFXA"
command = ~D, DB, B,  x+y
time = 15

[Command]
name = "WFXA"
command = ~D, DB, B, y+b
time = 15

[Command]
name = "WFXA"
command = ~D, DB, B, x+b
time = 15

[Command]
name = "MHGA"   ;Same name as above
command = ~D, DF, F,  x+y
time = 15

[Command]
name = "MHGA"   ;Same name as above
command =  ~D, DF, F,   y+b
time = 15

[Command]
name = "MHGA"   ;Same name as above
command = ~D, DF, F,  x+b
time = 15

[Command]
name = "ABA"   ;Same name as above
command = ~F, D, DF,  x+y
time = 15

[Command]
name = "ABA"   ;Same name as above
command =~F, D, DF, y+b
time = 15

[Command]
name = "ABA"   ;Same name as above
command = ~F, D, DF, x+b
time = 15
;--------------

;------------mvc3 beta

[Command]
name = "ABB"   ;Same name as above
command = ~F, D, DF, x+y
time = 15

[Command]
name = "ABB"   ;Same name as above
command = ~F, D, DF, y+z
time = 15

[Command]
name = "ABB"   ;Same name as above
command = ~F, D, DF,  x+z
time = 15
;--------------

;------------mvc3 gamma
[Command]
name = "WFXG"
command = ~D, DB, B,  b+y
time = 20

[Command]
name = "WFXG"
command = ~D, DB, B,  x+y
time = 20

[Command]
name = "WFXG"
command = ~D, DB, B,  b+x
time = 20

[Command]
name = "MHGG"   ;Same name as above
command = ~D, DF, F,  b+y
time = 15

[Command]
name = "MHGG"   ;Same name as above
command =  ~D, DF, F,   x+y
time = 15

[Command]
name = "MHGG"   ;Same name as above
command = ~D, DF, F,  b+x
time = 15

[Command]
name = "ABG"   ;Same name as above
command = ~F, D, DF, b+y
time = 15

[Command]
name = "ABG"   ;Same name as above
command = ~F, D, DF, x+y
time = 15

[Command]
name = "ABG"   ;Same name as above
command = ~F, D, DF, b+x
time = 15
;--------------
;-| Special Motions |------------------------------------------------------
;--mvc2
[Command]
name = "DP1"
command = ~F, $D, B, x
time = 15

[Command]
name = "DP2"
command = ~F, $D, B, y
time = 15

[Command]
name = "DP3"
command = ~F, $D, B,z
time = 15



[Command]
name = "gou1"
command = ~D, DF, F, x
time = 15

[Command]
name = "gou2"
command = ~D, DF, F, y
time = 15

[Command]
name = "gou3"
command = ~D, DF, F, z
time = 15


;-------------------
;--mvc3 alpha
[Command]
name = "gou1A"
command = ~D, DF, F, x
time = 15

[Command]
name = "gou2A"
command = ~D, DF, F, y
time = 15

[Command]
name = "gou3A"
command = ~D, DF, F, b
time = 15


;-------------------
;--mvc3 gamma
[Command]
name = "gou1G"
command = ~D, DF, F, b
time = 15

[Command]
name = "gou2G"
command = ~D, DF, F, x
time = 15

[Command]
name = "gou3G"
command = ~D, DF, F,y
time = 15


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


;------------
;--mvc3 alpha
[Command]
name = "sk1A"
command = ~D, $D, B, x
time = 15

[Command]
name = "sk2A"
command = ~D, $D, B,y
time = 15

[Command]
name = "sk3A"
command = ~D, $D, B,b
time = 15

;------------
;--mvc3 Beta
[Command]
name = "sk1B"
command = ~D, $D, B,x
time = 15

[Command]
name = "sk2B"
command = ~D, $D, B,y
time = 15

[Command]
name = "sk3B"
command = ~D, $D, B,z
time = 15

;------------
;--mvc3 Gamma
[Command]
name = "sk1G"
command = ~D, $D, B, b
time = 15

[Command]
name = "sk2G"
command = ~D, $D, B,x
time = 15

[Command]
name = "sk3G"
command = ~D, $D, B,y
time = 15

;------------
;--mvc3 alpha
[Command]
name = "DP1A"
command = ~F, D, DF, x
time = 15

[Command]
name = "DP2A"
command = ~F, D, DF, y
time = 15

[Command]
name = "DP3A"
command = ~F, D, DF,b
time = 15


;---------------
;--mvc3 beta
[Command]
name = "DP1B"
command = ~F, D, DF, x
time = 15

[Command]
name = "DP2B"
command = ~F, D, DF, y
time = 15

[Command]
name = "DP3B"
command = ~F, D, DF,z
time = 15


;---------------
;--mvc3 gamma
[Command]
name = "DP1G"
command = ~F, D, DF,b
time = 15

[Command]
name = "DP2G"
command = ~F, D, DF, x
time = 15

[Command]
name = "DP3G"
command = ~F, D, DF,y
time = 15

[Command]
name = "chains1B"
command = ~F, D, B, x
time = 15

[Command]
name = "chains2B"
command = ~F, D, B, y
time = 15

[Command]
name = "chains3B"
command = ~F, D, B, z
time = 15


;-------------------
;--mvc3 alpha
[Command]
name = "chains1A"
command = ~F, D, B, x
time = 15

[Command]
name = "chains2A"
command = ~F, D, B, y
time = 15

[Command]
name = "chains3A"
command = ~F, D, B, b
time = 15


;-------------------
;--mvc3 gamma
[Command]
name = "chains1G"
command = ~F, D, B, b
time = 15

[Command]
name = "chains2G"
command = ~F, D, B, x
time = 15

[Command]
name = "chains3G"
command = ~F, D, B,y
time = 15


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

;---------------
;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10
[Command]
name = "fwd"     ;Required (do not remove)
command = F
time = 1
[Command]
name = "back"     ;Required (do not remove)
command = B
time = 1
[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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


[Command]
name = "HoldHA"
command = /b
time = 1
[Command]
name = "HoldHB"
command = /z
time = 1
[Command]
name = "HoldHG"
command = /c
time = 1
;-| Single Button |---------------------------------------------------------
[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


;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

[Command]
name = "up" ;Required (do not remove)
command = U
time = 1
[Command]
name = "down" ;Required (do not remove)
command = D
time = 1
[Command]
name = "SJ"
command = $D,$U
time = 8

[Command]
name = "SJ"
command = D,$U
time = 8
[Command]
name="2p"
command=x+y
time=5
[Command]
name="2pB"
command=x+z
time=5
[Command]
name="2pB"
command=y+z
time=5
[Command]
name="2pA"
command=x+b
time=5
[Command]
name="2pA"
command=b+y
time=5

[Command]
name="2k"
command=a+b
time=5
[Command]
name="2k"
command=a+c
time=5
[Command]
name="2k"
command=b+c
time=5


[Command]
name="cancel"
command=x+y+a+b
time=5

[Command]
name="cancel"
command=x+y+a+z
time=5

;-| Single Button |---------------------------------------------------------
[Command]
name = "mashableA"
command = x
time = 2
[Command]
name = "mashableA"
command = y
time = 2
[Command]
name = "mashableA"
command =b
time = 2
[Command]
name = "mashableB"
command = x
time = 2
[Command]
name = "mashableB"
command = y
time = 2
[Command]
name = "mashableB"
command =z
time = 2


;-------------------------------------------------------------------------------
[Statedef -1]


;==|A.I.|=================================================================
;--ordered list of combos
;--from reset anchor grab
[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6 && frontedgebodydist >40
triggerall =  var(40)=0
trigger1= stateno=810
trigger1 =var(40):=9
trigger1 =var(45):=1007
ignorehitpause=1
[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6
triggerall = power>=1000
triggerall =  var(40)=0||var(40)=[70,86]
trigger1=var(40)=0&&stateno=840
trigger1 =var(40):=70
trigger1 =var(45):=1007
trigger2=(var(40)=72||var(40)=79)&&stateno=205
trigger2 =var(40):=ifelse((var(40)=[79,80]),80,73)
trigger2 =var(45):=210
trigger3=(var(40)=73||var(40)=80) &&stateno=210
trigger3 =var(40):=ifelse((var(40)=[80,81]),81,74)
trigger3 =var(45):=600
trigger4=var(40)=74 &&stateno=600
trigger4 =var(40):=75
trigger4 =var(45):=601
trigger5=var(40)=75&&stateno=601
trigger5 =var(40):=76
trigger5 =var(45):=605
trigger6=(var(40)=76||var(40)=81)&&stateno=605
trigger6 =var(40):=ifelse((var(40)=[81,82]),82,77)
trigger6 =var(45):=610
trigger7=(var(40)=77||var(40)=82)&&stateno=610
trigger7 =var(40):=ifelse((var(40)=[82,83]),83,78)
trigger7 =var(45):=1007
[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = power<1000
triggerall = p2stateno!=5120	
triggerall = AILevel >6 
triggerall =  var(40)=0
trigger1= stateno=840
trigger1 =var(40):=9
trigger1 =var(45):=1007
ignorehitpause=1


[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6 && frontedgebodydist <40
triggerall =  var(40)=0 || var(40)=[145,147]
trigger1= stateno=810
trigger1 =var(40):=145
trigger1 =var(45):=400
trigger2= stateno=400
trigger2 =var(40):=146
trigger2 =var(45):=405
trigger3= stateno=405
trigger3 =var(40):=12
trigger3 =var(45):=205
ignorehitpause=1

[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6
triggerall =  var(40)=[140,141]
trigger1= stateno=405
trigger1 =var(40):=141
trigger1 =var(45):=210
trigger1= stateno=210
trigger1 =var(40):=14
trigger1 =var(45):=600
ignorehitpause=1

[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6

triggerall =  var(40)=[110,116]
trigger1=var(40)=110&&stateno=205
trigger1 =var(40):=111
trigger1 =var(45):=210
trigger2=var(40)=111&&stateno=210
trigger2 =var(40):=112
trigger2 =var(45):=600
trigger3=var(40)=112 &&stateno=600
trigger3 =var(40):=113
trigger3 =var(45):=601
trigger4=var(40)=113&&stateno=601
trigger4 =var(40):=114
trigger4 =var(45):=605
trigger5=var(40)=114&&stateno=605
trigger5 =var(40):=115
trigger5 =var(45):=610
trigger6=var(40)=115&&stateno=610
trigger6 =var(40):=116
trigger6 =var(45):=1007

[State -1, Null]
type = Null
triggerall = movehit=1
triggerall = p2stateno!=5120	
triggerall = AILevel >6
triggerall = var(40)=141||var(40)=[0,29]
trigger1= ((stateno=206&&var(40)=0&&animelemtime(7)>0)||stateno=405||stateno=200 && var(40)=3) &&(var(40)=26||var(40)=3||var(40)=0)
trigger1 =var(40):=ifelse((var(40)=[26,27]),27,ifelse((var(40)=[3,4]),4,1))
trigger1 =var(45):=ifelse(var(40)=27,210,ifelse(var(40)=4,210,ifelse(p2bodydist x<40&&p2statetype!=A,440,205)))
trigger2=stateno=205 || p2bodydist x <90&&stateno=440 &&var(40)=[0,1]
trigger2 =var(40):=ifelse((var(40)=[24,25]),25,ifelse((var(40)=[18,19]),19,ifelse((var(40)=[11,12]),12,2)))
trigger2 =var(45):=ifelse((var(40)=25||var(40)=2),1060,210)
trigger3= stateno=210 && (var(40)=12||var(40)=4||var(40)=19 ||var(40)=0)
trigger3=var(40):=ifelse((var(40)=[27,28]),28,ifelse((var(40)=[19,20]),20,ifelse((var(40)=[12,13]),13,5)))
trigger3=var(45):=ifelse((var(40)=13||var(40)=5),600,605)
trigger4=stateno=600 && var(40)>0
trigger4=var(40):=ifelse((var(40)=[13,14]),14,6)
trigger4=var(45):=ifelse(var(40)=14,605,601)
trigger5=stateno=601&& var(40)=6
trigger5=var(40):=7
trigger5=var(45):=605
trigger6=stateno=1052&& (var(40)=2||var(40)=17 && fvar(10)=0 ||var(40)=25&&numexplod(1000)>=3&&numexplod(1001)>=2) 
trigger6=var(40):=ifelse((var(40)=[25,26]),26,ifelse((var(40)=[17,18]),18,3))
trigger6=var(45):=ifelse(var(40)!=18,405,3000)
trigger7=stateno=605&& var(40)>0
trigger7=var(40):=ifelse((var(40)=[28,29]),29,ifelse((var(40)=[20,21]),21,ifelse((var(40)=[14,15]),15,8))) 
trigger7=var(45):=610
trigger8=(stateno=610)&& var(40)>0
trigger8=var(40):=ifelse((var(40)=[29,30]),30,ifelse((var(40)=[21,22]),22,ifelse((var(40)=[15,16]),16,9)))
trigger8=var(45):=ifelse((var(40)=9),1007,1000)
trigger10=stateno=3000 && var(40)>0
trigger10=var(40):=0
ignorehitpause=1

[State -1, Null]
type = Null
triggerall = numhelper(1002)>0
triggerall = helper(1002),movehit	
triggerall = AILevel >6
trigger1=var(40)=9||var(40)=17||var(40)=23||var(40)=29||var(40)=70||var(40)=116||var(40)=16 && fvar(10)=0;||var(40)=9||var(40)=9||
trigger1 =var(40):=ifelse((var(40)=[116,117]),117,ifelse((var(40)=[70,71]),71,ifelse((var(40)=[30,31]),31,ifelse((var(40)=[23,24]),24,ifelse((var(40)=[16,18]),18,10)))))
trigger1 =var(45):=ifelse((var(40)=10||var(40)=116||var(40)=71),1106,ifelse((numhelper(10009)>0||numhelper(10010)>0),ifelse((power>=1000 && random<499&&var(40)=24),3020,205),3000))
trigger2=var(40)=84;||var(40)=9||var(40)=9||
trigger2 =var(40):=85
trigger2 =var(45):=3020
trigger3=var(40)=78;||var(40)=9||var(40)=9||
trigger3 =var(40):=79
trigger3 =var(45):=205

[State -1, Null]
type = Null
triggerall = numhelper(1110)>0
triggerall = helper(1110),movehit	
triggerall = AILevel >6
trigger1=var(40)=25||var(40)=10;||var(40)=9||var(40)=9||
trigger1 =var(40):=ifelse((var(40)=[25,26]),26,11)
trigger1 =var(45):=405

;[State -1, Null]
;type = Null
;triggerall = numhelper(1110)>0
;triggerall = helper(1110),movehit	
;triggerall = AILevel >6
;trigger1=var(40)=[10,11];||var(40)=9||var(40)=9||
;trigger1 =var(40):=11
;trigger1 =var(45):=205
;trigger2=var(40)=0;||var(40)=9||var(40)=9||
;trigger2 =var(40):=140
;trigger2 =var(45):=405
[State -1, Null]
type = Null
triggerall = numhelper(1111)>0
triggerall = helper(1111),movehit	
triggerall = AILevel >6
trigger1=var(40)=[10,11];||var(40)=9||var(40)=9||
trigger1 =var(40):=11
trigger1 =var(45):=205
trigger2=var(40)=0;||var(40)=9||var(40)=9||
trigger2 =var(40):=140
trigger2 =var(45):=405
trigger3=var(40)=71;||var(40)=9||var(40)=9||
trigger3 =var(40):=72
trigger3 =var(45):=205

[State -1, Null]
type = Null
triggerall = numhelper(10009)>0
triggerall = p2stateno=10612||p2stateno=10004
triggerall = AILevel >6
trigger1=var(40)=16||var(40)=0;var(40)=9||var(40)=9||
trigger1 =var(40):=ifelse((var(40)=0),110,17)
trigger1 =var(45):=ifelse((var(40)=110),205,1000)



[State -1, Null]
type = Null
triggerall = numhelper(10010)>0
triggerall = p2stateno=10612
triggerall = AILevel >6
trigger1=var(40)=22||var(40)=83;||var(40)=9||
trigger1 =var(40):=ifelse((var(40)=[83,84]),84,23)
trigger1 =var(45):=ifelse((var(40)=84),1007,1000)
;-oki devicez with ryu
;[State -1, Null]
;type = Null
;triggerall = stateno!=3049
;triggerall = statetype!=A|| stateno=100 || stateno=105
;triggerall = p2movetype!=H || p2stateno=5120|| p2stateno=[120,155]
;triggerall =  p2stateno=5120|| (p2bodydist y >-100&&enemy,vel y  >0)
;trigger1= p2statetype=S && (random<42*AILevel)&& p2movetype!=A
;trigger1 =var(40):=31
;trigger2=p2statetype=C && (random<42*AILevel) && p2movetype!=A
;trigger2 =var(40):=32
;trigger3= p2statetype=A&& (random<42*AILevel)
;trigger3=var(40):=33
;ignorehitpause=1



[State -1, AIgh4]
type = ChangeState
value = var(45)
triggerall = var(40)>0
triggerall = var(45)!=var(46)
triggerall = stateno!=[1000,1106]
triggerall = stateno!=[3001,3020]
triggerall = p2bodydist x <80 || var(40)=10
triggerall = roundstate=2
triggerall = stateno!=[800,899]
triggerall = var(41)=0
;triggerall = numhelper(1001)=0 || var(45)!=[1000,1007]
trigger1 = (ctrl&& statetype!=A||stateno=20||stateno=[100,105]) 
trigger1=var(40)=3||var(40)=145||var(40)=140||var(40)=25||var(40)=23||var(40)=24&&var(45)=205||var(40)=29||var(40)=10||var(40)=71 ||var(40)=79
trigger2 = (ctrl&& statetype!=A||stateno=20||stateno=[100,105]) && ((frontedgebodydist >=60&&p2bodydist x=[0,50])||p2bodydist x=[55,70])
trigger2=(var(40)=116||var(40)=70||var(40)=9) 
trigger3 = (ctrl&& statetype!=A||stateno=20||stateno=[100,105]) && p2bodydist x<65
trigger3 = ((var(40)=11||var(40)=117||var(40)=110||var(40)=72||(var(40)=[16,18])) )
trigger4=  ctrl&& statetype=A 
trigger4 = (var(40)=81||var(40)=74||var(40)=5||var(40)=13||var(40)=20||var(40)=27||var(40)=112) 
trigger5 = movehit &&stateno!=210&&stateno!=610
trigger6=var(40)=22 && ctrl &&statetype!=A
trigger6= (p2bodydist y= [-60,0]) && (enemy,vel y >=-1)  
trigger6 = (p2bodydist x = [30,80])

;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 3049
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
triggerall = p2bodydist x <=85 && (p2bodydist y =[-55,15])
triggerall = power >=3000
triggerall = numenemy=1
trigger1 =  ctrl && p2movetype=A 
trigger2 = stateno=1052&& p2movetype=A 
triggerall = random<65*AILevel 
triggerall = numhelper(1155)=0
triggerall = numhelper(3050) < 1
triggerall = stateno != [800,899]
triggerall = stateno != [3000,3999]
triggerall = movetype!=H
triggerall = (Statetype!=A)
;---------------------------------------------------------------------
[State -1, AIgh4]
type = ChangeState
value = 3000
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
triggerall = power >=1000
trigger1 =p2movetype=A&& ctrl
trigger2= stateno=1052 && movehit ;&&( p2life <floor(300/(ifelse(fvar(11)=1,.6,1)))|| AIlevel <6);
trigger3 = (var(40)=26|| var(40)=18&&fvar(10)=0) && stateno=[1000,1007]
triggerall = (p2bodydist x=[-20,35]) && ((p2bodydist y =[-35,15])||p2statetype!=A) || movehit
triggerall = movetype!=H
triggerall = var(40)=0|| var(40)=26 || var(40)=18&&fvar(10)=0
triggerall = random<30*AILevel ||var(40)>0
;---------------------------------------------------------------------
[State -1, AIgh4]
type = ChangeState
value = 3020
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
triggerall = p2movetype!=I
triggerall = power >=1000
trigger1 = ctrl &&( p2bodydist x >100 || p2movetype=H && p2statetype=A&& enemy,hitfall) && var(40)=0
trigger2 =var(40)=84&& stateno=1007
trigger3 = (stateno=1101 || stateno=1104) && enemy,vel y >=0 && enemy,hitfall && movehit && var(40)=0
trigger4 = var(40)=24 && ctrl 
triggerall = (((p2bodydist y =[-35,15])&&!enemy,hitfall)||p2statetype!=A||stateno=[1100,1105]) || var(40)>0 && enemy,vel y>0
triggerall = stateno != [800,3999]
triggerall = movetype!=H
triggerall = numhelper(3021)=0
triggerall = p2statetype!=L
triggerall = (Statetype!=A)
triggerall = random<30*AILevel||var(40)>0
;--------------------------------------------------------------------------
;----------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = ifelse((statetype!=A||stateno=[100,105]),800,830)
triggerall = random <= 35*AILevel || (var(42) &&random <= 55*AILevel)
triggerall = AILevel >0
triggerall= ((p2statetype != A)&&(statetype!=A||stateno=[100,105]))||(p2statetype=A&&(statetype=A&&stateno!=[100,105]))
triggerall = (ctrl || stateno=20||stateno=[100,105])|| stateno=50
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = movetype!=H
triggerall = var(40)=0 || var(42)
triggerall = p2statetype!=L
triggerall = (enemy,ctrl)|| p2movetype!=H
trigger1 = p2bodydist X < 30 && (p2bodydist y = [-50,40]) && ctrl
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 30 && (p2bodydist y = [-50,40]))&& ctrl
 ;--------------------------------------------
[State -1, Guard]
type = ChangeState
value = 120
triggerall = movetype !=H || stateno=5210
triggerall = roundstate = 2
triggerall = stateno!=[120,155]
triggerall = ctrl||stateno!=[55,59]
triggerall=AILevel>0
triggerall =(StateNo !=[200,3999])&&(StateNo != 105)
Triggerall =  Random < (113*AILevel)
triggerall =InGuardDist||((EnemyNear, movetype=A&& enemynear,hitdefattr!=SCA,AA)||( enemynear,hitdefattr=SCA,NP,SP,HP || enemynear,hitdefattr = SCA,AA))|| (enemy,numproj >0&&p2movetype!=H)
trigger1 = ctrl ||stateno=20||stateno=[100,105]
;------------------------------------------------------
[State -1, Stand Light Punch]
type = ChangeState
value = 200
Triggerall = (RoundState = 2) && (AILevel>0)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
triggerall = helper(10003),var(8)=0||movehit
triggerall = var(40)=0
Triggerall = (P2BodyDist X = [15,45])
triggerall = ((p2bodydist y= [-65,5]));||var(40)=32&&var(32)<=0;||((p2bodydist y= [-125,5])&& (p2movetype=H)&&p2stateno=[300,303])
Triggerall = (Random <=63*AIlevel);||var(40)>0
triggerall = p2statetype !=L
triggerall = enemy, statetype != C
trigger1 = (ctrl || stateno=20||stateno=[100,105]) && var(40)=0
;trigger2 = stateno = 200 && movecontact&& p2bodydist x <30&& var(31)=0
;trigger3= (var(31)=114||var(31)=5||var(31)=32||var(31)=26||var(31)=45||var(31)=76||var(31)=135||var(31)=115)&& ctrl
trigger2 = ctrl&& p2statetype=A&&random <199 &&var(40)=0 &&p2movetype=H
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2statetype != L
Triggerall = (P2BodyDist X = [0,63])
Triggerall = Random <= 65*AILevel || (AIlevel >6 && movehit)
triggerall = movetype != H
triggerall = var(40)=0
triggerall = p2bodydist y =[-25,15]
triggerall = helper(10003),var(8)=0
triggerall= p2statetype!= C|| p2movetype=H
trigger1=(ctrl || stateno=20||stateno=[100,105])&& p2statetype=S&&random <199 &&(helper(10003),var(10)=0&& helper(10003),var(11)=1) && var(40)=0
trigger2 = stateno=400&&movecontact && var(31)=0 && p2statetype=S
trigger3 = stateno=200&&movecontact && var(31)=0 && p2statetype=S
value = 405
;------------------------------------------------------
[State -1, AI 15]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel>0)
Triggerall = (StateType != A)
triggerall = stateno != [800,3999]
Triggerall = (Random <=100*AIlevel);||(var(31)=5||var(31)=32||var(31)=41||var(31)=52||var(31)=58||var(31)=1||var(31)=95)
triggerall = p2statetype !=L
triggerall = helper(10003),var(8)=0 ||movehit
triggerall = var(40)=0
triggerall = p2bodydist y =[-25,15]
triggerall = (p2bodydist x = [-5,60])||((p2bodydist x=[-15,95])&&p2statetype=A)
trigger1 = (ctrl || stateno=20||stateno=[100,105])&& (p2movetype=H||p2bodydist x=[35,55])
trigger2 = stateno=400&&movehit&&var(31)=0
trigger3 = stateno=200&&movehit&&var(31)=0
;trigger5 = ctrl && (var(31)=70||var(31)=143||var(31)=146) && p2bodydist x <35
;trigger6= movehit && var(31)=140
value =206

;------------------------------------------------------
[state -1, sH]
type = changestate
Triggerall = (RoundState = 2) && (AILevel>0)
Triggerall = (StateType != A)
triggerall = stateno != [800,3999]
Triggerall = (Random <=70*AIlevel) ;|| (AILevel=8&&(var(40)=8||var(40)=23||var(40)=30||var(40)=48||var(40)=72||var(40)=77||var(40)=91) )
triggerall = helper(10003),var(8)=0||movehit
triggerall = p2statetype !=L
triggerall = var(40)=0
triggerall = (p2bodydist y= [-70,0]) && (enemy,vel y >=-1||var(40)>0) || movehit && var(40)>0 
triggerall = enemy, statetype != C
triggerall = (p2bodydist x = [-20,70])
trigger1 = (ctrl || stateno=20||stateno=[100,105])&& (p2movetype=H||p2bodydist x=[55,80]) && p2statetype=A&&var(40)=0
trigger2 = stateno=405&&movecontact&&var(40)=0;&& AILevel <=6
trigger3 = stateno=206&&movecontact&&var(40)=0;&& AILevel <=6
value=205
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = helper(10003),var(8)=0
triggerall = stateno !=[1100,3099]
triggerall = var(40)=0
Triggerall = movecontact||(P2BodyDist X = [65,110])&&(P2BodyDist Y = [-25,15] )
Triggerall = Random < 41*AILevel 
triggerall = p2statetype != L 
trigger1 = (ctrl || stateno=20||stateno=[100,105])&& var(40)=0
trigger2= stateno=206&&moveguarded && p2statetype=S 
trigger3 = stateno=206 &&(movecontact) ;&& AILevel <=6
trigger4= stateno=400 &&(movecontact) ;&& AILevel <=6
trigger5 = stateno=405 &&(movecontact) ;&& AILevel <=6
Triggerall = stateno !=435
triggerall = p2stateno!=1003
triggerall = p2stateno !=[120,150]
value = 440

;------------------------------------------------------
[State -1, AI22]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [-15,85]) && ((P2BodyDist Y = [-65,15] ))
;Triggerall = Random < 600
triggerall = var(40)=0
triggerall = p2statetype != L
triggerall = helper(10003),var(8)=0
triggerall = p2stateno !=[120,150]
triggerall = movehit || p2statetype=A &&random <56*AIlevel
Triggerall = stateno !=210
trigger1= p2statetype=A && ctrl &&var(40)=0 && p2movetype=A 
trigger2 = stateno=206 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger3 = stateno=205 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger4 = stateno=200 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger5 = stateno=405 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger6 = stateno=400 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger7 = stateno=440 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
value = 210




;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel>0)
Triggerall = (StateType != A)
triggerall = stateno != [800,3999]
Triggerall = P2BodyDist X = [0,35]
Triggerall = (Random <=63*AIlevel)
triggerall = p2statetype !=L
triggerall = var(40)=0
triggerall = helper(10003),var(8)=0
triggerall = p2bodydist y =[-25,15]
triggerall  =var(4)<4
trigger1 = (ctrl || stateno=20||stateno=[100,105])&&var(40)=0
trigger2 =(ctrl || stateno=20||stateno=[100,105])&& helper(10003),var(10)>0&& p2bodydist x <35 && var(40)=0
value=400





;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 600
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = stateno!=[100,105]
triggerall = var(50) =1
triggerall = var(40)=0
Triggerall = (P2BodyDist X = [-10,75])
triggerall =(p2bodydist y =[-90,75]) ||vel y >0&&p2bodydist y =[-65,85]
triggerall = p2statetype=A||vel y >0
Triggerall = Random <= 61*AILevel
triggerall =vel y >0 || stateno=56 || ((movecontact && AILevel <5)|| (movehit&& AILevel >4))
triggerall = roundstate = 2
trigger1 = ctrl && var(40)=0
trigger2 =(ctrl) && ((var(40)=13)||(var(40)=19)) 
;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 601
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = stateno!=[100,105]
triggerall = var(50) =1
triggerall = var(40)=0
Triggerall = (P2BodyDist X = [0,60])
triggerall =(p2bodydist y =[-90,45]) ||vel y >0&&p2bodydist y =[-90,65]
triggerall = p2statetype=A||vel y >0
Triggerall = Random <= 61*AILevel
triggerall =vel y >0 || stateno=56 || ((movecontact && AILevel <5)|| (movehit&& AILevel >4))
triggerall = roundstate = 2
trigger1 =(movecontact) && ((var(40)=13)||(var(40)=19)) 
trigger2= stateno=600&&movecontact ;&& AILevel <=6



;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 605
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = stateno!=[100,105]
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,75])
triggerall = var(40)=0
triggerall = p2statetype=A||vel y >0
Triggerall = Random <= 61*AILevel
triggerall =(p2bodydist y =[-70,55]) ||vel y >0&&p2bodydist y =[-90,75]
triggerall = roundstate = 2
trigger1= ctrl && p2statetype!=A&& var(40)=0
trigger2= stateno=600&&movecontact;&& AILevel <=6
trigger3= stateno=601&&movecontact;&& AILevel <=6
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, AI9]
type = ChangeState
value = 610
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = stateno!=[100,105]
triggerall = var(50) =1
triggerall = stateno !=[1100,3099]
Triggerall = (P2BodyDist X = [0,80])
triggerall = var(40)=0
triggerall = (p2bodydist y =[-70,75])
triggerall = vel y >0 || (stateno=[600,640])
Triggerall = Random <= 61*AILevel||((movecontact && AILevel <5)|| (movehit&& AILevel >4))
triggerall = roundstate = 2
triggerall = movecontact ||vel y >0
trigger1 = ((var(40)=15)||(var(40)=21))&&((movecontact && AILevel <5)|| (movehit&& AILevel >4))
trigger2= stateno=600&&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger3= stateno=601&&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger4= stateno=605&&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, AI9]
type = ChangeState
value =630
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(8)=0
triggerall = var(40)=0
triggerall = var(50) =1
triggerall = stateno!=[100,105]
Triggerall = (P2BodyDist X = [0,40])
triggerall = p2bodydist y =[-30,10]
triggerall =vel y >0 || stateno=56||((movecontact && AILevel <5)|| (movehit&& AILevel >4))
Triggerall = Random <=15*AILevel
triggerall = roundstate = 2
trigger1 = ctrl && var(40)=0
;trigger2 = stateno = 600 && movecontact


;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 1007
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl&&var(40)=0 
trigger2 = stateno=440 && p2bodydist x >70 && var(40)=0 && movecontact
triggerall = numhelper(1001) <= 0
triggerall = (((p2bodydist x>140&& random < 99))||p2statetype=L&& random < 199&&p2stateno=[675,676]) ||movecontact
triggerall = stateno != [800,3999]
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall =  statetype!=A || stateno=[100,105]
;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 1006
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl && (p2movetype!=I||statetype!=A|| stateno=[100,105])&&var(40)=0&& numhelper(10009)>0
trigger2 = (stateno=205||stateno=440)  && var(40)=0 &&((moveguarded && AILevel <5)|| (movecontact&& AILevel >4))
triggerall = stateno !=410
triggerall = numhelper(1001) <= 0
triggerall = (frontedgebodydist <80||p2bodydist x=[140,190])&& (random <85||p2statetype=L&& random < 199&&p2stateno!=[675,676])
triggerall = stateno != [800,3999]
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall =  statetype!=A|| stateno=[100,105]
trigger2 = p2statetype=L && ctrl
trigger3 = (stateno=440||stateno=205) && moveguarded 
;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 1000
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl&& (p2movetype!=I||statetype!=A|| stateno=[100,105])&&var(40)=0 && numhelper(10009)>0
trigger2 = (stateno=205||stateno=440)  && var(40)=0 &&((moveguarded && AILevel <5)|| (movecontact&& AILevel >4))
triggerall = stateno !=410
triggerall = numhelper(1001) <= 0
triggerall = (frontedgebodydist <80||p2bodydist x=[80,110])&& (random <85||p2statetype=L&& random < 199&&p2stateno!=[675,676])
triggerall = stateno != [800,3999]
Triggerall = stateno !=245
triggerall =  statetype!=A|| stateno=[100,105]
Triggerall = stateno !=215
trigger2 = p2statetype=L && ctrl
trigger3 = (stateno=440||stateno=205) && moveguarded 
;---------------------------------------------------------------------
[State -1, AI4]
type = ChangeState
value = 1106
triggerall = AILevel >0 && roundstate = 2 && statetype!=A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L && p2stateno!=441) 
triggerall = movetype != H
triggerall = stateno !=[800,899]
triggerall = stateno !=410
triggerall = numhelper(3021)=0
triggerall = stateno !=[1100,3099]
Triggerall = stateno !=245
triggerall= var(40)=0
Triggerall = stateno !=215
triggerall = p2bodydist x > 70 || p2movetype=H
Triggerall = stateno !=610
triggerall = p2movetype!=H||p2stateno!=[675,676]
triggerall = random < 25*AILevel
trigger1 = ctrl && helper(10003),var(20)
;trigger3 = stateno=206 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;trigger4 = stateno=205 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;trigger5 = stateno=200 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;trigger6 = stateno=405 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;trigger7 = stateno=400 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;trigger8 = stateno=440 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
;---------------------------------------------------------------------
[State -1, AI5]
type = ChangeState
value = 1103
triggerall = AILevel >0 && roundstate = 2 && p2statetype!=L&& statetype!=A
triggerall = (p2stateno !=[120,155])
triggerall = p2bodydist x >= 130
triggerall = movetype != H
triggerall = stateno !=[800,899]
triggerall = numhelper(3021)=0
triggerall = var(40)=0
triggerall = p2statetype !=L
triggerall = p2movetype!=H||(p2stateno=[120,155])||p2stateno!=[675,676]
triggerall = stateno !=[1100,3099]
triggerall = p2bodydist y=[-45,15]
triggerall = random < 25*AILevel  
;triggerall = var(3)=0 
;trigger1 = ctrl
trigger1 =ctrl 
;---------------------------------------------------------------------
[State -1, AI6]
type = ChangeState
value = 1100
triggerall = AILevel >0 && roundstate = 2 && statetype!=A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L) 
triggerall = p2bodydist x = [-10,165]
triggerall = movetype != H
triggerall = stateno !=[800,899]
triggerall = stateno !=410
triggerall = stateno !=[1100,3099]
Triggerall = stateno !=245
triggerall = numhelper(3021)=0
triggerall= var(40)=0
Triggerall = stateno !=215
Triggerall = stateno !=610
triggerall = p2bodydist y=[-40,10]
triggerall = random < 25*AILevel 
trigger1 = stateno=440 && movehit && (frontedgedist <40||AIlevel<6)
trigger2 = stateno=205 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3)&& (frontedgedist <40||AIlevel<6)
trigger3 = stateno=206 && movehit && (frontedgedist <40||AIlevel<6)
trigger4 = stateno=405 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3)&& (frontedgedist <40||AIlevel<6)
;------------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1060
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall =p2bodydist x=[-15,120]
triggerall = (Statetype!=A &&p2bodydist y<-15 ||var(40)>0)||(Statetype=A &&p2bodydist y>-5)
triggerall = stateno !=[800,4999]
triggerall = var(40)=0|| (var(40)>12&&fvar(10)=0)
triggerall = stateno !=410
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = numhelper(10009)=0 
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = random < 25*AILevel || var(40)>0
triggerall = p2movetype!=I
trigger1= ctrl &&var(40)=0
trigger2 = stateno=206 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger3 = stateno=205 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger4 = stateno=200 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger5 = stateno=405 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger6 = stateno=440 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger7 = stateno=600 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger8 = stateno=601 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger9 = stateno=605 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
triggerall = p2stateno !=[120,150]
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1050
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall = movecontact &&p2bodydist x=[-15,100]
triggerall = p2bodydist y=[-40,40]
triggerall = stateno !=[800,4999]
triggerall = var(40)=0
triggerall = stateno !=410
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = numhelper(10009)=0 
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = random < 25*AILevel || var(40)>0
triggerall = p2movetype!=I
trigger1 = stateno=206 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger2 = stateno=205 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger3 = stateno=200 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger4 = stateno=405 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger5 = stateno=440 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger6 = stateno=600 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger7 = stateno=601 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger8 = stateno=605 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
triggerall = p2stateno !=[120,150]

;------------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1062
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall =p2bodydist x=[-40,40]
triggerall = (Statetype!=A &&p2bodydist y<-15 ||var(40)>0)||(Statetype=A &&p2bodydist y>-5)
triggerall = stateno !=[800,4999]
triggerall = var(40)=0
triggerall = stateno !=410
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = numhelper(10009)=0 
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = random < 25*AILevel || var(40)>0
triggerall = p2movetype!=I
trigger1= ctrl &&var(40)=0
trigger2 = stateno=600 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger3 = stateno=601 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
trigger4 = stateno=605 &&(movecontact&&AILevel<=3 || movehit&&AILevel>3) ;&& AILevel <=6
triggerall = p2stateno !=[120,150]

;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = ifelse(random<499,1152,1150)
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall = movecontact || p2bodydist x>=150
triggerall = p2bodydist y=[-40,40]
triggerall = stateno !=[800,4999]
triggerall = var(40)=0
triggerall = numhelper(1155)=0
triggerall = statetype!=A
triggerall = stateno !=410
triggerall = movetype != H
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = random < 25*AILevel 
triggerall = p2movetype!=I
trigger1 = stateno=440 &&movecontact
trigger2 = stateno=205 &&movecontact
trigger3 = ctrl 
triggerall = p2stateno !=[120,150]
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = ifelse(random<499,1152,1151)
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall = movecontact || p2bodydist x>=150
triggerall = stateno !=[800,4999]
triggerall = var(40)=0
triggerall = stateno !=410
triggerall = statetype!=A
triggerall = movetype != H
triggerall = numhelper(1155)=0
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = random < 25*AILevel 
triggerall = p2movetype!=I
trigger1 = stateno=440 &&movecontact
trigger2 = stateno=205 &&movecontact
trigger3 = ctrl 
triggerall = p2stateno !=[120,150]

;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1600
triggerall = AILevel >0 && StateType != A
triggerall= statetype = S
triggerall = roundstate = 2
trigger1 = stateno = 150 || stateno = 151
triggerall = p2bodydist x < 25
triggerall = random <  63*AILevel
;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1601
triggerall = AILevel >0 && StateType != A
triggerall= statetype = C
triggerall = roundstate = 2
trigger1 = stateno = 152 || stateno = 153
triggerall = p2bodydist x < 25
triggerall = random <  63*AILevel
;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1602
triggerall = AILevel >0
triggerall= statetype = A
triggerall = roundstate = 2
trigger1 = stateno = 153 || stateno = 154
triggerall = p2bodydist x < 25
triggerall = random <  63*AILevel
;-------------------------------------------------------------------
[State -1, AISuper Jump]
type = ChangeState
value = 55
triggerall = AILevel >0
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = random <63*AILevel || var(40)>0
trigger1 = (stateno = 210) && movehit&&p2stateno=411


;-------------------------------------------------
[state -1, AI jump]
type = changestate
triggerall=AILevel>0
triggerall = p2statetype !=L|| p2stateno=5120|| p2stateno=10612
triggerall = (p2stateno!=[5090,5119]) &&(p2stateno!=[5121,5899]) 
triggerall = statetype != A
triggerall = roundstate=2
triggerall = var(40)=0
trigger1 = ctrl && var(30)=1
value = 40


[State -1, AI run]
type=changestate
value=100
triggerall = roundstate = 2
triggerall=AILevel >0 && statetype=S && ctrl
triggerall = p2bodydist y =[-150,0]
triggerall = p2movetype!=A
triggerall = stateno!=100 
trigger1= (stateno!=[100,105]) && p2movetype!=A && (p2bodydist x=[100,788])&& random < 149
trigger2= numprojid(10001)>1 && ctrl && p2bodydist x >35 && p2movetype!=A
trigger3 = p2statetype=L && var(40)=23 && p2bodydist x >40 && ctrl
trigger4 = (var(40)=9||var(40)=110) && p2bodydist x >90 && ctrl && stateno!=100
trigger5 = (var(40)=11) && p2bodydist x >40 && ctrl && stateno!=100
trigger6 = var(42)=1 && p2statetype!=A && ctrl && p2bodydist x >28
trigger7 = (var(40)=22 || var(40)=140) && p2bodydist x >50 && ctrl && stateno!=100
[State -1, AI run]
type=changestate
value=20
triggerall = roundstate = 2
triggerall = p2stateno!=834 || p2bodydist x >80|| var(40)>0
triggerall=AILevel>0 && statetype=S && ctrl && (Random <=31*AIlevel) || var(40)>0
triggerall = p2movetype!=H
triggerall=p2statetype!=L
trigger1= (stateno!=[20,105]) && p2movetype!=A && (p2bodydist x=[20,109]) && var(40)=0
trigger2 = var(40)=21 && (p2bodydist x <25 || p2bodydist x >45) && ctrl
trigger3 = p2bodydist x<20 && p2statetype=L && var(40)=0 
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = AILevel >0
triggerall = roundstate=2||winko
triggerall = random<299
triggerall = gametime%30=0
triggerall = enemy,life < (enemy,lifemax/2.25) ||winko
triggerall = life >700 ||winko
triggerall = p2statetype = L
triggerall = p2bodydist x >120
triggerall = statetype != A
trigger1 = ctrl
[State -1, AIRun Back]
type = ChangeState
value = 105
triggerall = AILevel>0
triggerall = stateno !=105
triggerall = statetype != A
triggerall = random < 149|| var(40)=9
triggerall = backedgebodydist >30
triggerall = roundstate = 2
triggerall =var(40)=0 || var(40)=9||var(40)=22
trigger1 = ( p2movetype = A) && (p2bodydist x=[-99,100])&& (ctrl || stateno=20)
trigger2 = p2movetype=A && prevstateno=140 && (ctrl || stateno=20)
trigger3 = (var(40)=9||var(40)=22) && frontedgedist <55 && ctrl


;===========================================================================

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

[State -1, TAIYOU NO MEGUMI]
type = ChangeState
value = 3049
triggerall = (command="ABA" &&var(57)=0) ||(command="ABB" &&var(57)=1)||(command="ABG" &&var(57)=2)
triggerall = power >= 3000
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = numhelper(1155)=0
triggerall = numhelper(3001) < 1
triggerall = numenemy=1
triggerall = roundstate=2
triggerall = statetype!=A|| stateno=100 || stateno=105 

triggerall = stateno!=[800,899]
triggerall = stateno!=[3000,4999]
triggerall = stateno!=1052 && (prevstateno!=3000&&prevstateno!=3010) || stateno=1052 && (prevstateno!=3000&&prevstateno!=3010)
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3= (stateno=[1000,1062])
trigger4= (stateno=[1150,1152])
trigger5= (stateno=1101) &&movecontact

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


[State -1,Wild Fang X]
type = ChangeState
value = 3020
triggerall = (command="WFXA" &&var(57)=0) ||(command="WFX" &&var(57)=1)||(command="WFXG" &&var(57)=2)
triggerall = power >= 1000
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = roundstate=2
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = stateno!=1052 && (prevstateno!=3000&&prevstateno!=3010) || stateno=1052 && (prevstateno!=3000&&prevstateno!=3010)
triggerall = stateno!=[800,899]
triggerall = stateno!=[3000,4999]
triggerall = numhelper(3021)=0
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3= (stateno=[1000,1062])
trigger4= (stateno=[1150,1152])
trigger5= (stateno=1101) &&movecontact

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

[State -1,Berserker Claw X]
type = ChangeState
value = 3000
triggerall = (command="MHGA" &&var(57)=0) ||(command="MHG" &&var(57)=1)||(command="MHGG" &&var(57)=2)
triggerall = power >= 1000
triggerall = AILevel =0
triggerall = var(50)=1
triggerall =movetype!=H
triggerall = roundstate=2
triggerall = stateno!=[3000,4999]
triggerall = stateno!=[800,899]
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
trigger4= (stateno=[1000,1062])
trigger5= (stateno=[1150,1152])
trigger6= (stateno=1101) &&movecontact

;---------------------------------------------------------------------------
[State -1, anchor grab mvc3]
type = ChangeState
value =1106
triggerall = ((command = "chains3A")&&var(57)=0)||((command="chains3B")&&var(57)=1)||((command="chains3G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = p2movetype!=H||p2stateno!=[1107,1108]
triggerall = statetype!=A|| stateno=100 || stateno=105 || stateno=100
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl 
trigger2 =  (stateno = [200,441])
;---------------------------------------------------------------------------
[State -1, anchor grab mvc3]
type = ChangeState
value =1103
triggerall = ((command = "chains2A")&&var(57)=0)||((command="chains2B")&&var(57)=1)||((command="chains2G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
;---------------------------------------------------------------------------
[State -1, anchor grab mvc3]
type = ChangeState
value =1100
triggerall = ((command = "chains1A")&&var(57)=0)||((command="chains1B")&&var(57)=1)||((command="chains1G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])


;---------------------------------------------------------------------------
[State -1, Wild Fang mvc3]
type = ChangeState
value =1152
triggerall = ((command = "DP3A")&&var(57)=0)||((command="DP3B")&&var(57)=1)||((command="DP3G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1

triggerall = numhelper(1155)<1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1, Wild Fang mvc3]
type = ChangeState
value =1151
triggerall = ((command = "DP2A")&&var(57)=0)||((command="DP2B")&&var(57)=1)||((command="DP2G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = numhelper(1155)<1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1, Wild Fang mvc3]
type = ChangeState
value =1150
triggerall = ((command = "DP1A")&&var(57)=0)||((command="DP1B")&&var(57)=1)||((command="DP1G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = numhelper(1155)<1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1,Assault Birdie mvc3]
type = ChangeState
value = 1007
triggerall = ((command = "sk3A")&&var(57)=0)||((command="sk3B")&&var(57)=1)||((command="sk3G")&&var(57)=2)
triggerall = AILevel =0
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = numhelper(1001)<1
trigger1 = ctrl||stateno=40||stateno=55
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1,Assault Birdie mvc3]
type = ChangeState
value = 1006
triggerall = ((command = "sk2A")&&var(57)=0)||((command="sk2B")&&var(57)=1)||((command="sk2G")&&var(57)=2)
triggerall = AILevel =0
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = numhelper(1001)<1
trigger1 = ctrl||stateno=40||stateno=55
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1,Assault Birdie mvc3]
type = ChangeState
value = 1000
triggerall = ((command = "sk1A")&&var(57)=0)||((command="sk1B")&&var(57)=1)||((command="sk1G")&&var(57)=2)
triggerall = AILevel =0
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = stateno!=210 && stateno!=610
triggerall = numhelper(1001)<1
trigger1 = ctrl||stateno=40||stateno=55
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1,Berserker Claw mvc]
type = ChangeState
value =1062
triggerall = ((command = "gou3A")&&var(57)=0)||((command="gou3")&&var(57)=1)||((command="gou3G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])
;---------------------------------------------------------------------------
[State -1,Berserker Claw mvc]
type = ChangeState
value = 1060
triggerall = ((command = "gou2A")&&var(57)=0)||((command="gou2")&&var(57)=1)||((command="gou2G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])

;---------------------------------------------------------------------------
[State -1,Berserker Claw mvc]
type = ChangeState
value = 1050
triggerall = ((command = "gou1A")&&var(57)=0)||((command="gou1")&&var(57)=1)||((command="gou1G")&&var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = stateno!=210 && stateno!=610
trigger1 = ctrl
trigger2 =  (stateno = [200,441])
trigger3 =  (stateno = [600,645])



;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1600
triggerall =(command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1)
triggerall= statetype = S
triggerall = AILevel =0
trigger1 = stateno = 150 || stateno = 151
;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1601
triggerall =(command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1)
triggerall= statetype = C
triggerall = AILevel =0
trigger1 =  stateno =  152 || stateno = 153
;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1602
triggerall=   (command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1)
triggerall= statetype = A
triggerall = AILevel =0
trigger1 = stateno =  154 || stateno = 155

;--------------------------------------------------------------------------
[State -1, roll]
type=changestate
value=ifelse(command = "holdback",703,702)
triggerall = (command = "holdfwd"||command = "holdback") && (command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1)
triggerall = alive
triggerall = AILevel =0
triggerall= time<3
trigger1 = stateno = 5120|| stateno=5100

;===========================================================================
[State -1, Super Jump]
type = ChangeState
value = 55
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=[3000,4999]
trigger1 = command = "SJ"
trigger1 = statetype != A
trigger1 = ctrl
trigger2= stateno = 410 && command = "holdup" && movecontact  &&p2stateno=411
trigger3= stateno = 210 && command = "holdup" && movecontact  &&p2stateno=411
trigger4= stateno = 212 && command = "holdup" && movecontact  &&p2stateno=411
[State -1, Jump]
type = changestate
value = 40
triggerall = AILevel =0
triggerall = statetype != A
triggerall = command = "up"
triggerall = var(50)=1
trigger1 = ctrl


;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall=AILevel =0
triggerall = var(50)=1
triggerall = command!="holdback"
triggerall = stateno!=100
trigger1 = command = "FF"|| (command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1)
trigger1 = statetype = S
trigger1 = ctrl

;Run Fwd
;ダッシュ

;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno!=105
trigger1 = command = "BB" ||( (command = "2p"||command="2pA"&&var(57)!=1||command="2pB"&&var(57)=1) &&command="holdback")
trigger1 = statetype = S
trigger1 = ctrl


;;---------------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = ifelse(statetype=A,830,800)
triggerall = (command = "b" && var(57)=0) || (command="z" && var(57)=1) || (command="y" && var(57)=2)
triggerall = (statetype != A && p2statetype!=A) || (p2statetype=A && statetype=A)
triggerall = ctrl
triggerall = stateno != 100
triggerall = command!="holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
trigger1 = command = "holdfwd"  ||command = "holdback"
triggerall = p2bodydist X <28
triggerall = p2movetype != H





;===========================================================================
;Stand Light Punch


;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value =200
triggerall =( command = "x" && ( var(57)=[0,1]))||( command = "b" && ( var(57)=2))
triggerall = command != "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2 = stateno=400 && movecontact
trigger3 = stateno=200 && movecontact

triggerall  = stateno !=410


;---------------------------------------------------------------------------
;Stand Strong Punch`
[State -1, Stand Strong Punch]
type = ChangeState
value =205
triggerall =( ((command = "b"  && var(57)=0)||(command = "y" && var(57)=2)||(command = "z" && var(57)=1)))
triggerall = command != "holddown"
triggerall  =stateno !=205
triggerall = var(50)=1
triggerall = AILevel =0
triggerall = statetype!=A|| stateno=100 || stateno=105

trigger1 = ctrl || stateno=[100,105]
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 206 && movecontact
trigger4= (stateno=400|| stateno=405) && movecontact
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing medium Kick]
type = ChangeState
value = 206
triggerall =  (var(59)=1 &&(((var(57)=[0,1]) && command="y")||(var(57)=2 && command="x")))
triggerall = command != "holddown"
triggerall = var(50)=1
triggerall = AILevel =0
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2 = (stateno = 200 || stateno=400)&& movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall =command = "a" 
triggerall  =stateno !=210
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 206 && movecontact
trigger4 = stateno = 205 && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 440 && movecontact



;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype!=A|| stateno=100 || stateno=105
triggerall = AILevel =0
trigger1 = ctrl || stateno=[100,105]

;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value =400
triggerall =( command = "x" && (var(57)=[0,1]))||( command = "b" && var(57)=2)
triggerall = command = "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2= stateno=200 && movecontact
triggerall  = stateno !=410

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing medium Kick]
type = ChangeState
value = 405
triggerall =  ((((var(57)=[0,1]) && command="y")||(var(57)=2 && command="x")))
triggerall = command = "holddown"
triggerall = var(50)=1
triggerall = AILevel =0
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2 = (stateno = 200 || stateno=400||stateno=206)&& movecontact





 ;---------------------------------------------------------------------------
;Stand Strong Punch`
[State -1, Stand Strong Punch]
type = ChangeState
value =440
triggerall =( (command = "b"  && var(57)=0)||(command = "y" && var(57)=2)||(command = "z" && var(57)=1))
triggerall = command = "holddown"
triggerall  =stateno !=205
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = AILevel =0
triggerall = statetype!=A|| stateno=100 || stateno=105
trigger1 = ctrl || stateno=[100,105]
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 206 && movecontact
trigger4= (stateno=400|| stateno=405) && movecontact

;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall =((((var(57)=[0,1]) && command="y")||(var(57)=2 && command="x")))
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = statetype=A&& stateno!=100
trigger1 = ctrl && stateno!=[100,105]
trigger2= stateno = 630 && movecontact
;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 601
triggerall =((((var(57)=[0,1]) && command="y")||(var(57)=2 && command="x")))
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = statetype=A&& stateno!=100
trigger1 = stateno = 600 && movecontact

;------------------------------------------------------------------------------
[State -1, Jump medium Punch]
type = ChangeState
value = 605
triggerall =( (command = "b"  && var(57)=0)||(command = "y" && var(57)=2)||(command = "z" && var(57)=1))
triggerall = statetype=A&& stateno!=100
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = stateno !=640

trigger1 = ctrl && stateno!=[100,105]
trigger2= stateno = 600 && movecontact
trigger3= stateno = 601 && movecontact
trigger4 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "a"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = stateno !=640
triggerall = statetype=A&& stateno!=100
trigger1 = ctrl && stateno!=[100,105]
trigger2 = stateno = 605 && movecontact
trigger3= stateno = 600 && movecontact
trigger4= stateno = 601 && movecontact
trigger5 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall =( command = "x" && (var(57)=[0,1]))||( command = "b" && var(57)=2)
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(59)=1
triggerall = stateno!=210 && stateno!=610
triggerall = statetype=A&& stateno!=100
triggerall = var(8)=0
trigger1 = ctrl && stateno!=[100,105]
trigger2 = stateno = 630 && movecontact


