;==============================================================================
; WinŐpp[g
;==============================================================================
;------------------------------------------------------------------------------
;-| {^}bvi{^RtBOj|---------------------------------------- 

[Remap]
x = x      ;w{^͔̓ۂɉ{^Ɋ蓖ĂB
y = y      ;x{^@@@@@@@@@V
z = z      ;y{^@@@@@@@@@V
a = a      ;`{^@@@@@@@@@V
b = b      ;a{^@@@@@@@@@V
c = c      ;b{^@@@@@@@@@V
s = s      ;X^[g{^@@@@@@V

;------------------------------------------------------------------------------
; Ⴆ΁u{w{^ŏop`a{^ɕςꍇvȂA
;
; x = b
;
; ŊȒPɏoBgȂ{^gĂ{^Ɋ蓖Ă鎖\B
;------------------------------------------------------------------------------
;-| ftHgݒ |----------------------------------------------------------- 

[Defaults]
command.time = 20  ;W̃R}h͎tԁB
                   ;eR}hŏȗĂꍇɗLB
                   ;̃p[^ꍇAftHg͂Pt[ɂȂB
                   ;i@M.U.G.E.Nł̂Pt[@@P^UOb@j

command.buffer.time = 1  ;W̃R}h͋LԁB
                         ;͂ɃR}hLA
                         ;w𗣂ĂR}hĂԂ
                         ;Őݒ肵Ԃ̕ێB
                         ;P`ROt[܂ł̊ԂŐݒ\B
                         ;ftHg͂Pt[B
;============================================================================== 
; R}h`p[gi̓L[ݒ肷j
;==============================================================================
;------------------------------------------------------------------------------
;̌܂聡
;
; [Command]         F̓R}hP`B
; name = "***"      FR}h߂B啶ƏʂB
; command = ###     Fۂɓ͂L[gݍ킹Bڍׂ͌qB
; time = &&&        F͎tԂݒiIvVjB
; buffer.time = @@@ F͋LԂݒiIvVjB
;
; l^łĂʂAo^\Ȑ͍őwPQWx܂ŁB
;
;
;wK{R}hxƏĂR}h́AVXeŏĂ܂B
;@R}hςAĂ͂܂BL[̕ύX͏o܂B
;------------------------------------------------------------------------------
;KvȃAt@xbgƋL
;
; Ĺucommand = ###v́w###xɊY镔ŁA
; gݍ킹L[ƃ{^ݒ肵Ȃ΂ȂȂB
;
; ݒ肵L[{^M.U.G.E.ÑIvV[hɂ
;  uL[RtBOvɂĐݒ肵L[ȂǂɑΉĂ܂B
;
; L[iSĕK啶Łj
;
; @B @FuvɃL[i Backward j
; @D @FuvɃL[i Downward j
; @F @FuOvɃL[i Forward j
; @U @FuvɃL[i Upward j
;
; @DB@Fu΂߉vɃL[iuDvƁuBvɓ͂ꂽFj
; @UB@Fu΂ߏvɃL[iuUvƁuBvɓ͂ꂽFj
; @DF@FuO΂߉vɃL[iuDvƁuFvɓ͂ꂽFj
; @UF@FuO΂ߏvɃL[iuUvƁuFvɓ͂ꂽFj
;
; {^iSĕKŁj
;
; @a @Fu`{^v
; @b @Fua{^v
; @c @Fub{^v
; @x @Fuw{^v
; @y @Fux{^v
; @z @Fuy{^v
; @s @FuX^[g{^v
;
; Li͌ʂω閽߁j
;
; @/ @FiXbVjL[{^uςȂvɂĂ鎖Fꍇɒǉ
;
; @@ijF@/b       = a{^܂܂ɂ
; @@@@@@@/F       = OL[܂܂ɂ
; @@@@@@@/U,z     = L[܂܂y{^͂
;
;@@
;
; @~ @Fi`_jL[{^uꂽvFꍇɒǉ
;
; @@ijF@~x       = w{^𗣂
; @@@@@@@~DF      =uO΂߉ṽL[𗣂
; @@@@@@@~DB,F,c  =u΂߉v𗣂ɑOL[Eb{^̏Ԃɓ͂
;
; @@@@@@u{^𗣂܂ł̎ԁiߎԁjvݒ肷鎖o
;
; @@@@@@@~30x     = w{^܂܂ɂāAROt[ȏo痣
; @@@@@@@~50B,F,a = L[TOt[܂ŗ߂đOL[E`{^̏Ԃɓ͂
;
;@@
;
; @$ @FihjL[́u̓ǂꂩ͂Ă鎖vFꍇɒǉ
;
; @@ijF@$B       =uvu΂߉vu΂ߏv̂ǂꂩ͂Ă
; @@@@@@@$UF      =uOvuvuO΂ߏv̂ǂꂩ͂Ă
;
; @@@@@@̋ĹuL[vłg܂B
;
;@@
;
; @+ @FivXj{^uvĂ鎖Fꍇɒǉ
;
; @@ijF@x+y      = w{^Ƃx{^𓯎
; @@@@@@@a+b+c    = `{^Ƃa{^Ƃb{^𓯎
;
; @@@@@@̋Ĺu{^vłg܂B
;
;@@
;
; @> @FiO[^[UjȂiWinłŒǉꂽLj
; @@@@@@@@@@@@ũL[͂ĂȂmFāÃL[vꍇ
;
; @@ijF@a,>~a    = `{^ȊO͂ĂȂԂł`{^𗣂
; @@@@@@@F,>~F,>F = OL[ȊO͂ĂȂԂőOL[𗣂A
;@@@@@@@@@@@@@xOL[͂
;
;-------------------------------------------------------------------------------
; ̋L͑Sđgݍ킹Ďgo遜
;
; @@ijF@~80$DB,DF,F,/a+y+c
; @@@@@@@
; @@@@@@uvuvu΂߉v̂ǂꂩWOt[܂ŗ߂
; @@@@@@uO΂߉vuOv͂A`ƂxƂb𓯎܂܂ɂ
;
;-| AP |--------------------------------------------------------
[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP"
command = F, D, F, a+b
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1

[Command]
name = "AP2"
command = F, D, F, a+c
time = 1
;-| Super Motions |--------------------------------------------------------
[Command]
name = "KIKANSYA"
command = a+b
time = 1

[Command]
name = "URADORA"
command = b+c
time = 1

[Command]
name = "YUUJYOUPOWER"
command = a+x
time = 1

[Command]
name = "DORAYAKIN"
command = a+c
time = 1

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

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

;==============================================================================
;-| AIZbg |-----------------------------------------------------------------
[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI51"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,x
time = 0
[Command]
name = "AI52"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,x
time = 0
[Command]
name = "AI53"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI54"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,x
time = 0
[Command]
name = "AI55"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,x
time = 0
[Command]
name = "AI56"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,x
time = 0
[Command]
name = "AI57"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,x
time = 0
[Command]
name = "AI58"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,x
time = 0
[Command]
name = "AI59"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,x
time = 0
[Command]
name = "AI60"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,x
time = 0
;-| Hissatu Motions |--------------------------------------------------------

[Command]
name = "door"
command = /F,a

[Command]
name = "neji"
command = /F,b
[Command]
name = "kaminari"
command = /F,c

[Command]
name = "korobasiya"
command = /F,x

[Command]
name = "yari"
command = /F,y

[Command]
name = "hirari"
command = /F,z

[Command]
name = "kibidango"
command = /B,a

[Command]
name = "minidora"
command = /B,b

[Command]
name = "turibori"
command = /B,c

[Command]
name = "syabon"
command = /B,x
time = 10

[Command]
name = "shock"
command = /B,y

[Command]
name = "mhand"
command = /B,z

[Command]
name = "SUTORO"
command = /D,c
time = 1
;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"       ;Required (do not remove)
command = F, F
time = 20

[Command]
name = "FFF"       ;Required (do not remove)
command = F, F, F
time = 20

[Command]
name = "BB"       ;Required (do not remove)
command = B, B
time = 10

[Command]
name = "bob"
command = ~F,B,a
time = 10

[Command]
name = "doraneko"
command = ~B,F,z
time = 10

[Command]
name = "DORAMI"       ;Required (do not remove)
command = ~B,F,x
time = 10

[Command]
name = "SUNE"       ;Required (do not remove)
command = ~B,F,y
time = 10

[Command]
name = "JAI"       ;Required (do not remove)
command = ~B,F,b
time = 10

[Command]
name = "SIZU"       ;Required (do not remove)
command = ~B,F,c
time = 10

[Command]
name = "NOBI"       ;Required (do not remove)
command = ~B,F,a
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = a

[Command]
name = "recovery" ;Required (do not remove)
command = b

[Command]
name = "recovery" ;Required (do not remove)
command = c

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

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

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_c"
command = /B,c
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 = "fwd_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
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="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;---------------------------------------------------------------------------
;
[State -1]
type = VarSet
triggerall = RoundState = [0,2]
trigger1 = command = "AP"
trigger1 = Var(10) != 1
v = 10
value = 1

[State -1]
type = VarSet
triggerall = RoundState = [0,2]
trigger1 = command = "AP2"
trigger1 = Var(10) != 2
v = 10
value = 2
;---------------------------------------------------------------------------
;===========================================================================
;DORAYAKIN
[State -1]
type = ChangeState
value = 3200
triggerall = command = "DORAYAKIN"
triggerall = power >= 1000
triggerall = power < 2000
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1
;===========================================================================
;DORAYAKIN1.5
[State -1]
type = ChangeState
value = 3220
triggerall = command = "DORAYAKIN"
triggerall = power >= 2000
triggerall = power < 3000
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1
;===========================================================================
;DORAYAKIN2.0
[State -1]
type = ChangeState
value = 3240
triggerall = command = "DORAYAKIN"
triggerall = power >= 3000 || power = powermax 
triggerall = numhelper(3200) = 0
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = hitdefattr = A,NA
trigger2 = movecontact = 1

[State -1]
type = ChangeState
value = 1020
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(0) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150

[State -1]
type = ChangeState
value = 230
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(230) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150

[State -1]
type = ChangeState
value = 240
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(240) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150
trigger1 = P2BodyDist Y < -80

[State -1]
type = ChangeState
value = 250
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numhelper(250) = 0
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X >= 150
;===========================================================================
[State -1]
type = ChangeState
value = 1700
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(1700) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 150
trigger1 = P2BodyDist Y < -80
;===========================================================================
[State -1]
type = ChangeState
value = 1800
trigger1 = Var(10) > 0
trigger1 = random < 250
trigger1 = numprojID(1800) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 150
;===========================================================================
[State -1]
type = ChangeState
value = 1900
trigger1 = Var(10) > 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 50
trigger1 = P2stateno = 130
;===========================================================================
[State -1]
type = ChangeState
value = 2500
trigger1 = Var(10) > 0
trigger1 = random < 150
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X < 150
trigger1 = P2BodyDist X > 100

[State -1]
type = ChangeState
value = 2600
trigger1 = Var(10) > 0
trigger1 = random < 200
trigger1 = numhelper(2600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 20
trigger1 = P2BodyDist X <= 80
trigger1 = P2BodyDist Y < -80
[State -1]
type = ChangeState
value = 420
trigger1 = Var(10) > 0
trigger1 = random < 200
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = P2BodyDist X >= 0
trigger1 = P2BodyDist X <= 50
trigger1 = P2BodyDist Y < -50
;---------------------------------------------------------------------------
;
[State -1]
type = ChangeState
value = 210
triggerall = statetype != A
triggerall = Var(10) > 0
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 50
trigger1 = P2BodyDist X >= 10
trigger1 = ctrl = 1
trigger1 = P2Life > 0

[State -1]
type = ChangeState
value = 200
triggerall = statetype != A
trigger1 = Var(10) = 1
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 10
trigger1 = P2BodyDist X >= 4
trigger1 = ctrl = 1
trigger1 = P2Life > 0

[State -1]
type = ChangeState
value = 900
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = Var(10) > 0
triggerall = ctrl = 1
trigger1 = stateno != 100
trigger1 = p2bodydist X < 4
trigger1 = p2statetype = S
trigger1 = p2movetype != H

[State -1]
type = ChangeState
value = 400
triggerall = statetype != A
trigger1 = Var(10) = 2
trigger1 = (P2stateno = 0 || P2stateno = 10 || P2stateno = 11 || P2stateno = 12)
trigger1 = P2BodyDist X < 20
trigger1 = ctrl = 1
trigger1 = P2Life > 0

;===========================================================================
;KIKANSYA
[State -1]
type = ChangeState
value = 3400
triggerall = command = "KIKANSYA"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;URADORAMAN
[State -1]
type = ChangeState
value = 3500
triggerall = command = "URADORA"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;Superwaza A
[State -1]
type = ChangeState
value = 3000
triggerall = command = "YUUJYOUPOWER"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
triggerall = numprojID(1100) = 0
triggerall = numprojID(1110) = 0
triggerall = numprojID(1120) = 0
triggerall = numprojID(1130) = 0
triggerall = numprojID(1140) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA
[State -1]
type = ChangeState
value = 3100
triggerall = command = "NANKANAIKA"
triggerall = power >= 1000
triggerall = power < 2000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA2
[State -1]
type = ChangeState
value = 3110
triggerall = command = "NANKANAIKA"
triggerall = power >= 2000
triggerall = power < 3000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;NANKANAIKA3
[State -1]
type = ChangeState
value = 3120
triggerall = command = "NANKANAIKA"
triggerall = power >= 3000 || power = powermax 
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;===========================================================================
;JYAI
[State -1]
type = ChangeState
value = 3301
triggerall = stateno != 3400
triggerall = command = "TOMODACHI"
triggerall = power >= 1000
triggerall = stateno != 3400
triggerall = stateno != 3500
triggerall = stateno != 3340
triggerall = stateno != 3350
triggerall = numhelper(3300) = 0
triggerall = numhelper(3310) = 0
triggerall = numhelper(3320) = 0
triggerall = numhelper(3330) = 0
;triggerall = numhelper(3340) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = hitdefattr = SC, NA
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1140
triggerall = numprojID(1140) = 0
trigger1 = command = "DORAMI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1130
triggerall = numprojID(1130) = 0
trigger1 = command = "SUNE"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1120
triggerall = numprojID(1120) = 0
trigger1 = command = "JAI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;DORANEKO
[State -1]
type = ChangeState
value = 2700
triggerall = command = "doraneko"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;BOMB
[State -1]
type = ChangeState
value = 252
trigger1 = command = "bob"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1110
triggerall = numprojID(1110) = 0
trigger1 = command = "SIZU"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;HELP
[State -1]
type = ChangeState
value = 1100
triggerall = numprojID(1100) = 0
trigger1 = command = "NOBI"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;
[State -1]
type = ChangeState
value = 900
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = command = "fwd_a"
trigger1 = p2bodydist X < 30
;===========================================================================
;V{
[State -1]
type = ChangeState
value = 1700
triggerall = command = "syabon"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;V{
[State -1]
type = ChangeState
value = 1701
triggerall = command = "syabon"
trigger1 = statetype = A
trigger1 = ctrl = 1
;===========================================================================
;VbNK
[State -1]
type = ChangeState
value = 1800
triggerall = command = "shock"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;VbNK-
[State -1]
type = ChangeState
value = 1801
triggerall = command = "shock"
trigger1 = statetype = A
trigger1 = ctrl = 1
;===========================================================================
;Hissatu E
[State -1]
type = ChangeState
value = 1900
triggerall = command = "mhand"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact

;===========================================================================
;door
[State -1]
type = ChangeState
value = 2100
triggerall = command = "door"
trigger2 = stateno = [150,151];K[hJE^[
triggerall = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;neji
[State -1]
type = ChangeState
value = 2200
triggerall = command = "neji"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;===========================================================================
;kaminari
[State -1]
type = ChangeState
value = 2300
triggerall = command = "kaminari"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact

;===========================================================================
;korobasiya
[State -1]
type = ChangeState
value = 2400
triggerall = command = "korobasiya"
triggerall = numhelper(2400) <= 3
triggerall = Life > 10
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
;===========================================================================
;Hirari
[State -1]
type = ChangeState
value = 2000
triggerall = command = "hirari"
triggerall = numhelper(2000) = 0
trigger2 = stateno = [150,151];K[hJE^[
triggerall = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;Hirari
[State -1]
type = ChangeState
value = 2001
triggerall = command = "hirari"
triggerall = numhelper(2000) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1

;===========================================================================
;yari
[State -1]
type = ChangeState
value = 2500
triggerall = command = "yari"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;AirDASH
[State -1]
type = ChangeState
value = 101
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl = 1

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

;---------------------------------------------------------------------------
;RunBack
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;Hissatu A
[State -1]
type = ChangeState
value = 1500
triggerall = command = "kibidango"
triggerall = numhelper(1500) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900
trigger2 = movecontact = 1
;===========================================================================
;Hissatu B
[State -1]
type = ChangeState
value = 1600
triggerall = command = "minidora"
triggerall = numhelper(1600) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 1900
trigger2 = movecontact = 1
;===========================================================================
;turibori
[State -1]
type = ChangeState
value = 2600
triggerall = command = "turibori"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = (stateno = [200,399]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = stateno = 2300
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_A
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = time > 7||movecontact

;---------------------------------------------------------------------------
;Stand_B
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1

;---------------------------------------------------------------------------
;Stand_C
[State -1]
type = ChangeState
value = 1020
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_x
[State -1]
type = ChangeState
value = 230
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = numHelper(230) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_y
[State -1]
type = ChangeState
value = 240
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = numHelper(240) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1
;---------------------------------------------------------------------------
;Stand_z
[State -1]
type = ChangeState
value = 250
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = numHelper(250) <= 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 210
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_A
[State -1]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_B
[State -1]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 400 ;crouch_a
trigger2 = movecontact = 1
trigger3 = stateno = 200 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_C
[State -1]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = stateno != 420
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 410 ;crouch_b
trigger2 = movecontact = 1
trigger3 = stateno = 420
trigger3 = movecontact = 1
trigger4 = stateno = 200
trigger4 = movecontact = 1
trigger5 = stateno = 210
trigger5 = movecontact = 1
trigger6 = stateno = 250
trigger6 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_x
[State -1]
type = ChangeState
value = 430
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Crouch_y
[State -1]
type = ChangeState
value = 440
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 430
trigger2 = movecontact = 1
trigger3 = stateno = 210 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;Crouch_z
[State -1]
type = ChangeState
value = 450
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 440
trigger2 = movecontact = 1
trigger3 = stateno = 210 
trigger3 = movecontact = 1

;---------------------------------------------------------------------------
;DORAYAKITABERU
[State -1]
type = ChangeState
value = 199
triggerall = command = "start"
trigger1 = statetype = S
trigger1 = ctrl = 1
;===========================================================================
;SUTORO
[State -1]
type = ChangeState
value = 2800
triggerall = command = "SUTORO"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact = 1
trigger3 = stateno = 610
trigger3 = movecontact = 1
trigger4 = stateno = 620
trigger4 = movecontact = 1
trigger5 = stateno = 601
trigger5 = movecontact = 1
trigger6 = stateno = 611
trigger6 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_A2
[State -1]
type = ChangeState
value = 601
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact = 1
trigger3 = stateno = 610
trigger3 = movecontact = 1
trigger4 = stateno = 620
trigger4 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_B2
[State -1]
type = ChangeState
value = 611
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_C2
[State -1]
type = ChangeState
value = 621
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_A
[State -1]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1

;---------------------------------------------------------------------------
;Jump_B
[State -1]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Jump_C
[State -1]
type = ChangeState
value = 620
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = [600,621]
trigger2 = movecontact = 1
;---------------------------------------------------------------------------
;Wv
[State -1]
type = ChangeState
value = 198
triggerall = command = "holdup"
trigger1 = statetype = C
trigger1 = ctrl = 1


[State 3001, 0]
type = varSet
trigger1 = gametime%60 = 0
v = 1
var(1) = Random%5
IgnoreHitPause = 1

[State 3001, 0]
type = varSet
trigger1 = var(1) >= 5
v = 1
var(1) = 0
IgnoreHitPause = 1