;---------------------------------------------------------------------------
;デフォルト設定
;---------------------------------------------------------------------------
[Defaults]
command.time = 1
command.buffer.time = 1

;[Remap];自分用
;a = y
;b = x
;z = a
;c = b
;----------------------------------------AIコマンド
[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0
;---------------------------------------------------------------------------
;スキルコマンド
;---------------------------------------------------------------------------
[Command]
name = "236a"
command = ~D, DF, F, a
time = 15

[Command]
name = "236b"
command = ~D, DF, F, b
time = 15

[Command]
name = "236c"
command = ~D, DF, F, c
time = 15

[Command]
name = "623a"
command = ~F, D, DF, a
time = 18

[Command]
name = "623b"
command = ~F, D, DF, b
time = 18

[Command]
name = "623c"
command = ~F, D, DF, c
time = 18

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

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

[Command]
name = "214c"
command = ~D, DB, B, c
time = 15

[Command]
name = "421a"
command = ~B, D, DB, a
time = 18

[Command]
name = "421b"
command = ~B, D, DB, b
time = 18

[Command]
name = "421c"
command = ~B, D, DB, c
time = 18

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

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

;---------------------------------------------------------------------------
;その他
;---------------------------------------------------------------------------
[Command]
name = "recovery"	;必須コマンド
command = a

[Command]
name = "recovery"
command = b

[Command]
name = "recovery"
command = c

[Command]
name = "recovery"
command = z

[Command]
name = "FF"		;必須コマンド
command = F, F
time = 10

[Command]
name = "BB"		;必須コマンド
command = B, B
time = 10

[Command]
name = "DU"
command = D, $U
time = 10

;---------------------------------------------------------------------------
;ボタン単発
;---------------------------------------------------------------------------
[Command]
name = "a"
command = a

[Command]
name = "b"
command = b

[Command]
name = "c"
command = c

[Command]
name = "x"
command = x

[Command]
name = "y"
command = y

[Command]
name = "z"
command = z

[Command]
name = "start"
command = s

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

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

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

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

;---------------------------------------------------------------------------
;方向キー
;---------------------------------------------------------------------------
[Command]
name = "holdfwd"	;必須コマンド
command = /$F

[Command]
name = "holdback"	;必須コマンド
command = /$B

[Command]
name = "holdup"		;必須コマンド
command = /$U

[Command]
name = "holddown"	;必須コマンド
command = /$D

;---------------------------------------------------------------------------
[Statedef -1]
[State -1, ai] 
type = varset
trigger1 = !Ishelper
triggerall = var(59) = 0 
trigger1 = Command = "AI0" 
trigger2 = Command = "AI1" 
trigger3 = Command = "AI2" 
trigger4 = Command = "AI3" 
trigger5 = Command = "AI4" 
trigger6 = Command = "AI5" 
trigger7 = Command = "AI6" 
trigger8 = Command = "AI7" 
trigger9 = Command = "AI8" 
trigger10 = Command = "AI9" 
trigger11 = Command = "AI10" 
trigger12 = Command = "AI11" 
trigger13 = Command = "AI12" 
trigger14 = Command = "AI13" 
trigger15 = Command = "AI14" 
trigger16 = Command = "AI15" 
trigger17 = Command = "AI16" 
trigger18 = Command = "AI17" 
trigger19 = Command = "AI18" 
trigger20 = Command = "AI19" 
trigger21 = Command = "AI20" 
trigger22 = Command = "AI21" 
trigger23 = Command = "AI22" 
trigger24 = Command = "AI23" 
trigger25 = Command = "AI24" 
trigger26 = Command = "AI25" 
trigger27 = Command = "AI26" 
trigger28 = Command = "AI27" 
trigger29 = Command = "AI28" 
trigger30 = Command = "AI29" 
trigger31 = Command = "AI30"  
trigger32 = Command = "AI31" 
trigger33 = Command = "AI32" 
trigger34 = Command = "AI33" 
trigger35 = Command = "AI34" 
trigger36 = Command = "AI35" 
trigger37 = Command = "AI36" 
trigger38 = Command = "AI37" 
trigger39 = Command = "AI38" 
trigger40 = Command = "AI39" 
trigger41 = Command = "AI40"
trigger42 = Command = "AI41" 
trigger43 = Command = "AI42" 
trigger44 = Command = "AI43" 
trigger45 = Command = "AI44"
trigger46 = Command = "AI45" 
trigger47 = Command = "AI46" 
trigger48 = Command = "AI47" 
trigger49 = Command = "AI48" 
trigger50 = Command = "AI49" 
trigger51 = Command = "AI50" 
;trigger52 = 1              
;↑「;」を取り除けば常時AI起動
var(59) = 1
[State -1, ai];ターゲットをとれない場合
type = varadd
triggerall = helper(1),var(1)=0||helper(2),var(1)=0
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(37) = 1
[State -1, ai];ターゲットをとれない場合
type = varset
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = fvar(37)!= 0
trigger1 = var(59) != 0
fvar(37) = 0
[State -1, ai];ターゲットをとれない場合
type = varset
triggerall = helper(1),var(1)=0||helper(2),var(1)=0
trigger1 = !Ishelper
trigger1 = fvar(37)>=600
trigger1 = var(59) != 0
var(59) = 2
[State -1, ai];相手の当たり判定が生まれない場合
type = varadd
triggerall = movecontact=0||ProjContactTime(0)=0||helper(1802),movecontact=0
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(36) = 1
[State -1, ai];相手の当たり判定が生まれない場合
type = varadd
triggerall = movecontact!=0||helper(1802),movecontact!=0
triggerall = ProjContactTime(0)!=0
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(36) = -500
[State -1, ai];相手の当たり判定が生まれない場合
type = varset
trigger1 = !Ishelper
trigger1 = fvar(36)>=1500
trigger1 = var(59) != 0
var(59) = 3
[State -1, ai]
type = varset
trigger1 = !Ishelper
trigger1 = fvar(36)<=0
trigger1 = fvar(37)<=0
trigger1 = var(59) != 0
var(59) = 1
[State -1, ai];相手が移動をしない場合
type = varadd
triggerall = enemynear,vel Y =0
triggerall = enemynear,vel X =0
triggerall = enemynear,movetype!=H
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(35) = 1
[State -1, ai];相手が移動をしない場合
type = varadd
triggerall = enemynear,vel Y !=0||enemynear,vel X !=0
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = enemynear,movetype!=H
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(35) = -2
[State -1, ai];相手がダウンをしない場合
type = varadd
triggerall = enemynear,statetype=L
triggerall = enemynear,stateno!=5300
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(34) = 10
[State -1, ai];相手がダウンをしない場合
type = varadd
triggerall = enemynear,statetype!=L
triggerall = enemynear,stateno!=5300
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
fvar(34) = -1
[State -1, ai];相手が移動をしない場合2
type = varadd
triggerall = enemynear,movetype!=H
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = !Ishelper
triggerall = roundstate=2
triggerall = alive
triggerall = var(59) != 0
trigger1 = enemynear,vel Y <=3
trigger1 = enemynear,vel Y >=-3
trigger1 = enemynear,vel X <=3
trigger1 = enemynear,vel X >=-3
trigger1=Palno=1||Palno=2||Palno=3||Palno=4
trigger2 = enemynear,vel Y <=5
trigger2 = enemynear,vel Y >=-5
trigger2 = enemynear,vel X <=5
trigger2 = enemynear,vel X >=-5
trigger2=Palno=5||Palno=6||Palno=7||Palno=8
trigger3=Palno=9||Palno=10||Palno=11||Palno=12
fvar(33) = 1
[State -1, ai];相手が移動をしない場合2
type = varadd
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = enemynear,movetype!=H
trigger1 = !Ishelper
trigger1 = roundstate=2
trigger1 = alive
trigger1 = var(59) != 0
trigger1 = enemynear,vel Y >5
trigger1 = enemynear,vel Y <-5
trigger1 = enemynear,vel X >5
trigger1 = enemynear,vel X <-5
trigger1=Palno!=9&&Palno!=10&&Palno!=11&&Palno!=12
fvar(33) = -2

;---------------------------------------------------------------------------
;超必殺技
;---------------------------------------------------------------------------
[State -1];細氷
type = ChangeState
value = 3600
triggerall = var(59) = 0
triggerall = command = "421c"
triggerall = StateType != A
triggerall = var(3) = 0
triggerall = power>=3000
trigger1 = ctrl
[State -1];凍雨
type = ChangeState
value = 3400
triggerall = var(59) = 0
triggerall = command = "214c"
triggerall = StateType != A
triggerall = var(1) = 0
triggerall = power>=4000
trigger1 = ctrl

[State -1];雪崩
type = ChangeState
value = 3200
triggerall = var(59) = 0
triggerall = command = "623c"
triggerall = StateType != A
triggerall = power>=2000
trigger1 = ctrl

[State -1];吹雪
type = ChangeState
value = 3000
triggerall = var(59) = 0
triggerall = command = "236c"
triggerall = StateType != A
triggerall = power>=1000
trigger1 = ctrl
trigger2 = stateno=[200,310]
trigger2 = movecontact =[1,10]
trigger3 = stateno=1000
trigger3 = time>100

;---------------------------------------------------------------------------
;必殺技
;---------------------------------------------------------------------------
[State -1];着雪
type = ChangeState
value = 1800
triggerall = var(59) = 0
triggerall = command = "22a"||command = "22b"
triggerall = StateType != A
trigger1 = ctrl

[State -1];霧氷
type = ChangeState
value = 1600
triggerall = var(59) = 0
triggerall = command = "421a"||command = "421b"
triggerall = StateType != A
triggerall = numhelper(1601)=0
trigger1 = ctrl
trigger2 = stateno=[200,310]
trigger2 = movecontact =[1,10]
[State -1];雨氷
type = ChangeState
value = 1400
triggerall = var(59) = 0
triggerall = command = "214a"||command = "214b"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = stateno=[200,310]
trigger2 = movecontact =[1,10]

[State -1];氷結
type = ChangeState
value = 1200
triggerall = var(59) = 0
triggerall = command = "623a"||command = "623b"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = stateno=[200,310]
trigger2 = movecontact =[1,10]
[State -1];風雪
type = ChangeState
value = 1000
triggerall = var(59) = 0
triggerall = command = "236a"||command = "236b"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = stateno=[200,310]
trigger2 = movecontact =[1,10]

;---------------------------------------------------------------------------
;空中攻撃
;---------------------------------------------------------------------------
[State -1, J8A]
type = ChangeState
value = 430
triggerall = var(59) = 0
triggerall = command = "holdup"
triggerall = StateType = A
trigger1 = command = "b"
trigger1 = ctrl
trigger2 = command = "a"||command = "b"
trigger2 = Stateno = 400 && movecontact = [1, 11]
trigger3 = Stateno = 110 || Stateno = 115
trigger3 = command = "a"||command = "b"
trigger3 = AnimElemTime(3) >= 0

[State -1, J6A]
type = ChangeState
value = 410
triggerall = var(59) = 0
triggerall = command = "holdfwd"
triggerall = StateType = A
trigger1 = command = "b"
trigger1 = ctrl
trigger2 = command = "a"||command = "b"
trigger2 = Stateno = 400 && movecontact = [1, 11]
trigger3 = Stateno = 110 || Stateno = 115
trigger3 = command = "a"||command = "b"
trigger3 = AnimElemTime(3) >= 0

[State -1, J2A]
type = ChangeState
value = 420
triggerall = var(59) = 0
triggerall = StateType = A
trigger1 = command = "b"
trigger1 = ctrl
trigger2 = command = "a"||command = "b"
trigger2 = Stateno = 400 && movecontact = [1, 11]
trigger3 = Stateno = 110 || Stateno = 115
trigger3 = command = "a"||command = "b"
trigger3 = AnimElemTime(3) >= 0

[State -1, JA]
type = ChangeState
value = 400
triggerall = var(59) = 0
triggerall = command = "a"
triggerall = StateType = A
trigger1 = ctrl
trigger2 = Stateno = 110 || Stateno = 115
trigger2 = AnimElemTime(3) >= 0

;---------------------------------------------------------------------------
;屈攻撃
;---------------------------------------------------------------------------
[State -1, 2A]
type = ChangeState
value = 300
triggerall = var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = Stateno = 100 && time >= 6

[State -1, 3A]
type = ChangeState
value = 310
triggerall = var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = Stateno = 200 || Stateno = 210 || Stateno = 300
trigger2 = movecontact = [1, 3]

;---------------------------------------------------------------------------
;立攻撃
;---------------------------------------------------------------------------

[State -1, A]
type = ChangeState
value = 200
triggerall = var(59) = 0
triggerall = command = "a"
triggerall = StateType != A
trigger1 = ctrl
trigger2 = Stateno = 100 && time >= 1

[State -1, 6A]
type = ChangeState
value = 220
triggerall = var(59) = 0
triggerall = StateType != A
triggerall = command = "holdfwd"
trigger1 = ctrl
trigger1 = command = "b"
trigger2 = Stateno = 200 || Stateno = 210 || Stateno = 300
trigger2 = movecontact = [1, 15]
trigger2 = command = "a"||command = "b"

[State -1, 遠A]
type = ChangeState
value = 210
triggerall = var(59) = 0
triggerall = StateType != A
trigger1 = command = "b"
trigger1 = ctrl
trigger2 = Stateno = 200
trigger2 = movecontact = [1, 15]
trigger2 = command = "a"||command = "b"
trigger3 = command = "b"
trigger3 = Stateno = 100 && time >= 1

;---------------------------------------------------------------------------
;移動
;---------------------------------------------------------------------------

[State -1, 前ダッシュ]
type = ChangeState
value = 100
triggerall = var(59) = 0
triggerall = command = "FF" || (command = "holdz" && command = "holdfwd")
triggerall = command != "holddown"
triggerall = StateType != A
triggerall = Stateno != [100, 106]
trigger1 = ctrl

[State -1, バックステップ]
type = ChangeState
value = 105
triggerall = var(59) = 0
triggerall = command = "BB" || (command = "holdz" && command = "holdback")
triggerall = command != "holddown"
triggerall = StateType != A
triggerall = Stateno != [100, 106]
trigger1 = ctrl

[State -1, 空中前ダッシュ]
type = ChangeState
value = 110
triggerall = var(59) = 0
triggerall = command = "FF"
triggerall = StateType = A
triggerall = var(12) < 3
trigger1 = ctrl

[State -1, 空中後ろダッシュ]
type = ChangeState
value = 115
triggerall = var(59) = 0
triggerall = command = "BB"
triggerall = StateType = A
triggerall = var(12) < 3
trigger1 = ctrl



;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;  AI--------------------------------------------------------------------------------全
;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------

[State -1, 前ダッシュ]
type = ChangeState
value = 100
triggerall = var(59) != 0
triggerall = StateType != A
triggerall = Stateno != [100, 106]
trigger1 = ctrl
trigger1 = P2BodyDist X >180
trigger1 = random<50
trigger2 = ctrl
trigger2 = P2BodyDist X >40
trigger2 = random<5

[State -1, バックステップ]
type = ChangeState
value = 105
triggerall = var(59) != 0
triggerall = StateType != A
triggerall = Stateno != [100, 106]
trigger1 = enemynear,movetype=A
trigger1 = ctrl
trigger1 = P2BodyDist X <10
trigger1 = random<80

[State -1, 空中前ダッシュ]
type = ChangeState
value = 110
triggerall = var(59) != 0
triggerall = command = "FF"
triggerall = StateType = A
triggerall = var(12) < 3
trigger1 = ctrl
trigger1 = random<P2BodyDist X
trigger1 = random<100

[State -1, 空中後ろダッシュ]
type = ChangeState
value = 115
triggerall = var(59) != 0
triggerall = command = "BB"
triggerall = StateType = A
triggerall = var(12) < 3
trigger1 = ctrl
trigger1 = random>P2BodyDist X*0.5
trigger1 = random<100

[State ]
type = ChangeState
value = Ifelse(EnemyNear,StateType = C,131,130)
triggerall = roundstate=2
triggerall = var(59)!=0
triggerall = helper(3),stateno=4
triggerall = ctrl && StateType != A 
trigger1 = Random <= 700 && P2BodyDist X <= 50 
trigger1 = Enemy, HitDefAttr = SCA, AA, SA ,HA ,AP, SP, HP
trigger1 = MoveType = I
trigger2 = InGuardDist = 1 && p2movetype = A || (Enemy, NumProj >= 1)
trigger2 = P2BodyDist X >= 50 

;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;  AI--------------------------------------------------------------------------------1
;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;超必殺技
;---------------------------------------------------------------------------
[State -1];細氷
type = ChangeState
value = 3600
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = StateType != A
triggerall = var(3) = 0
triggerall = power>=3000
trigger1 = random<fvar(34)+100
trigger1 = ctrl
[State -1];凍雨
type = ChangeState
value = 3400
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = StateType != A
triggerall = var(1) = 0
triggerall = power>=4000
trigger1 = random<100+fvar(33)
trigger1 = ctrl

[State -1];雪崩
type = ChangeState
value = 3200
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(3),stateno=3
triggerall = StateType != A
triggerall = power>=2000
triggerall = enemynear,stateno!=5300
trigger1 = random<50
trigger1 = ctrl

[State -1];吹雪
type = ChangeState
value = 3000
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = random<P2BodyDist X*0.5
triggerall = StateType != A
triggerall = power>=1000
trigger1 = random<power*0.3
trigger1 = ctrl
trigger2 = random<power*0.2
trigger2 = stateno=220
trigger2 = movecontact =[1,10]
trigger3 = random<power*0.2
trigger3 = stateno=1000
trigger3 = time>100
trigger4 = enemynear,stateno=5300
trigger4 = enemynear,Time < 105+(enemynear,lifemax-enemynear,life)*0.2
trigger4 = ctrl

;---------------------------------------------------------------------------
;必殺技
;---------------------------------------------------------------------------
[State -1];着雪
type = ChangeState
value = 1800
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(3),var(9)<50||enemynear,stateno=5300
triggerall = StateType != A
trigger1 = enemynear,Pos Y <-100||enemynear,stateno=5300||enemynear,statetype=L
trigger1 = random<45
trigger1 = ctrl
trigger2 = enemynear,stateno=5300
trigger2 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger2 = ctrl
trigger2 = numhelper(1802)=0

[State -1];霧氷
type = ChangeState
value = 1600
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(1),var(2)<100||helper(2),var(2)<100
triggerall = StateType != A
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = numhelper(1601)=0
trigger1 = random<P2BodyDist X*0.5+fvar(35)
trigger1 = ctrl
[State -1];雨氷
type = ChangeState
value = 1400
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = enemynear,Pos Y*-1<P2BodyDist X
triggerall = StateType != A
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = enemynear,stateno!=5300
trigger1 = random<P2BodyDist X*0.5
trigger1 = ctrl
trigger2 = random<80
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =[1,10]

[State -1];氷結
type = ChangeState
value = 1200
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2Dist x=[-100,100]
trigger1 = enemynear,hitdefattr=SCA,AA,AT,AP
trigger1 = ctrl
trigger1 = random<50
trigger2 = target,stateno=[120,155]
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =[1,10]
trigger3 = enemynear,BackEdgeBodyDist < 30
trigger3 = ctrl&&random<200||movecontact =1&&stateno=[220,310]
trigger4 = P2Dist x=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=1
[State -1];風雪
type = ChangeState
value = 1000
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = enemynear,Pos Y>-90
triggerall = StateType != A
trigger1 = random<P2BodyDist X
trigger1 = ctrl
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =1
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl
trigger4 = P2Dist x!=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=1

;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;  AI--------------------------------------------------------------------------------2
;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;超必殺技
;---------------------------------------------------------------------------

[State -1];雪崩
type = ChangeState
value = 3200
triggerall = roundstate=2
triggerall = var(59) = 2
triggerall = helper(3),stateno=3
triggerall = StateType != A
triggerall = power>=2000
trigger1 = random<99
trigger1 = ctrl

[State -1];吹雪
type = ChangeState
value = 3000
triggerall = roundstate=2
triggerall = var(59) = 2
triggerall = random<P2BodyDist X*0.5
triggerall = helper(3),stateno=3
triggerall = StateType != A
triggerall = power>=1000
trigger1 = random<power*0.5
trigger1 = ctrl
trigger2 = random<power*0.3
trigger2 = stateno=1000
trigger2 = time>100
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time < 105+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl


;---------------------------------------------------------------------------
;必殺技
;---------------------------------------------------------------------------
[State -1];着雪
type = ChangeState
value = 1800
triggerall = roundstate=2
triggerall = var(59) = 2
triggerall = helper(3),stateno=3
triggerall = StateType != A
trigger1 = enemynear,Pos Y <-120
trigger1 = random<45
trigger1 = ctrl
trigger2 = enemynear,stateno=5300
trigger2 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger2 = ctrl
trigger2 = numhelper(1802)=0

[State -1];氷結
type = ChangeState
value = 1200
triggerall = roundstate=2
triggerall = var(59) = 2
triggerall = StateType != A
trigger1 = enemynear,hitdefattr=SCA,AA,AT,AP
trigger1 = ctrl
trigger1 = random<10
trigger2 = target,stateno=[120,155]
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =[1,10]
trigger3 = enemynear,BackEdgeBodyDist < 30
trigger3 = ctrl&&random<200||movecontact =1&&stateno=[220,310]
trigger4 = P2Dist x=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=11

[State -1];風雪
type = ChangeState
value = 1000
triggerall = roundstate=2
triggerall = var(59) = 2
triggerall = helper(3),stateno=3
triggerall = enemynear,Pos Y>-90
triggerall = StateType != A
trigger1 = random<P2BodyDist X
trigger1 = ctrl
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =1
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl
trigger4 = P2Dist x!=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=1


;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;  AI--------------------------------------------------------------------------------3
;----------------------------------------------------------------------------------------
;----------------------------------------------------------------------------------------
;超必殺技
;---------------------------------------------------------------------------
[State -1];凍雨
type = ChangeState
value = 3400
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = StateType != A
triggerall = var(1) = 0
triggerall = power>=4000
trigger1 = ctrl

[State -1];吹雪
type = ChangeState
value = 3000
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = StateType != A
triggerall = power>=1000
trigger1 = random<power*0.3
trigger1 = ctrl
trigger2 = random<power*0.2
trigger2 = stateno=220
trigger2 = movecontact =[1,10]
trigger3 = random<power*0.2
trigger3 = stateno=1000
trigger3 = time>100
trigger4 = enemynear,stateno=5300
trigger4 = enemynear,Time < 105+(enemynear,lifemax-enemynear,life)*0.2
trigger4 = ctrl

;---------------------------------------------------------------------------
;必殺技
;---------------------------------------------------------------------------
[State -1];着雪
type = ChangeState
value = 1800
triggerall = roundstate=2
triggerall = var(59) = 1
triggerall = helper(3),var(9)<50||enemynear,stateno=5300
triggerall = StateType != A
trigger1 = enemynear,stateno=5300||enemynear,statetype=L
trigger1 = random<150
trigger1 = ctrl
trigger2 = enemynear,stateno=5300
trigger2 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger2 = ctrl
trigger2 = numhelper(1802)=0

[State -1];霧氷
type = ChangeState
value = 1600
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = helper(1),var(2)<100||helper(2),var(2)<100
triggerall = StateType != A
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = numhelper(1601)=0
trigger1 = random<-enemynear,Pos Y+40+fvar(35)
trigger1 = ctrl
[State -1];雨氷
type = ChangeState
value = 1400
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = enemynear,Pos Y*-1<P2BodyDist X
triggerall = StateType != A
triggerall = helper(1),var(1)=1||helper(2),var(1)=1
triggerall = enemynear,stateno!=5300
trigger1 = random<P2BodyDist X
trigger1 = ctrl
trigger2 = random<80
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =[1,10]
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time >= 145+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl

[State -1];氷結
type = ChangeState
value = 1200
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = StateType != A
trigger1 = enemynear,hitdefattr=SCA,AA,AT,AP
trigger1 = ctrl
trigger1 = random<20
trigger2 = target,stateno=[120,155]
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =[1,10]
trigger3 = enemynear,BackEdgeBodyDist < 30
trigger3 = ctrl&&random<200||movecontact =1&&stateno=[220,310]
trigger4 = P2Dist x=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=1
[State -1];風雪
type = ChangeState
value = 1000
triggerall = roundstate=2
triggerall = var(59) = 3
triggerall = enemynear,Pos Y>-90
triggerall = StateType != A
trigger1 = random<P2BodyDist X*0.1
trigger1 = ctrl
trigger2 = stateno=220||stateno=310
trigger2 = movecontact =1
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time < 75+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl
trigger4 = P2Dist x!=[-100,100]
trigger4 = ctrl
trigger4 = enemynear,stateno=5300
trigger4 = numhelper(1802)=1










;---------------------------------------------------------------------------
;空中攻撃
;---------------------------------------------------------------------------
[State -1, J8A]
type = ChangeState
value = 430
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=-5
triggerall = P2BodyDist X <=30
triggerall = pos y >-20
triggerall = StateType = A
trigger1 = enemynear,stateno=5300||random<50
trigger1 = ctrl
trigger2 = enemynear,stateno=5300
trigger2 = Stateno = 400 && movecontact = [1, 11]

[State -1, J6A]
type = ChangeState
value = 410
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=5
triggerall = P2BodyDist X <=100
triggerall = P2BodyDist Y >=-80
triggerall = P2BodyDist Y <=10
triggerall = StateType = A
trigger1 = random<200
trigger1 = ctrl
trigger2 = random<300
trigger2 = Stateno = 400 && movecontact = [6, 11]
trigger3 = Stateno = 110 || Stateno = 115
trigger3 = random<400
trigger3 = AnimElemTime(3) >= 0

[State -1, J2A]
type = ChangeState
value = 420
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = StateType = A
triggerall = P2BodyDist X >=0
triggerall = P2BodyDist X <=50
triggerall = P2BodyDist Y >=0
triggerall = P2BodyDist Y <=-70
trigger1 = ctrl
trigger2 = random<200
trigger2 = Stateno = 400 && movecontact = [7, 11]
trigger3 = Stateno = 110 || Stateno = 115
trigger3 = random<400
trigger3 = AnimElemTime(3) >= 0

[State -1, JA]
type = ChangeState
value = 400
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=0
triggerall = P2BodyDist X <=20
triggerall = P2BodyDist Y >=-50
triggerall = P2BodyDist Y <=0
triggerall = StateType = A
trigger1 = ctrl
trigger2 = Stateno = 110 || Stateno = 115
trigger2 = AnimElemTime(3) >= 0

;---------------------------------------------------------------------------
;屈攻撃
;---------------------------------------------------------------------------
[State -1, 2A]
type = ChangeState
value = 300
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=0
triggerall = P2BodyDist X <=5
triggerall = enemynear,Pos Y >=-20
triggerall = StateType != A
triggerall = enemynear,movetype!=H
triggerall = numhelper(1802)=0
trigger1 = enemynear,statetype=S
trigger1 = random<400
trigger1 = ctrl
trigger2 = Stateno = 100 && time >= 6

[State -1, 3A]
type = ChangeState
value = 310
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=20
triggerall = P2BodyDist X <=155
triggerall = enemynear,Pos Y >=-10
triggerall = StateType != A
triggerall = numhelper(1802)=0
trigger1 = random<200
trigger1 = ctrl
trigger2 = Stateno = 200 || Stateno = 210 || Stateno = 300
trigger2 = movecontact = [1, 3]
trigger2 = random<100

;---------------------------------------------------------------------------
;立攻撃
;---------------------------------------------------------------------------

[State -1, A]
type = ChangeState
value = 200
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = P2BodyDist X >=-10
triggerall = P2BodyDist X <=20
triggerall = P2BodyDist Y >=-30
triggerall = P2BodyDist Y <=10
triggerall = StateType != A
triggerall = enemynear,statetype!=L||enemynear,stateno=5300
triggerall = numhelper(1802)=0
trigger1 = ctrl
trigger2 = enemynear,stateno=5300
trigger2 = enemynear,Time < 145+(enemynear,lifemax-enemynear,life)*0.2
trigger2 = ctrl

[State -1, 6A]
type = ChangeState
value = 220
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = StateType != A
triggerall = P2BodyDist X >=0
triggerall = P2BodyDist X <=140
triggerall = P2BodyDist Y >=-80
triggerall = numhelper(1802)=0
trigger1 = enemynear,movetype!=H||enemynear,stateno=5300
trigger1 = enemynear,stateno!=5300
trigger1 = ctrl
trigger1 = random<200
trigger2 = Stateno = 210 || Stateno = 300
trigger2 = movecontact = 4
trigger3 = enemynear,stateno=5300
trigger3 = enemynear,Time < 125+(enemynear,lifemax-enemynear,life)*0.2
trigger3 = ctrl
trigger4 = Stateno = 200
trigger4 = movecontact = 1
trigger4 = target,pos Y<0||target,statetype=A

[State -1, 遠A]
type = ChangeState
value = 210
triggerall = roundstate=2
triggerall = var(59) != 0
triggerall = StateType != A
triggerall = P2BodyDist X >=10
triggerall = P2BodyDist X <=70
triggerall = P2BodyDist Y >=-70
triggerall = numhelper(1802)=0
trigger1 = enemynear,movetype!=H
trigger1 = enemynear,stateno!=5300
trigger1 = random<300
trigger1 = ctrl
trigger2 = Stateno = 200
trigger2 = target,pos Y=0
trigger2 = target,statetype!=A
trigger2 = movecontact = 1
trigger3 = random<600
trigger3 = Stateno = 100 && time >= 1
trigger4 = enemynear,stateno=5300
trigger4 = enemynear,Time < 135+(enemynear,lifemax-enemynear,life)*0.2
trigger4 = ctrl


[State ]
type = DisplayToClipboard
trigger1 = 1
text = "%d,%f,%f,%f"
params = var(59),fvar(37),fvar(36),fvar(35)
