;-------------------------------------------------------------------------------------------------------
[Statedef -2]; 常時監視ステート
;-------------------------------------------------------------------------------------------------------
[state ];画面外
type= screenbound
trigger1 = ishelper
value= 0
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(1065)
value = 1065
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(1005)
value = 1005
id = 1005
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(2320)
value = 2320
id = 2320
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(11100)
value = ifelse(anim=22162,11125,11100)
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(11122)
value = ifelse(anim=22162,11125,11122)
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(1414)
value = 1414
id = 1414
ignorehitpause = 1
[state ];C
type = selfstate
trigger1 = ishelper(2111)
value = 2111
id = 2111
ignorehitpause = 1
[state ];C2
type = selfstate
trigger1 = ishelper(2112)
value = 2112
id = 2112
ignorehitpause = 1
[state パチェ]
type = selfstate
trigger1 = ishelper(15300)
value = 15300
id = 15300
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30400)
value = 30400
id = 30400
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30401)
value = 30401
id = 30401
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30402)
value = 30402
id = 30402
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30403)
value = 30403
id = 30403
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30404)
value = 30404
id = 30404
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30405)
value = 30405
id = 30405
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(35900)
value = 35900
id = 35900
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(30450)
value = 30450
id = 30450
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(21509)
value = 21509
id = 21509
ignorehitpause = 1
[state ];-Z-
type = selfstate
trigger1 = ishelper(30010)
value = 30010
ignorehitpause = 1
[state ぐるぐる]
type = selfstate
trigger1 = ishelper(30170)
value = 30170
id = 30170
ignorehitpause = 1
[state 回るバリア1]
type = selfstate
trigger1 = ishelper(30003)
value = 30003
id = 30003
ignorehitpause = 1
[state 回るバリア2]
type = selfstate
trigger1 = ishelper(30004)
value = 30004
id = 30004
ignorehitpause = 1
[state 円ヘルパー1]
type = selfstate
trigger1 = ishelper(31000)
value = 31000
id = 31000
ignorehitpause = 1
[state 円ヘルパー2]
type = selfstate
trigger1 = ishelper(31001)
value = 31001
id = 31001
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(190010)
value = 190010
id = 190010
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(288888)
value = 288888
id = 288888
ignorehitpause = 1
[state 火柱]
type = selfstate
trigger1 = ishelper(1411)
value = 1411
id = 1411
ignorehitpause = 1
[state 火柱]
type = selfstate
trigger1 = ishelper(1412)
value = 1412
id = 1412
ignorehitpause = 1
[state 火柱]
type = selfstate
trigger1 = ishelper(1413)
value = 1413
id = 1413
ignorehitpause = 1
[state 青火柱]
type = selfstate
trigger1 = ishelper(1414)
value = 1414
id = 1414
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(969696)
value = 969696
id = 969696
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(21509)
value = 21509
id = 21509
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(22221)
value = 22221
id = 22221
ignorehitpause = 1
;----------------------------------------------------------------------------
;AruTema・BlackHole
[state ]
type = selfstate
trigger1 = ishelper(314110)
value = 314110
id = 314110
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(314111)
value = 314111
id = 314111
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(314112)
value = 314112
id = 314112
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(22221)
value = 22221
id = 22221
ignorehitpause = 1
;----------------------------------------------------------------------------
;演出魔方陣
[state ]
type = selfstate
trigger1 = ishelper(240202)
value = 240202
id = 240202
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(240203)
value = 240203
id = 240203
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(305000)
value = 305000
id = 305000
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(305010)
value = 305010
id = 305010
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(313699)
value = 313699
id = 313699
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(313700)
value = 313700
id = 313700
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(240201)
value = 240201
id = 240201
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(2402000)
value = 2402000
id = 2402000
ignorehitpause = 1
;----------------------------------------------------------------------------
;混線
[state ]
type = selfstate
trigger1 = ishelper(111111)
value = 111111
id = 111111
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(23640)
value = 23640
id = 23640
ignorehitpause = 1
[state ]
type = selfstate
trigger1 = ishelper(9994)
value = 9994
id = 9994
ignorehitpause = 1
;----------------------------------------------------------------------------
[State -2, Helper_SelfState]
Type = SelfState
Trigger1 = IsHelper(1005+(palno=12&&var(29)>=1))
Value = 1005
IgnoreHitPause = 1
;----------------------------------------------------------------------------
[state 1];ターゲット作成Hitdefヘルパー
type = helper
triggerall = palno = 12
triggerall = !numhelper(111111)
trigger1 = (numhelper+enemy,numhelper) = 55 
trigger2 = 1
id = 111111
stateno = 111111
helpertype = player
supermovetime = 2147483647
pausemovetime = 2147483647
[state 1];殴られヘルパー
type = helper
triggerall = palno = 12
trigger1 = !numhelper(23640)<8
id = 23640
stateno = 23640
helpertype = player
supermovetime = 2147483647
pausemovetime = 2147483647
[state 1];占有用ヘルパー(停止中）
type = null;helper
triggerall = palno = 12
Triggerall = numhelper(23640)= 8
trigger1 = (numhelper+enemy,numhelper)<55+numhelper(111111)
id = 40070
stateno = 40070
helpertype = player
supermovetime = 2147483647
pausemovetime = 2147483647
;----------------------------------------------------------------------------
[state -2];Proje殴られヘルパー
type = helper
triggerall = palno = 12
trigger1 = !numhelper(9994)
id = 9994
stateno = 9994
helpertype = player
supermovetime = 2147483647
pausemovetime = 2147483647
;----------------------------------------------------------------------------
[State -2];?
type = null;helper
triggerall = !ishelper
trigger1 = roundstate = 2 && numhelper(969696) = 0
trigger1 = (palno = 12 && (var(59) >= 3200||var(42) >= 4000||var(32) >= 800)) || var(44) >= 1
name ="back"
ID = 969696
stateno = 969696
postype = p1
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999
;----------------------------------------------------------------------------
; スイッチ類
;----------------------------------------------------------------------------
;変数リセットスイッチ
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 37
value = 1      ;1on 0off

;トムキラースイッチ
[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 38
value = 2      ;1〜2on 0off
;----------------------------------------------------------------------------
;　ライフ管理(12Pのみ）
;----------------------------------------------------------------------------
[State -2]
type = lifeadd
triggerall = palno = 12
triggerall = !IsHelper
trigger1 = Alive = 1
time = 999999999999999999999999999999999
value = lifemax
ignorehitpause = 1
ignorehitpause = 999999

[State -2]
type = lifeadd
triggerall = palno = 12
triggerall = !ishelper && alive && roundstate>2
trigger1 = enemy,life>=enemy,lifemax*0.9
value = lifemax
kill = 0
ignorehitpause = 1
ignorehitpause = 999999

[state -2]
type = lifeset
triggerall = palno = 12
triggerall = !ishelper
trigger1 = roundstate > 2
trigger1 = (life/lifemax) <= (enemy,life/enemy,lifemax)
value = ((enemy,life/enemy,lifemax)*1200)+1
ignorehitpause = 1

;----------------------------------------------------------------------------
; その他、アーマーのダメージ量など
;----------------------------------------------------------------------------
[State -2];本体への直接攻撃を無効にする。
type = NotHitBy
triggerall = !IsHelper
trigger1 = Alive = 1
time = 999999999999999999999999
value = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
ignorehitpause = 99999999
pausemovetime = 99999
supermovetime = 99999

[State -2];アーマー
type = helper
triggerall = palno = [1,12]
trigger1 = !numhelper(190010)
stateno = 190010
id = 190010
ownpal = 1
helpertype = player
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2];タイムアップ時,相手の体力が8割以上の場合は全回復（10,11P時）
type = LifeSet
triggerall = palno = [10,11]
triggerall = life < 1200
triggerall = alive
triggerall = p2life>=enemy,lifemax*0.8
trigger1 = roundstate != 2
trigger1 = enemy,alive = 1
value = lifemax

[State -2];1,2Pダメージ
type = LifeAdd
triggerall = palno = [1,2]
triggerall = roundstate = 2
trigger1 = Helper(190010),GetHitVar(Damage) 
value = -25
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2];10,11Pダメージ
type = LifeAdd
triggerall = palno = [10,11]
triggerall = roundstate = 2
trigger1 = Helper(190010),GetHitVar(Damage) 
value = -5
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;---------------------------------------------------------------------------
; 時止め関係
;---------------------------------------------------------------------------
[State -2,VarSet]
Type = VarSet
Trigger1 = !IsHelper
V = 31
Value = IfElse((PalNo=[1,11]),0,IfElse((PalNo=12),1,2))
IgnoreHitPause = 1
SuperMoveTime = 9999999999
PauseMoveTime = 9999999999

[State -2]
Type = Pause
TriggerAll = Var(31) = 2
Trigger1 = (NumHelper + Enemy,NumHelper) < 56
Trigger2 = NumPartner > 0
Trigger2 = (NumHelper + Enemy,NumHelper + Partner,NumHelper) < 56
Time = 0+9999999999*(!IsHelper)
MoveTime  = 9999999999
IgnoreHitPause = 1
SuperMoveTime = 9999999999
PauseMoveTime = 9999999999

[State -2]
Type = SuperPause
TriggerAll = Var(31) = 2
Trigger1 = (NumHelper + Enemy,NumHelper)  < 56
Trigger2 = NumPartner > 0
Trigger2 = (NumHelper + Enemy,NumHelper + Partner,NumHelper) < 56
Time = 0+9999999999*(!IsHelper)
MoveTime = 9999999999
Darken = 0
Anim = -1
P2DefMul = 1
IgnoreHitPause = 1
SuperMoveTime = 9999999999
PauseMoveTime = 9999999999

[State -2]
Type= Pause
TriggerAll = Var(31) = 2
TriggerAll = RoundState = 2
Trigger1 = (NumHelper + Enemy,NumHelper) = 56
Trigger2 = NumPartner > 0
Trigger2 = (NumHelper + Enemy,NumHelper + Partner,NumHelper) = 56
Time = 0
MoveTime = 0
IgnoreHitPause = 1
SuperMoveTime = 9999999999
PauseMoveTime = 9999999999

[State -2]
Type = SuperPause 
TriggerAll = Var(31) = 2
TriggerAll = RoundState = 2
Trigger1 = (NumHelper + Enemy,NumHelper)  = 56
Trigger2 = NumPartner > 0
Trigger2 = (NumHelper + Enemy,NumHelper + Partner,NumHelper) = 56
Time = 0
MoveTime = 0
Darken = 0
Anim = -1
P2DefMul = 1
IgnoreHitPause = 1
SuperMoveTime = 9999999999
PauseMoveTime = 9999999999

[State -2,-Z-_Helper]
Type = Helper
TriggerAll = !IsHelper
TriggerAll = !NumHelper(30010)
TriggerAll = Var(31) = 2
Trigger1 = StateNo != 2200
Trigger1 = StateNo != 2300
Trigger1 = StateNo != 2500
Trigger1 = StateNo != 2631
Trigger1 = StateNo != 2999
Trigger1 = StateNo != 3250
Trigger1 = StateNo != 22075
Trigger1 = StateNo != 27700
Trigger1 = StateNo != 78500
Trigger1 = StateNo != 88500
StateNo = 30010
ID = 30010
Name = "-Z-"
HelperType = Player
SuperMoveTime = 999999999999
PauseMoveTime = 999999999999
IgnoreHitPause = 1

[State -2]
type = ModifyExplod
triggerAll = RoundState = 3
trigger1 = Var(31) = 2
ID = -1
supermovetime = 999999999999
pausemovetime = 999999999999
IgnoreHitPause = 1

;---------------------------------------------------------------------------
; 座標自己修復
;----------------------------------------------------------------------------
[State -2, Y座標修復]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]      
trigger1 = floor(Pos Y) = [-2,3] 
y = 0

