;=========================================
;Mugen_2_TsMugen added this commands
;=========================================
;僉乕僐儞僼傿僌愝掕(CAPCOM宯拞峌寕忋梡)
;[Remap]
;x = z
;y = c
;z = a
;a = x
;b = y
;c = b
;s = s

;僉乕僐儞僼傿僌愝掕(CAPCOM宯拞峌寕壓梡)
;[Remap]
;x = z
;y = c
;z = y
;a = x
;b = a
;c = b
;s = s

;僉乕僐儞僼傿僌愝掕(帺屓愝掕梡)
;[Remap]
;x = x
;y = y
;z = z
;a = a
;b = b
;c = c
;s = s

;-| AI婲摦梡 |--------------------------------------------------------

;-AIcmd--------------------------------------------------------

[Command]
name = "AI1"
command = a,a,a,a,a,a,a,a
time = 0

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

[Command]
name = "AI3"
command = c,c,c,c,c,c,c,c
time = 0

;-| 挻昁嶦媄 |--------------------------------------------------------

[Command]
name = "傾儖僇僫僽儗僀僘"
command = ~D, DF, F, a+b+c

[Command]
name = "傾儖僇僫僼僅乕僗揥奐"
command = a+b+c

[Command]
name = "L.G.A.superior fire"
command = ~F, D, B, F, a+b
time = 30

[Command]
name = "儕僶僒L.G.A.superior fire"
command = ~B, D, F, B, a+b
time = 30

[Command]
name = "偁傜丄巹偲偟偨偙偲偑乧乧"
command = ~D, DB, B, a+b

[Command]
name = "儕僶僒偁傜丄巹偲偟偨偙偲偑乧乧"
command = ~D, DF, F, a+b

[Command]
name = "L.G.A.combination fire"
command = ~F, D, DF, a+b

[Command]
name = "儕僶僒L.G.A.combination fire"
command = ~B, D, DB, a+b

[Command]
name = "L.G.A.charge-3"
command = ~D, D, a+b

;-| 傾儖僇僫娭楢 |-----------------------------------------------------------

[Command]
name = "俀斉傾儖僇僫挻昁嶦侾"
command = ~D, F, D, F, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俀"
command = ~D, B, D, B, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俁"
command = ~F, B, D, F, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦係"
command = ~F, D, B, F, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俆"
command = ~D, B, F, D, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俇"
command = ~$D, $B, $U, $F, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俇"
command = ~$B, $U, $F, $D, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俇"
command = ~$U, $F, $D, $B, x
time = 35

[Command]
name = "俀斉傾儖僇僫挻昁嶦俇"
command = ~$F, $D, $B, $U, x
time = 35

[Command]
name = "傾儖僇僫挻昁嶦侾"
command = ~D, F, D, F, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俀"
command = ~D, B, D, B, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俁"
command = ~F, B, D, F, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦係"
command = ~F, D, B, F, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俆"
command = ~D, B, F, D, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俇"
command = ~$D, $B, $U, $F, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俇"
command = ~$B, $U, $F, $D, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俇"
command = ~$U, $F, $D, $B, z
time = 35

[Command]
name = "傾儖僇僫挻昁嶦俇"
command = ~$F, $D, $B, $U, z
time = 35

[Command]
name = "俀斉傾儖僇僫昁嶦侾"
command = ~D, DF, F, x

[Command]
name = "俀斉傾儖僇僫昁嶦俀"
command = ~F, D, DF, x

[Command]
name = "俀斉傾儖僇僫昁嶦俁"
command = ~D, DB, B, x

[Command]
name = "俀斉傾儖僇僫昁嶦係"
command = ~B, D, DB, x

[Command]
name = "俀斉傾儖僇僫昁嶦俆"
command = ~B, D, F, x

[Command]
name = "傾儖僇僫昁嶦侾"
command = ~D, DF, F, z

[Command]
name = "傾儖僇僫昁嶦俀"
command = ~F, D, DF, z

[Command]
name = "傾儖僇僫昁嶦俁"
command = ~D, DB, B, z

[Command]
name = "傾儖僇僫昁嶦係"
command = ~B, D, DB, z

[Command]
name = "傾儖僇僫昁嶦俆"
command = ~B, D, F, z

;-| 昁嶦媄 |------------------------------------------------------

[Command]
name = "庛L.G.A assault"
command = ~F, D, B, a

[Command]
name = "拞L.G.A assault"
command = ~F, D, B, b

[Command]
name = "嫮L.G.A assault"
command = ~F, D, B, c

[Command]
name = "庛L.G.A.Fire Type-兛"
command = ~D, DF, F, a

[Command]
name = "拞L.G.A.Fire Type-兛"
command = ~D, DF, F, b

