;-------------------------------------------------------------------------
[Statedef -3]

[State 12345, いずみの設定];
type = VarSet
trigger1 = 1
fvar(15) = 0 ;off
;fvar(15) = 1 ;on

[State 12345, マコトの設定];
type = VarSet
trigger1 = 1
fvar(16) = 0 ;off
;fvar(16) = 1 ;on

[State 12345, ゼロ子の設定];
type = VarSet
trigger1 = 1
;fvar(17) = 0 ;off
fvar(17) = 1 ;on

;以下はAI
;------------------------------------------------------------------
[State -3]
type = VarSet
triggerall = RoundState = 2
trigger1 = command = "AI"
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"

var(55) = 1
;------------------------------------------------------------------



;==========================================

;AI 立ちブロッキング
[State -3, 11] 
type = hitoverride
triggerall = Var(0) = 1
triggerall = numexplod(1057) = 1
triggerall = var(55)
triggerall = ctrl || (stateno = [130,131])  || (stateno = [100,102])
triggerall = statetype != A
trigger1 = random <= 850
triggerall = var(56) <= 2
slot = 0
stateno = 1712
attr = SCA, AA, AP
time = 1




;-------------------------------------------------------------------------
;------------------------------------------------------------------
;AIの動作とか

[State 1000, 3]
type = VarRandom
trigger1 = time >= 0
trigger1 = var(55) = 1
trigger1 = gametime%10 = 0
v = 56
range = 0,5

[State 1000, 3]
type = Varset
trigger1 = var(55) = 1
trigger1 = roundstate != 2
v = 55
value = 0
;AI VarSet


[State -3,ガード]
Type = ChangeState
Value = 120
triggerall = Var(55)
trigger1 = ctrl 
triggerall = RoundState = 2
triggerall = Inguarddist 

強制ガード
[State -3, ガード中にステートタイプ変更]
type = StateTypeSet
statetype = C
triggerall = Var(55)
trigger1 = StateType != A
trigger1 = StateNo = [120, 155]
trigger1 = Enemy, movetype = A
trigger1 = Enemy, statetype = C

[State -3, 強制ガード]
type = ChangeState
value = 120
triggerall = Var(55)
triggerall = Ctrl
triggerall = StateNo != 120
trigger1 = P2BodyDist X <= Enemy, Const(size.attack.dist)
trigger1 = Enemy, movetype = A
trigger1 = EnemyNear, Facing != Facing || P2Dist X <= 0
trigger2 = P2BodyDist X >= 160
trigger2 = Enemy, NumProj
trigger3 = StateType = A
trigger3 = Enemy, NumProj


;---------------------------------------------------------------------------
;Kung Fu Throw
;投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = var(55) = 1
triggerall = var(56) <= 1
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = stateno = [100,102]