[State -2, Y座標修正]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1200     
trigger1 = stateno = [0,30] 
trigger1 = floor(Pos Y) < -2
y = 2

[State -2, Y座標修正]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1200
trigger1 = stateno = [0,30]
trigger1 = floor(Pos Y) > 2
y = -2

[State -2, Y座標修復]
type = ChangeState
triggerall = RoundState = 2
triggerall = ctrl = 0
triggerall = alive = 1
triggerall = !Lose
trigger1 = Pos Y < -1280
trigger1 = GameTime % 10 = 0
trigger2 = Pos Y > 480
trigger2 = GameTime % 10 = 0
value = 40

[State -2]
type = posset
triggerall = !ishelper
trigger1 = roundstate = 4
y = 0
ignorehitpause = 1

[state -3]
type = assertspecial
triggerall = name ="SARIEL"
triggerall = !ishelper
trigger1 = fvar(5) > 0
flag = noautoturn

[state -3]
type = varset
trigger1 = name ="SARIEL"
fvar(5) = abs(pos x-enemynear,pos x)*ifelse(frontedgedist<ifelse((facing=enemynear,facing),(enemynear,frontedgedist),(enemynear,backedgedist)),-1,1)

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

[state -2, a];右向き設定
type = varset
trigger1 = var(10) = 0
trigger1 = facing = 1
v = 10
value = 1

[state -2, a];左向き設定
type = varset
trigger1 = var(10) = 0
trigger1 = facing = -1
v = 10
value = 2

[State -2, 1]
type = stopSnd
trigger1 = stateno != 100
channel = 1

[state a]
type = removeexplod
trigger1 = movetype = H
id = 2200

[state a]
type = stopsnd
trigger1 = movetype = H
channel = 3

[state a]
type = stopsnd
trigger1 = stateno != 1055
channel = 5

[State -2, 3]
type = stopSnd
trigger1 = MoveType = H
channel = 2