[Command]
name = "嫮L.G.A.Fire Type-兛"
command = ~D, DF, F, c

[Command]
name = "庛L.G.A.dodge"
command = ~D, DB, B, a

[Command]
name = "拞L.G.A.dodge"
command = ~D, DB, B, b

[Command]
name = "嫮L.G.A.dodge"
command = ~D, DB, B, c

[Command]
name = "庛L.G.A.Fire Type-兝"
command = ~F, D, DF, a

[Command]
name = "拞L.G.A.Fire Type-兝"
command = ~F, D, DF, b

[Command]
name = "嫮L.G.A.Fire Type-兝"
command = ~F, D, DF, c

[Command]
name = "庛L.G.A.Fire Type-兝乫"
command = ~B, D, DB, a

[Command]
name = "拞L.G.A.Fire Type-兝乫"
command = ~B, D, DB, b

[Command]
name = "嫮L.G.A.Fire Type-兝乫"
command = ~B, D, DB, c

[Command]
name = "庛L.G.A fire type-兝乫乫"
command = ~D, U, a

[Command]
name = "拞L.G.A fire type-兝乫乫"
command = ~D, U, b

[Command]
name = "嫮L.G.A fire type-兝乫乫"
command = ~D, U, c

[Command]
name = "L.G.A.charge-1"
command = ~D, D, a

[Command]
name = "L.G.A.charge-1"
command = ~D, D, b

[Command]
name = "L.G.A.charge-1"
command = ~D, D, c

;-| 摿庩媄 |-----------------------------------------------------------

;-| 僔僗僥儉娭楢 |-----------------------------------------------------------

[Command]
name = "掅嬻僟僢僔儏"
command = F, F, $U

[Command]
name = "掅嬻僟僢僔儏"
command = F, $U, F

[Command]
name = "懪偪忋偘"
command = /DF

[Command]
name = "悂偭旘偽偟"
command = /F

[Command]
Name    = "僴僀僕儍儞僾"
Command = ~$D, U
time    = 10

[Command]
Name    = "僴僀僕儍儞僾幐攕"
Command = ~15$D, U
time    = 60

;-| 擇夞墴偟僐儅儞僪 |-----------------------------------------------------------
[Command]
name = "慜僟僢僔儏"     ;Required (do not remove)
command = F, F
time = 15

[Command]
name = "僶僢僋僗僥僢僾"     ;Required (do not remove)
command = B, B
time = 15

[Command]
name = "UU"
command = U,U
time = 15

[Command]
name = "DD"
command = D,D
time = 15

;------------------------------------------------------------------------------
;-| 庴偗恎 |-----------------------------------------------------------------
[Command]
name = "recovery"   ;梫媮嵪傒 (僉乕偺曄峏偼壜擻偱偡偑柤慜傪曄偊偨傝柍岠偵偟偰偼偄偗傑偣傫)
command = a
time = 1

[Command]
name = "recovery"   ;梫媮嵪傒 (僉乕偺曄峏偼壜擻偱偡偑柤慜傪曄偊偨傝柍岠偵偟偰偼偄偗傑偣傫)
command = b
time = 1

[Command]
name = "Arcana_recovery"   ;梫媮嵪傒 (僉乕偺曄峏偼壜擻偱偡偑柤慜傪曄偊偨傝柍岠偵偟偰偼偄偗傑偣傫)
command = z
time = 1

[Command]
name = "Arcana_recovery"   ;梫媮嵪傒 (僉乕偺曄峏偼壜擻偱偡偑柤慜傪曄偊偨傝柍岠偵偟偰偼偄偗傑偣傫)
command = /z
time = 1

;-| 儃僞儞扨敪 |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

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

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

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

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

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

;-| 墴偟偭傁側偟 |--------------------------------------------------------------
[Command]
name = "holdx"
command = /x
time = 1

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

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

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

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

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

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

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

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

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

