;Ultimate Sula
;By Crucifix
;
;CMD

;-AI ACTIVATIONS -----------------------------

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

[Command]
name = "CPU1"
command = a, a, a
time = 1

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

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

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

[Command]
name = "CELESTIAL DESECRATION"
command = ~D,B,F,b
time = 35

[Command]
name = "BEAM"
command = ~D,D,x
time = 35

[Command]
name = "COMET"
command = ~D,D,y
time = 25

[Command]
name = "FLASH"
command = ~z
time = 24

[Command]
name = "EARTH SLAM"
command = ~c, c
time = 24

[Command]
name = "KAMIKAZE"
command = ~c, c
time = 25

[Command]
name = "SHOCKWAVE BLASTS"
command = ~D,D,a
time = 25

[Command]
name = "SULA PUNCH"
command = ~D,D,x
time = 15

[Command]
name = "ENERGY STORM"
command = D,D,b
time = 15

;-| Special Motions |------------------------------------------------------

[command]
name = "cd attack"
command = ~x,x
time = 15

[Command]
name = "bloody hands"
command = ~D,B,a
time = 15

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

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

[Command]
name = "タックル_弱"
command = ~D,F,x
time = 15

[Command]
name = "タックル_強"
command = ~D,F,y
time = 15

[Command]
name = "ボディアタック_弱"
command = ~B,D,x
time = 15

[Command]
name = "ボディアタック_強"
command = ~B,D,y
time = 15

[Command]
name = "来蹴_上段"
command = ~F,D,a
time = 15

[Command]
name = "来蹴_下段"
command = ~F,D,b
time = 15

[Command]
name = "ray_spin_B"
command = ~D,B,a
time = 15

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

[command]
name = "alpha counter"
command = z
time = 15

[command]
name = "alpha counter"
command = a
time = 15

[command]
name = "alpha counter"
command = x
time = 15

[command]
name = "alpha counter"
command = y
time = 15

[command]
name = "alpha counter"
command = c
time = 15

[Command]
name = "ghost strike"
command = z
time = 15

[Command]
name = "ブースト"
command = ~F,F,F
time = 15

[Command]
name = "flyby"
command = ~D,F,a
time = 15

;Gulthor's code
[Command]                       ;N/A
name = "Instantaneous Movement" ;N/A (Teleportation: Instantaneous Movement)
command = c                   ;N/A

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 15

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

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

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

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

[Command]
name = "recovery";Required (do not remove)
command = x
time = 1

[Command]
name = "recovery";Required (do not remove)
command = y
time = 1

[Command]
name = "recovery";Required (do not remove)
command = z
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = x
time = 1

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

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

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

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

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

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

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

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

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

[Command]
name = "right"
command = F
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 = "hold_a";Required (do not remove)
command = /$x
time = 1

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

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

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


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

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

[Command]
name = "longjump"
command = D, $U

;==human commands==============================================================
[statedef -1]

[State -1]
type = ChangeState
value = 6000
triggerall = var(59) != 1
triggerall = power >= 100
trigger1 = command = "holdfwd"
trigger1 = stateno = 5120
trigger1 = Time = 1

[State -1]
type = ChangeState
value = 6001
triggerall = var(59) != 1
triggerall = power >= 100
trigger1 = command = "holdback"
trigger1 = stateno = 5120
trigger1 = Time = 1

;限界突破で地球破壊！怒り爆発プッツンスーラ！！
[State -1]
type = ChangeState
value = 7600
triggerall = var(59) != 1
triggerall = command = "CELESTIAL DESECRATION"
triggerall = statetype != A
triggerall = power >= 3000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 7601
triggerall = stateno != 7602
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger12 = p2bodydist x >= 200
triggerall = (100*life/const(data.life)) <= 2001
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) 
trigger11 = (stateno = 961) && (time = [6,9])
trigger12 = stateno = 0
ctrl = 0


