[statedef -3]
;
;弱パンチAI


;-------------------------------------------
;
[State -2]
type = varset
trigger1 = 1
v = 54
value = gametime+235
ignorehitpause = 1

[State -2]
type = varset
triggerall = !ishelper
trigger1 = stateno != 145
v = 51
value = 2

[State -2]
type = varset
triggerall = !ishelper
trigger1 = stateno = 145
v = 51
value = 3

;ステート抜け前のライフ
[State -2, 59]
type = VarSet
triggerall = !ishelper
trigger1 = stateno != 145
trigger1 = life > 1
v = 58
value = Life

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



[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = roundstate>2
trigger1 = life < 1
trigger2 = Var(25) > 2000
value = lifemax
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -2]
type = lifeset
triggerall = !ishelper
triggerall = palno = 12
triggerall = alive
triggerall = enemy,alive
triggerall = Var(25) <= 2000
trigger1 = roundstate>2
value = Var(31)
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State -3]
type = LifeAdd
triggerall = palno = 11
triggerall = alive
triggerall = enemy,alive
trigger1 = RoundState > 2
value = LifeMax
kill = 0
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 9999999





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

;ＡＩ発動
[State -3]
type = VarSet
triggerall = var(44) = 0
triggerall = palno = [7,12]
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
var(44) = 2

[State -3]
type = VarSet
triggerall = var(44) = 0
triggerall = palno = [1,6]
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
var(44) = 1

;ＡＩパターンvar
[State -3]
type = VarRandom
triggerall = Alive = 1
trigger1 = var(44) = 2
trigger1 = Timemod = 1,0
ignorehitpause = 1
v = 42
range = 1,6

;ＡＩパターンvar
[State -3]
type = VarRandom
triggerall = Alive = 1
trigger1 = var(44) = 1
trigger1 = Timemod = 1,0
ignorehitpause = 1
v = 42
range = 1,3



;プライマルアーマー2
[State -1]
type = ChangeState
value = 26484
triggerall = roundstate = 2
triggerall = var(44) >= 1
triggerall = numhelper(26485) = 0
triggerall = var(7) = 1
triggerall = RoundState = 2
triggerall = Var(25) < 100
triggerall = life <= lifemax*0.3
triggerall = p2life >= 700
trigger1 = ctrl
trigger1 = statetype = S


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

[State -3,ダッシュ]
Type = ChangeState
Value = 805
triggerall = var(44) >= 1
TriggerAll = RoundState = 2
TriggerAll = StateType != A
TriggerAll = Ctrl || StateNo = 52
TriggerAll = FrontEdgeBodyDist >= 20
TriggerAll = P2BodyDist X >= 20
TriggerAll = EnemyNear,MoveType != A
Trigger1 = 1



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

;



;弱攻撃
[State -3]
type = ChangeState
value = 200
triggerall = var(44) >= 1
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = p2statetype != C
triggerall = P2BodyDist X = [0,19]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 805
trigger3 = var(45) = 1
trigger3 = stateno = 400
trigger4 = stateno = 200
trigger4 = var(45) = 1


;しゃがみ弱攻撃
[State -3]
type = ChangeState
value = 400
triggerall = p2stateno != [5110,5120]
triggerall = stateno != 3550
triggerall = var(44) >= 1
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = p2statetype = S
triggerall = p2movetype != A
triggerall = P2BodyDist X = [0,22]
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 805
trigger2 = p2bodydist X = [-5,21]
trigger2 = Random = [480,630]
trigger2 = var(45) = 1
trigger3 = var(45) = 1
trigger3 = stateno = 400
trigger4 = stateno = 200
trigger4 = var(45) = 1





;うぐぅ
[State -3]
type = ChangeState
value = 630
triggerall = stateno != 3660
triggerall = var(44) >= 1
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = p2statetype != L
triggerall = p2bodydist X = [-40,42]
triggerall = P2BodyDist Y >= 30
trigger1 = ctrl
trigger1 = Random = [140,190]
trigger2 = stateno = 610
trigger2 = p2bodydist X = [-30,30]
trigger2 = Random = [500,700]
trigger2 = var(45) = 1
trigger3 = stateno = 111
trigger3 = Random = [80,180]
trigger4 = stateno = 116
trigger4 = Random = [200,280]



;PA
[State -3]
type = ChangeState
value = 120
triggerall = Alive = 1
triggerall = var(44) >= 1
triggerall = statetype != A
triggerall = InGuardDist
trigger1 = Ctrl





;投げ
[State -3]
type = ChangeState
value = 700
triggerall = stateno != 3550
triggerall = Alive = 1
triggerall = var(44) >= 1
triggerall = p2dist X < 49
triggerall = statetype != A
triggerall = p2statetype != L
triggerall = p2statetype != A
triggerall = P2MoveType = I
triggerall = Ctrl
triggerall = p2life > 0
triggerall = win = 0
triggerall = lose = 0
trigger1 = var(45) = [1,3]









;さみしいZE


