[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

;==============================================================================
;------------------------------------------------------------------------------
; 師偺峴偼愨懳偵徚偝側偄偱偔偩偝偄丅昁恵偺崁栚偱偡丅
[Statedef -1]



;---------------------------------------------------------------------------
;挻昁嶦媄
;---------------------------------------------------------------------------
;懄巰
[State -1]
type = ChangeState
value = 15000
triggerall = !var(59)
triggerall = statetype = S
triggerall = command = "z"
trigger1 = ctrl

;偗偢傝
[State -1]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = statetype = S
triggerall = command = "c"
trigger1 = ctrl

;偗偢傝
[State -1]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = statetype = S
triggerall = command = "x"
trigger1 = ctrl

;---------------------------------------------------------------------------
;捠忢峌寕
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;儂乕儈儞僌傾僋僔儑儞
;---------------------------------------------------------------------------


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

;---------------------------------------------------------------------------
;摿庩摦嶌
;---------------------------------------------------------------------------


;嬻拞慜僟僢僔儏
[State -1, Air Dash]
type = ChangeState
value = 110
triggerall = var(53) = 0
triggerall = statetype = A
triggerall = command = "慜僟僢僔儏"
triggerall = var(12) = 0
triggerall = Pos Y <= -55
trigger1 = ctrl
trigger2 = NumHelper(345) >= 1
trigger2 = Helper(345),StateNo = 346
trigger3 = NumHelper(347) >= 1
trigger3 = Helper(347),StateNo = 348

;僶僢僋僗僥僢僾
[State -1, Back Dash]
type = ChangeState
value = 105
triggerall = var(53) = 0
triggerall = statetype = S
triggerall = command = "僶僢僋僗僥僢僾" || var(15) = 4
triggerall = StateNo != [100,109]
trigger1 = ctrl
trigger2 = NumHelper(345) >= 1
trigger2 = Helper(345),StateNo = 346
trigger3 = NumHelper(347) >= 1
trigger3 = Helper(347),StateNo = 348

;慜僟僢僔儏
[State -1, Dash]
type = ChangeState
value = 100
triggerall = var(53) = 0
triggerall = statetype = S
triggerall = command = "慜僟僢僔儏" || var(15) = 3
triggerall = StateNo != [100,109]
trigger1 = ctrl
trigger2 = NumHelper(345) >= 1
trigger2 = Helper(345),StateNo = 346
trigger3 = NumHelper(347) >= 1
trigger3 = Helper(347),StateNo = 348


;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;AI儖乕僠儞
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;AI--------------------------------------------------------------------------

;AI Command Check
[State -1, AI Command]
type = varset
triggerall = var(59) <= 0
trigger1  = command = "AI1" || command = "AI2" || command = "AI3" 
trigger2 = 1;AI懄婲摦僗僀僢僠 恖憖嶌偟偨偐偭偨傜丄偙偺楍偺堦斣嵍偵丂;丂仼傪偮偗偰偔偩偝偄丅

v = 59
value = 1
ignorehitpause = 1


[State -3, AI]
Type = VarSet
Trigger1 = NumEnemy = 1
Trigger2 = NumEnemy = 2
Trigger2 = EnemyNear,Life > 0
V = 57
Value = 0
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3, AI]
Type = VarSet
Trigger1 = NumEnemy > 1
Trigger1 = EnemyNear,Life = 0
V = 57
Value = 1               
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999


;===================================================
;愗傝懼偊偟丂朶傟
;===================================================

[State -3,]
type = ChangeState
triggerall = var(59) >= 1
triggerall = RoundState = 2
triggerall = StateType != A
triggerall = P2bodydist X = [-60,200]
triggerall= Ctrl
trigger1 = Random =[601,700]
value = 15000


[State -3,]
type = ChangeState
triggerall = var(59) >= 1
triggerall = RoundState = 2
triggerall = StateType != A
triggerall = P2bodydist X = [30,200]
triggerall= Ctrl
trigger1 = Random =[100,300]
value = 200

[State -3,]
type = ChangeState
triggerall = var(59) >= 1
triggerall = RoundState = 2
triggerall = StateType != A
triggerall = P2bodydist X = [-20,200]
triggerall= Ctrl
trigger1 = Random =[301,600]
value = 210

;===================================================
;僈乕僪
;===================================================


;僈乕僪
[State -3]
 Type = ChangeState
 Value = 15000
 triggerall = var(59) >= 1
 Trigger1 = Ctrl
 Trigger1 = InGuardDist



;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;婲偒峌傔
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒



[State -3, 僶僢僋僗僥僢僾]
type = ChangeState
triggerall = var(59) >= 1
triggerall = StateType != A
triggerall = Ctrl || (stateno = [100,101])
Trigger1 = BackEdgeBodyDist > 30
trigger1 = p2bodydist X = [-10,80]
trigger1 = p2statetype = L
value = 105



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

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;堏摦摍
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[State -3, 慜僟僢僔儏]
type = ChangeState
triggerall = var(59) >= 1
triggerall = RoundState = 2
triggerall = StateType != A
triggerall = P2Movetype != H
triggerall = p2statetype != L
triggerall = p2bodydist X >= 60
triggerall = Stateno != 100
triggerall = ctrl
trigger1 = Random < 100
value = 100


[State -3, 慜僟僢僔儏]
type = ChangeState
triggerall = var(59) >= 1
triggerall = RoundState = 2
triggerall = StateType != A
triggerall = P2Movetype = H
triggerall = ctrl
trigger1= p2bodydist X >= 50
value = 100


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








 