[State -2, 4]
type = varadd
trigger1 = 1
v = 15
value = -1

[state a]
type = varset
trigger1 = movetype = H
v = 13
value = 0

[State 180, 1]
type = VarRandom
trigger1 = 1
v = 6
range = 0,2

[state -2, a]
type = varset
trigger1 = palno = 1
trigger2 = palno = 2
trigger3 = palno = 3
trigger4 = palno = 4
trigger5 = palno = 5
trigger6 = palno = 6
v = 1
value = 0

[state -2, a]
type = varset
trigger1 = palno = 7
trigger2 = palno = 8
trigger3 = palno = 9
trigger4 = palno = 10
trigger5 = palno = 11
trigger6 = palno = 12
v = 1
value = 1

[state -2, a]
type = varadd
trigger1 = 1
persistent = 0
ignorehitpause = 99999999
v = 4
value = -1

[state -2, a]
type = pause
trigger1 = var(4) >= 1
trigger1 = gametime % 2
persistent = 0
ignorehitpause = 99999999
time = 1

[state a];
type = removeexplod
trigger1 = MoveType = H
id = 185

[State 1]
type = removeexplod
trigger1 = MoveType = H
ID = 1470

[State -2 ,a]
type = removeexplod
trigger1 = MoveType = H
ID = 4000

[state -2 ,a]
type = removeexplod
trigger1 = MoveType = H
id = 4200

[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1655

[state a]
type = removeexplod
trigger1 = MoveType = H
id = 1860

[state a]
type = stopsnd
trigger1 = MoveType = H
channel = 1

;===========================================================================
;  エフェクト類
;===========================================================================
;エフェクト1
[State a]
type = Explod
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%6) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = var(50),var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 99999999
vel = 0,-3
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = null;Explod
triggerall = palno = [1,11]
triggerall = anim = 0
trigger1 = time = 15
;trigger1 = (GameTime%15) = 1
anim = 22138
id = 22138
sprpriority = 0
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
removetime = -1
trans = add

[State -1]
type = null;Explod
triggerall = palno = [1,11]
triggerall = anim = 0
trigger1 = time = 15
;trigger1 = (GameTime%15) = 1
anim = 22139
id = 22138
sprpriority = -1
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
removetime = -1
trans = add

[State 3020, 1]
type = null;RemoveExplod
trigger1 = anim != 0 || stateno = 10051
ID = 22138

[State -1];バリアエフェクト
type = Explod
triggerall = palno = [1,11]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22126
sprpriority = -1
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = Explod
triggerall = palno = [10,11]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22125;22063
sprpriority = 0
postype = p1
pos = 0,2
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

;-----------------------------------------------------
;光の粒
[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%20) = 1
anim = 22123
id = 22123
sprpriority = 3
postype = p1
pos = 0,-85
bindtime = -1 
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
id = 22123
sprpriority = 3
postype = p1
pos = 20,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
id = 22123
sprpriority = 3
postype = p1
pos = 13,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
id = 22123
sprpriority = 3
postype = p1
pos = -20,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
id = 22123
sprpriority = 3
postype = p1
pos = -5,-20
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22122
id = 22123
sprpriority = 3
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22122
id = 22123
sprpriority = 3
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
id = 22123
sprpriority = 3
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
id = 22123
sprpriority = 3
postype = p1
pos = 0,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22124
id = 22123
sprpriority = 3
postype = p1
pos = 10,-10
bindtime = -1 
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
id = 22123
sprpriority = 3
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
id = 22123
sprpriority = 3
postype = p1
pos = 0,-0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
id = 22123
sprpriority = 3
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

[State -1]
type = NULL;Explod
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
id = 22123
sprpriority = 3
postype = p1
pos = 0,-50
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
trans = add

;------------------------------------------------------------
;エフェクト2
[State -2]
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 10
trigger1 = numexplod(182000) = 0
anim = 182
id = 182000
sprpriority = -1
postype = p1
pos = -1,27
bindtime = -1
under = 0
ownpal = 1
trans = add1
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 182000
ignorehitpause = 1

[State -2];ｷｴ
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 10
trigger1 = numexplod(281000) = 0
anim = 281
id = 281000
sprpriority = -1
postype = p1
pos = -1,27
bindtime = -1
under = 0
ownpal = 1
trans = add1
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 281000
ignorehitpause = 1

[State -2];ｸｴﾖﾆ
type = Explod
triggerall = !ishelper
triggerall = palno = 1
triggerall = anim = 0
triggerall = time >= 10
trigger1 = numexplod(182000) = 0
anim = 182
id = 182000
sprpriority = -1
postype = p1
pos = -1,0
bindtime = -1
under = 0
ownpal = 1
trans = add1
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 182000
ignorehitpause = 1

[State -2];ｷｴ_ｸｴﾖﾆ
type = Explod
triggerall = !ishelper
triggerall = palno = 1
triggerall = anim = 0
triggerall = time >= 10
trigger1 = numexplod(281000) = 0
anim = 281
id = 281000
sprpriority = -1
postype = p1
pos = -1,0
bindtime = -1
under = 0
ownpal = 1
trans = add1
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 281000
ignorehitpause = 1

[State -2];左手
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 1
trigger1 = numexplod(15302000) = 0
anim = 15302
id = 15302000
sprpriority = 0
postype = p1
pos = 19,-103
bindtime = -1
under = 0
ownpal = 1
trans = add1
scale = 0.0675,0.15
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 15302000
ignorehitpause = 1

[State -2];左手2
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 1
trigger1 = numexplod(15303000) = 0
anim = 15303
id = 15303000
sprpriority = 1
postype = p1
pos = 19,-103
bindtime = -1
under = 0
ownpal = 1
trans = add1
scale = 0.0675,0.15
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 15303000
ignorehitpause = 1

[State -2];右手
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 1
trigger1 = numexplod(15304000) = 0
anim = 15304
id = 15304000
sprpriority = 0
postype = p1
pos = -28,-64
bindtime = -1
under = 0
ownpal = 1
trans = add1
scale = 0.0675,0.15
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 15304000
ignorehitpause = 1

[State -2];右手2
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 1
trigger1 = numexplod(15305000) = 0
anim = 15305
id = 15305000
sprpriority = 1
postype = p1
pos = -28,-64
bindtime = -1
under = 0
ownpal = 1
trans = add1
scale = 0.0675,0.15
removetime = -1
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 15305000
ignorehitpause = 1

[State -2];ｵﾗ
type = Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 5
trigger1 = numexplod(15301) = 0
anim = 15301
id = 15301
sprpriority = -6
postype = p1
pos = 0,23
bindtime = -1
under = 0
ownpal = 1
trans = add
removetime = -1
scale = 0.9,0.9
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 15301
ignorehitpause = 1

[State -2];支え
type = NULL;Explod
triggerall = !ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = numexplod(113284) = 0
anim = 113284
id = 113284
sprpriority = -1
postype = p1
pos = 0,-85
bindtime = -1
under = 0
ownpal = 1
trans = add
removetime = -1
scale = 0.53,0.53
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 113284
ignorehitpause = 1