;七夜AI
;---------------------------------------------------------------------------
;閃走
[State -1,]
type = ChangeState
value = 21000
triggerall = Var(0) = 2
triggerall = P2BodyDist X > 130
trigger1 = var(55) = 1
trigger1 = var(56) <= 1
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;閃走
[State -1,]
type = ChangeState
value = 21010
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 110
triggerall = P2BodyDist X > 30
trigger1 = var(55) = 1
trigger1 = var(56) <= 1
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;水月
[State -1,]
type = ChangeState
value = 1350+var(0)*10000
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 50
trigger1 = var(55) = 1
trigger1 = var(56) = 2
trigger1 = statetype != A
trigger1 = enemy,movetype != H
trigger1 = ctrl
;---------------------------------------------------------------------------
;水月
[State -1,]
type = ChangeState
value = 1300+var(0)*10000
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 50
trigger1 = var(55) = 1
trigger1 = var(56) = 0
trigger1 = statetype != A
trigger1 = enemy,movetype != H
trigger1 = ctrl
;---------------------------------------------------------------------------
;六
[State -1,]
type = ChangeState
value = 22200
triggerall = power >= 1000 || Var(45) != 0
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 25
triggerall = P2BodyDist Y > 30
trigger1 = var(55) = 1
trigger1 = var(56) >= 3
trigger1 = statetype != A
trigger1 = enemy,movetype = H
trigger1 = enemy,statetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;水月
[State -1,]
type = ChangeState
value = 40
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 40
trigger1 = var(55) = 1
trigger1 = var(56) >= 2
trigger1 = statetype != A
trigger1 = enemy,movetype = H
trigger1 = enemy,statetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;対空
[State -1,]
type = ChangeState
value = 21210
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 50
trigger1 = var(55) = 1
trigger1 = var(56) <= 3
trigger1 = statetype != A
trigger1 = enemy,movetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;シールド
[State -1,]
type = ChangeState
value = 900
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 40
trigger1 = var(55) = 1
trigger1 = var(56) >= 4
trigger1 = statetype = S
trigger1 = enemy,statetype != C
trigger1 = enemy,movetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;シールド
[State -1,]
type = ChangeState
value = 910
triggerall = Var(0) = 2
triggerall = P2BodyDist X < 40
trigger1 = var(55) = 1
trigger1 = var(56) >= 4
trigger1 = statetype = C
trigger1 = enemy,statetype = C
trigger1 = enemy,movetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;バンカー
[State -1,]
type = ChangeState
value = 950+var(0)*10000
triggerall = P2BodyDist X < 70
trigger1 = var(55) = 1
trigger1 = var(56) = 3
trigger1 = statetype != A
trigger1 = enemy,statetype != C
trigger1 = enemy,movetype = A
trigger1 = ctrl
;---------------------------------------------------------------------------
;閃鎖
[State -1]
type = ChangeState
value = 21150
triggerall = Var(0) = 2
triggerall = P2BodyDist X > 110
trigger1 = var(55) = 1
trigger1 = var(56) = 2
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;閃鎖
[State -1]
type = ChangeState
value = 21100
triggerall = P2BodyDist X > 110
triggerall = Var(0) = 2
trigger1 = var(55) = 1
trigger1 = var(56) = 3
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;閃鎖
[State -1]
type = ChangeState
value = 21180
triggerall = P2BodyDist X > 110
triggerall = Var(0) = 2
trigger1 = var(55) = 1
trigger1 = var(56) = 4
trigger1 = statetype != A
trigger1 = enemy,statetype != A
trigger1 = ctrl
;Run Back
;ダッシュ
[State -1, Run Back]
type = ChangeState
value = 100
triggerall = var(55) = 1
triggerall = var(56) = 5
triggerall = Var(0) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X > 90

;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(55) = 1
triggerall = var(56) = 4
triggerall = Var(0) = 2
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X < 50

[State -1, L.Attack]
type = ChangeState
value = 195
triggerall = life <= 300
triggerall = var(0) = 0
trigger1 = roundno >= 2
trigger1 = var(55) = 1
trigger1 = var(56) >= 1
trigger1 = roundstate = 2
trigger1 = statetype != A
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;閃鎖・迷獄・直死
[State -1]
type = ChangeState
value = 24000
triggerall = var(55) = 1
triggerall =(var(45) = 1 || var(45) = 2)
triggerall = statetype != A
triggerall = P2BodyDist X > 70
triggerall = Var(0) = 2
trigger1 = enemy,stateno = [100,102]
trigger1 = ctrl
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = enemy,stateno >= 2000
trigger3 = enemy,stateno <= 4900
trigger3 = ctrl
trigger4 = stateno = [100,102]
trigger4 = time >= 4
;---------------------------------------------------------------------------
;17分割
[State -1]
type = ChangeState
value = 13006
triggerall = var(55) = 1
triggerall =var(45) = 3
triggerall = statetype != A
triggerall = Var(0) >= 1
trigger1 = ctrl
trigger1 = var(56) = 5
trigger1 = P2BodyDist X > 80
trigger1 = P2BodyDist X < 150
trigger2 = stateno = 220
trigger2 = movecontact
trigger3 = enemy,stateno = [100,102]
trigger3 = P2BodyDist X > 110
trigger3 = ctrl
trigger4 = enemy,movetype = A
trigger4 = P2BodyDist X > 100
trigger4 = ctrl
trigger5 = P2BodyDist X < 130
trigger5 = power <= 500
trigger5 = ctrl
trigger5 = var(56) <= 2
trigger6 = stateno = [100,102]
trigger6 = P2BodyDist X > 120
trigger6 = time >= 6