;空の果てまでブッ飛バシ。ゴジ○も真っ青口からビーム！！
[State -1]
type = ChangeState
value = 7500
triggerall = var(59) != 1
triggerall = command = "BEAM"
triggerall = statetype != A
triggerall = power >= 3000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
;triggerall = (100*life/const(data.life)) <= 2001
trigger2 = p2bodydist x >= 150
trigger1 = stateno = 0
ctrl = 0

;撃って撃って撃ちまくり。光の速さのコメットパイル！！
[State -1]
type = ChangeState
value = 4000
triggerall = var(59) != 1
triggerall = command = "COMET"
triggerall = statetype != A
triggerall = power >= 2000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger12 = p2bodydist x >= 100
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) 
trigger11 = (stateno = 961) && (time = [6,9])
trigger12 stateno = 0
ctrl = 0

;イクぜ必殺とっておき。見えない速さのフラッシュパイル！
[state -1]
type = changestate
value = 2050
triggerall = var(59) != 1
triggerall = command = "FLASH"
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = power >= 1000
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger12 = p2bodydist x >= 75
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) 
trigger11 = (stateno = 961) && (time = [6,9])
trigger12 = stateno = 0
ctrl = 0

;これぞ駄目押し容赦無し。喰らってくたばれフルパワープレス！
[state -1]
type = changestate
value = 2150
triggerall = var(59) != 1
triggerall = command = "EARTH SLAM"
triggerall = statetype != A
triggerall = power >= 1000
triggerall = alive = 1           ;Can only be done while you're still alive. (Prevents bugs)
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger3 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger4 = (stateno = 960) && (time = [0,6]) 
trigger5 = (stateno = 961) && (time = [0,9])
trigger6 = (stateno = 270) && (time = [0,10])
trigger7 = stateno = 0
ctrl = 0

[state -1]
type = changestate
value = 666777
triggerall = var(59) != 1
triggerall = command = "SHOCKWAVE BLASTS"
triggerall = statetype != A
triggerall = power >= 3000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger12 = p2bodydist x >= 100
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6])
trigger11 = (stateno = 961) && (time = [6,9])
trigger12 = stateno = 0
ctrl = 0

[state -1, sula punch]
type = changestate
value = 3100
triggerall = var(59) != 1
triggerall = command = "SULA PUNCH"
triggerall = statetype != A
triggerall = power >= 2000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 3101
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger1 = p2bodydist x <= 150
trigger2 = stateno = 0
trigger3 = ctrl = 1

[state -1, sula punch]
type = changestate
value = 1420
triggerall = var(59) != 1
triggerall = command = "ENERGY STORM"
triggerall = statetype != A
triggerall = power >= 2000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
;trigger1 = p2bodydist x <= 150
trigger1 = stateno = 0
trigger2 = ctrl = 1

;最後の切り札｢神風特攻｣、だけど逝くのはお前だけ。
[state -1]
type = changestate
value = 3000
triggerall = var(59) != 1
triggerall = command = "KAMIKAZE"
triggerall = power >= 3000
triggerall = ctrl = 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
triggerall = stateno != 959
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = statetype = A
trigger2 = stateno = [620,650]
trigger2 = movecontact = 1
trigger3 = statetype = A
trigger3 = stateno = [1301,1351]
trigger3 = movecontact = 1
trigger4 = stateno = 46
trigger5 = stateno = 47
trigger6 = stateno = 50
trigger7 = ctrl = 1
ctrl = 0

[State -1, Crow Bite A]
type = ChangeState
value = 1500
triggerall = var(59) != 1
triggerall = command = "crow_bite_A"
triggerall = var(44) != 1
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 5900
triggerall = stateno != 2151
triggerall = stateno != 7601
triggerall = stateno != 7602
triggerall = stateno != 3101
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact
trigger14 = p2bodydist x >= 10
trigger15 = p2bodydist y >= 15
trigger16 = ctrl = 1