[State -2];もわもわ
type = Explod
triggerall = !ishelper
triggerall = palno = [1,2]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%24) = 1
anim = 4001
sprpriority = -5
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 1.2,1.2
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2];跳ね返しオーラ(中央）
type = Explod
triggerall = !ishelper
triggerall = palno = [10,11]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
id = 22133
anim = 22133
sprpriority = -1
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2];跳ね返しオーラ2(下）
type = Explod
triggerall = !ishelper
triggerall = palno = [10,11]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
anim = 22133
id = 22133
sprpriority = 0
postype = p1
pos = 0,-4
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 1
trans = add
scale = 0.5,0.1
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = !ishelper
trigger1 = anim != 0
ID = 22133
ignorehitpause = 1

[State -2];翼1
type = Explod
triggerall = !ishelper
triggerall = palno = 11;[11,12]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(4000) = 0
anim = 4000
id = 4000
sprpriority = -1
postype = p1
pos = -3,-95
bindtime = -1
under = 0
ownpal = 1
persistent = 0
removetime = -1
ignorehitpause = 99999999
trans = add
scale = 1.32,1.32
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2];翼2
type = Explod
triggerall = !ishelper
triggerall = palno = 11;[11,12]
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(4500) = 0
anim = 4500
id = 4500
sprpriority = -1
postype = p1
VFacing = -1
pos = -3,-105
bindtime = -1
under = 0
ownpal = 1
persistent = 0
removetime = -1
ignorehitpause = 99999999
trans = add
scale = 0.88,0.88
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = palno = 11;[11,12]
triggerall = !ishelper
trigger1 = anim != 0
id = 4000
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = palno = 11;[11,12]
triggerall = !ishelper
trigger1 = anim != 0
id = 4500
ignorehitpause = 99999999

[State -2];集光時計
type = NULL;Explod
triggerall = !ishelper
triggerall = palno = 10
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(35845) = 0
anim = 35845
id = 35845
sprpriority = 0
postype = p1
pos = 0,-105
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.7,0.7
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = palno = 10
triggerall = !ishelper
trigger1 = anim != 0
id = 35845
ignorehitpause = 99999999

[State -2];集光時計_ｸｴﾖﾆ
type = Explod
triggerall = !ishelper
triggerall = palno = 11
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(35845) = 0
anim = 35845
id = 35845
sprpriority = 1
postype = p1
pos = 0,-105
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.9,0.9
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = palno = 11
triggerall = !ishelper
trigger1 = anim != 0
id = 35845
ignorehitpause = 99999999

[State -2];
type = Explod
triggerall = !ishelper
triggerall = palno = 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(35900) = 0
anim = 35900
id = 35900
sprpriority = 0
postype = p1
pos = 0,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.6,0.6
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = palno = 1
triggerall = !ishelper
trigger1 = anim != 0
id = 35900
ignorehitpause = 99999999

[State -2];10P
type = Explod
triggerall = !ishelper
triggerall = palno = 10
triggerall = anim = 0
triggerall = time >= 15
trigger1 = NumExplod(35900) = 0
anim = 35900
id = 35900
sprpriority = 0
postype = p1
pos = 0,-105
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.7,0.7
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = RemoveExplod
triggerall = palno = 10
triggerall = !ishelper
trigger1 = anim != 0
id = 35900
ignorehitpause = 99999999

[State -2];白い光の円
type = Explod
triggerall = palno = 11;12
triggerall = !ishelper && !NumExplod(31500)
trigger1 = time > 0
trigger1 = (GameTime%55) = 1
anim = 31500
id = 31500
sprpriority = -1
postype = p1
pos = -4,-85
bindtime = -1
under = 0
ownpal = 1
persistent = 1
trans = add
ignorehitpause = 99999999
scale = 1.15,1.15
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2];白い光の円逆
type = Explod
triggerall = palno = 11;12
triggerall = !ishelper && !NumExplod(31501)
trigger1 = time > 0
trigger1 = (GameTime%45) = 1
anim = 31501
id = 31501
sprpriority = -1
postype = p1
pos = -4,-85
bindtime = -1
under = 0
ownpal = 1
persistent = 1
trans = add
ignorehitpause = 99999999
scale = 1.15,1.15
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = RemoveExplod
triggerall = palno = 11;12
triggerall = !ishelper
trigger1 = anim != 0
id = 31500
ignorehitpause = 99999999

[State -2]
type = RemoveExplod
triggerall = palno = 11;12
triggerall = !ishelper
trigger1 = anim != 0
id = 31501

[State -2];地面から溢れる光
type = null;Explod
triggerall = palno = 12
triggerall = !ishelper && !NumExplod(16003)
trigger1 = time >= 15
anim = 16003
id = 16003
sprpriority = -9
postype = p1
pos = 0,-15
bindtime = -1
under = 0
ownpal = 1
trans = add
persistent = 1
removetime = -1
ignorehitpause = 99999999
scale = 1.0,1.1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = null;RemoveExplod
triggerall = palno = 12
triggerall = !ishelper
trigger1 = anim != 0
id = 16003
ignorehitpause = 99999999

[State -1];波動
type = NULL;Explod
triggerall = palno = 12
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 12500
id = 12500
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
persistent = 0
ignorehitpause = 0
scale = 0.8,0.8
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = RemoveExplod
triggerall = palno = 12
triggerall = !ishelper
trigger1 = anim != 0
id = 12500
ignorehitpause = 99999999

[State -1]
type = null;Explod
triggerall = palno = 12
triggerall = !ishelper
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%11) = 1
anim = 25000
id = 25000
sprpriority = -100
postype = p1
pos = 0,-80
bindtime = -1
under = 0
ownpal = 1
trans = add
persistent = 0
ignorehitpause = 0
scale = 0.4,0.4
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = null;RemoveExplod
triggerall = palno = 12
triggerall = !ishelper
trigger1 = anim != 0
id = 25000
ignorehitpause = 99999999

[State 2];魔方陣オーラ
type = null;Explod
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
sprpriority = -5
anim = 7007
id = 7007
pos = 0,-3
removetime = 10
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 1.2,1.2
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = null;RemoveExplod
triggerall = palno = 12
triggerall = !ishelper
trigger1 = stateno!=0
id = 7007
ignorehitpause = 99999999

;---------------------------------------------
;ヘルパーエフェクト
[State -2];円ヘルパー1
type = helper
triggerall = !ishelper
triggerall = palno = 10
trigger1 = anim=0 && time>15
trigger1 = numhelper(31000)= 0
id = 31000
pos = -5,-90
postype = p1
stateno = 31000
ownpal = 1
ignorehitpause = 999999999
helpertype = player
size.xscale = 0.21
size.yscale = 0.21
pausemovetime = 99999999
supermovetime = 99999999