[State -1]
type = ChangeState
value = 24500
triggerall = var(55) = 1
triggerall =var(45) = 3
triggerall = var(42) <= 9
triggerall = P2BodyDist X < 30
triggerall = TeamMode = Single
triggerall = enemy,TeamMode = Single
triggerall = statetype != A
triggerall = Var(0) = 2
trigger1 = ctrl
trigger1 = life < 300
trigger1 = enemy,movetype = A

;七夜基本
;弱攻撃
[State -1, L.Attack]
type = ChangeState
value = 400
triggerall = P2BodyDist X < 30
triggerall = var(55) = 1
triggerall = var(56) >= 3
triggerall = var(0) <= 1
triggerall = enemy,stateno != 1020
triggerall = enemy,stateno != [5100,5120]
trigger1 = statetype != A
trigger1 = roundstate = 2
trigger1 = enemy,statetype != A
trigger1 = ctrl = 1

[State -1, L.Attack]
type = ChangeState
value = 200
triggerall = P2BodyDist X < 30
triggerall = var(55) = 1
triggerall = var(56) <= 2
triggerall = var(0) <= 1
triggerall = enemy,stateno != 1020
triggerall = enemy,stateno != [5100,5120]
trigger1 = roundstate = 2
trigger1 = statetype != A
trigger1 = enemy,statetype = A
trigger1 = ctrl = 1

;ナイフ基本コンボ
;------------------------------------------------------------------------------
;うかせ
[State -1, L.Attack]
type = ChangeState
value = 210
triggerall = Var(0) = 1
triggerall = P2BodyDist X < 40
triggerall = var(55) = 1
triggerall = var(56) <= 4
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = ((var(18) = 0) && (StateNo = 420) && (MoveContact))
trigger2 = ((var(18) = 0) && (StateNo = 220+var(0)*5) && (MoveContact))

;------------------------------------------------------------------------------
;追い討ち
[State -1, L.Attack]
type = ChangeState
value = 625
triggerall = var(55) = 1
trigger1 = statetype = A
trigger1 = stateno = 50
trigger1 = enemy,statetype = A
trigger1 = enemy,movetype = H

;眼鏡基本コンボ
;------------------------------------------------------------------------------
;弱攻撃
[State -1, L.Attack]
type = ChangeState
value = 400
triggerall = P2BodyDist X < 30
triggerall = var(55) = 1
triggerall = var(56) <= 2
triggerall = var(0) <= 1
triggerall = enemy,stateno != 1020
triggerall = enemy,stateno != [5100,5120]
trigger1 = roundstate = 2
trigger1 = statetype != A
trigger1 = ctrl = 1

;ナイフ基本コンボ
;------------------------------------------------------------------------------
;うかせ
[State -1, L.Attack]
type = ChangeState
value = 200
triggerall = Var(0) = 0
triggerall = P2BodyDist X < 40
triggerall = var(55) = 1
triggerall = var(56) <= 4
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemy,stateno != [5100,5120]
trigger1 = ((var(17) = 0) && (StateNo = 420) && (MoveContact))
trigger2 = ((var(17) = 0) && (StateNo = 220+var(0)*5) && (MoveContact))


