;-| KEZ |--------------------------------------------------------
[Command]
name = "p[Abv"
command = x+a+y
time = 1

[Command]
name = "p[Abv"
command = z+y
time = 1

;-| KEZ |------------------------------------------------------
[Command]
name = "tN^["
command = ~B,D,DB, b

[Command]
name = "tN^["
command = ~B,D,DB, y

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

[Command]
name = "tN^["
command = ~B,D,DB, x


[Command]
name = "EΒU"
command = ~F,D,DF, b

[Command]
name = "EΒU"
command = ~F,D,DF, y

[Command]
name = "EΒU"
command = ~F,D,DF, a

[Command]
name = "EΒU"
command = ~F,D,DF, x


[Command]
name = "EU"
command = ~D,DB,B, b

[Command]
name = "EU"
command = ~D,DB,B, y

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

[Command]
name = "EU"
command = ~D,DB,B, x


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

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

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

[Command]
name = "EU"
command = ~D,DF,F, x


[Command]
name = "ً}O"
command = x+a
time = 1

[Command]
name = "ً}O"
command = z
time = 1

[Command]
name = "ً}"
command = /$B,x+a
time = 1

[Command]
name = "ً}"
command = /$B,z
time = 1

;-| Q񉟂Z |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

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

;-| QER̓Z |-----------------------------------------------
[Command]
name = "Q[Wߔ"
command = z+c
time = 1

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

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

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

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

[Command]
name = "ςȂy"
command = /$y
time = 1

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

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

[Command]
name = "ςȂz"
command = /$z
time = 1

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