[State -2];円ヘルパー2
type = helper
triggerall = !ishelper
triggerall = palno = 10
trigger1 = anim=0 && time>15
trigger1 = numhelper(31001)= 0
id = 31001
pos = -5,-90
postype = p1
stateno = 31001
ownpal = 1
ignorehitpause = 999999999
helpertype = player
size.xscale = 0.16
size.yscale = 0.16
pausemovetime = 99999999
supermovetime = 99999999

[State -2];パチェ魔方陣ヘルパー
type = NULL;helper
triggerall = !ishelper
triggerall = palno = 12
trigger1 = anim=0 && time>15
trigger1 = numhelper(15300)= 0
id = 15300
pos = 0,0
postype = p1
stateno = 15300
ownpal = 1
ignorehitpause = 999999999
helpertype = player
pausemovetime = 99999999
supermovetime = 99999999

[State -2];ぐるぐる
type = helper
triggerall = !ishelper
triggerall = palno = 10
trigger1 = anim=0 && time>15
trigger1 = numhelper(30170)= 0
id = 30170
pos = 0,-80
postype = p1
stateno = 30170
ownpal = 1
ignorehitpause = 999999999
helpertype = player
size.xscale = 1.0
size.yscale = 1.0
pausemovetime = 99999999
supermovetime = 99999999

[State -2];回るバリア1
type = null;helper
triggerall = !ishelper
triggerall = palno = 10
trigger1 = anim=0 && time>15
trigger1 = numhelper(30003)= 0
stateno = 30003
postype = p1
pos = 5,-75
ownpal = 0
helpertype = player
size.xscale = 0.42*sin(-6*pi*(GameTime%60)/180)
size.yscale = 0.42
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 9999999

[State -2];回るバリア2
type = null;helper
triggerall = !ishelper
triggerall = palno = 10
trigger1 = anim=0 && time>15
trigger1 = numhelper(30004)= 0
stateno = 30004
postype = p1
pos = 5,-75
ownpal = 0
helpertype = player
size.xscale = 0.42*sin(-6*pi*(GameTime%60)/180)
size.yscale = 0.42
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 9999999

[State -2];車輪
type = NULL;helper
triggerall = !ishelper
triggerall = palno = 12
trigger1 = anim=0 && time>15
trigger1 = numhelper(30400)= 0
id = 30400
pos = 0,-85
postype = p1
stateno = 30400
ownpal = 1
ignorehitpause = 999999999
helpertype = player
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = Helper
triggerall = palno = [1,11]
triggerall = !ishelper&& !numhelper(2111)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "C"
ID = 2111
helpertype = normal
postype = p1
pos = 0,-56
stateno = 2111
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = [1,11]
triggerall = !ishelper&& !numhelper(2112)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "C2"
ID = 2112
helpertype = normal
postype = p1
pos = 0,-56
stateno = 2112
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(30401)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "mahou1"
ID = 30401
helpertype = normal
postype = p1
pos = 0,-56
stateno = 30401
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(30402)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "mahou2"
ID = 30402
helpertype = normal
postype = p1
pos = 0,-56
stateno = 30402
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(30403)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "mahou3"
ID = 30403
helpertype = normal
postype = p1
pos = 0,-56
stateno = 30403
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(30404)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "mahou4"
ID = 30404
helpertype = normal
postype = p1
pos = 0,-56
stateno = 30404
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(30405)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "mahou5"
ID = 30405
helpertype = normal
postype = p1
pos = 0,-56
stateno = 30405
size.xscale = 1
size.yscale = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2]
type = Helper
triggerall = palno = 12
triggerall = !ishelper&& !numhelper(35900)
triggerall = roundstate != 0
triggerall = alive = 1
trigger1 = time = 0
name = "XXX"
ID = 35900
helpertype = normal
postype = p1
pos = 0,-56
stateno = 35900
size.xscale = 0.7
size.yscale = 0.7
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -2];車輪2
type = null;helper
triggerall = !ishelper
triggerall = palno = 12
trigger1 = anim=0 && time>15
trigger1 = numhelper(30450)= 0
id = 30450
pos = 0,-85
postype = p1
stateno = 30450
ownpal = 1
ignorehitpause = 999999999
helpertype = player
pausemovetime = 99999999
supermovetime = 99999999

[State -2 オーラ]
type = null;helper
triggerall = numhelper(41000)= 0 
trigger1 = 1
id = 41000
stateno = 41000
postype = right
facing = -1
pos = 0, 0
keyctrl = 0
size.shadowoffset = -99999
ownpal = 1
persistent = 1
ignorehitpause = 1
helpertype = player
unhittable = 1
size.xscale = 1.0
size.yscale = 1.0

;----------------------------------------------------
;煙エフェクト
[State -2];1
type = NULL;Explod
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%80) = 1
anim = 22888
sprpriority = 1
postype = p1
pos = -19,13
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.94,0.94
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2];1
type = NULL;Explod
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%80) = 1
anim = 22888
sprpriority = 1
postype = p1
pos = 19,13
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.94,0.94
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2];2
type = NULL;Explod
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%75) = 1
anim = 22888
sprpriority = 1
postype = p1
pos = -6,13
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.84,0.84
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2];2
type = NULL;Explod
triggerall = palno = 12
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%75) = 1
anim = 22888
sprpriority = 1
postype = p1
pos = 6,13
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.84,0.84
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = Explod
triggerall = palno = 11
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%95) = 1
anim = 22888
sprpriority = 2
postype = p1
pos = -2,13
bindtime = -1
under = 0
ownpal = 1
persistent = 0
trans = add
ignorehitpause = 99999999
scale = 0.85,0.85
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -2]
type = Explod
triggerall = palno = 11
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%95) = 1
anim = 22888
sprpriority = 2
postype = p1
pos = 2,13
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
trans = add
ignorehitpause = 99999999
scale = 0.85,0.85
SuperMoveTime = 9999
PauseMoveTime = 9999

;----------------------------------------------
[State -1]
type = Projectile
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%2) = 1
attr = S, SA
projanim = 3459
projhitanim = -1
projid = 3459
projpriority = 999999999
projsprpriority = 1
;projedgebound = 220
projremove = 1
projremovetime = 4
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = 0
getpower = 0,0
givepower = 0,0
hitflag = MAFD
pausetime = 2,8
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1;s7011
guardsound = -1
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
;---------------------------------------------------------------------------
; エフェクトランダム変数
;---------------------------------------------------------------------------

[State 1]
type = varrandom
trigger1 = 1
range = -55,55
v = 50

[State 1]
type = varrandom
trigger1 = 1
range = 0,-60
v = 51

[State 1]
type = varrandom
trigger1 = 1
range = -40,-130
v = 53

[State 1]
type = varrandom
trigger1 = 1
range = -75,75
v = 52

[State -2]
type = Varset
trigger1 = stateno != 22077
var(40) = 0

[State -2]
Type = VarSet
trigger1 = 1
var(35) = 0
ignorehitpause = 99999999