;------------------------------------------------------------------------------
;追撃A
[State -1, L.Attack]
type = ChangeState
value = 210
triggerall = P2BodyDist X < 60
triggerall = var(55) = 1
triggerall = enemy,stateno = 1020
trigger1 = roundstate = 2
trigger1 = statetype != A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;悪いね
[State -1]
type = ChangeState
value = 20614
triggerall = Var(0) = 2
triggerall = var(55) = 1
triggerall = var(56) <= 1
triggerall = statetype = A
trigger1 = ctrl
trigger2 = ((StateNo = 600) && (MoveContact))
trigger3 = ((StateNo = 610) && (MoveContact))
trigger4 = ((StateNo = 620) && (MoveContact))
trigger5 = ((StateNo = 621) && (MoveContact)) 
;------------------------------------------------------------------
;---------------------------------------------------------------------------
;悪いね
[State -1]
type = ChangeState
value = 20615
triggerall = Var(0) = 2
triggerall = var(55) = 1
triggerall = var(56) <= 1
triggerall = statetype = A
triggerall = P2Dist X < 5 
trigger1 = ctrl
trigger2 = ((StateNo = 600) && (MoveContact))
trigger3 = ((StateNo = 610) && (MoveContact))
trigger4 = ((StateNo = 620) && (MoveContact))
trigger5 = ((StateNo = 621) && (MoveContact)) 
;------------------------------------------------------------------

;---------------------------------------------------------------------------
;悪いね
[State -1]
type = ChangeState
value = 20616
triggerall = Var(0) = 2
triggerall = var(55) = 1
triggerall = var(56) <= 1
triggerall = statetype = A
trigger1 = ctrl
trigger2 = ((StateNo = 600) && (MoveContact))
trigger3 = ((StateNo = 610) && (MoveContact))
trigger4 = ((StateNo = 620) && (MoveContact))
trigger5 = ((StateNo = 621) && (MoveContact)) 
;------------------------------------------------------------------

;---------------------------------------------------------------------------
;BH紫電掌
[State -1]
type = ChangeState
value = 3101
triggerall = var(56) <= 1
triggerall = var(45) = 3
triggerall = var(55) = 1
triggerall = statetype != A
triggerall = Var(0) = 1
triggerall = P2BodyDist X <80
triggerall = (p2statetype = S) || (p2statetype = C)

trigger1 = (stateno = [200,299]) || (stateno = [400,499]) || (stateno = [700,739])
trigger1 = movecontact
trigger2 = stateno = [100,102]

;---------------------------------------------------------------------------
;紫電掌
[State -1]
type = ChangeState
value = 3001
triggerall = var(56) <= 1
triggerall =(var(45) = 1 || var(45) = 2)
triggerall = statetype != A
triggerall = Var(0) = 1
triggerall = var(55) = 1
triggerall = P2BodyDist X <80
;triggerall = TeamMode = Single
trigger1 = (stateno = [200,299]) || (stateno = [400,499]) || (stateno = [700,739])
trigger1 = movecontact
trigger2 = stateno = [100,102]
;---------------------------------------------------------------------------

[State -1]
type = null;ChangeState
value = 3000
triggerall = var(55) = 1
triggerall = P2BodyDist X > 200
triggerall =(var(45) = 1 || var(45) = 2)
triggerall = statetype != A
triggerall = Var(0) = 0
triggerall = var(42) <= 9
triggerall = TeamMode = Single
trigger1 = ctrl = 1

[State -1]
type = null;ChangeState
value = 3100
triggerall = var(55) = 1
triggerall = var(45) = 3
triggerall = var(42) <= 9
triggerall = statetype != A
triggerall = Var(0) = 0
triggerall = var(56) <= 1
triggerall = TeamMode = Single
trigger1 = ctrl = 1
trigger1 = P2BodyDist X < 50
trigger1 = enemy,movetype = A

[State -1]
type = ChangeState
value = 3900
triggerall = var(55) = 1
triggerall = var(42) >= 10
triggerall = var(45) = 3
triggerall = statetype != A
triggerall = Var(0) = 0
triggerall = TeamMode = Single
trigger1 = ctrl
trigger1 = enemy,movetype = A
trigger1 = enemy,statetype != A
trigger2 = ctrl
trigger2 = enemy,movetype = H
trigger3 = ctrl
trigger3 = var(56) <= 2
trigger3 = enemy,statetype != A

