;-| AI |--------------------------------------------------------
[Command]
name = "CPU1"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU2"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU3"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU4"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU5"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU6"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU7"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU8"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU9"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU10"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU11"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU12"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU13"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU14"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU15"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU16"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU17"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU18"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU19"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU20"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU21"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU22"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU23"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU24"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU25"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU26"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU27"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU28"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU29"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU30"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU31"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU32"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU33"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU34"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU35"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU36"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU37"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU38"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU39"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU40"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU41"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU42"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU43"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU44"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU45"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU46"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU47"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU48"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU49"
command = U, D, B, F, a, b, x, y
time = 0
[Command]
name = "CPU50"
command = U, D, B, F, a, b, x, y
time = 0
;-| Super Motions |--------------------------------------------------------
[command]
name = "Super1"
command = D, F, D, F, x
time = 30
[command]
name = "Super1Ex"
command = D, F, D, F, y
time = 30
[command]
name = "Super2"
command = D, F, D, F, a
time = 30
[command]
name = "Super2"
command = D, F, D, F, b
time = 30
;-| Special Motions |------------------------------------------------------
[Command]
name = "DFClose"
command = D, B, x
time = 30
[Command]
name = "DFFar"
command = D, B, y
time = 30
[Command]
name = "DFDown"
command = D, D, x
time = 20
[Command]
name = "DFDown"
command = D, D, y
time = 30
[Command]
name = "Fountaina"
command = D, B, a
time = 30
[Command]
name = "Fountainb"
command = D, B, b
time = 30
[Command]
name = "SP-Air"
command = D, F, a
time = 30
[Command]
name = "SP-Arc-W"
command = D, F, a
time = 30
[Command]
name = "SP-Arc-S"
command = D, F, b
time = 30
[Command]
name = "SP-L"
command = D, F, x
time = 30
[Command]
name = "SP-LF"
command = D, F, y
time = 30
[Command]
name = "TOP"
command = x+y
time = 30
[Command]
name = "Feint1"
command = F, x+a
time = 20
[Command]
name = "L-Jump"
command = D, U+F
time = 20
;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10
[Command]
name = "BB"
command = B, B
time = 10
;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery"
command = x+y
time = 1
[Command]
name = "Brake"
command = x+a
time = 1
[Command]
name = "top"
command = y+b
time = 1
[Command]
name = "abc"
command = a+b+c
time = 1
;-| Dir + Button |---------------------------------------------------------
[Command]
name = "fwd_x"
command = /F,x
[Command]
name = "fwd_y"
command = /F,y
[Command]
name = "fwd_a"
command = /F,a
time = 1
[Command]
name = "fwd_b"
command = /F,b
time = 1
[Command]
name = "df_y"
command = /DF, y
time = 1
[Command]
name = "df_a"
command = /DF, a
time = 1
[Command]
name = "fake_a"
command = F, a+y
time = 5
[Command]
name = "fake_b"
command = D, a+y
time = 5
[Command]
name = "JDF"
command = B
[Command]
name = "JDF"
command = DB
[Command]
name = "release_back"
command = ~B
[Command]
name = "release_downback"
command = ~DB
;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1
[Command]
name = "hold_a"
command = /a
time = 1
[Command]
name = "b"
command = b
time = 1
[Command]
name = "hold_b"
command = /b
time = 1
[Command]
name = "c"
command = c
time = 1
[Command]
name = "hold_c"
command = /c
time = 1
[Command]
name = "x"
command = x
time = 1
[Command]
name = "hold_x"
command = /x
time = 1
[Command]
name = "y"
command = y
time = 1
[Command]
name = "hold_y"
command = /y
time = 1
[Command]
name = "z"
command = z
time = 1
[Command]
name = "hold_z"
command = /z
time = 1
[Command]
name = "s"
command = s
time = 1
[Command]
name = "S2"
command = D, s
time = 30
;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd_x"
command = /$F, x
time = 1
[Command]
name = "holdfwd_y"
command = /$F, y
time = 1
[Command]
name = "holdfwd"
command = /$F
time = 1
[Command]
name = "back"
command = B
time = 1
[Command]
name = "upback"
command = UB
time = 1
[Command]
name = "downback"
command = DB
time = 1
[Command]
name = "holdback"
command = /$B
time = 1
[Command]
name = "holdup"
command = /$U
time = 1
[Command]
name = "holddown"
command = /$D
time = 1
;-|Commands|------------------------------------------------------------------------------
[Statedef -1]
;-|AI Commands|---------------------------------------------------------------------------
[State -1, Activate AI]
type = VarSet
triggerall = var(59) != 1
triggerall = Roundstate = 2
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
trigger8 = command = "CPU8"
trigger9 = command = "CPU9"
trigger10 = command = "CPU10"
trigger11 = command = "CPU11"
trigger12 = command = "CPU12"
trigger13 = command = "CPU13"
trigger14 = command = "CPU14"
trigger15 = command = "CPU15"
trigger16 = command = "CPU16"
trigger17 = command = "CPU17"
trigger18 = command = "CPU18"
trigger19 = command = "CPU19"
trigger20 = command = "CPU20"
trigger21 = command = "CPU21"
trigger22 = command = "CPU22"
trigger23 = command = "CPU23"
trigger24 = command = "CPU24"
trigger25 = command = "CPU25"
trigger26 = command = "CPU26"
trigger27 = command = "CPU27"
trigger28 = command = "CPU28"
trigger29 = command = "CPU29"
trigger30 = command = "CPU30"
trigger31 = command = "CPU31"
trigger32 = command = "CPU32"
trigger33 = command = "CPU33"
trigger34 = command = "CPU34"
trigger35 = command = "CPU35"
trigger36 = command = "CPU36"
trigger37 = command = "CPU37"
trigger38 = command = "CPU38"
trigger39 = command = "CPU39"
trigger40 = command = "CPU40"
trigger41 = command = "CPU41"
trigger42 = command = "CPU42"
trigger43 = command = "CPU43"
trigger44 = command = "CPU44"
trigger45 = command = "CPU45"
trigger46 = command = "CPU46"
trigger47 = command = "CPU47"
trigger48 = command = "CPU48"
trigger49 = command = "CPU49"
trigger50 = command = "CPU50"
v = 59
value = 1
[State -1] ;Match Over
type = Varset
trigger1 = win ;MatchOver
v = 59
value = 0
;--------------------------------------------------
; Combo Varset
;--------------------------------------------------
[State -1, Move]
type = ChangeState
value = 21
trigger1 = roundstate = 2
trigger1 = var(49) = 1
trigger1 = ctrl
trigger1 = random < 300
trigger1 = P2bodydist X >= 20
trigger1 = statetype != A
trigger1 = p2bodydist X > ceil(40*fvar(4))
trigger1 = enemy, numproj = 0
trigger1 = !InGuardDist
trigger1 = stateno != [120,155]
trigger1 = stateno != 21
trigger1 = stateno != [10,12]
[State -1, AI Idle Test]
type = ChangeState
triggerall = var(59) = 1
triggerall = P2Life != 0
triggerall = statetype != A
trigger1 = ctrl
trigger1 = Random <= 9
value = 0
;--------Break---------------
[State -1, Ai Feints] ; Brake
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype != A
trigger1 = Random <= 149
trigger1 = (stateno = 1020) && movecontact
value = 1052
[State -1] ; Fountainer Brake
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype != A
trigger1 = Random <= 149
trigger1 = (anim = 1020) && movecontact
trigger1 = animelemtime(8) >= 0
trigger1 = animelemtime(8) <= 2
trigger1 = statetype = S
value = 1051
[State -1] ; Swordplay Brake
type = ChangeState
triggerall = var(59) = 1
triggerall = statetype != A
trigger1 = (anim = 1040) && movecontact
trigger1 = Random <= 149
trigger1 = statetype = S
trigger2 = (anim = 1045) && movecontact
trigger2 = Random <= 149
trigger2 = statetype = S
value = 1050
;----------------------------
;----------------------------
;AI Supers
[State -1, AI Supers] ;EX Swordplay
type = ChangeState
triggerall = ctrl = 1
triggerall = var(59) = 1
triggerall = power >= 2000
triggerall = P2statetype != L
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = P2bodydist x <= 50
trigger1 = Random <= 299
trigger1 = statetype != A
trigger1 = stateno = 21 || stateno = [120,131]
trigger2 = prevstateno = 1045 && movehit
value = 3510
[State -1] ;Veroniva
type = ChangeState
triggerall = ctrl = 1
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = power >= 1000
triggerall = P2statetype != A
triggerall = P2statetype != L
triggerall = P2stateno != 5110
trigger1 = Random <= 199
trigger1 = P2bodydist x <= 30
trigger1 = stateno = 21 || stateno = [120,131]
trigger2 = (stateno = 210) && movehit
value = 3520
[state -1] ;Sorry Dude
type = changestate
triggerall = ctrl = 1
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = power >= 1000
triggerall = P2statetype != L
triggerall = P2statetype != A
triggerall = P2stateno != 5110
trigger1 = stateno = 21 || stateno = [120,131]
trigger1 = Random <= 199
trigger1 = P2bodydist x <= 50
trigger2 = (stateno = 1010) && movecontact
value = 3500
;--------------------------------------------
[State -1, AI Blocking]
type = ChangeState
triggerall = var(59) = 1
triggerall = ctrl && (stateno != 120)
triggerall = (statetype != A) && (P2movetype = A) && (P2statetype != C)
trigger1 = inguarddist
trigger1 = !enemy, MoveGuarded
trigger2 = (enemy, NumProj >= 1)
trigger3 = (stateno = 130) && (P2movetype = A) && (P2statetype != C)
value = 120
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = ctrl && (stateno != 130)
triggerall = (statetype != A) && (P2movetype = A) && (P2statetype = C)
trigger1 = inguarddist
trigger1 = !enemy, MoveGuarded
trigger2 = (enemy, NumProj >= 1)
trigger3 = (stateno = 120) && (P2movetype = A) && (P2statetype = C)
value = 130
;--------------------------------------------
;AI Normals
[state -1, AI Grab]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2bodydist x <= 5
triggerall = P2stateno != 5110
trigger1 = Random <= 99
trigger1 = ctrl = 1
value = 800
[State -1, AI Taunt]
type = ChangeState
triggerall = var(59) = 1
triggerall = Win = 1
triggerall = P2life = 0
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = anim = 0
trigger1 = ctrl = 1
trigger1 = Random <= 9
value = 196
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 230) && movecontact
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 149
value = 235
[state -1, AI Normals]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = Random <= 249
trigger1 = ctrl = 1
trigger2 = stateno = 21
trigger3 = stateno = [120,131]
value = 200
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = Random <= 249
trigger1 = ctrl = 1
trigger2 = stateno = 21
trigger3 = stateno = [120,131]
value = 205
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = Random <= 249
value = 220
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 200) || (stateno = 205)
trigger1 = movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 149
trigger3 = stateno = [120,131]
value = 210
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 220) && movecontact
trigger1 = P2Movetype = H
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 249
value = 230
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = S
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 230) && movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 149
value = 235
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 400) && movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 399
value = 400
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2bodydist x <= 20
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = (stateno = 400) && movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 399
trigger3 = stateno = [120,131]
value = 440
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2bodydist x <= 20
triggerall = Random <= 249
triggerall = P2stateno != 5110
trigger1 = stateno = 21
trigger1 = ctrl = 1
trigger2 = stateno = [120,131]
value = 420
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2stateno != 5110
trigger1 = (stateno = 400) && movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = ctrl = 1
trigger2 = P2bodydist x <= 20
trigger2 = Random <= 249
value = 460
[state -1]
type = changestate
triggerall = statetype = A
triggerall = ctrl = 1
triggerall = var(59) = 1
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = stateno = 21 || stateno = [120,131]
trigger2 = Random <= 249
value = 620
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = ctrl = 1
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = (stateno = 620) && movecontact
trigger1 = P2Movetype = H
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = Random <= 349
value = 640
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = ctrl = 1
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = stateno = 21 || stateno = [120,131]
trigger1 = Random <= 349
value = 600
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = ctrl = 1
triggerall = P2bodydist x <= 20
triggerall = P2stateno != 5110
trigger1 = (stateno = 600) && movecontact
trigger2 = stateno = 21 || stateno = [120,131]
trigger2 = Random <= 249
value = 660
;-----------------------------------------------------------------------------------------
[state -1,Taunt]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype = L
triggerall = P2stateno != 5110
trigger1 = Random <= 99
trigger1 = ctrl = 1
trigger1 = anim = 0
trigger1 = animelemtime(12) = 0
value = 195
;--------------------------------------------
;AI Specials
[state -1, Specials AI] ;Upslash
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = P2bodydist x <= 30
triggerall = P2stateno != 5110
trigger1 = (stateno = 220) || (stateno = 230) || (stateno = 460)
trigger1 = movecontact
trigger2 = stateno = 21 || stateno = [120,131]
trigger3 = Random <= 249
value = 1045
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = P2bodydist x <= 30
triggerall = P2stateno != 5110
trigger1 = (stateno = 220) || (stateno = 230) || (stateno = 460)
trigger1 = movecontact
trigger2 = Random <= 199
trigger3 = stateno = 21 || stateno = [120,131]
value = 1040
[state -1] ;Downslash
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = P2stateno != 5110
trigger1 = P2bodydist x <= 50
trigger1 = Random <= 249
trigger2 = (stateno = 230) || (stateno = 210)
trigger2 = movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1035
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = P2stateno != 5110
trigger1 = P2bodydist x <= 70
trigger1 = Random <= 249
trigger2 = (stateno = 200) || (stateno = 205) || (stateno = 210)
trigger2 = movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1030
[state -1] ;Fountainer
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = P2statetype != A
trigger1 = P2bodydist x <= 60 && P2bodydist x >= 46
trigger1 = Random <= 249
trigger2 = (stateno = 230) && movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1025
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = P2statetype != A
trigger1 = P2bodydist x <= 60 && P2bodydist x >= 46
trigger1 = Random <= 249
trigger2 = (stateno = 230) && movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1020
[state -1] ;DarkFlame
type = changestate
triggerall = var(59) = 1
triggerall = ctrl = 1
triggerall = p2dist x <= 30
triggerall = P2stateno != 5110
trigger1 = P2movetype = H
trigger1 = Random <= 99
trigger2 = P2bodydist y <= 0
trigger2 = P2statetype = L
trigger3 = Random <= 299
trigger3 = stateno = 21 || stateno = [120,131]
value = 1010
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = P2statetype != L
triggerall = P2stateno != 5110
trigger1 = Random <= 199
trigger1 = P2bodydist x >= 118 && P2bodydist x <= 122
trigger2 = (stateno = 235) && movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1005
[state -1]
type = changestate
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2statetype != L
triggerall = ctrl = 1
triggerall = P2stateno != 5110
trigger1 = P2bodydist x <= 58
trigger1 = Random <= 199
trigger2 = (stateno = 235) && movecontact
trigger3 = stateno = 21 || stateno = [120,131]
value = 1000
;AI Dash
[State -1, AI Movement] ;Forward
type = ChangeState
triggerall = var(59) = 1
triggerall = P2Life != 0
triggerall = statetype != A
triggerall = P2movetype != A
;triggerall = P2stateno != 5110
trigger1 = Random <= 159
trigger1 = ctrl
trigger1 = P2bodydist x > 100 && P2bodydist x < 10
value = 21 ;20
[State -1] ;Back Jump
type = ChangeState
triggerall = var(59) = 1
triggerall = Prevstateno != 105
triggerall = P2stateno = 5120
triggerall = P2Life != 0
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = P2bodydist x > 10
trigger1 = ctrl
trigger1 = Random <= 199
value = 105
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = ctrl && stateno != 100
triggerall = P2stateno != 5110
trigger1 = p2movetype != A
trigger1 = inguarddist
trigger1 = !enemy, MoveGuarded
value = 100
[State -1] ;Jump
type = ChangeState
triggerall = var(59) = 1
triggerall = P2Life != 0
triggerall = statetype != A
triggerall = ctrl
trigger1 = Random <= 9
trigger2 = Random <= 199 && (P2bodydist x < 50) && (stateno = 100)
trigger3 = (StateNo != 40)
trigger3 = (P2MoveType = A) && (P2StateType != A) && (enemy, NumProj >= 1)
value = 40
[State -1] ;SuperJump
type = ChangeState
triggerall = var(59) = 1
triggerall = P2Life != 0
triggerall = P2bodydist x >= 200
triggerall = statetype != A
triggerall = P2stateno != 5110
trigger1 = Random <= 299
trigger1 = ctrl
value = 54
;-------------------------------------------------------------------
;AI ENDS HERE
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; Fountainer Feint
[State -1, Fountainer Feint]
type = ChangeState
value = 1052
triggerall = command = "Feint1"
triggerall = var(59) != 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 1020) && movecontact
; Fountainer Brake
[State -1, Fountaier Brake]
type = ChangeState
value = 1051
triggerall = command = "Brake"
triggerall = var(59) != 1
trigger1 = anim = 1020
trigger1 = animelemtime(8) >= 0
trigger1 = animelemtime(8) <= 2
trigger1 = statetype = S
trigger2 = anim = 1020
trigger2 = animelemtime(8) >= 0
trigger2 = animelemtime(8) <= 2
trigger2 = movecontact = 1
trigger2 = statetype = S
; Swordplay Brake
[State -1, Swordplay Brake]
type = ChangeState
value = 1050
triggerall = command = "Brake"
triggerall = var(59) != 1
trigger1 = anim = 1040
trigger1 = movecontact = 1
trigger1 = statetype = S
trigger2 = anim = 1040
trigger2 = animelemtime(7) >= 0
trigger2 = animelemtime(7) <= 3
trigger2 = statetype = S
trigger3 = anim = 1045
trigger3 = movecontact = 1
trigger3 = statetype = S
trigger4 = anim = 1045
trigger4 = animelemtime(7) >= 0
trigger4 = animelemtime(7) <= 3
trigger4 = statetype = S
; Super DP 1
[State -1, Super DP 1]
type = ChangeState
value = 3510
triggerall = command = "Super1Ex"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1
; Super 1
[State -1, Super 1]
type = ChangeState
value = 3500
triggerall = command = "Super1"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 1010) && movecontact
; Super 2
[State -1, Super 2]
type = ChangeState
value = 3520
triggerall = command = "Super2"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 210) && movecontact
;アヴォイドマイン
;[State -1, T.O.P.]
;type = ChangeState
;value = 1900
;triggerall = var(16) = 1
;triggerall = statetype = S
;triggerall = ctrl = 1
;trigger1 = command = "TOP"
; Swordplay W
[State -1, Swordplay Arc Weak]
type = ChangeState
value = 1040
triggerall = command = "SP-Arc-W"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movecontact
trigger3 = (stateno = 460) && movecontact
trigger4 = (stateno = 220) && movecontact
trigger5 = (stateno = 1030) && movecontact
; Swordplay S
[State -1, Swordplay Arc Strong]
type = ChangeState
value = 1045
triggerall = command = "SP-Arc-S"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movecontact
trigger3 = (stateno = 460) && movecontact
trigger4 = (stateno = 220) && movecontact
trigger5 = (stateno = 1030) && movecontact
; Swordplay Light
[State -1, Swordplay L]
type = ChangeState
value = 1030
triggerall = command = "SP-L"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 205) && movecontact
trigger4 = (stateno = 210) && movecontact
; Swordplay Light
[State -1, Swordplay L-Fire]
type = ChangeState
value = 1035
triggerall = command = "SP-LF"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movecontact
trigger3 = (stateno = 210) && movecontact
; Fountainer Close
[State -1, Fountainer Close]
type = ChangeState
value = 1020
triggerall = command = "Fountaina"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movehit
trigger3 = (stateno = 235) && movehit
trigger4 = (stateno = 210) && movehit
; Fountainer Far
[State -1, Fountainer Far]
type = ChangeState
value = 1025
triggerall = command = "Fountainb"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movehit
trigger3 = (stateno = 235) && movehit
trigger4 = (stateno = 1045) && movehit
; Dark Splash
[State -1, Dark Splash]
type = ChangeState
value = 1010
triggerall = command = "DFDown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 210) && movecontact
; Darkflame Close
[State -1, Darkflame Close]
type = ChangeState
value = 1000
triggerall = command = "DFClose"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 235) && movecontact
; Darkflame Far
[State -1, Darkflame Far]
type = ChangeState
value = 1005
triggerall = command = "DFFar"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 235) && movecontact
; Darkflame Air
[State -1, Darkflame Areal]
type = ChangeState
value = 1010
triggerall = command = "DFDown"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && movecontact
trigger3 = (stateno = 620) && movecontact
trigger4 = (stateno = 640) && movecontact
; Roundhouse Kick
[State -1, Roundhouse Kick]
type = ChangeState
value = 235
triggerall = command = "fwd_b"
triggerall = p2bodydist x >= 8
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 230) && movecontact
; Throw
[State -1, Throw]
type = ChangeState
value = 800
trigger1 = command = "fwd_y"
trigger1 = statetype = S
trigger1 = stateno != 100
trigger1 = p2bodydist x <= 10
trigger1 = p2movetype != H
trigger1 = p2statetype != A
trigger1 = ctrl = 1
; Standing light punch close
[State -1, Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = p2bodydist x <= 4
trigger1 = statetype = S
trigger1 = ctrl = 1
; Standing light punch far
[State -1, Light Punch]
type = ChangeState
value = 205
triggerall = command = "x"
triggerall = p2bodydist x >= 5
trigger1 = statetype = S
trigger1 = ctrl = 1
; Standing hard punch
[State -1, Hard Punch]
type = ChangeState
value = 210
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && movecontact
trigger3 = (stateno = 205) && movecontact
; Standing light kick
[State -1, Light Kick]
type = ChangeState
value = 220
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl = 1
; Standing Hard kick
[State -1, Hard Kick]
type = ChangeState
value = 230
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 220) && movecontact
; Crouching light punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = (stateno = 400) && movecontact
trigger2 = time >= 8
; Crouching light kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 420
triggerall = command = "a"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = (stateno = 400) && movecontact
; Crouching hard punch
[State -1, Crouching Hard Punch]
type = ChangeState
value = 440
triggerall = command = "y"
trigger1 = statetype = C
trigger1 = ctrl = 1
; Crouching hard kick
[State -1, Crouching Hard Kick]
type = ChangeState
value = 460
triggerall = command = "b"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = (stateno = 400) && movecontact
; Jumping light punch
[State -1, Jumping Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
; Jumping light kick
[State -1, Jumping Light Kick]
type = ChangeState
value = 620
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 640
trigger2 = MoveContact = 1
; Jumping hard punch
[State -1, Jumping Hard Punch]
type = ChangeState
value = 640
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 620) && movecontact
; Jumping hard kick
[State -1, Jumping Hard Kick]
type = ChangeState
value = 660
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && movecontact
;Long Jump
[State -1, Long Jump]
type = ChangeState
value = 54
triggerall = StateType = S || StateType = C
trigger1 = ctrl = 1
trigger1 = Command = "L-Jump"
trigger2 = var(59) = 1
trigger2 = P2bodydist x >= 300
; Post-taunt A
[State -1]
type = ChangeState
value = 196
triggerall = Win = 1
triggerall = P2life = 0
triggerall = statetype = S
trigger1 = command = "holdfwd"
trigger1 = command = "s"
trigger1 = ctrl = 1
; Post-taunt B
[State -1]
type = ChangeState
value = 197
triggerall = Win = 1
triggerall = P2life = 0
triggerall = statetype = S
trigger1 = command = "holdback"
trigger1 = command = "s"
trigger1 = ctrl = 1
; Taunt
[State -1]
type = ChangeState
value = 195
trigger1 = command = "s"
trigger1 = statetype = S
trigger1 = stateno != 195
trigger1 = ctrl = 1
[State -1]
type = VarSet
v = 5
value = 1
triggerall = command = "x"
triggerall = Pos Y < 8
trigger1 = stateno = 5050
trigger2 = stateno = 5071
[State -1]
type = VarSet
v = 5
value = 2
triggerall = command = "a"
triggerall = Pos Y < 8
trigger1 = stateno = 5050
trigger2 = stateno = 5071
[State -1]
type = VarSet
v = 5
value = 3
triggerall = command = "y"
triggerall = Pos Y < 8
trigger1 = stateno = 5050
trigger2 = stateno = 5071
[State -1]
type = VarSet
v = 5
value = 4
triggerall = command = "b"
triggerall = Pos Y < 8
trigger1 = stateno = 5050
trigger2 = stateno = 5071
; Run Forward
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1
; Run Backwards
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1