[State -2]
Type = VarSet
trigger1 = Random <= 300
var(35) = 1
ignorehitpause = 99999999

[State -2]
Type = VarSet
trigger1 = Random <= 300
var(35) = 2
ignorehitpause = 99999999

[State -2]
Type = VarSet
trigger1 = Random <= 300
var(35) = 3
ignorehitpause = 99999999

;---------------------------------------------------------------------------
; 時間カウント
;---------------------------------------------------------------------------

[state a]
type = varadd
triggerall = palno = 12
trigger1 = roundstate = 2
v = 54
value = 1
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State a]
type = varset
triggerall = palno = 12
trigger1 = roundstate != 2
trigger2 = roundstate = 2 && fvar(32) != 1
trigger3 = roundstate = 2 && fvar(32)!= 0 && var(54)>=6700
v = 54
value = ((roundstate=2&&fvar(32)!=1)*5800)
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[state 1]
type = varset
trigger1 = palno=12&&fvar(38)=2&&stateno!=22050
fv = 18
value = 0
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state 1]
type = varset
trigger1 = palno=12&&(stateno=22100||enemy,numprojid(96968484321)>=1||RoundState!=2)
fv = 19
value = (stateno!=22100)*RoundState=2
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state 1]
type = varset
trigger1 = palno=12&&numtarget&&target,ishelper=0
fv = 20
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 1] 
type = varset
triggerall = palno = 12
trigger1 = RoundState = 2 && (GameTime%50) = 1
trigger2 = RoundState != 2
fv = 22
value = 0+((RoundState = 2)*enemy,life)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 1] 
type = varset
triggerall = palno = 12 && var(54) < 5700
trigger1 = RoundState = 2 && (GameTime%55) = 1
trigger1 = fvar(22) != 0 && enemy,life >= fvar(22)
trigger2 = fvar(22) != 0 && enemy,life < fvar(22)
trigger3 = RoundState != 2
fv = 23
value = IfElse((RoundState = 2),IfElse((fvar(22) != 0 && enemy,life < fvar(22)),0,1),0)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[state 1]
type = varadd
trigger1 = palno = 12 && roundstate = 2 && fvar(23) = 1 && var(54) < 5700
fv = 24
value = 1+((enemy,life>=enemy,lifemax&&enemy,power>=enemy,powermax)*80)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 1]
type = varset
triggerall = palno = 12
trigger1 = roundstate != 2 || fvar(23) = 0 || numtarget || var(54) >= 5700
fv = 24
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[state -2]
type = varset
trigger1 = palno = 12 && RoundState <= 2 && anim = 0 && ctrl = 0 && var(54) <= 40
trigger1 =  enemynear,movetype=A&&(enemynear,numproj>=1||enemynear,numhelper>=1)||enemynear,anim!=0&&p2bodydist X <= 60||enemynear,vel x != 0
trigger2 = palno = 12 && RoundState>=3
fv = 25
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state -1]
type = varset
triggerall = palno=12
trigger1 = var(29) >= 1
trigger2 = roundstate != 2
trigger3 = life>=lifemax
fv = 26
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state -1]
type = varset
trigger1 =palno=12&&(fvar(28)!=[0,2])
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state -1]
type = varset
trigger1 =palno=12&&fvar(28)!=0&&(fvar(24)>=2150&&var(54)>=2150||fvar(25)=1||fvar(29)!=0&&RoundState<=2&&var(54)<=40&&random<=100)
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state -1]
type = varset
trigger1 = palno=12&&roundstate>=3&&(drawgame||lose||win)
fv = 29
value = (!win)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 1]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = roundno = 1 && roundstate < 2
trigger2 = roundstate >= 2 && var(3) != gametime
fv = 32
value = 1-(roundstate>=2&& var(3)!=gametime)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 1]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = numexplod(2211325)
fv = 32
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno = 12 && (GameTime%20) = 1
fv = 35
value = power
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 1]
type = varset
triggerall = !ishelper
trigger1 = palno=12&&(helper(288888),stateno=288889)&&enemy,numhelper>=2&&enemy,movetype=A
fv = 36
value = enemy,stateno
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

;---------------------------------------------------------------------------
; 技ダメージ倍率
;---------------------------------------------------------------------------

[State -2] ;パワーアップ中
type = varset 
trigger1 = var(29) >= 1
var(39) = 3-(palno=12)

[State -2] ;通常
type = varset 
trigger1 = var(29) <= 1
var(39) = 1

[state a]
type = varadd
trigger1 = 1
v = 29
value = -1

[state a]
type = varset
trigger1 = palno != 12 && roundstate != 2
v = 29
value = 0

;---------------------------------------------------------------------------
; 体点滅
;---------------------------------------------------------------------------

[State -2]
Type = VarRandom
trigger1 = 1
V = 0
Range = 0,8

[State -1]
type = varset
trigger1 = roundstate = 0
var(21) = 1

[State -1]
type = varset
trigger1 = roundstate = 0
var(22) = 1

[State -1]
type = varset
trigger1 = var(21) <= 20
var(22) = 3

[State -1]
type = varset
trigger1 = var(21) >= 170
var(22) = 2

[State -1]
type = varadd
trigger1 = 1
trigger1 = var(22) = 3
var(21) = 2

[State -1]
type = varadd
trigger1 = 1
trigger1 = var(22) = 2
var(21) = -2

[State a]
type = NULL;PalFX
trigger1 = !ishelper
trigger1 = 1
time = 1
add = 1.5*var(21)-90,1.5*var(21)-90,1.5*var(21)-90
ignorehitpause = 1

[State a];
type = null;PalFX
trigger1 = !ishelper
trigger1 = var(21) <= 30
time = 20
add = var(21)-20,var(21)-20,var(21)-20
ignorehitpause = 1
color = 256

;---------------------------------------------------------------------------
; キー判別
;---------------------------------------------------------------------------

[state a]
type = varset
trigger1 = command = "holdup"
v = 56
value = 2

[state a]
type = varset
trigger1 = command = "holddown"
v = 56
value = 3

[state a]
type = varset
trigger1 = command != "holddown"
trigger1 = command != "holdup"
v = 56
value = 0

[state -2]
type = varset
trigger1 = 1
fv = 33
value = (projhit22183=1)

;---------------------------------------------------------------------------
;体のエレキオーラ、残像
[State -1]
type = null;Explod
triggerall = alive = 1 && !ishelper
triggerall = statetype != C
triggerall = MoveType != H
triggerall = stateno != [190,192]
triggerall = stateno != 22050
triggerall = stateno != [170,171]
trigger1 = (GameTime%30) = 1
anim = 8200
id = 8200
sprpriority = 1
postype = p1
pos = 0,-50
bindtime = -1
supermove = 1
under = 1
ownpal = 1
Trans = add