[State -1, Crow Bite C]
type = ChangeState
value = 1550
triggerall = var(59) != 1
triggerall = command = "crow_bite_C"
triggerall = statetype != A
triggerall = var(44) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 7601
triggerall = stateno != 7602
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 6000
triggerall = stateno != 6001
triggerall = stateno != 5900
triggerall = stateno != 2151
triggerall = stateno != 3101
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact
trigger14 = p2bodydist x >= 10

[State -1, Flyby]
type = ChangeState
value = 22115
triggerall = var(59) != 1
triggerall = command = "flyby"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 191
triggerall = stateno != 192
triggerall = stateno != 3100
triggerall = stateno != 3101
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 1420
triggerall = stateno != 1421
triggerall = stateno != 12321
triggerall = stateno != 6000
triggerall = stateno != 6001
triggerall = stateno != 5900
triggerall = stateno != 2151
triggerall = stateno != 7601
triggerall = stateno != 7602
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact
trigger14 = p2bodydist x >= 10

[State -1, hadou A]
type = ChangeState
value = 1000
triggerall = var(59) != 1
triggerall = command = "タックル_弱"
triggerall = statetype != A
triggerall = var(44) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

[State -1, hadou C]
type = ChangeState
value = 1050
triggerall = var(59) != 1
triggerall = command = "タックル_強"
triggerall = statetype != A
triggerall = var(44) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

;貧乳言うな！着痩せスーラのボディアタック！
[state -1]
type = changestate
value = 1600
triggerall = var(59) != 1
triggerall = command = "ボディアタック_弱"
triggerall = statetype != A
triggerall = var(44) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

;貧乳言うな！着痩せスーラのボディアタック！
[state -1]
type = changestate
value = 1603
triggerall = var(59) != 1
triggerall = command = "ボディアタック_強"
triggerall = statetype != A
triggerall = var(44) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

;ウチに触ると不運が来蹴。前代未聞の未確認不幸キック！
;来蹴ッ！　上段
[State -1, Raishu]
type = ChangeState
value = 1700
triggerall = var(59) != 1
triggerall = command = "来蹴_上段"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl = 1
;trigger3 = p2bodydist x <= 20

[State -1, Raishu]
type = ChangeState
value = 221
triggerall = var(59) != 1
triggerall = statetype = S
triggerall = command = "bloody hands"
triggerall = p2bodydist x <= 50
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1
;trigger2 = statetype = C
;trigger2 = ctrl = 1

[State -1, alphacounter]
type = ChangeState
value = 1008
triggerall = var(59) != 1
triggerall = command = "alpha counter"
trigger1 = StateNo = 120 || StateNo = 130 || StateNo = 131 || StateNo = 140 || StateNo = 150 || StateNo = 151 || StateNo = 152 || StateNo = 153
trigger1 = StateType = S

[State -1 one inch]
type = changestate
value = 1008
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "y" && command = "holdfwd"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,12]) && movetype = A && !movecontact
trigger3 = (stateno = 220) && (time = [13,20]) && movetype = A && !movecontact
trigger4 = (stateno = 270) && (time = [4,6]) && movetype = A
trigger5 = (stateno = 270) && (time = [16,19]) && movetype = A
trigger6 = (stateno = 400) && (time = [6,13]) && movetype = A && !movecontact
trigger7 = (stateno = 410) && (time = [8,15]) && movetype = A && !movecontact
trigger8 = (stateno = 430) && (time = [7,14]) && movetype = A && !movecontact
trigger9 = (stateno = 960) && (time = [4,6])