;-| ƃ{^ŏoZ |---------------------------------------------------------
[Command]
name = "Ӌr"
command = /$B,b
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| {^ݒiȂj|---------------------------------------------------------
[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

;-| ςȂݒiȂj-------------------------------------------------------
[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


; ̋Lq͐΂ɏȂłB
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;-------------------------------------------------------------------------------------------------------
;-------------------------------------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[statedef -1]

;-------------------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////
[state samsara]
type=selfstate
trigger1=ishelper=0
value=2000000000
[state samsara]
type=ctrlset
trigger1=stateno=0
trigger1=roundstate=2&&var(var(4938572)+39444)<var(var(4938572)+48188)
value=1
[state samsara]
type=turn
trigger1=p2dist x<0
trigger1=stateno=0||stateno=11
[state samsara]
type=changestate
trigger1=roundstate=4&&stateno=0&&var(var(4938572)+39460)<var(var(4938572)+48188)
value=ifelse(root,lose=1,170,ifelse(root,drawgame=1,175,180))
;//////////////////////////////////////////////////////////////////////////////
[state samsara]
type=changestate
triggerall=alive&&var(root,sysvar(0)+9772)=1&&roundstate=2
trigger1=(ctrl||(stateno=200||stateno=210||stateno=230||stateno=240)&&movecontact=1||stateno=700&&animelem=2,>=0)&&power>=powermax&&statetype!=a
trigger1=var(58):=2000
trigger2=frontedgedist>50&&p2dist x>100&&random<100&&((stateno=[150,151])||ctrl&&statetype=s)
trigger2=var(58):=100
trigger3=p2dist x>100&&p2movetype=a&&random<200&&((stateno=[150,151])||(stateno=[200,249])||ctrl&&statetype!=a)
trigger3=var(58):=700
trigger4=pos y>=-40&&p2movetype!=a&&random<100&&stateno=5050
trigger4=var(58):=702
trigger5=backedgedist>50&&ctrl&&(p2dist x=[-001,200])&&random<200&&statetype=s
trigger5=var(58):=105
trigger6=(p2dist x=[-01,50])&&(p2dist y=[-100,001])&&p2movetype=a&&random<100&&stateno=[150,151]
trigger6=var(58):=291
trigger7=(ctrl||(stateno=200||stateno=210||stateno=230||stateno=240)&&movecontact=1||stateno=700&&animelem=2,>=0)&&(p2dist y=[-200,001])&&random<300&&statetype!=a&&!var(20)&&!var(21)
trigger7=var(58):=ifelse(random%2,1000,1010)
trigger8=(ctrl||(stateno=200||stateno=210||stateno=230||stateno=240)&&movecontact=1||stateno=700&&animelem=2,>=0)&&(p2dist y=[-200,001])&&random<300&&statetype!=a&&!var(20)&&!var(21)&&!var(22)
trigger8=var(58):=1020
trigger9=(ctrl||(stateno=200||stateno=210||stateno=230||stateno=240)&&movecontact=1||stateno=700&&animelem=2,>=0)&&(p2dist x=[-001,150])&&(p2dist y=[-100,001])&&random<200&&statetype!=a
trigger9=var(58):=1100
trigger10=(ctrl||stateno=700&&animelem=2,>=0)&&(p2dist x=[-01,50])&&(p2dist y=[-100,001])&&statetype!=a
trigger10=var(58):=200*(gametime%6=0)+210*(gametime%6=[1,2])+230*(gametime%6=3)+240*(gametime%6=[4,5])
value=var(58)

;===========================================================================
;{R}h
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;p[Abv
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2000
triggerall = command = "p[Abv"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1
trigger3 = stateno = 210 && movecontact = 1
trigger4 = stateno = 230 && movecontact = 1
trigger5 = stateno = 240 && movecontact = 1
trigger6 = stateno = 700 && animelem = 2,>=0

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;tN^[
[State -1, a]
type = ChangeState
value = 1100
triggerall = command = "tN^["
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1
trigger3 = stateno = 210 && movecontact = 1
trigger4 = stateno = 230 && movecontact = 1
trigger5 = stateno = 240 && movecontact = 1
trigger6 = stateno = 700 && animelem = 2,>=0

;---------------------------------------------------------------------------
;EΒU
[State -1, a]
type = ChangeState
value = 1020
triggerall = command = "EΒU"
triggerall = statetype != A
triggerall = var(20) = 0
triggerall = var(21) = 0
triggerall = var(22) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1
trigger3 = stateno = 210 && movecontact = 1
trigger4 = stateno = 230 && movecontact = 1
trigger5 = stateno = 240 && movecontact = 1
trigger6 = stateno = 700 && animelem = 2,>=0

;---------------------------------------------------------------------------
;EU
[State -1, a]
type = ChangeState
value = 1010
triggerall = command = "EU"
triggerall = statetype != A
triggerall = var(20) = 0
triggerall = var(21) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1
trigger3 = stateno = 210 && movecontact = 1
trigger4 = stateno = 230 && movecontact = 1
trigger5 = stateno = 240 && movecontact = 1
trigger6 = stateno = 700 && animelem = 2,>=0

;---------------------------------------------------------------------------
;EU
[State -1, a]
type = ChangeState
value = 1000
triggerall = command = "EU"
triggerall = statetype != A
triggerall = var(20) = 0
triggerall = var(21) = 0
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact = 1
trigger3 = stateno = 210 && movecontact = 1
trigger4 = stateno = 230 && movecontact = 1
trigger5 = stateno = 240 && movecontact = 1
trigger6 = stateno = 700 && animelem = 2,>=0



;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;K[hLZӂ΂U
[State -1, 290]
type = ChangeState
value = 291
triggerall = command = "ӂ΂"
triggerall = power >= 500
trigger1 = stateno = 150
trigger2 = stateno = 151

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;K[hLZtgXebv
[State -1, 700]
type = ChangeState
value = 100
triggerall = command = "FF"
triggerall = power >= 500
trigger1 = stateno = 150
trigger2 = stateno = 151
;---------------------------------------------------------------------------
;^NeBJXebv
[State -1, Taunt]
type = ChangeState
value = 700
triggerall = command = "ً}O"
triggerall = power >= 500
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;K[hLZ^NeBJXebv
[State -1, 700]
type = ChangeState
value = 700
triggerall = command = "ً}O"
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151
;---------------------------------------------------------------------------
;AC^NeBJXebv
[State -1, 700]
type = ChangeState
value = 700
triggerall = command = "ً}O"
triggerall = power >= 1000
trigger1 = stateno = [200,249]
;---------------------------------------------------------------------------
;_E
[State -1, Taunt]
type = ChangeState
value = 702
triggerall = command = "ً}O"
trigger1 = stateno = 5050
trigger1 = pos y >=-40
;---------------------------------------------------------------------------
;tgXebv
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;
[State -1, Kung Fu Throw]
type = null;ChangeState
value = 800
triggerall = command = ""
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0


;===========================================================================
;---------------------------------------------------------------------------
;p`
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0
;---------------------------------------------------------------------------
;p`
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0
;---------------------------------------------------------------------------
;LbN
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0
;---------------------------------------------------------------------------
;LbN
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0

;---------------------------------------------------------------------------
;
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 700 && animelem = 2,>=0