[State a] 
type = Afterimage
triggerall = stateno != [190,192]
trigger1 = roundstate != 0 && !ishelper
trigger1 = TIME = 0
PalContrast = 256, 256, 256
PalBright = 0,0,0
time    =  -1
length  = 13
TimeGap = 1
FrameGap = 1
trans = add

[State a]
type = EnvColor
trigger1 = projhit1050 = 1
persistent = 0
ignorehitpause = 1
time = 1
value = 255,255,255
under = 1

[State 1000, 9]
type = Envcolor
trigger1 = projHit22079 = 1
ignorehitpause = 1
value = 255, 255, 255
time = 1
under = 5
supermove = 1

;----------------------------------------------------------------------------------------
;分身

[State -2]
type = null;helper
;triggerall = palno != 12
triggerall = teamside = 1 && numhelper(99999995) = 0 && time > 0
trigger1 = 1
helpertype = normal
ID = 99999995
stateno = 99999995
name = "shadow2"
postype = left
facing = 1
pos = -9999999999999999999, -9999999999999999999
keyctrl = 0
size.xscale = .5
size.yscale = .5
size.shadowoffset = -99999
ownpal = 0
persistent = 1
ignorehitpause = 1

[State -2]
type = null;helper
;triggerall = palno != 12
triggerall = teamside = 2 && numhelper(99999996) = 0 && time > 0
trigger1 = 1
helpertype = normal
ID = 99999996
stateno = 99999996
name = "shadow2"
postype = right
facing = -1
pos = -9999999999999999999, -9999999999999999999
keyctrl = 0
size.xscale = .5
size.yscale = .5
size.shadowoffset = -99999
ownpal = 0
persistent = 1
ignorehitpause = 1

[State -2]
type = helper
;triggerall = palno = 12
triggerall = teamside = 1 && numhelper(99999995) = 0 && time > 0
trigger1 = 1
helpertype = normal;player
ID = 99999995
stateno = 99999995
name = "shadow2"
postype = left
facing = 1
pos = -9999999999999999999, -9999999999999999999
keyctrl = 0
size.xscale = .5
size.yscale = .5
size.shadowoffset = -99999
ownpal = 0
persistent = 1
ignorehitpause = 1

[State -2]
type = helper
;triggerall = palno = 12
triggerall = teamside = 2 && numhelper(99999996) = 0 && time > 0
trigger1 = 1
helpertype = normal;player
ID = 99999996
stateno = 99999996
name = "shadow2"
postype = right
facing = -1
pos = -9999999999999999999, -9999999999999999999
keyctrl = 0
size.xscale = .5
size.yscale = .5
size.shadowoffset = -99999
ownpal = 0
persistent = 1
ignorehitpause = 1

;------------------------------------------------------------------------------------
;ﾓｰ

[State -2]
type = Helper
;triggerall = palno = 12
triggerall = !ishelper&&!numhelper(54321)
triggerall = roundstate >= 0
trigger1 = 1
name = "Y"
ID = 54321
helpertype = normal;player
postype = p1
facing = -1
pos = 0,0
stateno = 54321
size.xscale = 1.1
size.yscale = 1.1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999
ignorehitpause = 1

;=============================================================================
;ﾓｰ

[Statedef 54321]
type = A
movetype = I
physics = N
sprpriority = 0
velset = 0,0
ctrl = 0
ownpal = 0
pausemovetime = 9999999999
supermovetime = 9999999999
ignorehitpause = 1

[state 54321]
type = assertspecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State 1000, 0]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 54321, playerpush]
type = playerpush
trigger1 = 1
time = -1
ignorehitpause = 1
persistent = 1
value = 0

[State hogo3]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = -1
ignorehitpause = 1

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 54321
ignorehitpause = 1

[State 54321, ChangeAnim]
type = ChangeAnim
trigger1 = selfanimexist(parent,anim)
elem = parent,animelemno(0)
value = parent, anim

[State 54321, ]
type = bindtoroot
trigger1 = 1
facing = 1
pos = -5,0
time = -1
ignorehitpause = 1
persistent = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State 54321, palFx]
type = palfx
trigger1 = 1
;add = 100, 100, 100
mul = 255, 255, 255
sinadd = 256, 10, 10, 50
invertall = 0
color = 256
ownpal = 0
time = -1
ignorehitpause = 1
persistent = 1

[State 54321, ]
type = trans
trigger1 = 1
trans = addalpha
alpha = 256 - (10*time), (10*time)
time = -1
ignorehitpause = 1
persistent = 1

[State 54321, ]
type = angledraw
trigger1 = 1
value = 0
scale = 1.015 + (.0065*time),1 + (.0065*time)
time = -1
ignorehitpause = 1
persistent = 1
;
[State 54321, destroyself]
type = Destroyself
trigger1 = time >= 30

;=============================================================================
;分身
;=============================================================================

[Statedef 99999995]
type = S
movetype = I
physics = N
ownpal = 0
sprpriority = 0
velset = 0,0
ctrl = 0

[state 99999995, noshadows]
type = assertspecial
trigger1 = 1
flag = noshadow

[state 99999995, special]
type = assertspecial
trigger1 = root,stateno = [3500,3501]
flag = invisible
ignorehitpause = 1

[state 99999995, playerpush]
type = playerpush
trigger1 = 1
time = -1
ignorehitpause = 1
persistent = 1
value = 0
;
[state 99999995, screenbound]
type = screenbound
trigger1 = 1
time = -1
ignorehitpause = 1
persistent = 1
value = 1

[state 99999995, nothitby]
type = nothitby
trigger1 = 1
time = -1
persistent = 1
value = SCA

[State 99999995, ChangeAnim]
type = ChangeAnim
trigger1 = selfanimexist(parent,anim)
elem = parent,animelemno(0)
value = parent, anim

[State 99999995, PosSet]
type = PosSet
trigger1 = teamside = 1
x = -140
y = -105
ignorehitpause = 1
persistent = 1

[State 99999995, destroyself]
type = Destroyself
trigger1 = !alive
trigger2 = root,stateno = 185

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

[Statedef 99999996]
type = S
movetype = I
physics = N
ownpal = 0
sprpriority = 0
velset = 0,0
ctrl = 0

[state 99999996]
type = assertspecial
trigger1 = 1
flag = noshadow

[state 99999995, special]
type = assertspecial
trigger1 = root,stateno = [3500,3501]
flag = invisible
ignorehitpause = 1

[state 99999996, playerpush]
type = playerpush
trigger1 = 1
time = -1
ignorehitpause = 1
persistent = 1
value = 0

[state 99999996, screenbound]
type = screenbound
trigger1 = 1
time = -1
ignorehitpause = 1
persistent = 1
value = 1

[state 99999996]
type = nothitby
trigger1 = 1
time = -1
persistent = 1
value = SCA

[State 99999996, ChangeAnim]
type = ChangeAnim
trigger1 = selfanimexist(parent,anim)
elem = parent,animelemno(0)
value = parent, anim