[State -1 one inch]
type = changestate
value = 246
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "b" && command = "holdfwd"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = p2bodydist x >= 20
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,12]) && movetype = A && !movecontact
trigger3 = (stateno = 220) && (time = [13,20]) && movetype = A && !movecontact
trigger4 = (stateno = 270) && (time = [4,6]) && movetype = A
trigger5 = (stateno = 270) && (time = [16,19]) && movetype = A
trigger6 = (stateno = 400) && (time = [6,13]) && movetype = A && !movecontact
trigger7 = (stateno = 410) && (time = [8,15]) && movetype = A && !movecontact
trigger8 = (stateno = 430) && (time = [7,14]) && movetype = A && !movecontact
trigger9 = (stateno = 960) && (time = [4,6])

[State -1 one inch]
type = changestate
value = 1351
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "x" && command = "holdfwd"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = p2bodydist x >= 20
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,12]) && movetype = A && !movecontact
trigger3 = (stateno = 220) && (time = [13,20]) && movetype = A && !movecontact
trigger4 = (stateno = 270) && (time = [4,6]) && movetype = A
trigger5 = (stateno = 270) && (time = [16,19]) && movetype = A
trigger6 = (stateno = 400) && (time = [6,13]) && movetype = A && !movecontact
trigger7 = (stateno = 410) && (time = [8,15]) && movetype = A && !movecontact
trigger8 = (stateno = 430) && (time = [7,14]) && movetype = A && !movecontact
trigger9 = (stateno = 960) && (time = [4,6])

;来蹴ッ！　下段
[State -1, Raishu]
type = ChangeState
value = 1705

triggerall = command = "来蹴_下段"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype = C
trigger2 = ctrl = 1
;trigger3 = p2bodydist x <= 20


[State -1, Ray Spin B]
type = ChangeState
value = 1300
triggerall = var(59) != 1
triggerall = command = "ray_spin_B"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

[State -1, Ray Spin B]
type = ChangeState
value = 1350
triggerall = var(59) != 1
triggerall = command = "ray_spin_D"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = stateno = 301 && movecontact && movetype = A
trigger3 = (stateno = 200) && (time = [5,12]) && movetype = A
trigger4 = (stateno = 220) && (time = [13,20]) && movetype = A
trigger5 = (stateno = 270) && (time = [2,5]) && movetype = A && movecontact
trigger6 = (stateno = 270) && (time = [14,19]) && movetype = A && movecontact
trigger7 = (stateno = 400) && (time = [6,13]) && movetype = A
trigger8 = (stateno = 410) && (time = [8,15]) && movetype = A
trigger9 = (stateno = 430) && (time = [7,14]) && movetype = A
trigger10 = (stateno = 960) && (time = [4,6]) && movetype = A
trigger11 = (stateno = 961) && (time = [6,9]) && movetype = A
trigger12 = (stateno = 962) && (time = [4,7]) && movetype = A 
trigger13 = (stateno = 963) && (time = [9,16]) && movetype = A && movecontact