[State -1]
type = ChangeState
value = 3900
triggerall = var(55) = 1
triggerall = TeamMode = simul
triggerall = var(45) = 3
triggerall = statetype != A
triggerall = Var(0) = 0
trigger1 = ctrl
trigger1 = enemy,movetype = A
trigger1 = enemy,statetype != A
trigger2 = ctrl
trigger2 = enemy,movetype = H
trigger3 = ctrl
trigger3 = var(56) <= 2
trigger3 = enemy,statetype != A

[State -1]
type = ChangeState
value = 3900
triggerall = var(55) = 1
triggerall = var(42) >= 10
triggerall = var(45) = 3
triggerall = statetype != A
triggerall = Var(0) = 0
triggerall = teammode = turns
trigger1 = ctrl
trigger1 = enemy,movetype = A
trigger1 = enemy,statetype != A
trigger2 = ctrl
trigger2 = enemy,movetype = H
trigger3 = ctrl
trigger3 = var(56) <= 2
trigger3 = enemy,statetype != A

;直死の魔眼・地面を殺す
[State -1]
type = ChangeState
value = 14000
triggerall = var(55) = 1
triggerall =(var(45) = 1 || var(45) = 2)
triggerall =var(41) != 20
triggerall = statetype != A
triggerall = Var(0) = 1
triggerall = var(56) <= 3
trigger1 = ctrl
trigger1 = P2BodyDist X > 130
trigger1 = enemy,statetype != A

;アナザー直死の魔眼・地面を殺す
[State -1]
type = ChangeState
value = 14500
triggerall = var(55) = 1
triggerall =var(41) != 20
triggerall =var(45) = 3
triggerall = statetype != A
triggerall = Var(0) = 1
triggerall = var(56) <= 4
trigger1 = ctrl
trigger1 = P2BodyDist X > 100
trigger1 = enemy,statetype != A
trigger1 = enemy,movetype != H

[State Blood Heat (強制開放)]
type = ChangeState
value = 990
triggerall = var(45) = 2 && power > 0
triggerall = var(55) = 1 
triggerall = roundstate = 2
trigger1 = statetype!= A && ctrl
trigger1 = enemy,movetype = A
trigger1 = P2BodyDist X < 100

[State Blood Heat (強制開放)]
type = ChangeState
value = 990
triggerall = var(45) = 2 && power > 0
triggerall = var(55) = 1 
triggerall = roundstate = 2
triggerall = var(56) <= 1
trigger1 = statetype!= A && ctrl





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

;EX閃走
[State -1]
type = ChangeState
value = 21000
triggerall = power >= 1000 || Var(45) != 0
triggerall = Var(56) >= 1
triggerall = Var(0) = 2
triggerall = Var(55) = 1
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = enemy,statetype != A
trigger1 = enemy,movetype = A
trigger1 = P2BodyDist X > 220

;EX六兎
[State -1]
type = ChangeState
value = 12200
triggerall = power >= 1000 || Var(45) != 0
triggerall = command = "六兎EX"
triggerall = Var(0) = 1
triggerall = var(55) = 1
triggerall = var(56) >= 4
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = P2BodyDist X < 50
trigger1 = enemy,movetype = A
trigger2 = stateno = [220,299]
trigger2 = movecontact
trigger3 = stateno = [100,102]
trigger4 = stateno = 950
trigger4 = animelemtime(4) >= 0
trigger4 = movecontact

;---------------------------------------------------------------------------
;生の直感（退）
[State -1, Strong Kung Fu Knee]
type = ChangeState
value = 1110
triggerall = var(55) = 1
triggerall = Var(0) = 0
triggerall = var(56) <= 2
trigger1 = statetype != A
trigger1 = ctrl
trigger1 = P2BodyDist X < 50
trigger1 = enemy,movetype = A

;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(55) = 1
triggerall = var(56) >= 5
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X < 30
trigger1 = enemy,movetype = A

;Run Back
;ダッシュ
[State -1, Run Back]
type = ChangeState
value = 100
triggerall = var(55) = 1
triggerall = var(56) >= 3
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = P2BodyDist X > 140
trigger1 = enemy,statetype = S