[State 99999996, PosSet]
type = PosSet
triggerall = teamside = 2 && facing = 1
trigger1 = 1
x = 140
y = -105
ignorehitpause = 1
persistent = 1

[State 99999996, destroyself]
type = Destroyself
trigger1 = !alive
trigger2 = root,stateno = 185

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

[State 1000, 5]
type = Explod
trigger1 = Projhit3459 = 1 || Projhit35904 = 1 || Projhit22519 = 1
anim = 22109 + var(35)
sprpriority = 6
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = ProjHit20000 = 1 || projhit22182 = 1 || projhit22183 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = ProjHit22079 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = ProjGuarded22079 = 1
anim = 22113
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

;---------------------------------------------------------------------------
; etc.....
;---------------------------------------------------------------------------

[State -2]
type = EnvColor
trigger1 = projhit35900 = 1
persistent = 0
ignorehitpause = 1
time = 2
value = 255,255,255
under = 1
invertall = 1

[State -2]
type = PlaySnd
trigger1 = projhit22182 = 1 || projhit22183 = 1
value = 2300,2

[State -2]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]
trigger1 = floor(Pos Y) < -20
y = 0

[State -2]
type = SelfState
triggerall = ishelper
trigger1 = var(3) != gametime
trigger2 = anim = [5000,5150]
trigger3 = stateno = [5000,5150]
value = 0
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -1]
type = CtrlSet
trigger1 = !ishelper && stateno = (104005 || 104006 || 103999 || 104000 || 104001 || 104004) && ctrl = 1
value = 0

[State 1]
type = poweradd
triggerall = roundstate = 2 && var(1)!=1
trigger1 = (GameTime%4) = 1
value =2+((life<lifemax/4)*(powermax/1000))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state a]
type = powerset
triggerall = palno = 12
trigger1 = var(54) >= 5700 || fvar(24)>=2150&&var(54)>=2150
value = (Const(data.power))
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[state -1]
type = powerset
triggerall = !ishelper
trigger1 = palno=12&&!(stateno=2300||stateno =2400||stateno=22075||stateno=2999||stateno=3250||stateno=2200)&&fvar(35)-power>=1
value = fvar(35)-power
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 1]
type = targetLifeAdd
triggerall = palno = 12
trigger1 = stateno = 22050 || stateno = 2205 && time >= 20
value = -999999999999
absolute = 1

[state a]
type = targetlifeadd
trigger1 = projhit22079 >= 1
value = Ceil(-0.003 * enemy,Const(data.life))
absolute = 1

[State 22121,1]
type = targetlifeadd
triggerall = !ishelper
trigger1 = projhit35902 >= 1
value = (Ceil(-0.005 * enemy,Const(data.life))) * var(39)
ignorehitpause = 1
absolute = 1

[State -2]
type = targetLifeAdd
triggerall = !ishelper
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -9999999999999
ignorehitpause = 1
absolute = 1

[State -2]
type = targetpowerAdd
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -(Ceil(1 * enemy,Const(data.power)))
ignorehitpause = 1

[State 1]
type = Targetlifeadd
trigger1 = helper(2401),stateno=2410&&helper(2401),animtime = 0
value = Ceil(-0.35 * enemy,Const(data.life)) - 1
ignorehitpause = 1
absolute = 1

[State -2]
type = StateTypeSet
triggerall = var(1) = 1
trigger1 = stateno = [40,52]
MoveType = I

[State -2]
type = screenbound
trigger1 = ishelper
value = 0
movecamera = 0

[State -2]
type = NotHitBy
triggerall = var(1) = 1
triggerall = stateno = [40,52]
trigger1 = time = 0
value = SCA,AA,AT,AP
Time = 9999999999999999999

[State -2]
type = NotHitBy
triggerall = !ishelper
triggerall = palno = 12
trigger1 = RoundState != 2 || RoundState=2&&var(54)<=100
trigger2 = fvar(32) != 1
time = 99999999999999999999999
value = SCA,AA,AT,AP

[State -2]
type = Trans
triggerall = !ishelper
trigger1 = palno = 12 && !ishelper && fvar(32) != 1
trans = add

[State -2]
Type = LifeSet
triggerall = !ishelper
triggerall = palno = 12 && alive
trigger1 = var(29) >= 1
trigger2 = fvar(32) != 1
trigger3 = roundstate < 2
trigger4 = var(30)=0&&fvar(26)<=36&&life<=1
trigger5 = var(30)!=0&&fvar(26)<=88&&fvar(28)=0&&life<=1
trigger6 = var(30)!=0&&fvar(28)=0&&roundstate>=3
Value = lifemax
IgnoreHitPause = 1

[State -2]
Type = LifeSet
triggerall = !ishelper
triggerall = var(1) = 1 && palno != 12 && alive
trigger1 = var(29) >= 1
Value = fvar(39)
IgnoreHitPause = 1

[State -2]
type = attackMulSet
triggerall = !ishelper
trigger1 = 1
value = 1+((var(29)>=1)*(2-(palno=12)))
ignorehitpause = 1

[State -2]
type = defenceMulSet
triggerall = !ishelper
trigger1 = var(1) != 1
value = 1.2
ignorehitpause = 1

[State -2]
type = AssertSpecial
trigger1 = var(1) = 1 || var(1) != 1 && var(29) >= 1
flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoairGuard

[State -2]
type = assertspecial
triggerall = !ishelper
trigger1 = palno = 12 && !ishelper && fvar(32) != 1
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State -2]
type = PlayerPush
triggerall = palno = 12
trigger1 = var(29) >= 1
value = 0

[State 1]
type = ChangeState
triggerall = var(1) = 1
trigger1 = !alive && stateno = [5000,5050]
value = 10380

[state a]
type = targetstate
trigger1 = enemy,alive = 0 && enemy,statetype = S
value = 10380

[state a]
type = targetstate
trigger1 = stateno = 22050 && enemy,alive = 0
value = 104010

[state 1]
type = targetstate
triggerall = palno = 12
trigger1 = (target,stateno != [49000,49100]) && stateno = 22050 && time >= 150
value = 49000

[State 1]
type = Targetstate
trigger1 = helper(2401),stateno=2410&&helper(2401),animtime = 0
value = 2416

[State 1]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = statetype != A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 10051
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = statetype = A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38853
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 38852
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 18000
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = statetype = A
trigger1 = 1
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP,AA,AT,AP
stateno = 18000
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -1];player
type = helper
triggerall = palno=12&&(stateno=22050&&time<150)&&!ishelper&&fvar(32)!=0&&fvar(38)!=0
trigger1 = numhelper(169992)=0&&enemy,numprojid(169994)>=1
id = 169992
persistent = 0
name = "SARIEL"
pos = 0,0
postype = P1
stateno = 169992
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;常時ヘルパかき消し当身ヘルパ
[State -2]
type = helper
triggerall = palno = 12
trigger1 = numhelper(288888)=0
id = 288888
persistent = 0
pos = 0,0
postype = P1
stateno = 288888
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