[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(59) != 1
triggerall = command = "holdfwd"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "a"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "b"
trigger2 = p2bodydist X < 3
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

[State -1]
type = varset
trigger1 = stateno != 702
trigger1 = var(2) = 0
trigger1 = command = "crow_bite_A"
trigger1 = p2bodydist x >= 20
trigger1 = ctrl = 1
var(2) = 1500

[State -1]
type = varset
;triggerall = stateno = 200
trigger1 = stateno != 702
trigger1 = var(2) = 0
trigger1 = command = "crow_bite_C"
trigger1 = p2bodydist x >= 20
var(2) = 1550

[State -1, ray spin b]
type = varset
trigger1 = stateno != 702
trigger1 = var(2) = 0
trigger1 = Command = "ray_spin_B"
trigger1 = p2bodydist x <= 100
trigger1 = ctrl = 1
var(2) = 1300

[State -1 ray spin c]
type = varset
trigger1 = stateno != 702
trigger1 = var(2) = 0
trigger1 = Command = "ray_spin_D"
trigger1 = p2bodydist x <= 100
trigger1 = ctrl = 1
var(2) = 1350

;----------------------------
; ICE COFFIN
[State -1, ice coffin]
type = ChangeState
value = 700
triggerall = var(59) != 1
triggerall = statetype = S && P2statetype != A && P2movetype != H
triggerall = (command = "holdfwd" || command = "holdback") && command = "x"
triggerall = stateno != 100 && P2stateno != 5120
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = P2bodydist x <= 10;150
trigger1 = ctrl = 1

[State -1,Behind Slash]
type = ChangeState
value = 750
triggerall = var(59) != 1
triggerall = statetype = S && P2statetype != A && P2movetype != H
triggerall = (command = "holdfwd" || command = "holdback") && command = "y"
triggerall = stateno != 100 && P2stateno != 5120
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = P2bodydist x <= 10;150
trigger1 = ctrl = 1

;------------------------
;Dodge back during guard
[State -1, dodge back]
type = changestate
value = 361
triggerall = var(59) != 1
triggerall = stateno = 150 || stateno = 152
triggerall = Statetype != A
triggerall = power >= 1000
triggerall = (command = "holdback") && (command = "a") && (command = "b")
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 0

;Dodge back
[State -1, dodge back]
type = changestate
value = 360
triggerall = var(59) != 1
triggerall = Statetype != A
triggerall = (command = "holdback") && (command = "a") && (command = "b")
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)

;--------------------------
; dodge fwd during guard
[State -1, dodge back]
type = changestate
value = 351
triggerall = var(59) != 1
triggerall = stateno = 150 || stateno = 152
triggerall = Statetype != A
triggerall = power >= 1000
triggerall = (command = "a") && (command = "b")
trigger1 = ctrl = 0

;Dodge fwd
[State -1, dodge fwd]
type = changestate
value = 350
triggerall = var(59) != 1
triggerall = Statetype != A
triggerall = (command = "a") && (command = "b")
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)
trigger2 = p2bodydist x >= 150

;--------------------------
;エアジャンプ
[State -1, Run Fwd]
type = ChangeState
value = 1062
triggerall = var(59) != 1
triggerall = command = "up"
triggerall = var(19) < 6
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = (stateno = 600) && (time = [6,13]) && movecontact
trigger2 = (stateno = 610) && (time = [12,20]) && movecontact
trigger3 = (stateno = 620) && (time = [9,17]) && movecontact
trigger4 = (stateno = 630) && (time = [6,15]) && movecontact
;--------------------------
;ブースト
[State -1, Run Fwd]
type = ChangeState
value = 1060
triggerall = var(59) != 1
triggerall = command = "ブースト"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 100

[State -1, float back]
type = ChangeState
value = 1063
triggerall = var(59) != 1
triggerall = command = "holdback" && command = "b"
triggerall = power >= 50
triggerall = ctrl = 1
triggerall = stateno != 1063
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = statetype = S
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 105
trigger3 = stateno = 120
trigger4 = stateno = 130
trigger5 = stateno = 140
trigger6 = stateno = 150

;ブースト(キャンセル版)
[State -1, Run Fwd]
type = ChangeState
value = 1060
triggerall = var(59) != 1
triggerall = command = "FF"
triggerall = var(19) < 6
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = (stateno = 301) && (time = [8,45]) && statetype = S && movecontact
trigger2 = (stateno = 200) && (time = [5,20]) && statetype = S && movecontact
trigger3 = (stateno = 210) && (time = [11,40]) && statetype = S && movecontact
trigger4 = (stateno = 220) && (time = [10,28]) && statetype = S && movecontact
trigger5 = (stateno = 230) && (time = [7,45]) && statetype = S && movecontact
trigger6 = (stateno = 960) && (time = [4,15]) && statetype = S && movecontact
trigger7 = (stateno = 961) && (time = [4,15]) && statetype = S && movecontact
trigger8 = (stateno = 270) && (time = [2,42]) && statetype = S && movecontact
trigger9 = (stateno = 963) && (time = [7,25]) && statetype = S && movecontact