;EX生の直感 瞬
[State -1]
type = ChangeState
value = 2100
triggerall = power >= 1000 || Var(45) != 0
triggerall = Var(0) = 0
trigger1 = var(55) = 1
trigger1 = enemy,stateno = 1020
trigger1 = stateno = 1010
trigger1 = movecontact


;---------------------------------------------------------------------------
;天破活殺
[State -1]
type = ChangeState
value = 1165
triggerall = var(56) <= 1
triggerall = var(55) = 1
triggerall = power >= 1000 || Var(45) != 0
triggerall = statetype = A
triggerall = Var(0) = 0
triggerall = Random <= 100
triggerall = BackEdgeBodyDist > 200
triggerall = P2BodyDist X >= 120
;triggerall = P2BodyDist y >= [10,180]
trigger1 = ctrl
trigger2 = stateno = 620
trigger2 = movehit

;===========================================================================
;---------------------------------------------------------------------------

;ダークネスイリュージョン
[State -1]
type = ChangeState
value = 3975
triggerall = var(56) <= 1
triggerall = fVar(26) = 0
triggerall = enemynear,statetype != L
triggerall = enemynear,statetype != A || enemynear,statetype = A && enemynear,vel y > 0
triggerall = var(55) = 1
triggerall = var(45) >= 2
triggerall = Var(0) <= 0
triggerall = statetype != A
trigger1 = ctrl && Random <= 50
trigger1 = P2BodyDist x = [0,100]
trigger2 = (stateno = [210,299]) || (stateno = [410,499]) || (stateno = [700,739])
trigger2 = movehit && Random <= 300
trigger3 = (stateno = [100,102]) && Random <= 50
trigger3 = P2BodyDist x = [0,100]
trigger4 = (stateno = [4001,4049])&& Random <= 50
trigger4 = P2BodyDist x = [0,100]
;triggerall = P2bodydist y = [0,-160]
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

;ダークネスイリュージョン
[State -1]
type = ChangeState
value = 3905
triggerall = var(56) <= 1
triggerall = enemynear,statetype != L
triggerall = enemynear,statetype != A || enemynear,statetype = A && enemynear,vel y > 0
triggerall = var(55) = 1
triggerall = var(45) >= 2
triggerall = Var(0) <= 0
triggerall = statetype != A
trigger1 = ctrl && Random <= 50
trigger1 = P2BodyDist x = [0,100]
trigger2 = (stateno = [210,299]) || (stateno = [410,499]) || (stateno = [700,739])
trigger2 = movehit && Random <= 300
trigger3 = (stateno = [100,102]) && Random <= 50
trigger3 = P2BodyDist x = [0,100]
trigger4 = (stateno = [4001,4049])&& Random <= 50
trigger4 = P2BodyDist x = [0,100]
;triggerall =  P2bodydist y = [0,-160]
;---------------------------------------------------------------------------

;夜に帰りなさい
[State Shield_S]
type = ChangeState
value = 30000
triggerall = fvar(15) = 1
triggerall = var(56) <= 1
triggerall = var(55) = 1
trigger1 = power >= 1000
trigger1 = NumHelper(30000) = 0
triggerall = Random <= 130 + Ceil(enemy,life-life)
trigger1 = statetype != A && ctrl
 
triggerall = P2bodydist X > 100 ;&& enemynear,movetype = H || enemynear,movetype = I

;===========================================================================


;火者の力を知るがいい
[State Shield_S]
type = ChangeState
value = 30010
triggerall = fvar(16) = 1
triggerall = var(56) <= 1
triggerall = var(55) = 1
 
trigger1 = power >= 1000
trigger1 = NumHelper(30011) = 0
triggerall = Random <= 150 + Ceil(enemy,life-life)
trigger1 = statetype != A && ctrl
triggerall = P2bodydist X > 20 ;&& enemynear,movetype = H || enemynear,movetype = I
triggerall = enemynear,statetype != A || enemynear,statetype = A && enemynear,vel y > 0
;triggerall =  P2bodydist y = [0,-160]

;===========================================================================

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

