[statedef -3]
;
;
;




;-------------------------------------------
;
[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 -2]
type = varset
trigger1 = 1
v = 29
value = 3
ignorehitpause = 1


;--------------------------------------------------------------------
;ノーマルAI用ヘルパー
[State -2]
type = Helper
triggerall = numhelper(45766) = 0
triggerall = palno != [11,12]
trigger1 = movetype = H
trigger1 = life < 600
trigger1 = roundstate = 2
ID = 45766
name = "help"
postype = p1
pos = 0,0
stateno = 45766
helpertype = player
keyctrl = 0
pausemovetime = 999999999999999
supermovetime = 999999999999999
ownpal = 1



;無想転生、死兆星
[State -3]
type = SelfState
triggerall = Statetype != A
triggerall = roundstate = 2
trigger1 = GetHitVar(Damage) >= 200
value=  865

;なげ無効
[State -3]
type = NotHitBy
triggerall = roundstate = 2
trigger1 = 1
value = ,NT,ST,HT
time = 1

[State -3]
type = PosSet
trigger1 = stateno = [160,161]
trigger1 = AnimTime = 0
y = 0

;空中ガード（リコイル）
[State -3]
type = HitOverride
triggerall = Statetype = S
triggerall = MoveType != H
trigger1 = 1
attr = SCA, NA, SA, HA,NT,ST,HT,NP,SP,HP
stateno = 160
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;空中ガード（リコイル）
[State -3]
type = HitOverride
triggerall = Statetype = S
triggerall = MoveType != H
triggerall = StateNo = [200,440]
trigger1 = var(45) = 1
attr = SCA, NA, SA, HA,NT,ST,HT,NP,SP,HP
stateno = 160

;空中ガード（リコイル）
[State -3]
type = HitOverride
triggerall = Statetype = A
triggerall = MoveType != H
trigger1 = 1
attr = SCA, NA, SA, HA,NT,ST,HT,NP,SP,HP
stateno = 162

;空中ガード（リコイル）
[State -3]
type = HitOverride
triggerall = Statetype = A
triggerall = MoveType != H
triggerall = StateNo = [600,640]
trigger1 = var(45) = 1
attr = SCA, NA, SA, HA,NT,ST,HT,NP,SP,HP
stateno = 162

;空中ガード（リコイル）
[State -3]
type = HitOverride
triggerall = Statetype = C
triggerall = MoveType != H
trigger1 = 1
attr = SCA, NA, SA, HA,NT,ST,HT,NP,SP,HP
stateno = 165






;バースト
[State -1, sekai]
type = null;ChangeState 
value = 162
triggerall = stateno != 145
triggerall = movetype = H
triggerall = ctrl = 0
triggerall = alive = 1
triggerall = stateno != [120,162]
trigger1 = gethitvar(damage) > 0
trigger1 = ctrl = 0


[State -3,ダッシュ]
Type = ChangeState
Value = 805
triggerall = Var(16) >= 1
triggerall = command = "holdfwd"
TriggerAll = RoundState = 2
TriggerAll = StateType != A
TriggerAll = StateNo = [220,440]
TriggerAll = FrontEdgeBodyDist >= 20
TriggerAll = P2BodyDist X >= 20
TriggerAll = EnemyNear,MoveType != A
Trigger1 = var(45) = 1

[State -3,]
Type = ChangeState
Value = 860
triggerall = Var(16) >= 1
triggerall = command = "holdfwd"
TriggerAll = RoundState = 2
TriggerAll = StateType = A
TriggerAll = StateNo = [600,640]
TriggerAll = EnemyNear,MoveType != A
Trigger1 = var(45) = 1

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





:----------------------------------------------------------



;追撃ビーム
[State -3]
type = ChangeState
value = 3690
triggerall = roundstate = 2
triggerall = Stateno != 3690
triggerall = power >= 1000
trigger1 = Stateno = 1257
trigger2 = Stateno = 3664







;さみしいZE


