;--------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;空中ダッシュ(前)
[State -1, Air Run Fwd]
type = ChangeState
value = 500
triggerall = var(59) != 1
triggerall = power >= 50
triggerall = Pos Y < -50
triggerall = command = "FF"
triggerall = statetype = A
triggerall = stateno != 500
triggerall = stateno != 550
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;--------------------------
;taunt
[State -1, taunt]
type = ChangeState
value = 195
triggerall = var(59) != 1
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = command = "s"
trigger1 = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 3)
;trigger2 = p2bodydist x >= 200

;to do this, it is actually F,s,s (quickly)
[State -1, taunt2]
type = ChangeState
value = 196
triggerall = var(59) != 1
triggerall = command = "holdfwd" && command = "s"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = command = "holdfwd" && command = "s"
trigger1 = statetype != A
trigger1 = stateno = 195

;a third random taunt, though she needed ONE more . . .
[State -1, taunt2]
type = ChangeState
value = 197
triggerall = var(59) != 1
triggerall = command = "holdback" && command = "s"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = command = "holdback" && command = "s"
trigger1 = statetype != A
trigger1 = stateno = 195

;---------------------
; One inch
[State -1 one inch]
type = changestate
value = 300
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "a" && command = "holdfwd"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,12]) && movetype = A && !movecontact
trigger3 = (stateno = 220) && (time = [13,20]) && movetype = A && !movecontact
trigger4 = (stateno = 270) && (time = [4,6]) && movetype = A
trigger5 = (stateno = 270) && (time = [16,19]) && movetype = A
trigger6 = (stateno = 400) && (time = [6,13]) && movetype = A && !movecontact
trigger7 = (stateno = 410) && (time = [8,15]) && movetype = A && !movecontact
trigger8 = (stateno = 430) && (time = [7,14]) && movetype = A && !movecontact
trigger9 = (stateno = 960) && (time = [4,6])

;---------------------
; One inch cancel
[State -1, one inch cancel]
type = changestate
value = 301
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "a" && command = "holdfwd"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = (stateno = 200) && (time = [5,12]) && movetype = A && movecontact
trigger2 = (stateno = 220) && (time = [13,20]) && movetype = A && movecontact
trigger3 = (stateno = 270) && (time = [2,3]) && movetype = A && movecontact
trigger4 = (stateno = 270) && (time = [14,15]) && movetype = A && movecontact
trigger5 = (stateno = 400) && (time = [6,13]) && movetype = A && movecontact
trigger6 = (stateno = 410) && (time = [8,15]) && movetype = A && movecontact
trigger7 = (stateno = 430) && (time = [7,14]) && movetype = A && movecontact
trigger8 = (stateno = 960) && (time = [4,6])


[State -1]
type = changestate
value = 200
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,8])
trigger3 = (stateno = 960) && (time = [4,6])

[State -1]
type = changestate
value = 210
triggerall = var(59) != 1
triggerall = statetype != A
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = (stateno = 200) && (time = [5,8])
trigger3 = (stateno = 961) && (time = [6,9])



;--------------------------
; stand CD attack during guard
[State -1, CD]
type = changestate
value = 245
triggerall = var(59) != 1
triggerall = Statetype != A
triggerall = power >= 1000
triggerall = stateno = 150 || stateno = 152
triggerall = (command = "x") && (command = "y")
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = !ctrl
trigger1 = p2bodydist x <= 30
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;cd attack
[State -1, CD2]
type = changestate
value = 246
triggerall = var(59) != 1
triggerall = command = "cd attack"
triggerall = stateno = 200
triggerall = stateno != 3101
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = p2bodydist x >= 20

;--------------------------
; stand CD attack
[State -1, CD]
type = changestate
value = 240
triggerall = var(59) != 1
triggerall = Statetype != A
triggerall = (command = "x") && (command = "y")
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl || (stateno = 100 && time >= 3)