;ゼロを越えるのは、ゼロしかいない
[State Shield_S]
type = ChangeState
value = 30020
triggerall = fvar(17) = 1
triggerall = var(55) = 1
trigger1 = power >= 1000
triggerall = fVar(26) = 0
triggerall = Random <= 170 + Ceil(enemy,life-life)
trigger1 = statetype != A && ctrl
 
triggerall = P2bodydist X > 100 ;&& enemynear,movetype = H || enemynear,movetype = I

;===========================================================================
;---------------------------------------------------------------------------
;暗琉天破
[State Shield_S]
type = ChangeState
value = 83998
triggerall = fvar(17) = 1
triggerall = var(56) <= 1
triggerall = fVar(26) = 0
triggerall = Random <= 500
 
triggerall = var(49) = 7
triggerall = var(55) = 1
triggerall = enemynear,statetype != A || enemynear,statetype = A && enemynear,vel y > 0
trigger1 = NumHelper(30021) = 0
trigger1 = statetype != A && ctrl

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


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




;無想転生
[State -1]
type = ChangeState
value = 1171
triggerall = var(56) <= 1
triggerall = var(55) = 1
triggerall = Random <= 800
triggerall = var(45) >= 2
triggerall = numexplod(1057) = 0
triggerall = Var(0) = 1
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) || (stateno = [700,739])
trigger2 = movecontact
trigger3 = stateno = [100,102]
trigger4 = (stateno = [4001,4049])
;---------------------------------------------------------------------------
;----------------------------------------------------------------------------
;死の予感
[State -1]
type = ChangeState
value = 4000
triggerall = var(40) = 0
triggerall = statetype != A
triggerall = var(0) <= 1
triggerall = var(55) = 1
triggerall = ctrl
trigger1 = enemy,stateno >= 3000
trigger1 = enemy,stateno <= 4900
trigger1 = var(56) >= 2
trigger1 = enemy,movetype = A
trigger2 = life <= 400
trigger2 = P2BodyDist X < 48
trigger2 = var(56) >= 4
trigger2 = enemy,movetype = A
trigger3 = life <= 100
trigger3 = enemy,movetype = A


;---------------------------------------------------------------------------
;ツバメ返し（弱）
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 11410
triggerall = var(56) <= 1
triggerall = Random <= 500
 
triggerall = var(55) = 1
triggerall = Var(0) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = enemy,movetype = A
trigger2 =  stateno = 610 
trigger2 = movecontact
trigger3 = stateno = 106
trigger4 = stateno = 5210
;---------------------------------------------------------------------------
;ツバメ返し（強）
[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 11420
triggerall = var(56) <= 1
triggerall = Random <= 500
 
triggerall = var(55) = 1
triggerall = Var(0) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 610 
trigger2 = movecontact
trigger3 = stateno = 106
trigger4 = stateno = 5210
;---------------------------------------------------------------------------
;--------------------------------------------------------
;EXツバメ返し
[State -1]
type = ChangeState
value = 11400
triggerall = var(56) <= 1
triggerall = Random <= 500
 
triggerall = power >= 1000 || Var(45) != 0
triggerall = var(55) = 1
triggerall = Var(0) = 1
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 610 
trigger2 = movecontact
trigger3 = stateno = 106

trigger4 = stateno = 5210

;----------------------------------------------------------
;--------------------------------------------------------
;ツバメ六連
[State -1]
type = ChangeState
value = 12500
triggerall = var(56) <= 2
 
triggerall = var(45) >= 2
triggerall = var(55) = 1
triggerall = Var(0) = 1
triggerall = statetype = A
trigger1 = stateno = 610 
trigger1 = movehit

[State -1,ゲージ溜め（フル）]
type = ChangeState
value = 970
triggerall = !winko    			;共通トリガ
triggerall = !IsHelper 			;共通トリガ
triggerall = var(55)  			;AI OFFの場合
triggerall = !var(45)			;MCゲージ「通常」
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2bodydist X >=170&&random<=50&&!inguarddist||p2statetype=L&&p2stateno!=5120||p2statetype=A&&p2movetype=H&&p2stateno!=[120,155]
trigger1 = p2stateno!=[5040,5050]
;----------------------------------------------------------


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


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