[State -1]
type = changestate
value = 270
triggerall = var(59) != 1
triggerall = P2dist X <= 59
triggerall = statetype != A
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)

[State -1]
type = changestate
value = 220
triggerall = var(59) != 1
triggerall = P2dist X > 59
triggerall = statetype != A
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)

[State -1]
type = changestate
value = 230
triggerall = var(59) != 1
;triggerall = P2dist X > 64
triggerall = statetype != A
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)




; sliding kick
[State -1]
type = ChangeState
value = 440
triggerall = var(59) != 1
triggerall = command = "holddown" && command = "holdfwd" && command = "b"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = stateno = 270 && movecontact
trigger3 = (stateno = 200) && (time = [5,12])
trigger4 = (stateno = 220) && (time = [13,20])
trigger5 = (stateno = 270) && (time = [2,4])
trigger6 = (stateno = 270) && (time = [14,19])
trigger7 = (stateno = 400) && (time = [6,10])
trigger8 = (stateno = 410) && (time >= 8)

; Crouching A
[State -1]
type = ChangeState
value = 400
triggerall = var(59) != 1
triggerall = command = "holddown" && command = "a"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = stateno = 410 && time >= 8

; Crouching B
[State -1]
type = ChangeState
value = 410
triggerall = var(59) != 1
triggerall = command = "holddown" && command = "b" && command != "holdfwd"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)
trigger2 = stateno = 410 && time >= 8
trigger3 = stateno = 962 && time >= 5

; Crouching C
[State -1]
type = ChangeState
value = 420
triggerall = var(59) != 1
triggerall = command = "holddown" && command = "x"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)

; Crouching D
[State -1]
type = ChangeState
value = 430
triggerall = var(59) != 1
triggerall = command = "holddown" && command = "y"
triggerall = statetype != A
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
trigger1 = ctrl = 1 || (stateno = 100 && time >= 3)


; Jumping light punch
[State -1, jump light punch]
type = ChangeState
value = 600
triggerall = var(59) != 1
triggerall = statetype = A
triggerall = command = "a"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 959
trigger1 = ctrl = 1
trigger2 = p2bodydist x <= 25
triggerall = alive

; Jumping light kick
[State -1, jump light kick]
type = ChangeState
value = 610
triggerall = var(59) != 1
triggerall = statetype = A
triggerall = command = "b"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 959
trigger1 = ctrl = 1
trigger2 = p2bodydist x <= 25
triggerall = alive


; Jumping CD attack
[State -1, jump cd attack]
type = ChangeState
value = 640
triggerall = var(59) != 1
triggerall = statetype = A
triggerall = command = "x" && command = "y"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 959
trigger1 = ctrl = 1
trigger2 = p2bodydist x <= 25
triggerall = alive

; Jumping hard punch
[State -1, jump hard punch]
type = ChangeState
value = 620
triggerall = var(59) != 1
triggerall = statetype = A
triggerall = command = "x"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 959
trigger1 = ctrl = 1
trigger2 = p2bodydist x <= 25
triggerall = alive

[State -1, sghost strike]
type = ChangeState
value = 959
triggerall = var(59) != 1
triggerall = command = "ghost strike"
triggerall = statetype = A
;triggerall = stateno = 500
triggerall = alive
triggerall = stateno != 3000
triggerall = stateno != 959
triggerall = stateno != 3000
trigger1 = stateno = 600
trigger2 = stateno = 610
trigger3 = stateno = 620
trigger4 = stateno = 630
trigger5 = stateno = 50

; Jumping hard kick
[State -1, jump hard kick]
type = ChangeState
value = 630
triggerall = var(59) != 1
triggerall = statetype = A
triggerall = command = "y"
triggerall = stateno != 1402
triggerall = stateno != 777666
triggerall = stateno != 192
triggerall = stateno != 191
triggerall = stateno != 959
trigger1 = ctrl = 1
trigger2 = p2bodydist x <= 25
trigger3 = alive


;============================
; ICE WALLS
[STATE HELPER-StandIceWall]
type = helper
triggerall = numhelper(123) = 0
trigger1 = statetype = S
triggerall = movetype != I
trigger1 = stateno = 120 || stateno = 130 || stateno = 150
trigger2 = numhelper(123) = 0
trigger2 = stateno = 150 || anim = 150
persistent = 0
pos = 0,0
postype = P1
name = "Ice wall"
stateno = 123
ownpal = 1
shadow = 128,128,128
ignorehitpause = 1
ID = 123

[STATE HELPER-CrouchIceWall]
type = helper
triggerall = statetype = C
triggerall = numhelper(124) = 0
trigger1 = stateno = 120 || stateno = 131 || stateno = 152
persistent = 0
pos = 0,0
postype = P1
name = "Ice wall"
stateno = 124
ownpal = 1
shadow = 128,128,128
ignorehitpause = 1
ID = 124

[STATE HELPER-AirIceWall]
type = helper
triggerall = numhelper(125) = 0
triggerall = statetype = A
trigger1 = stateno = 120 || stateno = 132 || stateno = 154
persistent = 0
pos = 0,0
postype = P1
name = "Ice wall"
stateno = 125
ownpal = 1
shadow = 128,128,128
ignorehitpause = 1
ID = 125


;-------------オリジナル
;Gulthor's code
;Instantaneous Movement
[State -1]
type = ChangeState
value = 2001
triggerall = command = "Instantaneous Movement"
triggerall = pos y = 0
;triggerall = movetype != I
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 6000
triggerall = stateno != 6001
trigger1 = statetype = S         ;Can only be done while you're on the ground.
trigger1 = ctrl = 1          ;Can be done anytime, as long as you have control.


;--------------------------------| Description |----------------------------

;Instantaneous Movement - Counter 1
[State -1]
type = ChangeState
value = 2001
triggerall = command = "Instantaneous Movement"
;triggerall = movetype != I
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 6000
triggerall = stateno != 6001
triggerall = alive = 1           ;Can only be done while you're still alive. (Prevents bugs)
trigger1 = ctrl = 1              ;Can be done anytime, as long as you have control.
trigger1 = stateno >= 150        ;Can be done while guarding.
trigger2 = Stateno <= 153
trigger3 = stateno = 5000        ;All triggers below are getting hit states.
trigger4 = stateno = 5001
trigger5 = stateno = 5002
trigger6 = stateno = 5010
trigger7 = stateno = 5011
trigger8 = stateno = 5012
trigger9 = stateno = 5020
trigger10 = stateno = 5021
trigger11 = stateno = 5022
trigger12 = stateno = 5110
trigger13 = stateno = 5120
trigger14 = stateno = 5110
trigger15 = stateno = 5035
trigger16 = stateno = 5030
trigger17 = stateno = 5050
trigger18 = stateno = 5040
trigger19 = stateno = 5071

;--------------------------------| Description |----------------------------

;Instantaneous Movement - Counter 2
[State -1]
type = ChangeState
value = 2001
triggerall = command = "Instantaneous Movement"
;triggerall = movetype != I
triggerall = stateno != 3100
triggerall = stateno != 666777
triggerall = stateno != 2150
triggerall = stateno != 2050
triggerall = stateno != 4000
triggerall = stateno != 7500
triggerall = stateno != 7600
triggerall = stateno != 22115
triggerall = stateno != 221
triggerall = stateno != 3101
triggerall = stateno != 6000
triggerall = stateno != 6001
triggerall = alive = 1           ;Can only be done while you're still alive. (Prevents bugs)
triggerall = ctrl = 1              ;Can be done anytime, as long as you have control.
trigger1 = stateno = 0


