;---------------------------------------------------------------------------
;                           -----SARIEL CNS-----
;---------------------------------------------------------------------------
;基本データ部分
[Data]
life = 1200
attack = 100
defence = 115
power = 99999;7000
fall.defence_up = 100
liedown.time = 15
airjuggle = 200
sparkno = -1
guard.sparkno = -1
KO.echo = 0
volume = 255
IntPersistIndex = 0
FloatPersistIndex = 0
;---------------------------------------------------------------------------
;サイズ設定
[Size]
xscale = 1           ;水平方向の縮尺
yscale = 1           ;垂直方向の縮尺
ground.back = 15     ;キャラの幅(後方,地上)
ground.front = 16    ;キャラの幅(前方,地上)
air.back = 12        ;キャラの幅(後方,空中)
air.front = 12       ;キャラの幅(前方,空中)     
height = 125          
attack.dist = 80 
proj.attack.dist = 50
proj.doscale = 0        
head.pos = 0, -118
mid.pos = -4, -86 
shadowoffset = 0 
draw.offset = 0,0  
;---------------------------------------------------------------------------
;移動速度設定
[Velocity]
walk.fwd  = 4.2
walk.back = -4.2
run.fwd  = 1000,1000
run.back = -6.5,-1.8
jump.neu = 0,-10.9  
jump.back = -4.05,2    
jump.fwd = 4.0,2       
runjump.back = -2.65,-8.1 
runjump.fwd = 4,-9.1      
airjump.neu = 0,-9.1      
airjump.back = -2.55      
airjump.fwd = 2.5  
;---------------------------------------------------------------------------
;動作設定
[Movement]
airjump.num = 1
airjump.height = 80
yaccel = .57        
stand.friction = .85  
crouch.friction = .82
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; 立ち
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
[Statedef 0]
type = S
physics = S
sprpriority = 0

[state 0]
type = destroyself
trigger1 = ishelper

[State 0]
type = ChangeAnim
triggerall = name = "SARIEL"
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0

[State 0]
type = VelSet
triggerall = name = "SARIEL"
trigger1 = Time = 0
y = 0

[State 0]
type = VelSet
triggerall = name = "SARIEL"
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0]
type = lifeset
trigger1 = name != "SARIEL"
ignorehitpause = 99999999
value = 0

[State 0]
type = powerset
trigger1 = name != "SARIEL"
ignorehitpause = 99999999
value = 0

[State 0]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 0]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
ignorehitpause = 99999999

[State 0]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
ignorehitpause = 99999999 

[State 0]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
ignorehitpause = 99999999

[State 0]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
ignorehitpause = 99999999

[State 0]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
ignorehitpause = 99999999

[State 0]
type = changeanim
triggerall = name != "SARIEL"
trigger1 = selfanimexist(anim)
value = anim
elem = animelemno(-1)

[State 0]
type = statetypeset
trigger1 = name != "SARIEL"
value = S
physics = N

[State 0]
type = VelSet
trigger1 = name != "SARIEL"
x = 0
y = 0

[State 0]
type = CtrlSet
triggerall = name != "SARIEL"
trigger1 = alive
value = 0

[State 0]
type = AssertSpecial
trigger1 = name != "SARIEL" && !alive
flag = invisible

[State 0]
type = ChangeState
triggerall = name != "SARIEL"
trigger1 = alive && time >= 20
value = 13121

[State 0]
type = ChangeState
triggerall = name != "SARIEL"
trigger1 = !alive
value = 104010

[State 0]
type = ChangeState
triggerall = name = "SARIEL"
trigger1 = !alive
value = 5050

;---------------------------------------------------------------------------
; SGUARDHIT (shaking)
;---------------------------------------------------------------------------
[Statedef 150]
type    = S
movetype= I
physics = N
velset = 0,0

[state 150]
type = destroyself
trigger1 = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 150]
type = ChangeAnim
trigger1 = 1
value = 150
ignorehitpause = 1
persistent = 0

[State 150]
type = ChangeState
trigger1 = HitShakeOver
value = 151

[State 150]
type = ForceFeedback
trigger1 = Time = 0
waveform = square
time = 3

;---------------------------------------------------------------------------
; SGUARDHIT2 (knocked back)
;---------------------------------------------------------------------------

[Statedef 151]
type    = S
movetype= I
physics = S

[State 151]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 151]
type = VelSet
trigger1 = Time = GetHitVar(slidetime)
trigger2 = Time >= GetHitVar(hittime)
x = 0

[State 151]
type = CtrlSet
trigger1 = Time = GetHitVar(ctrltime)
value = 1

[State 151]
type = ChangeState
trigger1 = Time >= GetHitVar(hittime)
value = 130
ctrl = 1

;---------------------------------------------------------------------------
; CGUARDHIT (shaking)
;---------------------------------------------------------------------------

[Statedef 152]
type    = C
movetype= I
physics = N
velset = 0,0

[State 152]
type = ChangeAnim
trigger1 = 1
value = 151
ignorehitpause = 99999999
persistent = 0

[State 152]
type = ChangeState
trigger1 = HitShakeOver
value = 153

[State 152]
type = ForceFeedback
trigger1 = Time = 0
waveform = square
time = 4

;---------------------------------------------------------------------------
; CGUARDHIT2 (knocked back)
;---------------------------------------------------------------------------

[Statedef 153]
type    = C
movetype= I
physics = C

[State 153]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 153]
type = VelSet
trigger1 = Time = GetHitVar(slidetime)
trigger2 = Time >= GetHitVar(hittime)
x = 0

[State 153]
type = CtrlSet
trigger1 = Time = GetHitVar(ctrltime)
value = 1

[State 153]
type = ChangeState
trigger1 = Time >= GetHitVar(hittime)
value = 131
ctrl = 1

;---------------------------------------------------------------------------
; AGUARDHIT (shaking)
;---------------------------------------------------------------------------

[Statedef 154]
type    = A
movetype= I
physics = N
velset = 0,0

[State 154]
type = ChangeAnim
trigger1 = 1
value = 152

[State 154]
type = ChangeState
trigger1 = HitShakeOver
value = 155 

[State 154]
type = ForceFeedback
trigger1 = Time = 0
waveform = square
time = 4

;---------------------------------------------------------------------------
; AGUARDHIT2 (knocked away)
;---------------------------------------------------------------------------

[Statedef 155]
type    = A
movetype= I
physics = N
anim = 152

[State 155]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 155]
type = VelAdd
trigger1 = 1
y = Const(movement.yaccel)

[State 155]
type = CtrlSet
trigger1 = Time = GetHitVar(ctrltime)
value = 1

[State 155]
type = VarSet
trigger1 = 1
sysvar(0) = (pos y >= 0) && (Vel y > 0)

[State 155]
type = VelSet
trigger1 = sysvar(0)
y = 0

[State 155]
type = PosSet
trigger1 = sysvar(0)
y = 0

[State 155]
type = ChangeState
trigger1 = sysvar(0)
trigger1 = Command != "holdback"
value = 52

[State 155]
type = ChangeState
trigger1 = sysvar(0)
value = 130

;---------------------------------------------------------------------------
; ジャンプスタート
;---------------------------------------------------------------------------

[Statedef 40]
type    = S
physics = S
anim = 40
ctrl = 0
sprpriority = 1

[State 40]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 40]
type = VarSet
trigger1 = command = "holdfwd"
sysvar(1) = 1

[State 40]
type = VarSet
trigger1 = command = "holdback"
sysvar(1) = -1

[State 40]
type = VelSet
trigger1 = AnimTime = 0
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)=1, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y)

[State 40]
type = VelSet
trigger1 = AnimTime = 0
trigger1 = prevstateno = 100 ;RUN_FWD
trigger1 = sysvar(1) = 1
x = const(velocity.runjump.fwd.x)

[State 40]
type = ChangeState
triggerall = var(30) != 1
trigger1 = AnimTime = 0
value = 50
ctrl = 1

[State 40]
Type = ChangeState
triggerall = var(30) = 1
Trigger1 = Time = 0
Value = 0
Ctrl = 1
ignorehitpause = 99999999

;---------------------------------------------------------------------------
; フロントステップ
;---------------------------------------------------------------------------

[Statedef 100]
type    = S
physics = N
anim = 100
sprpriority = 1

[State 100]
type = poweradd
triggerall = time = 0
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
value = -500

[State 100]
type = null;palfx
triggerall = time = 0
trigger1 = prevstateno = 150
trigger2 = prevstateno = 151
time = 1
add = 255,255,255
mul = 255,255,255
color = 1
ignorehitpause = 99999999

[State 100]
type = PlaySnd
trigger1 = animelem = 3
value = 700, 1

[State 100]
type = VelSet
trigger1 = animelem = 3;1
x = 6;const(velocity.run.fwd.x)

[State 100]
type = VelSet
trigger1 = animelem = 15
x = 0

[State 100]
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 100]
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn

[State 100]
type = ChangeState
trigger1 = command = "holdfwd"
trigger1 = animelem = 14,>=0
value = 101

[State 100]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; ダッシュ
;---------------------------------------------------------------------------

[Statedef 101]
type    = S
physics = S
anim = 101
sprpriority = 1

[State 101]
type = VelSet
trigger1 = 1
x = const(velocity.run.fwd.x)

[State 101]
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 101]
type = AssertSpecial
trigger1 = 1
flag = NoAutoTurn

[State 101]
type = ChangeState
trigger1 = command != "holdfwd"
value = 0

;---------------------------------------------------------------------------
; ステップ
;---------------------------------------------------------------------------

[Statedef 101]
type    = S
physics = S
ctrl = 0
anim = 101
velset = 0,0

[State 101]
type = ChangeState
trigger1 = Time = 7
value = 102

;---------------------------------------------------------------------------
; 空中
;---------------------------------------------------------------------------

[Statedef 102]
type    = A
physics = A
ctrl = 1
anim = 102
sprpriority = 1

[State 102]
type = VelSet
trigger1 = Time = 0
x = 7.5
y = -3.8

[State 102]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -5
value = 103

;---------------------------------------------------------------------------
; 着地
;---------------------------------------------------------------------------

[Statedef 103]
type    = S
physics = N
ctrl = 0
anim = 103
velset = 0,0

[State 102]
type = VelSet
trigger1 = Time = 0
x = 0
y = 0

[State 102]
type = PosSet
trigger1 = Time = 0
y = 0

[State 102]
type = MakeDust
trigger1 = Time = 2
pos = -5,-2
spacing = 1

[State 102]
type = ChangeState
trigger1 = Time = 7
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; バックステップ
;---------------------------------------------------------------------------

[Statedef 105]
type    = S
physics = S
ctrl = 0
anim = 104
velset = 0,0

[State 105]
type = ChangeState
trigger1 = Time = 7
value = 106

;---------------------------------------------------------------------------
; 空中
;---------------------------------------------------------------------------

[Statedef 106]
type    = A
physics = A
ctrl = 1
anim = 105
sprpriority = 1

[State 106]
type = VelSet
trigger1 = Time = 0
x = -7.5
y = -3.8

[State 106]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= -5
value = 107

;---------------------------------------------------------------------------
; 着地
;---------------------------------------------------------------------------

[Statedef 107]
type    = S
physics = N
ctrl = 0
anim = 106
velset = 0,0

[State 107]
type = VelSet
trigger1 = Time = 0
x = 0
y = 0

[State 107]
type = PosSet
trigger1 = Time = 0
y = 0

[State 107]
type = MakeDust
trigger1 = Time = 2
pos = -5,-2
spacing = 1

[State 107]
type = ChangeState
trigger1 = Time = 7
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; タイムオーバー
;---------------------------------------------------------------------------

[Statedef 170]
type = S
ctrl = 0
anim = 170
velset = 0,0

[State 170]
type = NotHitBy
trigger1 = 1
value = SCA
time = 9999999999

[state 170]
type = changeanim
trigger1 = time = 0
value = 170

[State 170]
type = AssertSpecial
trigger1 = time = [0,350]
flag = roundnotover

;---------------------------------------------------------------------------
; 勝った動作１
;---------------------------------------------------------------------------

[Statedef 180]
type = S

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

[State 2205]
type = Turn
trigger1 = P2dist X < 0

[State 180]
type = ChangeState
trigger1 = var(2) = 0
value = 184

[State 180]
type = ChangeState
trigger1 = var(2) = 1
value = 186

[State 180]
type = ChangeState
trigger1 = var(2) = 2
value = 187

;---------------------------------------------------------------------------
; 勝った動作
;---------------------------------------------------------------------------

[Statedef 184]
type = S
ctrl = 0
anim = 184
velset = 0,0

[State 184]
type = PlaySnd
trigger1 = animelem = 9
value = 184,0

[State 184]
type = NotHitBy
trigger1 = 1
value = SCA
time = 9999

[State 184]
type = AssertSpecial
trigger1 = time = [0,180]
flag = roundnotover

;---------------------------------------------------------------------------
; 勝った動作
;---------------------------------------------------------------------------

[Statedef 186]
type = S
ctrl = 0
anim = 186
velset = 0,0

[State 186]
type = Explod
trigger1 = animelem = 3
anim = 187
id = 185
sprpriority = 2
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
under = 0

[State 186]
type = NotHitBy
trigger1 = 1
value = SCA
time = 9999

[State 186]
type = AssertSpecial
trigger1 = time = [0,180]
flag = roundnotover

;---------------------------------------------------------------------------
; 勝った動作 銀河を.....
;---------------------------------------------------------------------------

[Statedef 187]
type = S
ctrl = 0
anim = 183
velset = 0,0

[State 187]
type = PlaySnd
trigger1 = animelem = 6
value = 187,0

[State 187]
type = PlaySnd
trigger1 = animelem = 10
value = 187,1

[State 187]
type = PlaySnd
trigger1 = animelem = 46
value = 187,2

[State 187]
type = NotHitBy
trigger1 = 1
value = SCA
time = 9999

[State 187]
type = AssertSpecial
trigger1 = time = [0,180]
flag = roundnotover

;---------------------------------------------------------------------------
; イントロ分岐
;---------------------------------------------------------------------------
[Statedef 190]
type = S
ctrl = 0
velset = 0,0
range = 0,2

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

[State 190];イントロ1
Type = ChangeState
trigger1 = palno = [1,11]
Value = 192

[State 190];12Pイントロ1
Type = ChangeState
trigger1 = palno = 12
trigger1 = var(49) = 0
Value = 191

[State 190];12Pイントロ2
Type = ChangeState
triggerall = palno = 12
trigger1 = var(49) = 1
Value = 193

[State 190];ALSIEL専用
type = ChangeState
triggerall = palno = 12
trigger1 = enemy,name ="ALSIEL"
value = 194

;---------------------------------------------------------------------------
; イントロ　私は最初であり最後である
;---------------------------------------------------------------------------

[Statedef 191]
type = S
ctrl = 0
anim = 193
velset = 0,0
range = 0,2

[State 193]
type = Explod
trigger1 = gametime%5 = 0
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -4 + (random%8),-4 + (random%8)
facing = -1
ownpal = 1
ontop = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
trigger1 = gametime%4 = 0
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -3 + (random%6),-3 + (random%6)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
trigger1 = gametime%3 = 0
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = PlaySnd
trigger1 = time = 0
value = 22212,3
volume = 220

[State 193]
type = Explod
trigger1 = time = 0
anim = 3046
sprpriority = 3
postype = p1
pos = 0,-100
scale = 0.9,0.9
under = 0
ownpal = 1
removetime = 290
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 1000,5];白い光の円
type = Explod
trigger1 = time = 290
anim = 31500
sprpriority = 0
postype = p1
pos = 0,-80
bindtime = -1
under = 0
ownpal = 1
trans = add
persistent = 1
ignorehitpause = 99999999
PauseMoveTime = 9999999

[State 193]
type = Explod
trigger1 = time = 290
anim = 3048
sprpriority = 3
postype = p1
pos = 0,-100
scale = 0.9,0.9
under = 0
ownpal = 1
removetime = 14
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
trigger1 = time > 290
trigger1 = time <= 280
anim = 22131
sprpriority = 0
postype = p1
pos = 0,-75
random = 30,30
vel = -3+ (random%6),-3 + (random%6)
facing = -1
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = null;Explod
triggerall = Numexplod(30600) = 0
trigger1 = animelemtime(1) = 1
anim = 30600
ID = 30601
sprpriority = 0
postype = p1
pos = 56,20
bindtime = -1
supermove = 0
under = 0
ownpal = 1
trans = add
removetime = 465
scale = 1.55,0.25
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = IfElse((Random <=500),99999,1)
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
bindtime = -1
removetime = 13
supermove = 0
ownpal = 1
scale = .3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = 0,-6 + (random%3)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = -3+ (random%6),-3
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = IfElse((Random <=500),99999,1)
postype = back
pos = 160,220
random = 320,20
vel = 0,-3 + (random%3)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 191, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay
ignorehitpause = 1

[State 191]
type = AssertSpecial
trigger1 = 1
flag = noBG
flag2 = noFG
flag3 = noshadow
ignorehitpause = 1

[State 191] 
type = ChangeState
trigger1 = animTime = 0
value = 0

;---------------------------------------------------------------------------
;  イントロ　倒して見せよ...
;---------------------------------------------------------------------------
[Statedef 192]
type = S
ctrl = 0
anim = 190
velset = 0,0
range = 0,2

[State 192]
type = removeexplod
trigger1 = 1
ID = 8200

[State 192]
type = PlaySnd
trigger1 = animelem = 4
value = 2100,0
volume = 255

[State 193]
type = PlaySnd
trigger1 = animelem = 13
value = 193,0
volume = 255

[State 193]
type = PlaySnd
trigger1 = animelem = 13
value = 193,2
volume = 255

[State 193]
type = PlaySnd
trigger1 = animelem = 13
value = 2552,0
volume = 255

[State 23000]
type = EnvShake
trigger1 = animelem = 13
time = 5
ampl = -5
freq = 75
phase = 75

[State 192];1
type = Explod
trigger1 = animelemtime(13) = 1
anim = 15853
sprpriority = 90
postype = p1
pos = 0,1
bindtime = 1
supermove = 0
ownpal = 1
under = 0
trans = add
scale = 1.2,1.2
ignorehitpause = 1

[State 192]
type = Explod
trigger1 = animelemtime(13) = 1
anim = 15852
sprpriority = 90
postype = p1
pos = 20,1
facing = -1
bindtime = 1
supermove = 0
ownpal = 1
under = 0
trans = add
scale = 1.1,1.1
ignorehitpause = 1

[State 192]
type = Explod
trigger1 = animelemtime(13) = 1
anim = 15852
sprpriority = 90
postype = p1
pos = -15,1
bindtime = 1
supermove = 0
ownpal = 1
under = 0
trans = add
scale = 1.1,1.1
ignorehitpause = 1

[State 192] 
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 192] 
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
;  イントロ　Awakening...目覚め
;---------------------------------------------------------------------------
[Statedef 193]
type = S
ctrl = 0
anim = 19339
velset = 0,0
range = 0,2

[State 2000]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay
ignorehitpause = 1

[State 2000]
type = AssertSpecial
trigger1 = 1
flag = noBG
flag2 = noFG
flag3 = noshadow
ignorehitpause = 1

[State 2000];位置を固定
type = BindToRoot
trigger1 = 1
pos = 0,30
id = 25465

[State 192]
type = PlaySnd
trigger1 = time = 10 || time = 50 || time = 90 || time = 130 || time = 170 || time = 210 || time = 250 
value = 30000,3

[State 1000]
type = VarRandom
trigger1 = 1
v = 5
range = 0,300

[State 1000]
type = Explod
triggerall = Numexplod(25000) = 0
trigger1 = gametime%5 = 1
sprpriority = -2
anim = 25000
pos = -2,5
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.9,0.2
removetime = 430
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 1000]
type = Explod
triggerall = Numexplod(7007) = 0
trigger1 = gametime%5 = 1
sprpriority = -5
anim = 7007
pos = 0,0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 1.2,1.2
removetime = 430
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
triggerall = Numexplod(2288) = 0
trigger1 = gametime%3 = 1
anim = 22888
sprpriority = 1
postype = p1
pos = -12,20
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.55,0.55
removetime = 330
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
triggerall = Numexplod(2288) = 0
trigger1 = gametime%3 = 1
anim = 22888
sprpriority = 1
postype = p1
pos = 12,20
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 0.55,0.55
removetime = 330
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 2000];上
type = Explod
trigger1 = gametime%8
anim = 22131
id = 25465
postype = p1
pos = Ceil(-300*cos(pi*var(5)/150)),Ceil(-300*sin(pi*var(5)/150))
vel = 10*cos(pi*var(5)/150),10*sin(pi*var(5)/150)
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2000];下
type = Explod
trigger1 = gametime%8
anim = 22131
id = 25465
postype = p1
pos = Ceil(300*cos(pi*var(5)/150)),Ceil(300*sin(pi*var(5)/150))
vel = -10*cos(pi*var(5)/150),-10*sin(pi*var(5)/150)
ownpal = 1
trans = add
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = IfElse((Random <=500),99999,1)
postype = back
pos = 160,240
random = 320,20
vel = 2,-3 + (random%2)
facing = -1
scale = 1,1;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-4 + (random%2)
facing = -1
scale = .5,.5;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .6,.6;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,240
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = 0,-5 + (random%2)
facing = -1
scale = .3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
bindtime = -1
removetime = 13
supermove = 0
ownpal = 1
scale = .3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = 0,-6 + (random%3)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = 0
postype = back
pos = 160,220
random = 320,20
vel = -3+ (random%4),-3
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 193]
type = Explod
triggerall = animelemtime(1) >= 1
trigger1 = gametime%3 = 0
anim = 22131
sprpriority = IfElse((Random <=500),99999,1)
postype = back
pos = 160,220
random = 320,20
vel = 0,-3 + (random%3)
facing = -1
scale = .8,.8;.3,.3
under = 0
ownpal = 1
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 192]
type = Explod
trigger1 = time = 0
anim = 15450
id = 15450
sprpriority = 4
postype = p1
pos = 0,
bindtime = 1
supermove = 1
ownpal = 1
under = 0
trans = add
removetime = 285
supermovetime = 9999999999
pausemovetime = 9999999999

[State 192]
type = Explod
trigger1 = time = 300
anim = 15853
sprpriority = 90
postype = p1
pos = -2,1
bindtime = 1
supermove = 0
ownpal = 1
under = 0
trans = add
scale = 1.5,1.5
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = time = 300
time = 5
ampl = -5
freq = 75
phase = 75

[State 193]
type = PlaySnd
trigger1 = time = 301
value = 2552,0
volume = 255

[State 193]
type = PlaySnd
trigger1 = time = 240
value = 2100,0
volume = 255

[State 193]
type = PlaySnd
trigger1 = time = 300
value = 193,2
volume = 255

[State 193]
type = PlaySnd
trigger1 = time = 299
value = 193,0
volume = 255

[State 193] 
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
;　専用イントロ ALSIEL(未完成）   
;---------------------------------------------------------------------------
[Statedef 194]
type = S
ctrl = 0
anim = 19400
velset = 0,0
range = 0,2

[State 193]
type = PlaySnd
trigger1 = time = 550
value = 2562,0

[State 193]
type = Explod
trigger1 = time = 550
anim = 3046
sprpriority = 3
postype = p1
pos = 0,-100
scale = 0.9,0.9
under = 0
ownpal = 1
removetime = 450
trans = add
ignorehitpause = 1
supermovetime = 9999999999
pausemovetime = 9999999999

[State 2000]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = nobardisplay
flag3 = nomusic
ignorehitpause = 1

[State 2000]
type = AssertSpecial
trigger1 = 1
flag = noBG
flag2 = noFG
flag3 = noshadow
ignorehitpause = 1

[State 192] 
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; 挑発の動作　手を握る
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

[Statedef 195]
type = S
movetype = I
physics = S
anim = 19231
velset = 0,0
sprpriority = 2
ctrl = 0

[state 195]
type = null;varset
trigger1 = time = 0
v = 30
value =1

[State 195]
type = changeanim
trigger1 = time = 0
value = 196

[State 195]
type = null;HitOverride
trigger1 = 1;AnimElem = 1, >= 0 && AnimElem = 6, < 0
slot = 2
time = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP
stateno = 14111
ignorehitpause = 99999999

[State 195]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
[Statedef 14111]
type = S
ctrl = 1
anim = 0
velset = 0,0

[State 14111] 
type = superpause 
trigger1 = time = 0 
time = 30
movetime = 30
anim = -1
darken = 0

[State 14111]
type = PlaySnd
trigger1 = time = 0 
value = 2562,7

[State 14111]
type = Explod
trigger1 = time = 0 
anim = 3499
sprpriority = 5
postype = p2
pos = 55,-70
bindtime = 1
supermove = 1
under = 0

[State 14111] 
type = turn 
trigger1 = p2dist x< 0 
value = 1

[State 14111] 
type = PlayerPush 
trigger1 = Time >= 0 
value = 0

[State 14111]
type = posadd
trigger1 = time = 0
x = p2dist x+45

[state 14111]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;==========================================================================================
; 遠距離立ち弱パンチ
;==========================================================================================

[Statedef 200]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 8                      
velset = 0,0                
ctrl = 0                        
anim = 200                
poweradd = 0                   

[State 200]
type = VelAdd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5.1

[State 200]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 2

[State 200]
type = Projectile
trigger1 = AnimElem = 3
attr = S, NA
projanim = 22134
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 50, -89 
hitsound   = s300, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3

[State 200]
type = PlaySnd
trigger1 = animelem = 2
value = 201, 0

[state 200]
type = ctrlset
trigger1 = animelem = 4
value = 1

[State 200]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
; 近距離立ち弱パンチ
;==========================================================================================

[Statedef 205]
type    = S                      
movetype= A                      
physics = S                      
juggle  = 8                      
velset = 0,0                     
ctrl = 0                         
anim = 205                       
poweradd = 0                  
sprpriority = 2                 

[State 205]
type = VelAdd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5.1

[State 205]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 3

[State 205]
type = Projectile
trigger1 = AnimElem = 3
attr = S, NA
projanim = 22135
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 100,100
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 40, -69
hitsound   = s300, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 6
ground.hittime  = 6
ground.velocity = -6
air.velocity = -1.4,-3

[State 205]
type = PlaySnd
trigger1 = animelem = 2
value = 201, 0

[state 205]
type = ctrlset
trigger1 = animelem = 4
value = 1

[State 205]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
;遠距離強パンチ
;==========================================================================================

[Statedef 210]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 50
ctrl = 0
velset = 0,0
anim = 210

[State 210]
type = PlaySnd
trigger1 = animelem = 7
value = 2562,20
freqmul = 1.15

[State 210];1
type = NULL;Explod
trigger1 = animelem = 7
anim = 22077
sprpriority = 0
postype = p1
pos = 40,-67
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];2
type = NULL;Explod
trigger1 = animelem = 7
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];3
type = NULL;Explod
trigger1 = animelem = 7
anim = 22077
sprpriority = 0
postype = p1
pos = 70,-67
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 1050]
type = NULL;Explod
trigger1 = time >= 20
anim = 22131
sprpriority = 5
postype = p1
pos = 20,-67
random = 10,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 1
trans = add

;------------------------------------
[State 210];1
type = NULL;Explod
trigger1 = animelem = 8
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = sub
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];2
type = Explod
trigger1 = animelem = 8
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = add
scale = 1.10,1.10
SuperMoveTime = 999
PauseMoveTime = 999

[State 210]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -6.7

[State 210]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 10

[State 210]
type = Projectile
trigger1 = AnimElem = 8
attr = S, NA
projanim = 22136
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.15 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 50,50
givepower = 0,0
guardflag = H
hitflag = MAF
pausetime = 2,10
sparkno = s22109 + var(35)
sparkxy = 40, -69
hitsound   = s32000,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3
envshake.time = 7
envshake.ampl = 7

[State 210]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
; 近距離立ち強パンチ
;==========================================================================================

[Statedef 215]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 50
ctrl = 0
velset = 0,0
anim = 215
sprpriority = 2

[State 215]
type = PlaySnd
trigger1 = animelem = 2
value = 2562,20
freqmul = 1.15

[State 210];1
type = Explod
trigger1 = animelem = 2
anim = 22077
sprpriority = 0
postype = p1
pos = 40,-67
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];2
type = Explod
trigger1 = animelem = 2
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];3
type = Explod
trigger1 = animelem = 2
anim = 22077
sprpriority = 0
postype = p1
pos = 70,-67
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 1050]
type = Explod
trigger1 = time >= 10
anim = 22131
sprpriority = 5
postype = p1
pos = 20,-67
random = 10,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 1
trans = add

;------------------------------------
[State 210];1
type = Explod
trigger1 = animelem = 3
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = sub
SuperMoveTime = 999
PauseMoveTime = 999

[State 210];2
type = Explod
trigger1 = animelem = 3
anim = 22077
sprpriority = 0
postype = p1
pos = 50,-67
bindtime = -1
under = 0
ownpal = 1
trans = add
scale = 1.10,1.10
SuperMoveTime = 999
PauseMoveTime = 999

[State 215]
type = Veladd
Trigger1 = projhit35600 = 1 && FrontEdgeDist <= 60 || projguarded35600 >= 1 && FrontEdgeDist <= 60
x = -6.0

[State 210]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 5

[State 215]
type = Projectile
trigger1 = AnimElem = 6
attr = S, NA
projanim = 22136
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.105 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,10
sparkno = s22109 + var(35)
sparkxy = 40, -69
hitsound   = s32000,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3
envshake.time = 7
envshake.ampl = 7

[State 215]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
; 立ち弱キック
;==========================================================================================

[Statedef 230]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 30
ctrl = 0
velset = 0,0
anim = 240
sprpriority = 2

[State 230]
type = PlaySnd
trigger1 = animelem = 4
value = 1100, 1

[State 230]
type = Explod
trigger1 = animelem = 2
anim = 241
id = 241
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
ignorehitpause = 99999999
under = 0
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 230]
type = veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5

[State 230]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 8

[State 230]
type = Projectile
trigger1 = AnimElem = 4
attr = S, NA
projanim = 22137
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.05 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,7
sparkno = s22109 + var(35)
sparkxy = 50, -85
hitsound   = s240
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3

[state 230]
type = posadd
trigger1 = animelem = 3
x = 4

[State 230]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
; 立ち弱キック
;==========================================================================================

[Statedef 235]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 30
ctrl = 0
velset = 0,0
anim = 240
sprpriority = 2

[State 235]
type = PlaySnd
trigger1 = animelem = 4
value = 1100, 1

[State 235]
type = Explod
trigger1 = animelem = 2
anim = 241
id = 241
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
ignorehitpause = 99999999
under = 0
trans = add
SuperMoveTime = 999
PauseMoveTime = 999

[State 235]
type = veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5

[State 235]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 8

[State 235]
type = Projectile
trigger1 = AnimElem = 4
attr = S, NA
projanim = 22137
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.05 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,7
sparkno = s22109 + var(35)
sparkxy = 50, -85
hitsound   = s240
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3

[state 235]
type = posadd
trigger1 = animelem = 3
x = 4

[State 235]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
;遠距離 立ち強キック
;==========================================================================================

[Statedef 240]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 70
ctrl = 0
velset = 0,0
anim = 240
sprpriority = 2

[State 1300, 0]
type = NotHitBy
trigger1 = Time = 0
value = SCA, NA, SA, NP, SP, NT, ST
Time = 8

[State 1000, 5]
type = Explod
trigger1 = animelem = 4
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1

[State 200, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 2562, 11

[State 1000, 9]
type = Envcolor
triggerall = MoveHit
trigger1 = AnimElem = 3 || AnimElem = 4 || AnimElem = 5
ignorehitpause = 99999999
value = 255, 0, 0
time = 1
under = 1
supermove = 1

[State 1000, 5];攻撃エフェクト
type = Explod
trigger1 = animelem = 2
anim = 876550
id = 876550
sprpriority = 5
postype = p1
pos = 0,-20
bindtime = 1
supermove = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
trans = sub

[State 1700, 0];カウンター判定
type = ReversalDef
trigger1 = 1
attr = S, HA
reversal.attr = SCA, NA, SA, HA, NT,ST,HT
hitflag = M-
priority = 4, Miss
pausetime = 0,0
sparkno = -1;S7012
hitsound = -1;S121,0
numhits = 0
p2facing = 1

[State 240, 2]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
animtype  = hard
damage    = Ceil(0.08 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 80,80
guardflag = M
hitflag = MAF
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-85
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -3,-7
air.velocity = -3,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 240, 2]
type = HitDef
trigger1 = animelem = 4
attr = S, NA
animtype  = hard
damage    = Ceil(0.04 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 80,80
guardflag = M
hitflag = MAF
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-106
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-6
air.velocity = -2,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 240, 2]
type = HitDef
trigger1 = animelem = 5
attr = S, NA
animtype  = hard
damage    = Ceil(0.04 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 80,80
guardflag = M
hitflag = MAF
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-106
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-6
air.velocity = -2,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 240]
type = Projectile
trigger1 = AnimElem = 3 || AnimElem = 4 || AnimElem = 5
attr = S, NA
projanim = 22137
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.035 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 25,25
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,1
sparkno = s22109 + var(35)
sparkxy = 50, -85
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -2.5,-4
air.velocity = -2.5,-4
fall = 1
fall.recover = 0
nochainID = 1200

[state a]
type = posadd
trigger1 = animelem = 3
x = 4

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
; 近距離立ち強キック
;==========================================================================================

[Statedef 245]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 70
ctrl = 0
velset = 0,0
anim = 240
sprpriority = 2

[State 1300, 0]
type = NotHitBy
trigger1 = Time = 0
value = SCA, NA, SA, NP, SP, NT, ST
Time = 8

[State 1000, 5]
type = Explod
trigger1 = animelem = 4
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1

[State 200, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 2562, 11

[State 1000, 9]
type = Envcolor
triggerall = MoveHit
trigger1 = AnimElem = 3 || AnimElem = 4 || AnimElem = 5
ignorehitpause = 99999999
value = 255, 0, 0
time = 1
under = 1
supermove = 1

[State 1000, 5];攻撃エフェクト
type = Explod
trigger1 = animelem = 2
anim = 876550
id = 876550
sprpriority = 5
postype = p1
pos = 0,-20
bindtime = 1
supermove = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
trans = sub

[State 1700, 0];カウンター判定
type = ReversalDef
trigger1 = 1
attr = S, HA
reversal.attr = SCA, NA, SA, HA, NT,ST,HT
hitflag = M-
priority = 4, Miss
pausetime = 0,0
sparkno = -1;S7012
hitsound = -1;S121,0
numhits = 0
p2facing = 1

[State 240, 2]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
animtype  = hard
damage    = Ceil(0.08 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
getpower = 80,80
guardflag = M
hitflag = MAF
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-85
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -3,-7
air.velocity = -3,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 240, 2]
type = HitDef
trigger1 = animelem = 4
attr = S, NA
animtype  = hard
damage    = Ceil(0.04 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
hitflag = MAF
getpower = 80,80
guardflag = MA
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-106
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-6
air.velocity = -2,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 240, 2]
type = HitDef
trigger1 = animelem = 5
attr = S, NA
animtype  = hard
damage    = Ceil(0.04 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
hitflag = MAF
getpower = 80,80
guardflag = MA
pausetime = 2,6
sparkno = s22109 + var(35)
sparkxy = -15,-106
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -2,-6
air.velocity = -2,-6
fall = 1
fall.recover = 0
nochainID = 1200

[State 245]
type = Projectile
trigger1 = AnimElem = 3 || AnimElem = 4 || AnimElem = 5
attr = S, NA
projanim = 22137
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.035 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 25,25
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,1
sparkno = s22109 + var(35)
sparkxy = 50, -85
hitsound   = s2562,10
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -2.5,-4
air.velocity = -2.5,-4
fall = 1
fall.recover = 0
nochainID = 1200

[state a]
type = posadd
trigger1 = animelem = 3
x = 4

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
;屈み弱パンチ
;==========================================================================================

[Statedef 400]
type    = C
movetype= A
physics = C
juggle  = 8
poweradd= 0
ctrl = 0
anim = 400
sprpriority = 2

[State 400]
type = PlaySnd
trigger1 = Time = 1
value = 201, 0

[State 400]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -4.1

[State 400]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 3

[State 400]
type = Projectile
trigger1 = AnimElem = 2
attr = C, NA
projanim = 22140
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 38, -25
hitsound   = s300, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3

[State 400]
type = CtrlSet
trigger1 = animelem = 4
value = 1

[State 400]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;==========================================================================================
;屈み強パンチ
;==========================================================================================

[Statedef 410]
type    = C
movetype= A
physics = C
juggle  = 8
poweradd= 50
ctrl = 0
anim = 410
sprpriority = 2

[State 410]
type = PlaySnd
trigger1 = animelem = 5
value = 221, 0

[State 410]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5.4

[State 410]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 7

[State 410]
type = Projectile
trigger1 = AnimElem = 6 || AnimElem = 7
attr = C, NA
projanim = 22141
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.05 * enemy,Const(data.life)) ,0
getpower = 25,25
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 60, -70
hitsound   = s310,var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -3,-4
air.velocity = -3,-4
fall = 1
fall.recover = 0

[State 410]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;==========================================================================================
;屈み弱キック
;==========================================================================================

[Statedef 430]
type    = C
movetype= A
physics = C
juggle  = 8
poweradd= 0
ctrl = 0
anim = 430
sprpriority = 2

[State 430]
type = PlaySnd
trigger1 = Time = 1
value = 221, 0

[State 430]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 90 || projguarded35600 >= 1 && FrontEdgeDist <= 90
x = -4.1

[State 430]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 3

[State 430]
type = Projectile
trigger1 = AnimElem = 2
attr = C, NA
projanim = 22142
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = L
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 38, -15
hitsound   = s330, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -5
air.velocity = -2,-3
down.velocity = -5,0
down.hittime = 20

[State 430]
type = CtrlSet
trigger1 = animelem = 4
value = 1

[State 430]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;==========================================================================================
;屈み強キック
;==========================================================================================

[Statedef 440]
type    = C
movetype= A
physics = C
juggle  = 8
poweradd= 60
ctrl = 0
anim = 440
sprpriority = 2

[State 440]
type = PlaySnd
trigger1 = Time = 2
trigger2 = animelem = 5
value = 221, 0

[State 440]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -5.1

[State 440]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 10

[State 440]
type = Projectile
trigger1 = AnimElem = 8
attr = C, NA
projanim = 22143
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
damage    = Ceil(0.1 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = L
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 88, -15
hitsound   = s340, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = Trip
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -1.5,-5
air.velocity = -4,-4
guard.velocity = -5
fall = 1

[State 440]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1

;==========================================================================================
;空中弱パンチ
;==========================================================================================

[Statedef 600]
type    = A
movetype= A
physics = A
juggle  = 8
poweradd= 0
ctrl = 0
anim = 600
sprpriority = 2

[State 600]
type = PlaySnd
trigger1 = Time = 1
value = 201, 0

[State 600]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -4.1

[State 600]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 3

[State 600]
type = Projectile
trigger1 = AnimElem = 2
attr = A, NA
projanim = 22144
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = HA
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 30, -70
hitsound   = s300, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = -4
air.velocity = -1.3,-3

;==========================================================================================
;空中強パンチ
;==========================================================================================

[Statedef 610]
type    = A
movetype= A
physics = A
juggle  = 8
poweradd= 50
ctrl = 0
anim = 610
sprpriority = 2

[State 610]
type = PlaySnd
trigger1 = Time = 1
value = 220, 1

[State 610]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -4.1

[State 610]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 10

[State 610]
type = Projectile
trigger1 = AnimElem = 2
attr = A, NA
projanim = 22145
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype = Med
damage    = Ceil(0.08 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = HA
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 30, -70
hitsound   = s310, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -5
air.velocity = -3,-4

;==========================================================================================
;垂直空中弱キック
;==========================================================================================

[Statedef 630]
type    = A
movetype= A
physics = A
juggle  = 8
poweradd= 0
ctrl = 0
anim = 630
sprpriority = 2

[State 630]
type = PlaySnd
trigger1 = Time = 1
value = 221, 0

[State 630]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 80 || projguarded35600 >= 1 && FrontEdgeDist <= 80
x = -4.1

[State 630]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 3

[State 630]
type = Projectile
trigger1 = AnimElem = 2
attr = A, NA
projanim = 22146
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
damage    = Ceil(0.03 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = HA
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 43, -20
hitsound   = s330, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -4
air.velocity = -2,-3

;==========================================================================================
;空中強キック
;==========================================================================================

[Statedef 640]
type    = A
movetype= A
physics = A
juggle  = 8
ctrl = 0
anim = 640
sprpriority = 2

[State 640, 2]
type = PlaySnd
trigger1 = Time = 2
value = 221, 0

[State 640, 2]
type = PlaySnd
trigger1 = Time = 2
trigger1 = var(1) = 0
value = 210, var(6)

[State 640, 3]
type = HitDef
trigger1 = Time = 0
attr = A, NA
damage    = 135
guardflag = HA
getpower = 61,61
priority = 4
pausetime = 12,12
sparkno = s22109 + var(35)
sparkxy = -10,-61
hitsound   = s340,var(6)
guard.sparkno = s22113
guardsound = s120,0
animtype = Med
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -5
air.velocity = -3,-4
nochainID = 1200

[State 640]
type = Projectile
trigger1 = AnimElem = 2
attr = A, NA
projanim = 22147
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
damage    = Ceil(0.09 * enemy,Const(data.life)) ,0
getpower = 50,50
givepower = 0,0
guardflag = HA
hitflag = MAF
animtype = Med
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 43, -40
hitsound   = s340, var(6)
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -5
air.velocity = -3,-4

;==========================================================================================
;投げ
;==========================================================================================

[Statedef 800]
type    = S
movetype= A
physics = S
juggle  = 8
velset = 0,0
ctrl = 0
anim = 800
sprpriority = 2

[State 800]
type = Projectile
trigger1 = AnimElem = 1
trigger1 = p2stateno != 150 && 151 && 152 && 153 && 130 && 131 && 140
attr = S, NA
projanim = 22148
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 3
postype = p1
offset = 0,0
velocity = 0
numhits = 0
givepower = 0,0
hitflag = M
sparkno = -1
guard.sparkno = -1
guardsound = -1
p1facing = ifelse (command = "holdback", -1, 1) 
p2facing = 1        
p1stateno = 801       
p2stateno = 805 
fall = 1

[State 800, 2]
type = ChangeState
Trigger1 = AnimTime = 0
value = 215
ctrl = 0

;==========================================================================================
;　投げている自分
;==========================================================================================

[Statedef 801]
type    = S
movetype= A
physics = N
anim = 801
juggle  = 8
sprpriority = 2

[State 801]
type = PlaySnd
trigger1 = AnimElem = 2
value = 801, 0

[State 801]
type = PlaySnd
trigger1 = AnimElem = 5
value = 2550, 0

[state 801]
type = playsnd
trigger1 = AnimElem = 5
value = 2562,27

[State 801]
type = PlaySnd
trigger1 = AnimElem = 5
value = 2551, 0

[state 801]
type = Playsnd
trigger1 = Animelem = 5
value = 2551,1

[State 801]
type = EnvColor
trigger1 = animelem = 5
persistent = 0
ignorehitpause = 99999999
time = 2
value = 255,255,255
under = 1

[State 801]
type = Explod
trigger1 = animelemtime(6) = 6
anim = 2553
sprpriority = 2
postype = p1
pos = 70,4
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0

[State 801]
type = Explod
trigger1 = animelem = 5
anim = 22109 + var(35)
sprpriority = 5
postype = p1
velset = 0,0
pos = 70,-129
bindtime = 1
supermove = 0
under = 0
ownpal = 1

[State 801]
type = Explod
trigger1 = animelem = 2
anim = 810
sprpriority = 1
postype = p1
velset = 0,0
pos = 70,0
bindtime = 1
removetime = 40
supermove = 0
under = 0
ownpal = 1

[State 801]
type = Explod
trigger1 = animelem = 5
anim = 811
sprpriority = 1
postype = p1
velset = 0,0
pos = 70,0
bindtime = 1
supermove = 0
under = 0
ownpal = 1

[State 801]
type = Explod
trigger1 = animelem = 6
anim = 22114
sprpriority = 3
postype = p1
velset = 0,0
pos = 70,0
bindtime = 1
supermove = 0
under = 0
ownpal = 1

[State 801]
type = Explod
trigger1 = animelem = 6
anim = 22108
sprpriority = 4
postype = p1
velset = 0,0
pos = 70,-140
bindtime = 1
supermove = 0
under = 0
ownpal = 1

[State 801]
type = TargetBind
trigger1 = animelem = 1
pos = 42,0

[state 801]
type = targetstate
trigger1 = animelemtime(6) = 6
value = 2416

[State 801]
type = TargetLifeAdd
trigger1 = animelem = 5
value = Ceil(-0.08 * enemy,Const(data.life)) * var(39)
ignorehitpause = 99999999
absolute = 1

[State 801]
type = Projectile
trigger1 = AnimElem = 5
attr = S, NA
projanim = 22156
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 15
postype = p1
offset = 70,0
velocity = 0
animtype  = Light
damage    = Ceil((IfElse((var(29) < 1),0.06,0.02)) * enemy,Const(data.life)) ,0
getpower = 150,150
givepower = 0,0
guardflag = 
hitflag = MAF
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 40, -89 
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3

[State 801]
type = EnvShake
trigger1 = animelem = 5
time = 18
ampl = 18
freq = 95
phase = 95

[State 801]
type = Width
trigger1 = 1
edge = 60,0

[state 801] 
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;==========================================================================================
;投げられている相手
;==========================================================================================

[Statedef 805]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[State 805]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 805]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
ignorehitpause = 99999999

[State 805]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
ignorehitpause = 99999999

[State 805]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
ignorehitpause = 99999999

[State 805]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
ignorehitpause = 99999999

[State 805]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
ignorehitpause = 99999999

[State 805]
type = ChangeAnim2
Trigger1 = Time = 0
value = 805

[state 805]
type = velset
trigger1 = time = 20
x = -2
y = -3

[state 805]
type = veladd
trigger1 = vel x < 0
x = 0.1

[state 805]
type = veladd
trigger1 = vel y < 0
y = 0.1

[State 805]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

;==========================================================================================
;投げられている相手2
;==========================================================================================

[Statedef 806]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[State 806]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 806]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
ignorehitpause = 99999999

[State 806]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
ignorehitpause = 99999999

[State 806]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
ignorehitpause = 99999999

[State 806]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
ignorehitpause = 99999999

[State 806]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
ignorehitpause = 99999999

[State 806]
type = NotHitBy
trigger1 = 1
value = SCA

[State 806]
type = ChangeAnim
Trigger1 = Time = 0
value = 5050

[State 806]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[state 806]
type = velset
trigger1 = animelem = 1
x = -1.5
y = -10

[State 806]
type = VelAdd
Trigger1 = 1;animelem = 3,>= 0
y = .4

[State 806] 
type = lifeadd
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = -50
absolute = 1

[State 806]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = Vel Y > 0 && Pos Y >= 0
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 99999999
value = 0

[State 806] 
type = SelfState
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 必殺技
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 飛び道具1
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 1050]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 80
velset = 0,0
anim =1050
ctrl = 0

[state 1050]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[state 1050]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[State 1050];trigger1 = numhelper(1065) = 0
type = helper
trigger1 = Animelem = 8 || Animelem = 9&&palno=12&&var(29)>= 1
id = 1065
persistent = 1
name = "sennpuuki"
pos = 36,-96
postype = P1
stateno = 1065
helpertype = player
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1050]
type = Explod
trigger1 = time >= 0
anim = 22131
sprpriority = 5
postype = p1
pos = 50,-96
random = 40,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 1
trans = add

[State 1050]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
anim = 22131
sprpriority = 5
postype = p1
pos = 50,-94
random = 60,60
removetime = 35
vel = -4 + (random%8),-4 + (random%8)
facing = -1
ownpal = 1
ontop = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1

[State 1050]
type = Explod
trigger1 = Animelem = 7
trigger2 = Animelem = 9
anim = 22133
sprpriority = 5
postype = p1
pos = 50,-96
bindtime = -1
under = 0
ownpal = 1
scale = 0.1,0.5
trans = add
ignorehitpause = 1

[State 1150]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; ヘルパ
;---------------------------------------------------------------------------

[Statedef 1065]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 6,0
ctrl = 0

[State 1065]
type = changeanim
trigger1 = anim!=1065
value = 1065

[State ]
type = NotHitBy
trigger1 = time = 0
time = -1
value = SCA, AA, AT, AP

[State 1065]
type = Explod
trigger1 = animelem = 1 || animelem = 2
anim = 1061
id = 211
sprpriority = 5
postype = p1
velset = 0,0
pos = 0,0
bindtime = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Explod
trigger1 = animtime = 0
anim = 1063
id = 211
sprpriority = 5
postype = p1
velset = 0,0
pos = 0,0
bindtime = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Explod
trigger1 = (GameTime%5) = 1
anim = 22129
sprpriority = 1
postype = p1
velset = 0,0
pos = 20,0
bindtime = 1
ignorehitpause = 99999999
scale = 0.5,0.5
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Explod
trigger1 = (GameTime%5) = 1
anim = 22129
sprpriority = 1
postype = p1
velset = 0,0
pos = 0,0
scale = 0.8,0.8
bindtime = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Explod
trigger1 = (GameTime%5) = 1
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = 10,0
bindtime = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Explod
trigger1 = (GameTime%5) = 1
anim = 22107
sprpriority = 1
postype = p1
velset = 0,0
pos = -20,0
bindtime = 1
ignorehitpause = 99999999
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1065]
type = Projectile
trigger1 = AnimElem = 2
attr = S, NA
projanim = 1062
projremovetime = 16
projid = 1050
projpriority = 16
projsprpriority = 16
projedgebound = 220
air.juggle = 2
postype = p1
getpower = 30,30
offset = 0,0
velocity = 0
damage = Ceil(0.04 * enemy,Const(data.life)) * root,var(39),Ceil(0.006 * enemy,Const(data.life)) * root,var(39)
animtype = hard
guardflag = M
pausetime = 2,4
sparkno = s22109 + root,var(35)
guard.sparkno = s22113
sparkxy = 0,0
hitsound = S222,0
guardsound = S121,0
ground.type = high
ground.slidetime = 14
ground.hittime = 16
ground.velocity = -5,0
air.velocity = -4,-5
air.fall = 1
fall = 0
fall.recover = 0
ownpal = 1
p2stateno = 19000

[State 1]
type = HitAdd
triggerall = palno = 12
trigger1 = target,stateno = 19000 && enemyNear,time = 0
value = 10

[State 1]
type = HitAdd
triggerall = palno = [10,11]
trigger1 = target,stateno = 19000 && enemyNear,time = 0
value = 2

[State 1000, 0]
Type = AttackMulSet
triggerall = palno = 12
trigger1 = target,stateno = 19000 && enemyNear,time = 0
Value = 20

[State 1065]
type = Explod
triggerall = time >= 0
trigger1 = (GameTime%4) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = 20,0
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 99999999
vel = -5,-1 + (random%3)
PauseMoveTime = 9999

[state 1065]
type = destroyself
trigger1 = FrontEdgeDist <= -100
trigger2 = time = 300

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;　拡散飛び道具
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 30050]
type    = S
movetype= A
physics = N
juggle  = 1
poweradd= 0
velset = 0,0
anim = 1050
ctrl = 0

[state 1050]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[State 1050]
type = Explod
trigger1 = Animelem = 7
trigger2 = Animelem = 9
anim = 22133
sprpriority = 5
postype = p1
pos = 50,-96
bindtime = -1
under = 0
ownpal = 1
scale = 0.1,0.5
ignorehitpause = 1
trans = add

[State 1050]
type = Explod
trigger1 = time >= 0
anim = 22131
sprpriority = 5
postype = p1
pos = 50,-96
random = 40,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 1
trans = add

[state a]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[state a]
type = velset
trigger1 = animelem = 7
x = -2

[state a]
type = veladd
trigger1 = vel x <= 0
x = 0.8

[state a]
type = velset
trigger1 = vel x >= 0
x = 0

[State 1000, 5]
type = Explod
trigger1 = animelem = 7
anim = 3003
sprpriority = 3
postype = p1
velset = 0,0
pos = 26,-180
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 7
anim = 3003
sprpriority = 3
postype = p1
velset = 0,0
pos = 46,-90
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 7
anim = 3003
sprpriority = 3
postype = p1
velset = 0,0
pos = 26,-0
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 9
anim = 3003
sprpriority = 3
postype = p1
velset = 0,0
pos = 26,-90
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 11
anim = 3003
sprpriority = 3
postype = p1
velset = 0,0
pos = 76,-70
bindtime = 1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
ownpal = 1
trans = add

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 7
attr = S, SA
projanim = 1010
projhitanim = 2110
projid = 10000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
hitflag = MAFD
postype = p1
getpower = 10,10
offset = 36,-150
velocity = 5
damage = Ceil(0.02 * enemy,Const(data.life)) 
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = s22109 + var(35)
guard.sparkno = S22113
sparkxy = 20,0
hitsound = S190,2
guardsound = S211,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 7
attr = S, SA
projanim = 1010
projhitanim = 2110
projid = 10000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
hitflag = MAFD
postype = p1
getpower = 10,10
offset = 36,-90
velocity = 5
damage = Ceil(0.02 * enemy,Const(data.life)) 
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = s22109 + var(35)
guard.sparkno = S22113
sparkxy = 20,0
hitsound = S190,2
guardsound = S211,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 7
attr = S, SA
projanim = 1010
projhitanim = 2110
projid = 10000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
hitflag = MAFD
postype = p1
getpower = 10,10
offset = 36,-30
velocity = 5
damage = Ceil(0.02 * enemy,Const(data.life)) 
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = s22109 + var(35)
guard.sparkno = S22113
sparkxy = 20,0
hitsound = S190,2
guardsound = S211,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 11
attr = S, SA
projanim = 1010
projhitanim = 2110
projid = 10000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
hitflag = MAFD
postype = p1
getpower = 10,10
offset = 76,-110
velocity = 3,-1
damage = Ceil(0.02 * enemy,Const(data.life))  
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = s22109 + var(35)
guard.sparkno = S22113
sparkxy = 20,0
hitsound = S190,2
guardsound = S211,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 11
attr = S, SA
projanim = 1010
projhitanim = 2110
projid = 10000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
hitflag = MAFD
postype = p1
getpower = 10,10
offset = 76,-70
velocity = 3,1
damage = Ceil(0.02 * enemy,Const(data.life))  
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = s22109 + var(35)
guard.sparkno = S22113
sparkxy = 20,0
hitsound = S190,2
guardsound = S211,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1

[state a]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;インパクト・ウェーブ
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;上段
[Statedef 1002]
type    = S
movetype= A
physics = N
juggle  = 8
velset = 0,0
anim = 50001
ctrl = 0

[State 210, 1]
type = PlaySnd
trigger1 = animelem = 2
trigger1 = 1
value = 22213,0

[State 1000, 5];攻撃エフェクト
type = Explod
trigger1 = animelem = 3
anim = 876540
id = 876540
sprpriority = 5
postype = p1
pos = 30,30
bindtime = 1
supermovetime = 8
ignorehitpause = 0
under = 0
trans = add

[State 235]
type = Projectile
trigger1 = AnimElem = 1||AnimElem = 2
attr = S, NA
projanim = 6785
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.02 * enemy,Const(data.life)) ,Ceil(0.006 * enemy,Const(data.life))
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,7
sparkno = s22109 + root,var(35)
sparkxy = 50, -85
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3
envshake.time = 7
envshake.ampl = 7

[state a]
type = Posadd
triggerall =  p2bodydist X >12
trigger1 = animelem = 1
x = 12

[state a]
type = Posadd
triggerall =  (p2bodydist X <=12)&&(p2bodydist X >10)
trigger1 = animelem = 1
x = (p2bodydist X) - 10 

[state a]
type = Posadd
triggerall =  p2bodydist X <=10
trigger1 = animelem = 1
x = 0

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 1003
ctrl = 0

;----------------------------------------------------------------------
;下段
[Statedef 1003]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 0
velset = 0,0
anim = 50002
ctrl = 0

[State 210, 1]
type = PlaySnd
trigger1 = animelem = 2
trigger1 = 1
value = 22213,0

[State 1000, 5];攻撃エフェクト
type = Explod
trigger1 = animelem = 3
anim = 876540
id = 876540
sprpriority = 5
postype = p1
facing = -1
vfacing = -1
pos = 45,-200
;vel = 1,0
bindtime = 1
;supermove = 0
supermovetime = 8
ignorehitpause = 0
under = 0
trans = add

[State 235]
type = Projectile
trigger1 = AnimElem = 1||AnimElem = 2
attr = S, NA
projanim = 6785
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.012 * enemy,Const(data.life)) ,Ceil(0.003 * enemy,Const(data.life)) 
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,7
sparkno = s22109 + root,var(35)
sparkxy = 50,-85
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3
envshake.time = 7
envshake.ampl = 7

[state a]
type = Posadd
triggerall =  p2bodydist X >12
trigger1 = animelem = 1
x = 12

[state a]
type = Posadd
triggerall =  (p2bodydist X <=12)&&(p2bodydist X >10)
trigger1 = animelem = 1
x = (p2bodydist X) - 10 

[state a]
type = Posadd
triggerall =  p2bodydist X <=10
trigger1 = animelem = 1
x = 0

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 1004
ctrl = 0

;-----------------------------------------------------------------------
;大蹴り＆ボール発射
[Statedef 1004]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 0
velset = 0,0
anim = 50003
ctrl = 0

[State 1]
type = NotHitBy
triggerall = animelem = 1||animelem = 2||animelem = 3
trigger1 = palno!=12
value = SCA

[State 210, 1]
type = PlaySnd
trigger1 = animelem = 3
trigger1 = 1
value = 22213,1

[State 1000, 5];攻撃エフェクト
type = Explod
trigger1 = animelem = 2
anim = 876550
id = 876550
sprpriority = 5
postype = p1
pos = 0,-20
bindtime = 1
supermovetime = 30
ignorehitpause = 0
under = 0
trans = add

[State 235]
type = Projectile
trigger1 = AnimElem = 3||AnimElem = 4||AnimElem = 5
attr = S, NA
projanim = 99995
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.025 * enemy,Const(data.life)) ,Ceil(0.018 * enemy,Const(data.life))
getpower = 50,50
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,7
sparkno = s22109 + root,var(35)
sparkxy = 50, -85
hitsound   = s2562,15
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6
air.velocity = -1.4,-3
envshake.time = 7
envshake.ampl = 7

[State 1];
type = helper
trigger1 = Animelem = 3||Animelem=3&&palno=12&&var(29)>=1
id = 1005+(palno=12&&var(29)>=1)
persistent = 1
name = "hikari"
pos = 80,-100
postype = P1
stateno = 1005
helpertype = player;normal
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[state a]
type = Posadd
triggerall = p2bodydist X >30
trigger1 = animelem = 1
x = 30

[state a]
type = Posadd
triggerall = (p2bodydist X <=30)&&(p2bodydist X >18)
trigger1 = animelem = 1
x = (p2bodydist X) - 18 

[state a]
type = Posadd
triggerall = p2bodydist X <=18
trigger1 = animelem = 1
x = 0

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;-----------------------------------------------------------------------
;ボールヘルパー
[Statedef 1005]
type    = S
movetype= A
physics = N

[state 1]
Type = ChangeAnim
TriggerAll = Var(59) < 37
Trigger1 = Anim != 22106
Value = 22106

[state p]
type = varadd
trigger1 = 1
V = 59
Value = 1

[State ]
type = NotHitBy
trigger1 = time = 0
time = -1
value = SCA, AA, AT, AP

[State 210, 1]
type = PlaySnd
Trigger1 = Var(59) = 1
value = 22212,4
volume = 255

[State 11100]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[state 11100]
type = velset
trigger1 = p2bodydist X > 0
x = -3.8

[state 1]
type = velset
trigger1 = p2bodydist X > 0
x = 3.8

;爆発まで
[state 1]
Type = ChangeAnim
TriggerAll = Var(59) >= 37
Trigger1 = Anim != 22160
Value = 22160

;-------------------------------
;ボール用光
[State 1010]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 1010]
type = NotHitBy
trigger1 = time >= 0
time = -1
value = SCA, AA, AT, AP

[State 2900]
type = helper
trigger1 = numhelper(21509)
trigger1 = Var(59) = 37
persistent = 0
pos = 0,0
postype = P1
stateno = 21509
id = 21509
helpertype = player;normal
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 193]
type = Explod
trigger1 = Var(59) = [37,47]
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,0
random = 60,60
removetime = 35
persistent = 0
vel = -4 + (random%8),-4 + (random%8)
facing = -1
ownpal = 1
ontop = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1

[State 193]
type = Explod
trigger1 = Var(59) = [37,47]
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,0
random = 60,60
removetime = 35
persistent = 0
vel = -3 + (random%6),-3 + (random%6)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[State 193]
type = Explod
trigger1 = Var(59) = [37,47]
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,0
random = 60,60
removetime = 35
persistent = 0
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[State 1];中央1
type = Explod
trigger1 = Var(59) = 37+10
anim = 21000
sprpriority = 50
postype = p1
pos = 0,0
facing = -1
ownpal = 1
ontop = 1
trans = add
scale = 1.0,1.0
pausemovetime = 9999999
supermovetime = 9999999

[State 1];中央2
type = Explod
trigger1 = Var(59) = 37+10
anim = 21000
sprpriority = 50
postype = p1
pos = 0,0
facing = -1
ownpal = 1
ontop = 1
trans = sub
scale = 0.5,0.5
pausemovetime = 9999999
supermovetime = 9999999

[State 1];周り1
type = Explod
trigger1 = Var(59) = 37+4
anim = 21000
sprpriority = 50
postype = p1
pos = -30,30
facing = -1
ownpal = 1
ontop = 1
trans = add
scale = 0.9,0.9
pausemovetime = 9999999
supermovetime = 9999999

[State 1];周り2
type = Explod
trigger1 = Var(59) = 37+6
anim = 21000
sprpriority = 50
postype = p1
pos = 30,-30
facing = -1
ownpal = 1
ontop = 1
trans = add
scale = 0.9,0.9
pausemovetime = 9999999
supermovetime = 9999999

[State 1];周り3
type = Explod
trigger1 = Var(59) = 37+8
anim = 21000
sprpriority = 50
postype = p1
pos = 30,30
facing = -1
ownpal = 1
ontop = 1
trans = add
scale = 0.9,0.9
pausemovetime = 9999999
supermovetime = 9999999

[State 1];周り4
type = Explod
trigger1 = Var(59) = 37+10
anim = 21000
sprpriority = 50
postype = p1
pos = -30,-30
facing = -1
ownpal = 1
ontop = 1
trans = add
scale = 0.9,0.9
pausemovetime = 9999999
supermovetime = 9999999

[State 1000, 2]
type = Projectile
trigger1 = Var(59) = 37+2
attr = S, NA
projanim = 115030
projhitanim = -1
projid = 22519
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = -30,0
velocity = 0
animtype  = hard
damage    = Ceil(0.2 * enemy,Const(data.life)) * root,var(39),Ceil(0.06 * enemy,Const(data.life)) * root,var(39)
getpower = 15,15
givepower = 0,0
priority = 4,Hit
guardflag = M
hitflag = MAFD
pausetime = 2,2
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15

[State 2632]
type = AttackDist
trigger1 = 1
value = 2

[State 810,]
type = PlaySnd
trigger1 = Var(59) = 37+2
value = 32000, 0

[State 810,];
type = PlaySnd
trigger1 = Var(59) = 37+6
value = 32000, 0

[State 810,];
type = PlaySnd
trigger1 = Var(59) = 37+8
value = 32000, 0

[State 810,;
type = PlaySnd
trigger1 = Var(59) = 37+10
value = 32000, 0

[State 1020, 4]
type = EnvShake
trigger1 = Var(59) = 37+2
time = 6
ampl = -6
freq = 95
phase = 95

[State 1010]
type = DestroySelf
trigger1 = var(59) >= 67

;-----------------------------------------------------------------------
;光
[Statedef 21509]
type = S
movetype = A
physics = N
velset = 0,0
ctrl = 0
sprpriority = 3

[State 1065]
type = changeanim
trigger1 = anim!=11504
value = 11504

[State 1010]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 1010]
type = NotHitBy
trigger1 = time >= 0
time = -1
value = SCA, AA, AT, AP

[State 1000]
type = Explod
trigger1 = animelem = 3
anim = 11504
id = 11504
sprpriority = 1
postype = p1
velset = 0,0
pos = 30,-30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0

[State 1000]
type = Explod
trigger1 = animelem = 4
anim = 11504
id = 11504
sprpriority = 1
postype = p1
velset = 0,0
pos = -30,30
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0
;---------------------------
[State 1000]
type = Explod
trigger1 = animelem = 3
anim = 11504
id = 11504
sprpriority = 1
postype = p1
velset = 0,0
pos = -30,-30
facing = -1
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0

[State 1000]
type = Explod
trigger1 = animelem = 4
anim = 11504
id = 11504
sprpriority = 1
postype = p1
velset = 0,0
pos = 30,30
facing = -1
bindtime = -1
supermove = 0
persistent = 0
ignorehitpause = 1
under = 0

[State 1020, 4]
type = EnvShake
trigger1 = AnimElem = 3 
time = 20
ampl = -20
freq = 95
phase = 95

[State 2632]
type = AttackDist
trigger1 = AnimElem = 2
value = 2

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 2
attr = S, HP
projanim = 115030
projhitanim = -1
;projid = 1000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 18
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.05* enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39)
getpower = 50,50
priority = 4,Hit
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,6
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = s22113
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -1,-4
air.velocity = -1,-4
fall = 1
fall.recover = 0
juggle = 15

[State 1010]
type = DestroySelf
trigger1 = AnimTime = 0

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 飛び道具2
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 11101]
type    = S
movetype= A
physics = N
juggle  = 8
poweradd= 80
velset = 0,0
anim = 1050
ctrl = 0

[state 11101]
type = playsnd
trigger1 = animelem = 7
value = 1050,0

[state 11101]
type = playsnd
trigger1 = animelem = 7
value = 2562,26
volume = 200

[state 11101]
type = posadd
trigger1 = animelem = 9
trigger2 = animelem = 10
trigger3 = animelem = 11
x = -8

[State 11101]
type = helper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos = 124,-100
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 11101]
type = helper
trigger1 = Animelem = 8
id = 11100
persistent = 0
name = "koukyu"
pos = 35,-100
postype = P1
stateno = 11100
helpertype = player
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 11101]
type = helper
trigger1 = Animelem = 8
id = 11122
persistent = 0
name = "koukyu"
pos = 80,-140
postype = P1
stateno = 11122
helpertype = player
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 11101]
type = helper
trigger1 = Animelem = 8
id = 11122
persistent = 0
name = "koukyu"
pos = 80,-60
postype = P1
stateno = 11122
helpertype = player
keyctrl = 0
ownpal = 1
PauseMoveTime = 9999999

[State 0]
type = Explod
trigger1 = time >= 0
anim = 22131
sprpriority = 5
postype = p1
pos = 50,-96
random = 40,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 9999
trans = add

[State 1050]
type = Explod
trigger1 = Animelem = 7
trigger2 = Animelem = 9
anim = 22133
sprpriority = 5
postype = p1
pos = 50,-96
bindtime = -1
under = 0
ownpal = 1
scale = 0.1,0.5
ignorehitpause = 9999
trans = add

[state 11101]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;==========================================================================================
;==========================================================================================
;光
;==========================================================================================
;==========================================================================================

[Statedef 11100]
type = S
movetype = A
physics = N
velset = 0,0
ctrl = 0
sprpriority = 2

[state p]
type = varadd
trigger1 = 1
var(2) = 1

[state ]
type = changeanim
trigger1 = anim!= 22106
value = 22106

[State 11100]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11100]
type = NotHitBy
trigger1 = var(2)
value = SCA, AA, AT, AP

[state 11100]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[State 11100]
type = PlaySnd
trigger1 = (GameTime%25) = 1
value = 2562, 29
volume = -100

[state 11100]
type = velset
trigger1 = p2bodydist X< 0 && var(2)
x = -(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 1]
type = velset
trigger1 = p2bodydist X > 0 && var(2)
x = (3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11100]
type = velset
trigger1 = p2bodydist Y < 50 && var(2)
y = -(1+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11100]
type = velset
trigger1 = p2bodydist Y > 50 && var(2)
y = (1+((root,palno=12&&root,var(29)>=1)*2.0))

[State 11100]
type = ReversalDef
trigger1 = root,palno=12
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = -1
hitsound = -1
numhits = 0
p2stateno = 13121

[State 11100]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 11205
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[State 11100]
type = HitDef
trigger1 = var(2) && root,var(1) != 1 && ishelper && root,palno!=12
attr = S, NA
animtype  = Hard
damage    = Ceil(0.000100 * enemy,Const(data.life)) * root,var(39),Ceil(0.00005 * enemy,Const(data.life)) * root,var(39)
hitflag = MAFD
getpower = 20,20
givepower = 0,0
guardflag = M
pausetime = 0,5
priority = 999999
sparkno = s22109 + root,var(35)
guard.sparkno = s22113
sparkxy = 20,0
hitsound = s2556,0
guardsound = S121,0
ground.type = High
ground.slidetime = 12
ground.hittime  = 18
ground.velocity = -3,-5
air.velocity = -3,-5
fall = 1
fall.recover = 0
p2stateno = 9000

[state 11100]
type = posset
trigger1 = !ishelper
y = 0

[state 11100]
type = changestate
trigger1 = !ishelper
value = 0
ctrl = 1

[State 11100]
type = ChangeState
triggerall = root,var(1) = 1 && ishelper
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 11125

[State 11100]
type = ChangeState
triggerall = root,var(1) != 1 && ishelper
trigger1 = Movecontact = 1
value = 11125

[State 11100]
type = ChangeState
trigger1 = var(2)= ((root,var(1) = 1)*30)+30 && ishelper
value = 11125

;==========================================================================================
;==========================================================================================
;光
;==========================================================================================
;==========================================================================================

[Statedef 11122]
type = S
movetype = A
physics = N
velset = 0,0
ctrl = 0
sprpriority = 2

[state p]
type = varadd
trigger1 = 1
var(2) = 1

[state ]
type = changeanim
trigger1 = anim!= 22106
value = 22106

[State 113280]
type = Trans
trigger1 = 1
trans = add

[State 11122]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 11122]
type = NotHitBy
trigger1 = var(2)
value = SCA, AA, AT, AP

[state 11122]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[state 11122]
type = velset
trigger1 = p2bodydist X< 0 && var(2)
x = -(3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist X > 0 && var(2)
x = (3.5+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist Y < 50 && var(2)
y = -(1+((root,palno=12&&root,var(29)>=1)*2.0))

[state 11122]
type = velset
trigger1 = p2bodydist Y > 50 && var(2)
y = (1+((root,palno=12&&root,var(29)>=1)*2.0))

[State 11122]
type = ReversalDef
trigger1 = root,palno=12
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = -1
hitsound = -1
numhits = 0
p2stateno = 13121

[State 11122]
type = Projectile
trigger1 = 1
attr = S, HP
projanim = 11205
projhitanim = -1
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag = 
hitflag = MAFD
pausetime = 0,0
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.8

[State 11122]
type = HitDef
trigger1 = var(2)= 0 && root,var(1) != 1 && ishelper && root,palno!=12
attr = S, NA
animtype  = Hard
damage    = Ceil(0.0265 * enemy,Const(data.life)) * root,var(39),Ceil(0.005 * enemy,Const(data.life)) * root,var(39)
hitflag = MAFD
getpower = 20,20
givepower = 0,0
guardflag = M
pausetime = 0,5
priority = 999999
sparkno = s22109 + root,var(35)
guard.sparkno = s22113
sparkxy = 20,0
hitsound = s2556,0
guardsound = S121,0
ground.type = High
ground.slidetime = 12
ground.hittime  = 18
ground.velocity = -3,-5
air.velocity = -3,-5
fall = 1
fall.recover = 0
p2stateno = 9000

[state 11122]
type = posset
trigger1 = !ishelper
y = 0

[state 11122]
type = changestate
trigger1 = !ishelper
value = 0
ctrl = 1

[State 11122]
type = ChangeState
triggerall = root,var(1) = 1 && ishelper
trigger1 = p2dist x = [-50,50]
trigger1 = p2dist y = [-80,80]
value = 11125

[State 11122]
type = ChangeState
triggerall = root,var(1) != 1 && ishelper
trigger1 = Movecontact = 1
value = 11125

[State 11122]
type = ChangeState
trigger1 = var(2)= ((root,var(1) = 1)*30)+30 && ishelper
value = 11125

;==========================================================================================
;==========================================================================================
;消滅
;==========================================================================================
;==========================================================================================

[Statedef 11125]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
ownpal = 1

[state p]
type = varadd
trigger1 = 1
var(2) = 1

[state ]
type = changeanim
trigger1 = anim!= 22162
trigger1 = var(2)= 0||1
value = 22162

[state 11125]
type = playsnd
trigger1 = var(2)
value = 2562,35

[state 11125]
type = nothitby
trigger1 = 1
value = SCA

[state 11125]
type = varset
trigger1 = var(2)
v = 1
value = 0

[State 11125]
type = VarAdd
trigger1 = var(1) <= 21
v = 1
value = 1

;[State 11125]
type = Explod
trigger1 = var(2)
anim = 22127
id = 22106
sprpriority = 2
postype = p1
pos = 0,0
bindtime = -1
removetime = 19
supermove = 0
ignorehitpause = 99999999
under = 0
ownpal = 1

[State 11125]
type = Explod
trigger1 = var(2)
anim = 22163
sprpriority = 1
postype = p1
pos = 0,0
bindtime = -1
supermove = 0
ignorehitpause = 99999999
under = 0
ownpal = 1

;[State 11125]
type = ModifyExplod
trigger1 = var(2)
ID = 22106
scale = 1.2 - var(1)/15.0 , 1.2 - var(1)/15.0

[State 11125]
type = Projectile
triggerall = root,var(1) = 1
trigger1 = var(2)
attr = S, NA
projanim = 22179
projhitanim = -1
projid = 35902
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.025 * enemy,Const(data.life)) ,Ceil(0.005 * enemy,Const(data.life)) * var(39)
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,4
sparkno = s22109 + root,var(35)
sparkxy = 0,0
hitsound   = s2556,0
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-(((var(1) = 1)*2.8)+2.8)
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000

[state 11125]
type = destroyself
trigger1 = var(2)

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; UNKNOWN(未定）
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;[Statedef 11500]
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; シマリング・ライト
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 11600]
type    = S
movetype= A
physics = S
juggle  = 7
poweradd= 80
ctrl = 0
velset = 0,0
anim = 11501
sprpriority = 2

[State 11600]
type = VelSet
trigger1 = 1
x = 0
y = 0
ignorehitpause = 1

[State 11600]
type = PlaySnd
trigger1 = animelem = 5
value = s220,2
channel = -1

[State 11600];ビーム真ん中 70,-80
type = Projectile
trigger1 = time > 23
trigger1 = time <= 34
Projanim = 22127
ProjID = 22130
Velocity = 0,0
Projremove = 0
Projremovetime = 1
Projepriority = 99999999
Projespriority = 99999999
postype = p1
offset = 70,-80
attr = S, SA
animtype = light
damage = Ceil(0.005 * enemy,Const(data.life)),Ceil(0.001 * enemy,Const(data.life))
priority  = 7
guardflag = M
pausetime = 1,10
priority = 7
hitflag = MAFDP
guard.pausetime = 1,4
guard.velocity = 0
sparkxy = ceil((p2dist X)-50), ceil((p2dist Y)-1)
sparkno = s7003
guard.sparkno = s22113
hitsound = S220,0
guardsound = S120, 0
sprpriority = 2
ground.slidetime = 18
ground.hittime = 1
ground.velocity = -1,-10
air.velocity = -1,-10
guard.velocity = -3
fall = 1
fall.recover = 0
sprpriority = 3
p2stateno = 9000

[State 11600];魔法陣真ん中 30-80
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 30,-80
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];ビームエフェクト
type = Explod
trigger1 = animelem = 5
anim = 22130
sprpriority = 3
postype = p1
pos = 70,-80
bindtime = 1
supermove = 0
ownpal = 1
trans = add
ignorehitpause =1

[State 11600];魔法陣真ん中 -80
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 70,-80
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];ビーム上 30,-115
type = Projectile
trigger1 = time > 22
trigger1 = time <= 34
Projanim = 22127
ProjID = 22130
Velocity = 0,0
Projremove = 0
Projremovetime = 1
Projepriority = 99999999
Projespriority = 99999999
postype = p1
offset = 20,-140
attr = S, SA
animtype = light
damage = Ceil(0.005 * enemy,Const(data.life)),Ceil(0.001 * enemy,Const(data.life))
priority  = 7
guardflag = M
pausetime = 1,10
priority = 7
hitflag = MAFDP
guard.pausetime = 1,4
guard.velocity = 0
sparkxy = ceil((p2dist X)-50), ceil((p2dist Y)-1)
sparkno = s7003
guard.sparkno = s22113
hitsound = -1;S220,0
guardsound = S120, 0
sprpriority = 2
ground.slidetime = 18
ground.hittime = 1
ground.velocity = -1,-10
air.velocity = -1,-10
guard.velocity = -3
fall = 1
fall.recover = 0
sprpriority = 3
p2stateno = 9000

[State 11600];ビームエフェクト
type = Explod
trigger1 = animelem = 5
anim = 22130
sprpriority = 3
postype = p1
pos = 20,-140
bindtime = 1
supermove = 0
ownpal = 1
trans = add
ignorehitpause =1

[State 11600];魔法陣真ん中 -140
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 20,-140
scale = 0.2,0.7
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];魔法陣真ん中 -115
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 50,-115
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];ビーム下 20,-20
type = Projectile
trigger1 = time > 22
trigger1 = time <= 34
Projanim = 22127
ProjID = 22130
Velocity = 0,0
Projremove = 0
Projremovetime = 1
Projepriority = 99999999
Projespriority = 99999999
postype = p1
offset = 20,-20
attr = S, SA
animtype = light
damage = Ceil(0.005 * enemy,Const(data.life)),Ceil(0.001 * enemy,Const(data.life))
priority  = 7
guardflag = M
pausetime = 1,10
priority = 7
hitflag = MAFDP
guard.pausetime = 1,4
guard.velocity = 0
sparkxy = ceil((p2dist X)-50), ceil((p2dist Y)-1)
sparkno = s7003
guard.sparkno = s22113
hitsound = -1;S220,0
guardsound = S120, 0
sprpriority = 2
ground.slidetime = 18
ground.hittime = 1
ground.velocity = -1,-10
air.velocity = -1,-10
guard.velocity = -3
fall = 1
fall.recover = 0
sprpriority = 3
p2stateno = 9000

[State 11600];ビームエフェクト
type = Explod
trigger1 = animelem = 5
anim = 22130
sprpriority = 3
postype = p1
pos = 20,-20
bindtime = 1
supermove = 0
ownpal = 1
trans = add
ignorehitpause =1

[State 11600];魔法陣真ん中 -20
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 20,-20
scale = 0.2,0.7
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];魔法陣真ん中 -45
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 50,-45
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];ビーム最上 120,-150
type = Projectile
trigger1 = time > 22
trigger1 = time <= 34
Projanim = 22127
ProjID = 22130
Velocity = 0,0
Projremove = 0
Projremovetime = 1
Projepriority = 99999999
Projespriority = 99999999
postype = p1
offset = 120,-150
attr = S, SA
animtype = light
damage = Ceil(0.005 * enemy,Const(data.life))
priority  = 7
guardflag = M
pausetime = 1,10
priority = 7
hitflag = MAFDP
guard.pausetime = 1,4
guard.velocity = 0
sparkxy = ceil((p2dist X)-50), ceil((p2dist Y)-1)
sparkno = s7003
guard.sparkno = s22113
hitsound = -1;S220,0
guardsound = S120, 0
sprpriority = 2
ground.slidetime = 18
ground.hittime = 1
ground.velocity = -1,-10
air.velocity = -1,-10
guard.velocity = -3
fall = 1
fall.recover = 0
sprpriority = 3
p2stateno = 9000

[State 11600];ビームエフェクト
type = Explod
trigger1 = animelem = 5
anim = 22130
sprpriority = 3
postype = p1
pos = 120,-150
bindtime = 1
supermove = 0
ownpal = 1
trans = add
ignorehitpause =1

[State 11600];魔法陣奥 -190
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 80,-190
scale = 0.2,0.7
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];魔法陣真ん中 -150
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 120,-150
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];ビーム最下 120,0
type = Projectile
trigger1 = time > 22
trigger1 = time <= 34
Projanim = 22127
ProjID = 22130
Velocity = 0,0
Projremove = 0
Projremovetime = 1
Projepriority = 99999999
Projespriority = 99999999
postype = p1
offset = 120,0
attr = S, SA
animtype = light
damage = Ceil(0.005 * enemy,Const(data.life))
priority  = 7
guardflag = M
pausetime = 1,10
priority = 7
hitflag = MAFDP
guard.pausetime = 1,4
guard.velocity = 0
sparkxy = ceil((p2dist X)-50), ceil((p2dist Y)-1)
sparkno = s7003
guard.sparkno = s22113
hitsound = -1;S220,0
guardsound = S120, 0
sprpriority = 2
ground.slidetime = 18
ground.hittime = 1
ground.velocity = -1,-10
air.velocity = -1,-10
guard.velocity = -3
fall = 1
fall.recover = 0
sprpriority = 3
p2stateno = 9000

[State 11600];ビームエフェクト
type = Explod
trigger1 = animelem = 5
anim = 22130
sprpriority = 3
postype = p1
pos = 120,0
bindtime = 1
ownpal = 1
trans = add
ignorehitpause =1

[State 11600];魔法陣奥 40
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 80,40
scale = 0.2,0.7
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600];魔法陣真ん中 0
type = Explod
trigger1 = animelem = 5
anim = 15351
sprpriority = 3
postype = p1
pos = 120,0
scale = 0.15,0.5
bindtime = 1
ignorehitpause =1
ownpal = 1

[State 11600]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; バニシングラッシュ
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 22115]
type = S
movetype = A
physics = N
anim = 22115
ctrl = 0
juggle = 7
poweradd= 80
velset = 0,0
sprpriority = 2

[state a]
type = varset
trigger1 = palno = 12 && time = 0 
v = 5
value = ifelse(var(30)!=1,(command="b"),(random%2))

[state a]
type = varset
trigger1 = palno = 12 && time = 0
fv = 21
value = 0

[State 1300, 0]
type = NotHitBy
trigger1 = 1
value = SCA

[State 440, 2]
type = PlaySnd
trigger1 = animelem = 5
value = s2562,30

[State 440, 2]
type = PlaySnd
trigger1 = animelem = 1
value = s193,1

[State 10000, sombras] 
type = Afterimage
trigger1 = time = 0
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  -1
length  = 13
TimeGap = 1
FrameGap = 1

[State 1000, 5]
type = Explod
trigger1 = animelem = 5
anim = 22117
;id = 1251
sprpriority = 1
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = animelem = 5
anim = 22067
id = 22117
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 3]
type = ChangeState
trigger1 = AnimTime = 0
value = 22117

;==========================================================================================
;==========================================================================================
;ダッシュ
;==========================================================================================
;==========================================================================================

[Statedef 22117]
type = S
movetype = A
physics = N
anim = 22120
ctrl = 0
juggle = 7
velset = 80,0
sprpriority = 2

[state a]
type = varadd
trigger1 = palno = 12 && time = 0 
fv = 21
value = 1

[State a]
type = NotHitBy
trigger1 = var(1) = 1
value = SCA

[State 1]
type = removeexplod
trigger1 = time = 0
ID = 22117

[State 1000, 5]
type = null;Explod
trigger1 = time = 0
anim = 22119
;id = 1251
sprpriority = 1
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
under = 0
ownpal = 1

[State a]
type = Pause
trigger1 = projhit35901 = 1 || projguarded35901 = 1
time = 2

[State 1]
type = Projectile
triggerall = var(1) = 1
trigger1 = AnimElem = 1
attr = C, HA
projanim = 22151
projhitanim = -1
projid = 35901
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 52
numhits = 1
animtype  = hard
damage    = Ceil(0.005 * enemy,Const(data.life)) ,Ceil(0.001 * enemy,Const(data.life)) * var(39)
getpower = 25,25
givepower = 0,0
guardflag = H
hitflag = MAFD
pausetime = 2,1
sparkno = -1;s22109 + var(35)
sparkxy = -7, -85
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-8
air.velocity = -0.5,-8
yaccel = .5
envshake.time = 7
envshake.ampl = 7
fall = 1
fall.recover = 0
p2stateno = 19000

[State 1]
type = Projectile
triggerall = var(1) != 1
trigger1 = AnimElem = 1
attr = C, HA
projanim = 22151
projhitanim = -1
projid = 35901
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 10
postype = p1
offset = 0,0
velocity = 52
numhits = 1
animtype  = hard
damage    = Ceil(0.005 * enemy,Const(data.life)) ,Ceil(0.001 * enemy,Const(data.life)) * var(39)
getpower = 25,25
givepower = 0,0
guardflag = H
hitflag = MAF
pausetime = 2,1
sparkno = -1;s22109 + var(35)
sparkxy = -7, -85
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-8
air.velocity = -0.5,-8
yaccel = .5
envshake.time = 7
envshake.ampl = 7
fall = 1
fall.recover = 0
p2stateno = 19000

[State 1]
type = Helper
trigger1 = projcontact35901 = 1
trigger1 = NumHelper(22121) = 0 || palno=12&&var(5)=1
id = 22121
name = "lash"
sprpriority = 2
pos = 0,0
postype = p2
stateno = 22121
juggle = 8
helpertype = player
keyctrl = 0 
ownpal = 1
PauseMoveTime = 9999999

[State 1] 
type = turn 
trigger1 = palno=12&&fvar(21)<=4+((var(29)>=1)*4)&&animTime=0&&p2dist x<0&&var(5)=1
value = 1

[State 1]
type = ChangeState
trigger1 = animTime = 0
value = ifelse((palno=12&&var(5)=1&&fvar(21)<=5+((var(29)>=1)*4)),22117,22116)

;==========================================================================================
;==========================================================================================
;終了
;==========================================================================================
;==========================================================================================

[Statedef 22116]
type = S
movetype = A
physics = N
anim = 22116
ctrl = 0
juggle = 8
velset = 0,0
sprpriority = 2

[State a]
type = NotHitBy
trigger1 = var(1) = 1
value = SCA

[State 440, 2]
type = null;PlaySnd
trigger1 = animelem = 1
value = s1500, 1

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 22118
;id = 1251
sprpriority = 1
postype = p1
pos = -9,0
bindtime = -1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = animelem = 2
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1]
type = ChangeState
trigger1 = animTime = 0
value = 0
ctrl = 1

;==========================================================================================
;==========================================================================================
;　バニシング攻撃ヘルパー
;==========================================================================================
;==========================================================================================
[Statedef 22121]
type    = S
movetype= A
sprpriority = 4
physics = S
velset = 0,0
juggle = 8
ctrl = 0

[State 1410]
type = Changeanim
trigger1 = anim != 22121
value = 22121
ignorehitpause = 1

[state V]
type = varadd
trigger1 = 1
var(57) = 1

[State 1010]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 1010]
type = NotHitBy
trigger1 = var(57) >= 0
value = SCA, AA, AT, AP

[state 2901,1]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[State 1];AnimElem = 1 || AnimElem = 2 || AnimElem = 3 || AnimElem = 4 || AnimElem = 5 || AnimElem = 6
type = Projectile
trigger1 = 1
attr = A, HA
projanim = 22152
projhitanim = -1
projid = 35902
projpriority = 999999999
projsprpriority = 999999999
projremove = 1
projremovetime = 1
postype = p2
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil((0.0005-((root,palno=12&&root,var(5)=1)*0.002))*enemy,Const(data.life))*root,var(39),Ceil(0.002*enemy,Const(data.life))*root,var(39)
getpower = 10+((root,palno=12&&root,var(5)=1)*10),10+((root,palno=12&&root,var(5)=1)*10)
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 7,0
sparkno = s22109 + root,var(35)
sparkxy = -5, -80
hitsound   = s2562,19
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = 0,-4+((root,palno=12&&root,var(5)=1)*2)
air.velocity = 0,-4+((root,palno=12&&root,var(5)=1)*2)
envshake.time = 7
envshake.ampl = 7
yaccel = 0.4+((root,palno=12&&root,var(5)=1)*0.2)
fall = 1
fall.recover = 0
p2stateno = 19000

[State 2]
type = destroyself
trigger1 = animtime = 0

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 髑髏柱
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 1450]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 20
ctrl = 0
velset = 0,0
anim = 1450
sprpriority = 2

[state V]
type = varadd
trigger1 = 1
v = 58
value = 1

[State a]
type = NotHitBy
trigger1 = var(1) = 1
value = SCA

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time = 0
trigger1 = command = "x"
trigger1 = prevstateno != 1450
v = 5
value = 0

[state a]
type = varset
triggerall = var(30) != 1
triggerall = time = 0
trigger1 = command = "a"
trigger1 = prevstateno != 1450
v = 5
value = 1

[state a]
type = varset
triggerall = var(30) != 1
triggerall = time = 0
trigger1 = command = "y"
trigger1 = prevstateno != 1450
v = 5
value = 2

[state a]
type = varset
triggerall = var(30) != 1
triggerall = time = 0
trigger1 = command = "b"
trigger1 = prevstateno != 1450
v = 5
value = 3

[state a]
type = varset
triggerall = var(30) != 1
triggerall = time = 0
trigger1 = command = "z"
trigger1 = prevstateno != 1450
v = 5
value = 4

[state a]
type = varset
triggerall = var(30) = 1
triggerall = time = 0
trigger1 = prevstateno != 1450
v = 5
value = 4

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = command = "x"
v = 5
value = 0

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = command = "a"
v = 5
value = 1

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = command = "y"
v = 5
value = 2

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = command = "b"
v = 5
value = 3

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = command = "z"
v = 5
value = 4

[State 1]
type = varrandom
triggerall = var(30) = 1
trigger1 = time != 0
range = 0,4
v = 5

[state a]
type = varset
trigger1 = time = 0
trigger1 = prevstateno != 1450
v = 18
value = 1+((var(1)=1)*2)

[state a]
type = varadd
trigger1 = time = 0
trigger1 = prevstateno = 1450
v = 18
value = -1

[state a]
type = varset
trigger1 = prevstateno != 1450
v = 13
value = 0

[state a]
type = varset
trigger1 = prevstateno = 1450
v = 13
value = 1

[state a]
type = varset
trigger1 = time = 0
v = 7
value = 0

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = time != 0
trigger1 = (command = "x")||(command = "a")||(command = "y")||(command = "b")||(command = "z")
v = 7
value = 1

[state a]
type = varset
triggerall = var(30) = 1
trigger1 = time != 0
v = 7
value = 1

[state a];
type = playsnd
trigger1 = animelem = 1
value = 2562,21

[state a];
type = null;playsnd
trigger1 = animelem = 1
value = 31000,0
volume = 255

[State 2900];1P,2Pはオロチ火柱
type = helper
triggerall = palno = [1,2]
trigger1 = var(58)
trigger1 = Animelem = 1
id = 1412
persistent = 0
name = "hasira"
pos = 70*var(5)+40,0
postype = P1
stateno = 1412
helpertype = player;normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 2900];11P,12Pはミズチ火柱
type = helper
triggerall = palno = [10,11]
trigger1 = var(58)
trigger1 = Animelem = 1
id = 1411
persistent = 0
name = "hasira"
pos = 70*var(5)+40,0
postype = P1
stateno = 1411
helpertype = player;
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 2900];12Pは高威力な火柱
type = helper
triggerall = palno = 12
trigger1 = var(58)
trigger1 = Animelem = 1
id = 1413
persistent = 0
name = "hasira"
pos = 70*var(5)+40,0
postype = P1
stateno = 1413
helpertype = player;normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[state a]
type = changestate
triggerall = var(18) >= 0
trigger1 = (var(7) = 1)&&(time >=(17-((palno=12)*12))+((var(30)=1)*(38-((palno=12)*35))))
value = 1450

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
;==========================================================================================
; オロチ髑髏柱
;==========================================================================================
;==========================================================================================

[Statedef 1412]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
;anim = 1410

[state V]
type = varadd
trigger1 = 1
var(58) = 1

[State 1410]
type = Changeanim
trigger1 = anim != 1410
value = 1410
ignorehitpause = 1

[State 20901,1]
type = posset
trigger1 = var(58) = 0
trigger1 = root,var(5) = 4
x = enemy,pos x 

[State 2901,1]
type = nothitby
trigger1 = 1
value = SCA
time = -1

[State 2901,1]
type = null;hitby
trigger1 = 1
value = SCA,NP,SP,HP
time = -1

[State 2901,1]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2552,0

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2562,27

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2551,0

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2551,1

[State a];足元波紋
type = Explod
trigger1 = Var(58) = 1
anim = 22133
sprpriority = 1
postype = p1
pos = 0,-5
vel = 0,0
bindtime = -1
supermove = 1
ignorehitpause =1
under = 0
ownpal = 1
trans = add
scale = 0.7,0.15

[State 1000, 5]
type = Explod
trigger1 = animelem = 12
anim = 2551;1415
id = 1415
sprpriority = 3
postype = p1
pos = 0,5
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 5
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22108
sprpriority = 6
postype = p1
pos = 0,-100
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = sub

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,30
bindtime = 1
removetime = 15
supermove = 0
scale = 0.8,0.8
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 20
supermove = 0
scale = 0.6,0.6
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 2
postype = p1
pos = 0,0
bindtime = 1
removetime = 25
supermove = 0
scale = 0.3,0.3
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 2553
sprpriority = 4
postype = p1
pos = -2,1
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State a]
type = Explod
triggerall = AnimElemtime(12) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 99999999
vel = 0,-3
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = sub

[State -3]
type = Explod
trigger1 = animelem = 11
anim = 22889
sprpriority = 1
postype = p1
pos = -46,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
trigger1 = animelem = 11
anim = 22889
sprpriority = 1
postype = p1
pos = 46,0
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
trigger1 = animelem = 12
anim = 15853
sprpriority = 1
postype = p1
pos = 0,-5
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 1020, 4]
type = EnvShake
trigger1 = animelem = 12
time = 12
ampl = -12
freq = 95
phase = 95

[State 1]
type = Projectile
triggerall = root,var(1) != 1
trigger1 = AnimElem = 14
attr = S, NA
projanim = 22150
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = Ceil(0.07 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 20,20
givepower = 20,20
guardflag = H
hitflag = MAF
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
p2stateno = 14200

[State 1]
type = Projectile
triggerall = root,var(1) = 1
trigger1 = AnimElem = 14
attr = S, NA
projanim = 22150
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = Ceil(0.07 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39)
getpower = 20,20
givepower = 0,0
guardflag = H
hitflag = MAFD
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
p2stateno = 14200

[State a]
type = destroyself
trigger1 = animtime = 0

;==========================================================================================
;==========================================================================================
; 12P髑髏柱　
;==========================================================================================
;==========================================================================================
[Statedef 1413]
type    = A
movetype= A
physics = N
juggle  = 10
poweradd= 0
velset = 0,0
ctrl = 0
;anim = 1410

[state V]
type = varadd
trigger1 = 1
var(58) = 1

[State 1413]
type = Changeanim
trigger1 = anim != 1410
value = 1410
ignorehitpause = 1

[state 1413]
type = posset
trigger1 = var(58) = 0
trigger1 = root,var(5) = 4
x = enemy,pos x 

[state 1413]
type = nothitby
trigger1 = 1
value = SCA

[state 1413]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[State 0]
type = PlaySnd
trigger1 = animelem = 12
value = 2600,4
volume = 250

[State 0]
type = PlaySnd
trigger1 = animelem = 12
value = 2600,2
volume = 250

[State 0]
type = PlaySnd
trigger1 = animelem = 12
value = 2600,2
volume = 250
freqmul = 1.3

[State 0]
type = PlaySnd
trigger1 = animelem = 12
value = 26000,1
volume = 250

[State 0]
type = PlaySnd
trigger1 = animelem = 13
value = 2562,33
volume = 250

;-------------------------------------------
;12P用
[State 0]
type = Explod
trigger1 = Var(58) = 1
anim = 10502
sprpriority = 4
pos = 2,0
bindtime = -1
ownpal = 1
pausemovetime = 999999999
supermovetime = 999999999

[State a];足元波紋
type = Explod
trigger1 = Var(58) = 1
anim = 22133
sprpriority = 1
postype = p1
pos = 0,-5
vel = 0,0
bindtime = -1
supermove = 1
ignorehitpause =1
under = 0
ownpal = 1
trans = add
scale = 0.7,0.15

[State 1413];光の粒2
type = Explod
triggerall = AnimElemtime(12) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 99999999
vel = 0,-3
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = sub

[State 1413];光の粒2
type = Explod
triggerall = AnimElemtime(12) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
ownpal = 1
trans = sub
persistent = 1
ignorehitpause = 1
vel = 0,-5
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 0]
type = Explod
trigger1 = animelem = 14
anim = 10500
sprpriority = 5
pos = 0,-30
bindtime = -1
ownpal = 1
ontop = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 14
anim = 10501
sprpriority = -5
pos = 0,15
bindtime = -1
ownpal = 1
scale = 0.2,15.0
trans = sub
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 14
anim = 10501
sprpriority = 4
pos = 30,15
bindtime = -1
ownpal = 1
scale = 0.7,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
triggerall = ishelper
trigger1 = animelem = 14
anim = 10501
sprpriority = 4
pos = -30,15
bindtime = -1
ownpal = 1
scale = 0.7,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 15
anim = 10501
sprpriority = 4
pos = 60,0
bindtime = -1
ownpal = 1
scale = 0.4,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 15
anim = 10501
sprpriority = 4
pos = -60,0
bindtime = -1
ownpal = 1
scale = 0.4,1.0
pausemovetime = 999999999
supermovetime = 999999999
;-------------------------------------------
;12P用
[State 0]
type = Explod
trigger1 = animelem = 14
anim = 10501
sprpriority = 4
facing = -1
pos = 50,15
bindtime = -1
ownpal = 1
scale = 0.7,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 14
anim = 10501
sprpriority = 4
facing = -1
pos = -50,15
bindtime = -1
ownpal = 1
scale = 0.7,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 15
anim = 10501
sprpriority = 4
facing = -1
pos = 80,0
bindtime = -1
ownpal = 1
scale = 0.4,1.0
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0]
type = Explod
trigger1 = animelem = 15
anim = 10501
sprpriority = 4
facing = -1
pos = -80,0
bindtime = -1
ownpal = 1
scale = 0.4,1.0
pausemovetime = 999999999
supermovetime = 999999999
;-------------------------------------------
;神オロチの火柱と融合
[State a];
type = playsnd
trigger1 = animelem = 12
value = 2552,0

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2562,27

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2551,0

[State a];
type = playsnd
trigger1 = animelem = 12
value = 2551,1

[State a];足元波紋
type = Explod
trigger1 = Var(58) = 1
anim = 22133
sprpriority = 1
postype = p1
pos = 0,-5
vel = 0,0
bindtime = -1
supermove = 1
ignorehitpause =1
under = 0
ownpal = 1
trans = sub
scale = 0.5,0.13

[State 1000, 5]
type = Explod
trigger1 = animelem = 12
anim = 2551
id = 1415
sprpriority = 3
postype = p1
pos = 0,5
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 5
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22108
sprpriority = 6
postype = p1
pos = -1,-100
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = sub

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,30
bindtime = 1
removetime = 15
supermove = 0
scale = 0.8,0.8
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 3
postype = p1
pos = 0,0
bindtime = 1
removetime = 20
supermove = 0
scale = 0.6,0.6
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 22102
id = 1415
sprpriority = 2
postype = p1
pos = 0,0
bindtime = 1
removetime = 25
supermove = 0
scale = 0.3,0.3
ignorehitpause = 99999999
under = 0
trans = add

[State 1000, 5]
type = Explod
trigger1 = animelem = 14
anim = 2553
sprpriority = 4
postype = p1
pos = -2,1
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = add

[State -3]
type = Explod
trigger1 = animelem = 11
anim = 22889
sprpriority = 1
postype = p1
pos = -46,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
trigger1 = animelem = 11
anim = 22889
sprpriority = 1
postype = p1
pos = 46,0
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

[State -3]
type = Explod
trigger1 = animelem = 12
anim = 15853
sprpriority = 1
postype = p1
pos = 0,-5
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
SuperMoveTime = 9999
PauseMoveTime = 9999

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

[State 0]
type = EnvShake
trigger1 = animelem = 14
time = 20
ampl = -10
freq = 80
phase = 80

[State 0];1
type = Explod
trigger1 = var(58) = 30 || var(58) = 33 || var(58) = 36 || var(58) = 39 || var(58) = 42 || var(58) = 45
anim = 10503
sprpriority = 5
pos = -1,-20 - 32*(var(58) = 33) - 64*(var(58) = 36) - 96*(var(58) = 39) - 128*(var(58) = 42) - 160*(var(58) = 45)
bindtime = -1
ownpal = 1
scale = 1.1,1.1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 0];2
type = Explod
triggerall = ishelper
trigger1 = var(58) = 30 || var(58) = 33 || var(58) = 36 || var(58) = 39 || var(58) = 42 || var(58) = 45
anim = 10503
sprpriority = 5
facing = -1
pos = -1,-20 - 32*(var(58) = 33) - 64*(var(58) = 36) - 96*(var(58) = 39) - 128*(var(58) = 42) - 160*(var(58) = 45)
bindtime = -1
ownpal = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 1]
type = Projectile
triggerall = root,var(1) = 1
trigger1 = AnimElem = 14
attr = S, NA
projanim = 22661
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = Ceil(0.08 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39)
getpower = 50,10
givepower = 0,0
guardflag = H
hitflag = MAFD
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
p2stateno = 14200

[State 0]
type = targetdrop
triggerall = ishelper
trigger1 = numtarget
trigger1 = target,ishelper

[State 1413]
type = ReversalDef
trigger1 = root,var(59) = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = -1
hitsound = -1
p2stateno = 14200

[State 1413]
type = targetstate
triggerall = root,var(59) = 1
trigger1 = target,stateno != 14200
value = 14200

[State 1413]
type = destroyself
trigger1 = animtime = 0

;==========================================================================================
;==========================================================================================
; 10P,11P髑髏柱
;==========================================================================================
;==========================================================================================

[Statedef 1411]
type    = A
movetype= A
physics = N
juggle  = 10
poweradd= 0
velset = 0,0
ctrl = 0
;anim = 1410

[state V]
type = varadd
trigger1 = 1
var(58) = 1

[State 1411]
type = Changeanim
trigger1 = anim != 1410
value = 1410
ignorehitpause = 1

[State 1411]
type = posset
trigger1 = var(58) = 0
trigger1 = root,var(5) = 4
x = enemy,pos x 

[State 1411]
type = nothitby
trigger1 = 1
value = SCA

[State 1411]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1411

[State 1411]
type = playsnd
trigger1 = animelem = 12
value = 2600,2
volume = 255

[State 1411]
type = playsnd
trigger1 = animelem = 12
value = 2551,1

[State 1411]
type = playsnd
trigger1 = animelem = 12
value = 2552,0

[State 1411]
type = playsnd
trigger1 = animelem = 12
value = 2600,4
volume = 255

[State 1411];足元波紋
type = Explod
trigger1 = var(58) = 1
anim = 22133
sprpriority = 1
postype = p1
pos = 0,-5
vel = 0,0
bindtime = -1
supermove = 1
ignorehitpause =1
under = 0
ownpal = 1
trans = add
scale = 0.8,0.2

[State 1411]
type = Explod
trigger1 = animelem = 11
anim = 15853
sprpriority = 1
postype = p1
pos = -3,10
facing = -1
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
trans = add
scale = 1.15,1.15
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 1411]
type = Explod
trigger1 = animelem = 12
anim = 25052
id = 1415
sprpriority = 5
postype = p1
pos = 0,20
bindtime = 1
supermove = 1
ignorehitpause = 1
under = 0
trans = add

[State 1411]
type = null;Explod
trigger1 = animelem = 12
anim = 30001
sprpriority = 6
postype = p1
pos = -30,0
vel = 0,0
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add

[State 1411]
type = null;Explod
trigger1 = animelem = 12
anim = 30002
sprpriority = 6
postype = p1
pos = 30,0
vel = 0,0
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add

[State 1411]
type = Explod
trigger1 = animelem = 14
anim = 22108
sprpriority = 6
postype = p1
pos = 0,-100
bindtime = 1
supermove = 0
ignorehitpause = 99999999
under = 0
trans = sub

[State 1411];光の粒2
type = Explod
triggerall = AnimElemtime(12) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 99999999
vel = 0,-3
SuperMoveTime = 9999
PauseMoveTime = 9999
trans = sub

[State 1411];光の粒2
type = Explod
triggerall = AnimElemtime(12) >= 0
trigger1 = (GameTime%(2+((root,palno=12)*2))) = 1
anim = 22131
sprpriority = 99999998
postype = p1
pos = root,var(50),root,var(51)
bindtime = 1
ownpal = 1
trans = sub
persistent = 1
ignorehitpause = 1
vel = 0,-5
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 1411]
type = EnvShake
trigger1 = animelem = 12
time = 10
ampl = -11
freq = 63
phase = 63

[State 1411]
type = ReversalDef
trigger1 = root,var(59) = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = -1
hitsound = -1
p2stateno = 14200

[State 1411]
type = targetstate
triggerall = root,var(59) = 1
trigger1 = target,stateno != 14200
value = 14200

[State 1411]
type = Projectile
triggerall = root,var(1) != 1
trigger1 = AnimElem = 14
attr = S, NA
projanim = 22150
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = Ceil(0.07 * enemy,Const(data.life)) * root,var(39),Ceil(0.01 * enemy,Const(data.life)) * root,var(39)
getpower = 30,40
givepower = 20,20
guardflag = H
hitflag = MAF
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
p2stateno = 14200

[State 1411]
type = Projectile
triggerall = root,var(1) = 1
trigger1 = AnimElem = 14
attr = S, NA
projanim = 22150
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = Ceil(0.07 * enemy,Const(data.life)) * root,var(39),Ceil(0.008 * enemy,Const(data.life)) * root,var(39)
getpower = 20,20
givepower = 0,0
guardflag = H
hitflag = MAFD
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
p2stateno = 14200

[State 1411]
type = destroyself
trigger1 = animtime = 0

;---------------------------------------------------------------------------
;相手
;---------------------------------------------------------------------------

[Statedef 14200]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[state 14200]
type = destroyself
trigger1 = ishelper

[State 14200]
type = AssertSpecial
trigger1 = time <= 25
flag = invisible

[State 14200]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 14200]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 14200]
type = ChangeAnim
Trigger1 = Time = 0
value = 5050

[state 14200]
type = velset
trigger1 = time = 0
x = 0
y = -60

[state 14200]
type = veladd
trigger1 = 1
y = 1.4

[State 14200]
type = lifeset
trigger1 = Vel Y > 0 && Pos Y >= 0
ignorehitpause = 1
value = IfElse((enemynear,name="SARIEL"&&enemynear,var(59)=1),life-(Ceil(0.15*Const(data.life))),life-(Ceil(0.1*Const(data.life))))

[State 14200]
type = EnvShake
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
time = 10
ampl = -5
freq = 95
phase = 95

[State 14200] 
type = SelfState
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; ブルーウォール
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 1380]
type    = S
movetype= A
physics = S
powera= -500
ctrl = 0
velset = 0,0
sprpriority = 2
anim = 1082000

[State 4100,1]
type = Explod
trigger1 = time = 3
anim = 15410
sprpriority = 99999998
postype = p1
pos = 25,-100
bindtime = 1
ownpal = 1
trans = add
persistent = 1
ignorehitpause = 1
removetime = 33
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 4100,1]
type = Explod
trigger1 = time = 33
anim = 15411
sprpriority = 99999998
postype = p1
pos = 25,-100
bindtime = 1
ownpal = 1
trans = add
persistent = 1
ignorehitpause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999

[State 4100,1]
type = Helper
trigger1 = numhelper(1414)= 0
trigger1 = Animelem = 2
postype = p1
pos = 150,0
sprpriority = 4
stateno = 1414
id = 1414
helpertype = player;normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State 4100,1]
type = Helper
trigger1 = numhelper(1414)= 1
trigger1 = Animelem = 3
postype = p1
pos = 200,0
sprpriority = 4
stateno = 1414
id = 1414
helpertype = player;normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State 4100,1]
type = Helper
trigger1 = numhelper(1414)= 2
trigger1 = Animelem = 4
postype = p1
pos = 250,0
sprpriority = 4
stateno = 1414
id = 1414
helpertype = player;normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State 4100,1]
type = Helper
trigger1 = numhelper(1414)= 3
trigger1 = Animelem = 5
postype = p1
pos = 300,0
sprpriority = 4
stateno = 1414
id = 1414
helpertype = player;normal
keyctrl = 0
persistent = 0
ignorehitpause = 1
ownpal = 1

[State 240, 4]
type = ChangeState
trigger1 = animTime = 0
value = 0
ctrl = 1

;---------------------------------------------
;白い柱ヘルパー
[Statedef 1414];15851
type    = A
movetype= A
physics = N
juggle  = 10
poweradd= 0
velset = 0,0
ctrl = 0
;anim = 2551

[State 30450]
type = Changeanim
trigger1 = anim != 2551
value = 2551
ignorehitpause = 1

[state a];
type = null;playsnd
trigger1 = Animelem = 2 ||Animelem = 3 || Animelem = 4 || Animelem = 5 || Animelem = 6 || Animelem = 7 || Animelem = 8 || Animelem = 9
value = 2552,0
volume = 255

[state a];
type = playsnd
trigger1 = Animelem = 2 ||Animelem = 3 || Animelem = 4 || Animelem = 5 || Animelem = 6 || Animelem = 7 || Animelem = 8 || Animelem = 9
value = 2562,27
volume = 255

[state a];
type = playsnd
trigger1 = Animelem = 2 ||Animelem = 3 || Animelem = 4 || Animelem = 5 || Animelem = 6 || Animelem = 7 || Animelem = 8 || Animelem = 9
value = 2551,0
volume = 255

[state a];
type = null;playsnd
trigger1 = Animelem = 2 ||Animelem = 3 || Animelem = 4 || Animelem = 5 || Animelem = 6 || Animelem = 7 || Animelem = 8 || Animelem = 9
value = 2551,1

[State 1020, 4]
type = EnvShake
trigger1 = Gametime%5 = 0
time = 12
ampl = -12
freq = 115
phase = 115

[State 1]
type = Projectile
trigger1 = Animelem = 2 ||Animelem = 3 || Animelem = 4 || Animelem = 5 || Animelem = 6 || Animelem = 7 || Animelem = 8 || Animelem = 9
attr = S, NA
projanim = 22150
projhitanim = -1
projid = 35900
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 14
postype = p1
offset = 0,0
velocity = 0
numhits = 1
animtype  = hard
damage    = 10
getpower = 20,20
givepower = 20,20
guardflag = H
hitflag = MAF
pausetime = 2,4
sparkno = s22109 + var(35)
sparkxy = -7, -70
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.5,-17
air.velocity = -0.5,-17
yaccel = .5
fall = 1
fall.recover = 0
;p2stateno = 14200

[State 30170]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State -2]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[state 1413]
type = destroyself
trigger1 = animtime = 0

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 跳ね返し
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 1300]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 80
ctrl = 0
velset = 0,0
anim = 1300
sprpriority = 2

[State 240, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 2562, 20

[State 1000, 5]
type = Explod
trigger1 = animelem = 4
anim = 22066
id = 211
sprpriority = 5
postype = p1
pos = 40,-85
bindtime = 1
ignorehitpause = 1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = animelem = 4
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State 1050]
type = Explod
trigger1 = time >= 25
anim = 22131
sprpriority = 5
postype = p1
pos = 15,-67
random = 10,100
bindtime = 1
under = 0
ownpal = 1
vel = 4 + (random%4),-2 + (random%4)
ignorehitpause = 1
trans = add

[State a]
type = Veladd
Trigger1 = projhit35600 >= 1 && FrontEdgeDist <= 70 || projguarded35600 >= 1 && FrontEdgeDist <= 70
x = -4.1

[State a]
type = Pause
trigger1 = projhit35600 = 1 || projguarded35600 = 1
time = 2

[State 1]
type = Projectile
trigger1 = AnimElem = 4
attr = S, NA
projanim = 22149
projhitanim = -1
projid = 35600
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
damage    = Ceil(0.15 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 80,80
givepower = 0,0
guardflag = H
hitflag = MA
pausetime = 2,0
sparkno = s22109 + var(35)
sparkxy = 30, -85
hitsound   = s225,1
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 7
ground.hittime  = 7
ground.velocity = -6,-6
air.velocity = -6,-6
envshake.time = 8
envshake.ampl = 8
fall = 1
fall.recover = 0
p2stateno = 10210

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; バリア
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 1301]
type    = S
movetype= A
physics = S
juggle  = 20
poweradd= 80
ctrl = 0
velset = 0,0
anim = 2555
sprpriority = 2

[State a]
type = NotHitBy
triggerall = var(1) = 1
trigger1 = animelem = 12,<=6
value = SCA

[State a]
type = NotHitBy
triggerall = var(1) != 1
trigger1 = animelem = 9,<=6
value = SCA

[State 1700, 0]
type = ReversalDef
triggerall = var(1) = 1
trigger1 = animelem = 11,<=0
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = -1
hitsound = -1
numhits = 0
p2facing = 1
p2stateno = 13121

[State 240, 1]
type = PlaySnd
trigger1 = animelem = 6
value = 2555, 0

[State 1000, 5]
type = Explod
trigger1 = animelem = 6
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1

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

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

[State 1000, 5]
type = Explod
trigger1 = animelem = 6
anim = 2554
sprpriority = 6
postype = p1
pos = -5,-80
bindtime = -1
ignorehitpause = 99999999
under = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 2]
type = Projectile
triggerall = var(1) != 1
trigger1 = AnimElem = 6 || AnimElem = 7 || AnimElem = 8 || AnimElem = 9
attr = S, NA
projanim = 2557
projhitanim = -1
projid = 45000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.025 * enemy,Const(data.life)) ,Ceil(0.005 * enemy,Const(data.life)) * var(39)
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAF
pausetime = 2,4
sparkno = -1;s2556
sparkxy = -15,-77
hitsound   = s2556,0
guard.sparkno = -1;s7011
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-(((var(1) = 1)*2.8)+2.8)
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000

[State 1000, 2]
type = Projectile
triggerall = var(1) = 1
trigger1 = AnimElem = 6 || AnimElem = 7 || AnimElem = 8 || AnimElem = 9
attr = S, NA
projanim = 2557
projhitanim = -1
projid = 45000
projpriority = 999999999
projsprpriority = 999999999
;projedgebound = 220
projremove = 1
projremovetime = 5
postype = p1
offset = 0,0
velocity = 0
animtype  = diagup
damage    = Ceil(0.025 * enemy,Const(data.life)) ,Ceil(0.005 * enemy,Const(data.life)) * var(39)
getpower = 20,20
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
sparkno = -1;s2556
sparkxy = -15,-77
hitsound   = s2556,0
guard.sparkno = -1;s7011
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-(((var(1) = 1)*2.8)+2.8)
fall = 1
fall.recover = 0
juggle = 15
p2stateno = 9000

[State 1]
type = targetlifeadd
trigger1 = projhit45000>=1&&var(1)=1
value = (Ceil(-0.005*enemy,Const(data.life)))*var(39)
ignorehitpause = 99999999
absolute = 1

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;やられ
;---------------------------------------------------------------------------

[Statedef 263601]
type    = A
movetype= H
physics = N
velset = 0,0
facep2 = 1

[State 263601]
type = lifeset
trigger1 = 1
ignorehitpause = 99999999
value = 0

[State 263601]
type = powerset
trigger1 = 1
ignorehitpause = 99999999
value = 0

[State 26360]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&!ishelper&&name!="SARIEL"&&prevstateno!=263601
value = 0
ignorehitpause = 99999999

[State 26360]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&!ishelper&&name!="SARIEL"&&prevstateno!=263601
fvalue = 0
ignorehitpause = 99999999

[state 26360]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0
v = 2
value = prevstateno

[state 26360]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0
v = 3
value = anim

[State 263601]
type = PlayerPush
trigger1 = 1
value = -1

[State 263601]
type = NotHitBy
trigger1 = 1
value = SCA

[State 263601]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 263601]
type = ChangeAnim
Trigger1 = Time = 0&&!ishelper
value = 5070

[State 263601]
type = Trans
trigger1 = 1
trans = add

[State 263601]
type = AssertSpecial
trigger1 = ishelper
flag = invisible

[state 263601]
type = destroyself
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=1
trigger2 = ishelper&&time>=5

[state 263601]
type = changestate
trigger1 = ishelper&&time=1&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0
value = 2636010

[State 263601]
type = changestate
trigger1 = time>=8&&!ishelper
value = 26370

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

[Statedef 26370]
type    = A
movetype= H
physics = N
sprpriority = 4

[state 26370]
type = destroyself
trigger1 = ishelper

[State 26370]
type = lifeset
trigger1 = time = 0
ignorehitpause = 99999999
value = life - (Ceil(0.035 * Const(data.life)))

[State 26370]
type = lifeset
trigger1 = life <= (Ceil(0.01 * Const(data.life)))
ignorehitpause = 99999999
value = 0

[State 26370]
type = PlayerPush
trigger1 = 1
value = -1

[State 26370]
type = NotHitBy
trigger1 = 1
value = SCA

[State 26370]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 26370]
type = ChangeAnim
trigger1 = time = 0
value = 5050

[state 26370]
type = velset
trigger1 = time = 0
x = IfElse((p2dist x< 0 ),3.32,-3.32)
y = -2.8

[State 26370]
type = VelAdd
Trigger1 = time > 0
y = .39

[State 26370]
type = selfstate
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100

;---------------------------------------------------------------------------
;超必演出ヘルパ
;---------------------------------------------------------------------------

[Statedef 26380]
type    = A
movetype= I
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22175
ownpal = 1

[state a]
type = nothitby
trigger1 = 1
value = SCA

[state a]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 1

[State a]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State a]
type = Trans
trigger1 = 1
trans = add

[state a]
type = varset
trigger1 = time = 0
v = 56
value = 0

[State a]
type = VarAdd
trigger1 = Var(56) <= 40
var(56) = 1

[State a]
Type = AngleDraw
Trigger1 = Time >= 0
scale = 0.2 + Var(56)/10.0 , 0.2 + Var(56)/10.0

[State a]
Type = AngleAdd
Trigger1 = Time >= 0
Value = -3

[state a]
type = destroyself
trigger1 = Time >= 25

;---------------------------------------------------------------------------
;やられ
;---------------------------------------------------------------------------

[Statedef 26360]
type    = A
movetype= H
physics = N
velset = 0,0
facep2 = 1

[State 26360]
type = powerset
trigger1 = 1
ignorehitpause = 99999999
value = 0

[State 26360]
type = PlayerPush
trigger1 = 1
value = -1

[State 26360]
type = NotHitBy
trigger1 = 1
value = SCA

[State 26360]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 26360]
type = ChangeAnim
Trigger1 = Time = 0 && !ishelper
value = 5070

[State 26360]
type = Trans
trigger1 = 1
trans = add1
alpha = 250,70

[State 26360]
type = AssertSpecial
trigger1 = ishelper
flag = invisible

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(1) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(2) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(3) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(4) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(5) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(6) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(7) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(8) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(9) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(10) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(11) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(12) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(13) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(14) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(15) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(16) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(17) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(18) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(19) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(20) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(21) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(22) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(23) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(24) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(25) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(26) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(27) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(28) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(29) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(30) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(31) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(32) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(33) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(34) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(35) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(36) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(37) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(38) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(39) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(40) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(41) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(42) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(43) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(44) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(45) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(46) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(47) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(48) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(49) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(50) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(51) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(52) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(53) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(54) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(55) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(56) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(57) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(58) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
var(59) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(1) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(2) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(3) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(4) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(5) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(6) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(7) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(8) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(9) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(10) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(11) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(12) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(13) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(14) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(15) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(16) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(17) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(18) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(19) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(20) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(21) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(22) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(23) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(24) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(25) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(26) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(27) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(28) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(29) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(30) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(31) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(32) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(33) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(34) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(35) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(36) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(37) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(38) = 0

[State 26360]
type = parentVarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(26)=1&&ishelper&&root,name!="SARIEL"
fvar(39) = 0

[state 26360]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0
v = 2
value = prevstateno

[state 26360]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0
v = 3
value = anim

[state 26360]
type = changestate
triggerall = enemynear,name="SARIEL"&&enemynear,var(55)<=0&&enemynear,fvar(19)!=0
trigger1 = ishelper
value = 2636030

[state 26360]
type = changestate
trigger1 = ishelper&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0&&enemynear,stateno=23000
value = 2636010

[state 26360]
type = destroyself
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=1&&enemynear,var(55)<=0
trigger2 = ishelper&&time=0&&enemynear,name="G Mizuchi"&&enemynear,fvar(26)!=1

[state 26360]
type = velset
trigger1 = time = 0 && !ishelper
x = IfElse((p2dist x< 0 ),3.32,-3.32)
y = -2.8

[State 26360]
type = VelAdd
Trigger1 = time > 0 && !ishelper
y = .39

[State 26360];5100
type = selfstate
trigger1 = Vel Y > 0 && !ishelper
trigger1 = Pos Y >= 0
value = 5100

;---------------------------------------
;やられ2
[Statedef 2701000]
type    = A
movetype= I
physics = N
sprpriority = 4
velset = -4,-6

[State 2701000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 2701000]
type = lifeset
trigger1 = 1
ignorehitpause = 99999999
value = 0

[State 2701000]
type = powerset
trigger1 = 1
ignorehitpause = 99999999
value = 0

[state 2701000]
type = destroyself
trigger1 = ishelper

[State 2701000]
type = ChangeAnim
trigger1 = time = 0 && !ishelper
value = ifelse(SelfAnimExist(5070),5070,0)

[State 2701000]
type = VelAdd
Trigger1 = time > 0
y = .39

[State 2701000]；5150
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5150

;==========================================================================================
;==========================================================================================
; カウンター
;==========================================================================================
;==========================================================================================

[Statedef 1310]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 0
ctrl = 0
velset = 0,0
anim = 1310
sprpriority = 2

[State 1300, 0]
type = NotHitBy
trigger1 = Time = 0
value = SCA, NA, SA, NP, SP, NT, ST
Time = 30

[State 1];
type = NotHitBy
trigger1 = animelem = 5,<=0
value = SCA

[State 240, 1]
type = PlaySnd
trigger1 = animelem = 2
value = 1300, 1

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 1305
id = 211
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 99999999
under = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 240, 2]
type = null;HitDef
trigger1 = animelem = 1
attr = S, NA
animtype  = hard
damage    = Ceil(0.12 * enemy,Const(data.life)) ,Ceil(0.008 * enemy,Const(data.life)) * var(39)
getpower = 0,0
guardflag = 
pausetime = 0,17
sparkno = s1015;7001
sparkxy = -15,-77
hitsound   = s1222,0
guard.sparkno = s22113
guardsound = s120,0
ground.type = low
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6
air.velocity = -6,-6.8
fall = 0
p2stateno = 13120

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;==========================================================================================
;==========================================================================================
; 糺カウンター2
;==========================================================================================
;==========================================================================================

[Statedef 13100]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 0
ctrl = 0
velset = 0,0
anim = 1310
sprpriority = 2

[State 1300, 0]
type = NotHitBy
trigger1 = Time = 0
value = SCA, NA, SA, NP, SP, NT, ST
Time = 30

[State 240, 1]
type = PlaySnd
trigger1 = animelem = 2
value = 1300, 1

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 1305
id = 211
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 99999999
under = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 2]
type = Projectile
trigger1 = AnimElem = 3
attr = S, NA
projanim = 1306
projhitanim = 1015
projid = 1000
projpriority = 999999999
projsprpriority = 999999999
projedgebound = 220
;hitflag =HA,MA,LA,AA
postype = p1
getpower = 0,0
offset = 28,-73
velocity = 20
damage = Ceil(0.12 * enemy,Const(data.life)) ,Ceil(0.01 * enemy,Const(data.life)) * var(39)
animtype = Hard
guardflag = M
pausetime = 0,12
sparkno = S7002
guard.sparkno = s22113
sparkxy = 20,0
hitsound = S1222,0;S190,2
guardsound = S121,0
ground.type = high
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -9,0
air.velocity = -4,-4
air.juggle = 7
fall = 0
air.fall = 1
fall.recover = 0
ownpal = 1
p2stateno = 13120

[State 240, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 瞬間移動
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 1800]
type = A
ctrl = 0
anim = 1888
velset = 0,0

[State 1300, 0]
type = NotHitBy
trigger1 = 1
value = SCA

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "x"
trigger1 = time = 0
v = 5
value = 0

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "a"
trigger1 = time = 0
v = 5
value = 1

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "y"
trigger1 = time = 0
v = 5
value = 2

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "b"
trigger1 = time = 0
v = 5
value = 3

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "z"
trigger1 = time = 0
v = 5
value = 4

[state a]
type = varset
triggerall = var(30) != 1
trigger1 = command = "c"
trigger1 = time = 0
v = 5
value = 5

[State 1]
type = varrandom
triggerall = var(30) = 1
trigger1 = time = 0
trigger1 = Enemy,NumHelper > 0 || Enemy,NumProj > 0
range = 0,3
v = 5

[state a]
type = varset
triggerall = var(30) = 1
trigger1 = time = 0
trigger1 = Enemy,NumHelper = 0 && Enemy,NumProj = 0
v = 5
value = 5

[State 2000, 6]
type = PlaySnd
trigger1 = time = 0
value = 2562,20

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 1931
sprpriority = 0
postype = p1
pos = 0,-75
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999

[State 1000,5];白い光の円
type = Explod
triggerall = palno = [10,11]
trigger1 = time = 0
anim = 31500
sprpriority = 0
postype = p1
pos = 0,-80
bindtime = -1
under = 0
ownpal = 1
trans = add
persistent = 1
ignorehitpause = 99999999
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = Pos Y >= 0
trigger1 = time = 0
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999
ignorehitpause = 999999999

[State 1000, 5]
type = Explod
trigger1 = time = 0
id = 22184
anim = 22184
sprpriority = 5
postype = p1
pos = 0,-75
bindtime = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time = 0
id = 22186
anim = 22186
sprpriority = 4
postype = p1
pos = 0,-75
bindtime = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -4 + (random%8),-4 + (random%8)
facing = -1
ownpal = 1
ontop = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -3 + (random%6),-3 + (random%6)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[state a]
type = posset
trigger1 = animtime = 0
trigger1 = var(5) = 0
x = -120

[state a]
type = posset
trigger1 = animtime = 0
trigger1 = var(5) = 1
x = -50

[state a]
type = posset
trigger1 = animtime = 0
trigger1 = var(5) = 2
x = 50

[state a]
type = posset
trigger1 = animtime = 0
trigger1 = var(5) = 3
x = 120

[state a]
type = posset
triggerall = animtime = 0
trigger1 = var(5) = 4
trigger2 = var(5) = 5
x = enemy,pos x

[state a]
type = changestate
trigger1 = animtime = 0
value = 1805

;==========================================================================================
;==========================================================================================
; 瞬間移動終わり
;==========================================================================================
;==========================================================================================

[Statedef 1805]
type = S
ctrl = 0
anim = 1889
velset = 0,0

[State a]
type = NotHitBy
triggerall = var(1) = 1
trigger1 = animelem = 7,<=6
value = SCA

[State a]
type = NotHitBy
triggerall = var(1) != 1
trigger1 = animelem = 3,<=2
value = SCA

[State 2000, 6]
type = PlaySnd
trigger1 = time = 0
value = 2562,20

[State 1400] 
type = turn 
trigger1 = p2dist x< 0 
value = 1

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 1932
sprpriority = 0
postype = p1
pos = 0,-75
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999
ignorehitpause = 999999999

[State 1000, 5];白い光の円
type = Explod
triggerall = palno = [10,11]
trigger1 = time = 0
anim = 31500
sprpriority = 0
postype = p1
pos = 0,-80
bindtime = -1
under = 0
ownpal = 1
persistent = 1
trans = add
ignorehitpause = 99999999
PauseMoveTime = 9999999

[State 1000, 5]
type = Explod
trigger1 = Pos Y >= 0
trigger1 = time = 0
anim = 22067
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999
ignorehitpause = 999999999

[State 1000, 5]
type = Explod
trigger1 = time = 0
id = 22184
anim = 22184
sprpriority = 5
postype = p1
pos = 0,-75
bindtime = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time = 0
id = 22186
anim = 22186
sprpriority = 4
postype = p1
pos = 0,-75
bindtime = 1
under = 0
ownpal = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -4 + (random%8),-4 + (random%8)
facing = -1
ownpal = 1
ontop = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -3 + (random%6),-3 + (random%6)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[State 1000, 5]
type = Explod
trigger1 = time >= 0
trigger1 = time <= 10
id = 22131
anim = 22131
sprpriority = 5
postype = p1
pos = 0,-75
random = 60,60
removetime = 35
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
trans = add
ignorehitpause = 1

[state a]
type = posset
trigger1 = time = 0
y = 0

[state a]
type = posadd
trigger1 = time = 0
trigger1 = var(5) = 4
x = -20

[state a]
type = posadd
trigger1 = time = 0
trigger1 = var(5) = 5
x = 20

[state a]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;==========================================================================================
;==========================================================================================
;光
;==========================================================================================
;==========================================================================================

[Statedef 2793]
type    = A
movetype= I
physics = N
velset = 0,0
juggle = 8
poweradd= 0
sprpriority = 9
anim = 22131
ctrl = 0

[State 2793]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 2793]
type = NotHitBy 
trigger1 = 1
value = SCA

[State 2793]
type = Trans
trigger1 = 1
trans = add
alpha = 250,250

[state 2793]
type = velset
trigger1 = time = 0
y = -3

[state 2793]
type = destroyself
trigger1 = time >= 30

;==========================================================================================
;==========================================================================================
;光
;==========================================================================================
;==========================================================================================

[Statedef 2794]
type    = A
movetype= I
physics = N
velset = 0,0
juggle = 8
poweradd= 0
sprpriority = 9
anim = 22131
ctrl = 0

[State 2793]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 2793]
type = NotHitBy 
trigger1 = 1
value = SCA

[State 2793]
type = Trans
trigger1 = 1
trans = add
alpha = 250,250

[state 2795]
type = null;velset
trigger1 = time = [0,14]
x = -0.5

[state 2795]
type = null;velset
trigger1 = time = [15,30]
x = -6

[state 2795]
type = velset
trigger1 = time = 0
x = -5

[State 1414]
type = veladd
trigger1 = Time > 0
y = -1 + (random%3)

[state 2793]
type = destroyself
trigger1 = time >= 30

;==========================================================================================
;==========================================================================================
;光
;==========================================================================================
;==========================================================================================

[Statedef 2795]
type    = A
movetype= I
physics = N
velset = 0,0
juggle = 8
poweradd= 0
sprpriority = 99
anim = 22131
ctrl = 0

[State 2793]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 2793]
type = NotHitBy 
trigger1 = 1
value = SCA

[State 2793]
type = Trans
trigger1 = 1
trans = add
alpha = 250,250

[state 2795]
type = velset
trigger1 = time = 0
x = 8

[State 1414]
type = veladd
trigger1 = Time > 0
y = -2 + (random%5)

[state 2793]
type = destroyself
trigger1 = time >= 30

;---------------------------------------------------------------------------
;　エーテルレーザー
;---------------------------------------------------------------------------
[Statedef 3000]
type    = S
movetype= A
physics = S
juggle  = 8
poweradd= 30
ctrl = 0
velset = 0,0
anim = 220

[State 200, 1]
type = PlaySnd
trigger1 = animelem = 4
value = 211, 0

[State 210, 1]
type = PlaySnd
trigger1 = time = 9
value = 211, 0

[State 210, 1]
type = PlaySnd
trigger1 = time = 18
value = 211, 0

[State 210, 1]
type = PlaySnd
trigger1 = time = 27
value = 211, 0

[State 210, 1]
type = PlaySnd
trigger1 = time = 36
value = 211, 0

;-------------------------------
[State 210, 1]
type = PlaySnd
trigger1 = time = 29
value = 801, 1

[State 210, 1]
type = PlaySnd
trigger1 = time = 39
value = 801, 1

[State 210, 1]
type = PlaySnd
trigger1 = time = 49
value = 801, 1

[State 210, 1]
type = PlaySnd
trigger1 = time = 59
value = 801, 1

[State 210, 1]
type = PlaySnd
trigger1 = time = 69
value = 801, 1

[State 1000, 5];攻撃エフェクト1
type = Explod
trigger1 = time = 29
anim = 15405
id = 15405
sprpriority = 5
postype = p1
pos = 45,-95
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト1,2
type = Explod
trigger1 = animelem = 4
anim = 220005
id = 220005
sprpriority = 5
postype = p1
pos = 45,-95
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
removetime = 60
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト2
type = Explod
trigger1 = time = 39
anim = 15405
id = 15405
sprpriority = 5
postype = p1
pos = 25,-75
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト2,2
type = Explod
trigger1 = time = 9
anim = 220005
id = 220005
sprpriority = 5
postype = p1
pos = 25,-75
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
removetime = 60
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト3
type = Explod
trigger1 = time = 49
anim = 15405
id = 15405
sprpriority = 5
postype = p1
pos = 25,-115
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト3,2
type = Explod
trigger1 = time = 18
anim = 220005
id = 220005
sprpriority = 5
postype = p1
pos = 25,-115
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
removetime = 60
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;------------------------------------
[State 1000, 5];攻撃エフェクト4
type = Explod
trigger1 = time = 59
anim = 15405
id = 15405
sprpriority = 5
postype = p1
pos = 20,-135
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト4,2
type = Explod
trigger1 = time = 26
anim = 220005
id = 220005
sprpriority = 5
postype = p1
pos = 20,-135
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
removetime = 60
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;------------------------------------
[State 1000, 5];攻撃エフェクト5
type = Explod
trigger1 = time = 69
anim = 15405
id = 15405
sprpriority = 5
postype = p1
pos = 20,-55
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 1000, 5];攻撃エフェクト5,2
type = Explod
trigger1 = time = 34
anim = 220005
id = 220005
sprpriority = 5
postype = p1
pos = 20,-55
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
removetime = 60
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999
;------------------------------------
;消滅1
[State 1000, 5]
type = Explod
trigger1 = time = 30
anim = 2200007
id = 2200007
sprpriority = 5
postype = p1
pos = 45,-95
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;消滅2
[State 1000, 5]
type = Explod
trigger1 = time = 40
anim = 2200007
id = 2200007
sprpriority = 5
postype = p1
pos = 25,-75
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;消滅3
[State 1000, 5]
type = Explod
trigger1 = time = 50
anim = 2200007
id = 2200007
sprpriority = 5
postype = p1
pos = 25,-115
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;消滅4
[State 1000, 5]
type = Explod
trigger1 = time = 60
anim = 2200007
id = 2200007
sprpriority = 5
postype = p1
pos = 20,-135
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;消滅5
[State 1000, 5]
type = Explod
trigger1 = time = 70
anim = 2200007
id = 2200007
sprpriority = 5
postype = p1
pos = 20,-55
bindtime = 1
supermove = 1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 99999999
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;-------------------------------------------
[State 210, 2]
type = projectile
trigger1 = time = 29 || time = 39 || time = 49 || time = 59 || time = 69
projanim = 222
projremovetime = 72
projremove = 72
attr = S,NA
animtype  = hard
damage    = 100
getpower = 30,30
guardflag = MA
pausetime = 8,10
sparkno = -1
sparkxy = -10,-77
hitsound   = s190,2
guardsound = -1
guard.sparkno = s7011
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -10.5
air.velocity = -2.5,-4

[State 210, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;ハイパーアーマー
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 10051]
type    = S
movetype= I
physics = S
anim = 1

[State 1]
type = NotHitBy
trigger1 = time = 0
value = SCA,AA,AT,AP
time = 30+((palno=12)*30)

[State -1]
type = lifeadd
trigger1 = var(29) <= 1 && (var(30)=0||var(30)!=0&&palno!=12)
trigger1 = time = 0
value = -(lifemax*(((life>=0)*0.002)+((life>=lifemax*0.02)*0.004)+((life>=lifemax*0.1)*0.01)+((life>=lifemax*0.2)*0.065)))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[0,2])
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.001+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.005+(0.004*fvar(28))))+((life>=lifemax*0.2)*(0.01+(0.045*fvar(28))))))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[1,2])&&enemy,life<enemy,lifemax*0.95
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.003+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.004+(0.001*fvar(28))))))
absolute = 1

[State -1]
type = poweradd
trigger1 = time = 0
value = (50+((palno!=12)*30))+((life<=lifemax*0.2)*(50+((palno!=12)*30)))+((var(29)>=1)*200)+((var(30)!=0&&fvar(28)=0)*150)

[state -1]
type = varadd
trigger1 =palno=12&&time=0
fv = 26
value = 1

[State 10051, 1]
type = HitVelSet
trigger1 = Time = 0
x = 0

[State 10051, 2]
type = VelSet
trigger1 = Time = GetHitVar(slidetime)
trigger2 = Time >= GetHitVar(hittime)
x = 0

[State 10051, 4]
type = ChangeState
trigger1 = Time >= 1
value = 0
ctrl = 1

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

[Statedef 18000]
type = S
movetype= A
physics = S
ctrl = 0
anim = 1888
velset = 0,0

[State 1300, 0]
type = NotHitBy
trigger1 = 1
value = SCA

[State 2000, 6]
type = PlaySnd
trigger1 = time = 0
value = 2562,20

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 1931
sprpriority = 0
postype = p1
pos = 0,-75
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999

[state a]
type = posset
trigger1 = animtime = 0
x = enemy,pos x

[state a]
type = changestate
trigger1 = animtime = 0
value = 18050

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

[Statedef 18050]
type = S
ctrl = 0
anim = 1889
velset = 0,0

[State 1300, 0]
type = NotHitBy
trigger1 = Time = 0
value = SCA, AA,AT,AP
Time = 15

[State 2000, 6]
type = PlaySnd
trigger1 = time = 0
value = 2562,20

[State 1400] 
type = turn 
trigger1 = p2dist x< 0 
value = 1

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 1932
sprpriority = 0
postype = p1
pos = 0,-75
vel = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
trans = add

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 22068
sprpriority = 0
postype = p1
pos = 40,0
vel = 0,0
bindtime = -1
under = 0
ownpal = 1
trans = add
PauseMoveTime = 9999999

[state a]
type = posset
trigger1 = time = 0
y = 0

[state a]
type = posadd
trigger1 = time = 0
x = 25

[state a]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

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

[Statedef 38853]
type    = A
movetype= I
physics = N

[State 1]
type = NotHitBy
trigger1 = time = 0
value = SCA,AA,AT,AP
time = 30+((palno=12)*30)

[State -1]
type = lifeadd
trigger1 = var(29) <= 1 && (var(30)=0||var(30)!=0&&palno!=12)
trigger1 = time = 0
value = -(lifemax*(((life>=0)*0.002)+((life>=lifemax*0.02)*0.004)+((life>=lifemax*0.1)*0.01)+((life>=lifemax*0.2)*0.065)))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[0,2])
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.001+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.005+(0.004*fvar(28))))+((life>=lifemax*0.2)*(0.01+(0.045*fvar(28))))))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[1,2])&&enemy,life<enemy,lifemax*0.95
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.003+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.004+(0.001*fvar(28))))))
absolute = 1

[State -1]
type = null;poweradd
trigger1 = time = 0
value = (50+((palno!=12)*30))+((life<=lifemax*0.2)*(50+((palno!=12)*30)))+((var(29)>=1)*200)+((var(30)!=0&&fvar(28)=0)*150)

[state -1]
type = varadd
trigger1 =palno=12&&time=0
fv = 26
value = 1

[State 5040, 2]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim != 5040
trigger2 = Time = 0
trigger2 = Anim != 5035
value = 5040

[State 5040, 3]
type = CtrlSet
trigger1 = HitOver
value = 1

[State 5040, 5]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5040, 6]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52 ;JUMPLAND

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

[Statedef 38852]
type    = A
movetype= I
physics = A

[State 1]
type = NotHitBy
trigger1 = time = 0
value = SCA,AA,AT,AP
time = 30+((palno=12)*30)

[State -1]
type = lifeadd
trigger1 = var(29) <= 1 && (var(30)=0||var(30)!=0&&palno!=12)
trigger1 = time = 0
value = -(lifemax*(((life>=0)*0.002)+((life>=lifemax*0.02)*0.004)+((life>=lifemax*0.1)*0.01)+((life>=lifemax*0.2)*0.065)))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[0,2])
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.001+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.005+(0.004*fvar(28))))+((life>=lifemax*0.2)*(0.01+(0.045*fvar(28))))))
absolute = 1

[State -1]
type = lifeadd
trigger1 = var(29)<=1&&var(30)!=0&&palno=12&&(fvar(28)=[1,2])&&enemy,life<enemy,lifemax*0.95
trigger1 = time = 0
value = -(lifemax*(((life>=0)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.003+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.004+(0.001*fvar(28))))))
absolute = 1

[State -1]
type = poweradd
trigger1 = time = 0
value = (50+((palno!=12)*30))+((life<=lifemax*0.2)*(50+((palno!=12)*30)))+((var(29)>=1)*200)+((var(30)!=0&&fvar(28)=0)*150)

[state -1]
type = varadd
trigger1 =palno=12&&time=0
fv = 26
value = 1

[State 50, 1]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 50, 2]
type = ChangeAnim
trigger1 = Time = 0
value = ifelse((vel x)=0, 41, ifelse((vel x)>0, 42, 43))

[State 50, 3]
type = ChangeAnim
trigger1 = Vel y > -2
trigger1 = SelfAnimExist(anim + 3)
persistent = 0
value = Anim + 3


;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;バリア（跳ね返しステート）
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 288888]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
;anim = 22132
ownpal = 1

[State 30450]
type = Changeanim
trigger1 = anim != 22132
value = 22132
ignorehitpause = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0

[State 1]
type = null;ReversalDef
triggerall = ishelper(288888)
trigger1 = root,palno = [1,11]
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = s22133
hitsound = s2562,31
numhits = 0
ignorehitpause = 1

[State 1]
type = ReversalDef
triggerall = ishelper(288888)
trigger1 = root,palno = 12
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s22133
hitsound = s2562,31
p1stateno = 288889-(power>=powermax*0.5&&(root,var(30)!=1||root,var(30)!=0&&root,fvar(28)=0))
p2stateno = IfElse((root,var(29)>=1),103999,13121)
;p1getp2state = (root,var(30)!=1||root,var(30)!=0&&root,fvar(28)=0)
;getpower = (Const(data.power))/900

[state 1]
type = targetdrop
trigger1 = root,alive=0||roundstate>=3&&enemy,alive=0
;excludeid = 288888

[state 1]
type = null;targetstate
triggerall = root,var(29) >= 1
trigger1 = target,stateno != [103999,104007]
value = 103999

[State 1]
type = targetLifeAdd
trigger1 = (gametime%10)=1
value = -(enemy,lifemax*(0.004+((enemy,movetype=A)*0.02)))
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = targetLifeAdd
trigger1 = enemy,life<=enemy,lifemax*0.3
value = -99999999999999999999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 1]
type = nothitby
trigger1 = 1
value = SCA

[State 1]
type = ChangeState
trigger1 = (root,stateno=2999||root,stateno=2205)
value = 288890+(root,stateno=2205)

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

[Statedef 288889]
type    = S
movetype= I
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22132
ownpal = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0

[state 2901,1]
type = nothitby
trigger1 = 1
value = SCA

[state -2]
type = parentvarset
trigger1 = RoundState <= 2 && root,anim = 0 && root,ctrl = 0 && root,var(54) <= 40
fv = 25
value = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 2]
type = destroyself
trigger1 = time>=(root,var(54)<=40)

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

[Statedef 288890]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22177
ownpal = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0

[state 1]
type = varset
trigger1 = numtarget&&target,ishelper=0||root,fvar(20)!=0
v = 10
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state 1]
type = varset
trigger1 = root,fvar(38)=2
trigger1 = root,time<150&&enemy,movereversed
trigger2 = root,time>=150
v = 11
value = (root,time<150)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 1]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s22133
hitsound = s2562,31
p2stateno = 169995

[State 1]
type = AttackDist
trigger1 = 1
value = 0

[State 1]
type = targetpowerAdd
trigger1 = 1
value = -(enemy,Const(data.power))
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = targetLifeAdd
trigger1 = (gametime%(1+((root,time<150)*3)))=1
value = -9999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 1]
type = targetstate
trigger1 = root,stateno=22050&&root,time>=150
value = 169995
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 1]
type = targetstate
trigger1 = var(11)!=0&&root,fvar(38)=2
trigger1 = enemy,alive&&root,time<150
value = 169995
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = Projectile
trigger1 = root,palno=12&&root,stateno=22050&&(root,time=[30,170])&&var(10)!=0
trigger1 = (GameTime%6)=1
attr = S, NA
projanim = 22177
projhitanim = -1
projid = 22177
projpriority = 9999999999
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
numhits = 0
damage    = 9999999999999999999999999999999
getpower = 0,0
givepower = -(enemy,Const(data.power))
hitflag = MAFD
guardflag = 
pausetime = 2,1
guard.pausetime = 2,1
sparkno = -1
sparkxy = 40,-74
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -0.2,-0.5
air.velocity = -0.2,-0.5
fall = 1
fall.recover = 0
yaccel = .7
p2stateno = 49000
ignorehitpause = 1

[state 1]
type = nothitby
trigger1 = 1
value = SCA

[State 1]
type = ChangeState
trigger1 = !(root,stateno=22050||root,stateno=2999)
value = 288888

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

[Statedef 288891]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22177
ownpal = 1

[State 1]
type = BindToroot
trigger1 = 1
pos = 0,0

[State 1]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s22133
hitsound = s2562,31
p2stateno = 2636

[State 1]
type = AttackDist
trigger1 = 1
value = 0

[State 1]
type = targetpowerAdd
trigger1 = 1
value = -(enemy,Const(data.power))
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = targetLifeAdd
trigger1 = root,stateno=2205&&(root,time=[20,220])
value = -99999999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 1]
type = targetstate
trigger1 = root,stateno=2205&&(root,time=[20,220])&&(GameTime%3) = 1
value = 2636
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 1]
type = nothitby
trigger1 = 1
value = SCA

[State 1]
type = ChangeState
trigger1 = root,stateno!=2205
value = 288888

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;相手状態
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 103999]
type    = A
movetype= I
physics = N
sprpriority = 4
velset = -2,-6

[State 1]
type = lifeadd
triggerall = prevstateno != [19000,19035]
trigger1 = time = 0
ignorehitpause = 99999999
value = -(Ceil(0.1 * Const(data.life)))
absolute = 1

[state a]
type = destroyself
trigger1 = ishelper

[State 10385]
type = NotHitBy
trigger1 = 1
value = SCA

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 5050, 1]
type = ChangeAnim
trigger1 = time = 0
value = 5070

[State 821, 1]
type = VelAdd
Trigger1 = time > 0
y = .39

[State -2]
type = SelfState
trigger1 = time >= 200
value = 0
ctrl = 1

[State 821, 4]
type = changeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 104000

;---------------------------------------------------------------------------
;相手制御
;相手地面
;---------------------------------------------------------------------------

[Statedef 104000]
type    = L
movetype= I
physics = N

[state a]
type = destroyself
trigger1 = ishelper

[State 10385]
type = NotHitBy
trigger1 = 1
value = SCA

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 1]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 10382]
type = VelSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
trigger1 = vel x > 1
x = 1

[State 10382]
type = FallEnvShake
trigger1 = Time = 0

[State 10382]
type = VarSet
trigger1 = Time = 0
sysvar(1) = floor(vel y)

[State 10382]
type = ChangeAnim
triggerall = time = 0
trigger1 = (anim != [5051,5059]) && (anim != [5061,5069])
trigger2 = !SelfAnimExist(5100 + (anim % 10))
value = 5100

[State 10382]
type = ChangeAnim
trigger1 = time = 0
trigger1 = (anim = [5051,5059]) || (anim = [5061,5069])
trigger1 = SelfAnimExist(5100 + (anim % 10))
value = 5100 + (anim % 10)

[State 10382]
type = PosSet
trigger1 = Time = 0
y = 0

[State 10382]
type = VelSet
trigger1 = Time = 0
y = 0

[State 10382]
type = VelMul
trigger1 = Time = 0
x = 0.75

[State 10382]
type = ChangeState
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
value = 104002

[State 10382]
type = GameMakeAnim
trigger1 = Time = 1
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14

[State 10382]
type = HitFallDamage
trigger1 = Time = 3

[State 10382]
type = PlaySnd
trigger1 = Time = 1
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)

[State 10382]
type = PosFreeze
trigger1 = 1

[State -2]
type = SelfState
trigger1 = time >= 300
value = 0
ctrl = 1

[State 10382]
type = ChangeState
trigger1 = AnimTime = 0
value = 104001

;---------------------------------------------------------------------------
;相手地面
;---------------------------------------------------------------------------

[Statedef 104001]
type    = L
movetype= I
physics = N

[state a]
type = destroyself
trigger1 = ishelper

[State 10385]
type = NotHitBy
trigger1 = 1
value = SCA

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 1]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 10383]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim != [5101,5109]
trigger2 = !SelfAnimExist(5160 + (anim % 10))
value = 5160

[State 10383]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim = [5101,5109]
trigger1 = SelfAnimExist(5160 + (anim % 10))
value = 5160 + (anim % 10)

[State 10383]
type = HitFallVel
trigger1 = Time = 0

[State 10383]
type = PosSet
trigger1 = Time = 0
y = 20

[State 10383]
type = VelAdd
trigger1 = 1
y = .4

[State 10383]
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 12
type = ChangeState
value = 104002

;---------------------------------------------------------------------------
;相手地面
;---------------------------------------------------------------------------

[Statedef 104002]
type    = L
movetype= I
physics = N

[state a]
type = destroyself
trigger1 = ishelper

[State 10385]
type = NotHitBy
trigger1 = 1
value = SCA

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 10384]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 10384]
type = FallEnvShake
trigger1 = Time = 0

[State 10384]
type = ChangeAnim
persistent = 0
trigger1 = SelfAnimExist(5110 + (anim % 10))
trigger1 = anim = [5081,5089]
value = 5110 + (anim % 10)

[State 10384]
type = ChangeAnim
triggerall = time = 0
triggerall = anim != [5110,5119]
trigger1 = anim != [5161,5169]
trigger2 = !SelfAnimExist(5170 + (anim % 10))
value = 5170

[State 10384]
type = ChangeAnim
triggerall = time = 0
triggerall = anim != [5110,5119]
trigger1 = anim = [5161,5169]
trigger1 = SelfAnimExist(5170 + (anim % 10))
value = 5170 + (anim % 10)

[State 10384]
type = HitFallDamage
trigger1 = Time = 0

[State 10384]
type = PosSet
trigger1 = Time = 0
y = 0

[State 10384]
type = VarSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) != 0
sysvar(1) = floor(vel y)

[State 10384]
type = PlaySnd
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)

[State 10384]
type = GameMakeAnim
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14

[State 10384]
type = VelSet
trigger1 = Time = 0
y = 0

[State 10384]
type = ChangeAnim
persistent = 0
triggerall = anim = [5171,5179]
triggerall = SelfAnimExist(5110 + (anim % 10))
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
value = 5110 + (anim % 10)

[State 10384]
type = ChangeAnim
persistent = 0
triggerall = Anim != [5111,5119]
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
value = 5110

[State 10384]
type = ChangeState
triggerall = !alive
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
trigger3 = Anim = [5110,5119]
value = 5150

[State 10384]
type = ChangeState
triggerall = alive
trigger1 = Time >= 30
value = 104004

[State -2]
type = SelfState
trigger1 = time >= 300
value = 0
ctrl = 1

[State 10384]
type = VarSet
trigger1 = SysVar(0)
trigger1 = Time = 0
sysvar(0) = 0

[State 10384]
type = VelMul
trigger1 = 1
x = 0.85

;---------------------------------------------------------------------------
;相手起き上がり
;---------------------------------------------------------------------------
[Statedef 104004]
type    = L
movetype= I
physics = N

[state a]
type = destroyself
trigger1 = ishelper

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 10385]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 10385] 
type = ChangeAnim
triggerall = time = 0
trigger1 = anim != [5111,5119]
trigger2 = !SelfAnimExist(5120 + (anim % 10))
value = 5120

[State 10385]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim = [5111,5119]
trigger1 = SelfAnimExist(5120 + (anim % 10))
value = 5120 + (anim % 10)

[State 10385]
type = VelSet
trigger1 = Time = 0
x = 0

[State 10385]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 10385]
type = HitFallSet
trigger1 = AnimTime = 0
value = 1

[State 10385]
type = NotHitBy
trigger1 = AnimTime = 0
value = , NT,ST,HT
time = 12

[State 10385]
type = NotHitBy
trigger1 = AnimTime = 0
value2 = SCA
time = 3

[State -2]
type = SelfState
trigger1 = time >= 300
value = 0
ctrl = 1

[State 10385]
type = ChangeState
trigger1 = AnimTime = 0
value = 104005
ctrl = 0

;---------------------------------------------------------------------------
; 立ち
;---------------------------------------------------------------------------

[Statedef 104005]
type = S
physics = S
sprpriority = 0
movetype = I
ctrl = 0

[State a] 
type = Afterimage
trigger1 = 1
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  0

[state a]
type = destroyself
trigger1 = ishelper

[State 1] 
type = turn 
trigger1 = p2dist x< 0 
value = 1

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA

[State a]
type = PalFX
trigger1 = (GameTime%2) = 1
time = 1
add = 100,100,180
ignorehitpause = 1

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 1]
type = lifeset
trigger1 = command = "holdup" || command = "holddown" && Random <= 25
ignorehitpause = 1
value = life - (Ceil((IfElse((command = "holdup"),0.004,1.0)) * Const(data.life)))

[State 1]
type = lifeset
trigger1 = alive
ignorehitpause = 1
value = life - (Ceil(0.002 * Const(data.life)))

[State 1]
type = lifeset
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 1]
type = powerset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 0, 1]
type = ChangeAnim
trigger1 = time = 0
value = 0

[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

[State 0, 3] 
type = VelSet
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050

[State 0, 4]
type = ChangeState
triggerall = alive
trigger1 = command = "holdfwd" || command = "holdback"
value = 104006
ctrl = 0

[State 0, 4]
type = selfState
triggerall = alive
trigger1 = time >= 500
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; 歩き
;---------------------------------------------------------------------------

[Statedef 104006]
type    = S
physics = N
sprpriority = 0
movetype = I
ctrl = 0

[State a] 
type = Afterimage
trigger1 = 1
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  0

[state a]
type = destroyself
trigger1 = ishelper

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State a]
type = PalFX
trigger1 = (GameTime%2) = 1
time = 1
add = 100,100,180
ignorehitpause = 1

[State -1]
type = CtrlSet
trigger1 = ctrl = 1
value = 0

[State 1]
type = lifeset
trigger1 = command = "holdup" || command = "holddown" && Random <= 25
ignorehitpause = 1
value = life - (Ceil((IfElse((command = "holdup"),0.004,1.0)) * Const(data.life)))

[State 1]
type = lifeset
trigger1 = (GameTime%4) = 1
ignorehitpause = 1
value = life - (Ceil(0.001 * Const(data.life)))

[State 1]
type = lifeset
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 1]
type = powerset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 20, 1]
type = VelSet
trigger1 = command = "holdfwd"
x = const(velocity.walk.fwd.x)

[State 20, 2]
type = VelSet
trigger1 = command = "holdback"
x = const(velocity.walk.back.x)

[State 20, 3]
type = ChangeAnim
triggerall = vel x > 0
trigger1 = Anim != 20
value = 20

[State 20, 4]
type = ChangeAnim
triggerall = vel x < 0
trigger1 = Anim != 21
value = 21

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050

[State 0, 4]
type = ChangeState
triggerall = alive
trigger1 = !(command = "holdfwd" || command = "holdback")
value = 104005
ctrl = 0

[State 0, 4]
type = selfState
triggerall = alive
trigger1 = time >= 500
value = 0
ctrl = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;投げられている相手　火柱ステート
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 14200]
type    = A
movetype= H
physics = N
velset = 0,0
sprpriority = 1

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State 1]
type = AssertSpecial
trigger1 = time <= 25
flag = invisible

[State 1]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 820, 1]
type = ChangeAnim
Trigger1 = Time = 0
value = 5050

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA

[state a]
type = velset
trigger1 = time = 0
x = 0
y = -60

[state a]
type = veladd
trigger1 = 1
y = 1.4

[State 821, 3] 
type = lifeadd
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = -(Ceil(0.06 * Const(data.life)))
absolute = 1

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 1020, 4]
type = EnvShake
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
time = 10
ampl = -5
freq = 95
phase = 95

[State 821, 3] 
type = SelfState
triggerall = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; Varのラウンド持ち越し
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 5900]
type = S

[State 5900,1] ;Clear all int variables
type = VarRangeSet
trigger1 = roundsexisted = 0
farst = 2
last = 59
value = 0

[State 5900,2];Clear all float variables
type = null;VarRangeSet
trigger1 = roundsexisted = 0
fvalue = 0

[State 5900,3] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;--------------------------------------------------------------------------
;  ヘルパーアーマー
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 190010]
type    = S
movetype= I
physics = S

[State 190010];透明に
type = AssertSpecial
trigger1 = 1
flag = Invisible
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 190010];本体に張り付かせる
type = BindToRoot
trigger1 = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 190010];
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 0
stateno = 190010
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 190010];受けたら150time無敵。
type = nothitby
trigger1 = helper(190010),GetHitVar(Damage)
time = 150
value= SCA,AA,AT,AP
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 190010];当たり判定のアニメを本体と同じに
type = ChangeAnim
trigger1 = 1
value = parent,Anim
elem = parent,AnimElemNo(0)
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 190010];
type = Turn
trigger1 = Facing != parent,Facing
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;---------------------------------------------------------------------------
; HITG_SHAKE
;---------------------------------------------------------------------------

[Statedef 5000]
type    = S
movetype= H
physics = N
velset = 0,0

[state 5000]
type = destroyself
trigger1 = ishelper

[State 5000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(groundtype) = 1),5000,5010) + GetHitVar(animtype)

[State 5000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 5000]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 5000]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 5000]
type = StateTypeSet
trigger1 = Time = 0
trigger1 = GetHitVar(yvel) != 0 || GetHitVar(fall)
trigger2 = Pos Y != 0
statetype = a

[State 5000]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0 && !GetHitVar(fall)
value = 5001

[State 5000]
type = ChangeState
trigger1 = HitShakeOver
value = 5030

[State 5000]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 5000]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 5000]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------------------------------------
; HITG_SLIDE
;---------------------------------------------------------------------------

[Statedef 5001]
type    = S
movetype= H
physics = S

[state 5001]
type = destroyself
trigger1 = ishelper

[State 5001]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 5001]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5005 + GetHitVar(animtype) + (GetHitVar(groundtype)=2)*10

[State 5001]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 5001]
type = VelSet
trigger1 = HitOver
x = 0

[State 5001]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 5001]
type = ChangeState
trigger1 = HitOver
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; HITC_SHAKE
;---------------------------------------------------------------------------

[Statedef 5010]
type    = C
movetype= H
physics = N
velset = 0,0

[state 5010]
type = destroyself
trigger1 = ishelper

[State 5010]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = 5020 + GetHitVar(animtype)

[State 5010]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 5010]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 5010]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 5010]
type = StateTypeSet
triggerall = Time = 0
trigger1 = GetHitVar(yvel) != 0 || GetHitVar(fall)
trigger2 = Pos Y != 0
statetype = a

[State 5010]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0 && !GetHitVar(fall)
value = 5011

[State 5010]
type = ChangeState
trigger1 = HitShakeOver
value = 5030

[State 5010]
type = ForceFeedback
trigger1 = anim = 5020
persistent = 0
time = 6
waveform = square

[State 5010]
type = ForceFeedback
trigger1 = anim = 5021
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 5010]
type = ForceFeedback
trigger1 = anim = 5022
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------------------------------------
; HITC_SLIDE
;---------------------------------------------------------------------------

[Statedef 5011]
type    = C
movetype= H
physics = C

[state 5011]
type = destroyself
trigger1 = ishelper

[State 5011]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 5011]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5025 + GetHitVar(animtype)

[State 5011]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 5011]
type = VelSet
trigger1 = HitOver
x = 0

[State 5011]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 5011]
type = ChangeState
trigger1 = HitOver
value = 11
ctrl = 1

;---------------------------------------------------------------------------
; HITA_SHAKE
;---------------------------------------------------------------------------

[Statedef 5020]
type    = A
movetype= H
physics = N
velset = 0,0

[state 5020]
type = destroyself
trigger1 = ishelper

[State 5020]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(airtype) = 1),5000,5010) + GetHitVar(animtype)

[State 5020]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 5020]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 5020]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 5020]
type = ChangeState
trigger1 = HitShakeOver
value = 5030

[State 5020]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 5020]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 5020]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
trigger4 = anim = [5051,5059]
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------------------------------------
; HITA_UP
;---------------------------------------------------------------------------

[Statedef 5030]
type    = A
movetype= H
physics = N
ctrl = 0

[state 5030]
type = destroyself
trigger1 = ishelper

[State 5030]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5030]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 5030]
type = ChangeState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0 
trigger2 = Pos Y >= 10 
value = 5040

[State 5030]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0 
trigger2 = Pos Y >= 10
value = 5050 

[State 5030]
type = ChangeState
trigger1 = AnimTime = 0
value = 5035 

;---------------------------------------------------------------------------
; HITA_UP_T (transition)
;---------------------------------------------------------------------------

[Statedef 5035]
type    = A
movetype= H
physics = N

[state 5035]
type = destroyself
trigger1 = ishelper

[State 5035]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5035)
trigger1 = Anim != [5051,5059] 
trigger1 = Anim != 5090 
value = 5035

[State 5035]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5035]
type = ChangeState
triggerall = !HitFall
trigger1 = HitOver  
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0   
trigger3 = Pos Y >= 10  
trigger4 = Time = 0     
trigger4 = Anim != 5035
value = 5040 

[State 5035]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver  
trigger2 = AnimTime = 0 
trigger3 = Vel Y > 0   
trigger3 = Pos Y >= 10  
trigger4 = Time = 0    
trigger4 = Anim != 5035 
value = 5050

;---------------------------------------------------------------------------
; HITA_RECOV
;---------------------------------------------------------------------------

[Statedef 5040]
type    = A
movetype= H
physics = N

[state 5040]
type = destroyself
trigger1 = ishelper

[State 5040]
type = ChangeState
trigger1 = !Alive
value = 5050

[State 5040]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim != 5040
trigger2 = Time = 0
trigger2 = Anim != 5035
value = 5040

[State 5040]
type = CtrlSet
trigger1 = HitOver
value = 1

[State 5040]
type = StateTypeSet
trigger1 = HitOver
movetype = I

[State 5040]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5040]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 52

;---------------------------------------------------------------------------
; HITA_FALL
;---------------------------------------------------------------------------

[Statedef 5050]
type    = A
movetype= H
physics = N

[state 5050]
type = destroyself
trigger1 = ishelper

[State 5050]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090
value = 5050

[State 5050]
type = ChangeAnim
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 5050]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5050]
type = ChangeState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200

[State 5050]
type = ChangeState
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210

[State 5050]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100

;---------------------------------------------------------------------------
; HIT_TRIP (shaking)
;---------------------------------------------------------------------------

[Statedef 5070]
type    = A
movetype= H
physics = N
velset = 0,0

[state 5070]
type = destroyself
trigger1 = ishelper

[State 5070]
type = ChangeAnim 
trigger1 = 1
value = 5070

[State 5070]
type = ChangeState
trigger1 = HitShakeOver
value = 5071

[State 5070]
type = ForceFeedback
trigger1 = time = 0
time = 12
waveform = sinesquare
ampl = 140

;---------------------------------------------------------------------------
; HIT_TRIP2
;---------------------------------------------------------------------------

[Statedef 5071]
type    = A
movetype= H
physics = N

[state 5071]
type = destroyself
trigger1 = ishelper

[State 5071]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 5071]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 5071]
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 15
type = ChangeState
value = 5110

;---------------------------------------------------------------------------
; HITL_SHAKE
;---------------------------------------------------------------------------

[Statedef 5080]
type    = L
movetype= H
physics = N
velset = 0,0

[state 5080]
type = destroyself
trigger1 = ishelper

[State 5080]
type = VarSet
trigger1 = time = 0
sysvar(2) = ifelse (GetHitVar(yvel) = 0, 5080, 5090)

[State 5080]
type = VarAdd
trigger1 = time = 0
trigger1 = (anim = [5081,5089]) || (anim = [5111,5119])
trigger1 = SelfAnimExist(sysvar(2) + (anim % 10))
sysvar(2) = anim % 10

[State 5080]
type = VarSet
trigger1 = time = 0
trigger1 = sysvar(2) = 5090
trigger1 = !SelfAnimExist(5090)
sysvar(2) = 5030

[State 5080]
type = ChangeAnim
trigger1 = 1
value = sysvar(2)

[State 5080, 4]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 5081

[State 5080]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) != 0
value = 5030

;---------------------------------------------------------------------------
; HITL_SLIDE
;---------------------------------------------------------------------------

[Statedef 5081]
type    = L
movetype= H
physics = C

[state 5081]
type = destroyself
trigger1 = ishelper

[State 5081]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 5081]
type = VelSet
trigger1 = HitOver
x = 0

[State 5081]
type = VarSet
trigger1 = Time = 0
sysvar(0) = 1

[State 5081]
type = ChangeState
trigger1 = HitOver
value = 5110

;---------------------------------------------------------------------------
; HIT_BOUNCE
;---------------------------------------------------------------------------

[Statedef 5100]
type    = L
movetype= H
physics = N

[state 5100]
type = destroyself
trigger1 = ishelper

[State 5100]
type = Afterimage
trigger1 = 1
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  0

[state 5100]
type = palfx
trigger1 = 1
time = 0

[State 5100]
type = VelSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
trigger1 = vel x > 1
x = 1

[State 5100]
type = FallEnvShake
trigger1 = Time = 0

[State 5100]
type = VarSet
trigger1 = Time = 0
sysvar(1) = floor(vel y)

[State 5100]
type = ChangeAnim
triggerall = time = 0
trigger1 = (anim != [5051,5059]) && (anim != [5061,5069])
trigger2 = !SelfAnimExist(5100 + (anim % 10))
value = 5100

[State 5100]
type = ChangeAnim
trigger1 = time = 0
trigger1 = (anim = [5051,5059]) || (anim = [5061,5069])
trigger1 = SelfAnimExist(5100 + (anim % 10))
value = 5100 + (anim % 10)

[State 5100]
type = PosSet
trigger1 = Time = 0
y = 0

[State 5100]
type = VelSet
trigger1 = Time = 0
y = 0

[State 5100]
type = VelMul
trigger1 = Time = 0
x = 0.75

[State 5100]
type = ChangeState
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) = 0
value = 5110

[State 5100]
type = GameMakeAnim
trigger1 = Time = 1
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14

[State 5100]
type = HitFallDamage
trigger1 = Time = 3

[State 5100]
type = PlaySnd
trigger1 = Time = 1
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)

[State 5100]
type = PosFreeze
trigger1 = 1

[State 5100]
type = ChangeState
trigger1 = AnimTime = 0
value = 5101

[State 5100]
type = ForceFeedback
trigger1 = Time = 0
waveform = sinesquare
ampl = 128,-3,-.2,.005
time = 20

;---------------------------------------------------------------------------
; HIT_BOUNCE
;---------------------------------------------------------------------------

[Statedef 5101]
type    = L
movetype= H
physics = N

[state 5101]
type = destroyself
trigger1 = ishelper

[State 5101]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim != [5101,5109]
trigger2 = !SelfAnimExist(5160 + (anim % 10))
value = 5160

[State 5101]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim = [5101,5109]
trigger1 = SelfAnimExist(5160 + (anim % 10))
value = 5160 + (anim % 10)

[State 5101]
type = HitFallVel
trigger1 = Time = 0

[State 5101]
type = PosSet
trigger1 = Time = 0
y = 20

[State 5101]
type = VelAdd
trigger1 = 1
y = .4

[State 5101]
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 12
type = ChangeState
value = 5110

;---------------------------------------------------------------------------
; HIT_LIEDOWN
;---------------------------------------------------------------------------

[Statedef 5110]
type    = L
movetype= H
physics = N

[state 5110]
type = destroyself
trigger1 = ishelper

[State 5110]
type = Afterimage
trigger1 = 1
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  0

[state 5110]
type = palfx
trigger1 = 1
time = 0

[State 5110]
type = FallEnvShake
trigger1 = Time = 0

[State 5110]
type = ChangeAnim
persistent = 0
trigger1 = SelfAnimExist(5110 + (anim % 10))
trigger1 = anim = [5081,5089]
value = 5110 + (anim % 10)

[State 5110]
type = ChangeAnim
triggerall = time = 0
triggerall = anim != [5110,5119]
trigger1 = anim != [5161,5169]
trigger2 = !SelfAnimExist(5170 + (anim % 10))
value = 5170

[State 5110]
type = ChangeAnim
triggerall = time = 0
triggerall = anim != [5110,5119]
trigger1 = anim = [5161,5169]
trigger1 = SelfAnimExist(5170 + (anim % 10))
value = 5170 + (anim % 10)

[State 5110]
type = HitFallDamage
trigger1 = Time = 0

[State 5110]
type = PosSet
trigger1 = Time = 0
y = 0

[State 5110]
type = VarSet
trigger1 = Time = 0
trigger1 = GetHitVar(fall.yvel) != 0
sysvar(1) = floor(vel y)

[State 5110]
type = PlaySnd
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = F7, (sysvar(1) > 5) + (sysvar(1) > 14)

[State 5110]
type = GameMakeAnim
trigger1 = Time = 0
trigger1 = !SysVar(0)
value = 60 + (sysvar(1) > 5) + (sysvar(1) > 14)
pos = 0, 0
under = sysvar(1) <= 14

[State 5110]
type = VelSet
trigger1 = Time = 0
y = 0

[State 5110]
type = ChangeAnim
persistent = 0
triggerall = anim = [5171,5179]
triggerall = SelfAnimExist(5110 + (anim % 10))
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
value = 5110 + (anim % 10)

[State 5110]
type = ChangeAnim
persistent = 0
triggerall = Anim != [5111,5119]
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
value = 5110

[State 5110]
type = ChangeState
triggerall = !alive
trigger1 = AnimTime = 0
trigger2 = SysVar(0)
trigger3 = Anim = [5110,5119]
value = 5150

[State 5110]
type = VarSet
trigger1 = SysVar(0)
trigger1 = Time = 0
sysvar(0) = 0

[State 5110]
type = VelMul
trigger1 = 1
x = 0.85

[State 5110]
type = ForceFeedback
trigger1 = alive
trigger1 = Time = 0
time = 8
ampl = 240
waveform = sine

[State 5110]
type = ForceFeedback
trigger1 = !alive
trigger1 = Time = 0
ampl = 200, 7, -.467
time = 30
waveform = sine

;---------------------------------------------------------------------------
; HIT_GETUP
;---------------------------------------------------------------------------

[Statedef 5120]
type    = L
movetype= I
physics = N

[state 5120]
type = destroyself
trigger1 = ishelper

[State 5120]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim != [5111,5119]
trigger2 = !SelfAnimExist(5120 + (anim % 10))
value = 5120

[State 5120]
type = ChangeAnim
triggerall = time = 0
trigger1 = anim = [5111,5119]
trigger1 = SelfAnimExist(5120 + (anim % 10))
value = 5120 + (anim % 10)

[State 5120]
type = VelSet
trigger1 = Time = 0
x = 0

[State 5120]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 5120]
type = HitFallSet
trigger1 = AnimTime = 0
value = 1

[State 5120]
type = NotHitBy
trigger1 = AnimTime = 0
value = , NT,ST,HT
time = 12

[State 5120]
type = NotHitBy
trigger1 = AnimTime = 0
value2 = SCA
time = 3

[State 5120]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; HIT_LIEDEAD (やられた）
[Statedef 5150]
type    = L
movetype= H
physics = N
sprpriority = -3

[State 1]
type = AssertSpecial
trigger1 = name != "SARIEL" && prevstateno = 104010 && !alive
flag = invisible
flag1 = noko
flag2 = noshadow
flag3 = globalnoshadow

[State 13121]
type = lifeset
trigger1 = prevstateno = 104010 && !alive
ignorehitpause = 99999999
value = 1000

[State 13121]
type = powerset
trigger1 = prevstateno = 104010 && !alive
ignorehitpause = 99999999
value = 1000

[state a]
type = destroyself
trigger1 = ishelper

[State 5150, 1];5140
type = ChangeAnim
triggerall = Time = 0
triggerall = SelfAnimExist(5140)
trigger1 = (anim != [5111,5119]) && (anim != [5171,5179])
trigger2 = !SelfAnimExist(5140 + (anim % 10))
value = 170

[State 5150, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (anim = [5111,5119]) || (anim = [5171,5179])
trigger1 = SelfAnimExist(5140 + (anim % 10))
value = 5140 + (anim % 10)

[State 5150, 4]
type = ChangeAnim
persistent = 0
;trigger1 = Time = 0
trigger1 = MatchOver = 1
trigger1 = Anim = [5140,5149]
trigger1 = SelfAnimExist(anim+10)
value = anim+10

[State 5150, 5];5110
type = ChangeAnim
trigger1 = Time = 0
trigger1 = Anim != [5140,5159]
trigger1 = Anim != [5110,5119]
value = 170

[State 5150, 6]
type = VelMul
trigger1 = 1
x = 0.85

[State 5150, 7]
type = VelSet
trigger1 = Vel x < .05
persistent = 0
x = 0

[State 5150, 8]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 5200, 3]
type = SelfState
trigger1 = 1
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 10
value = 5201

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

[Statedef 169992]
type    = S
physics = S
anim = 22181

[State 169992]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = noshadow
flag3 = globalnoshadow

[State 169992]
type = BindToroot
trigger1 = 1

[State 169992]
type = PlayerPush
trigger1 = 1
value = 0

[State 169992]
type = PosSet
trigger1 = 1 
X = root, Pos X

[State 3874]
type = nothitby
trigger1 =ishelper
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 169992]
type = helper
trigger1 = numhelper(1699920) = 0 && roundstate <= 2
id = 1699920
persistent = 1
name = "SARIEL"
pos = 0,0
postype = P1
stateno = 169992
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State 2]
type = destroyself
trigger1 = root,stateno != 22050 || roundstate >= 3 || enemy,numprojid(169994)=0
ignorehitpause = 1

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

[Statedef 169993]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 22060
ownpal = 1

[State 169993]
type = BindToroot
trigger1 = 1
pos = 0,0

[State 169993]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 169993]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA, AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
numhits = 0
sparkno = -1
hitsound = -1
p2stateno = 169995
getpower = 0

[state 169993]
type = nothitby
trigger1 = 1
value = SCA

[state 169993]
type = destroyself
trigger1 = time >= 1

;---------------------------------------------------------------------------
;ワイヤーダメージ
;---------------------------------------------------------------------------

[Statedef 10210];相手
type    = A
movetype= H
physics = N
velset = 0,0;-13,-.5

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State 1021,0]
type = turn
Trigger1 = frontedgedist <= 0
value = 1

[State 1021,0]
type = velset
trigger1 = time = 1
x = -13
y = -.6

[State 840, 2]
type = afterimage
trigger1 = time = 5
time = 13
length = 3
PalBright   =   0,  0,  0
PalContrast = 255,255,255
PalAdd      =   0,  0,  0
PalMul      =  1,1,1
FrameGap = 2
ignorehitpause = 1

[State 9000, 1]
type = ScreenBound
trigger1 = 1
movecamera = 1,0

[State 821, 1]
type = VelAdd
Trigger1 = time > 4
y = .14

[State 820, 1]
type = ChangeAnim
Trigger1 = Time = 0
value = 5010

[state 190]
type = changestate
Trigger1 = backedgedist <= 0
Trigger2 = frontedgedist <= 0
value = 10220

[Statedef 10220];相手2
type    = A
movetype= H
physics = N
velset = 3.5,-8.2

[State 820, 1]
type = ChangeAnim
Trigger1 = Time = 0
value = 5030

[State 9000, 1]
type = null;ScreenBound
trigger1 = 1
movecamera = 1,0

[State 9000, 1]
type = turn
trigger1 = time = 0
value = 1

[State 821, 1]
type = VelAdd
Trigger1 = time > 3
y = .5
x = .05

[State 821, 4]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100

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

[Statedef 13121]
type    = A
poweradd = 0
ctrl = 0
velset = 0,0
sprpriority = -1
movetype = H

[State 13121]
type = lifeadd
trigger1 = time = 0
ignorehitpause = 1
value = -(Ceil(0.1 * Const(data.life)))
absolute = 1

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State 1]
type = changestate
triggerall = time = 0
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1
trigger1 = (ishelper(1120)||ishelper(2000)||ishelper(2222))
trigger1 = root,var(46)>=1&&root,palno=12
value = 2229902

[State 1]
type = AssertSpecial
trigger1 = ishelper
flag = invisible
flag2 = noshadow
flag3 = globalnoshadow

[State 1]
type = statetypeset
trigger1 = time = 0
trigger1 = pos y = 0
value = S

[State 812,4]
type = changeanim
trigger1 =!ishelper
trigger1 = selfanimexist(anim)
value = anim
elem = animelemno(-1)

[state 1]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(38)=2
v = 2
value = prevstateno

[state 1]
type = varset
trigger1 = ishelper&&time=0&&enemynear,name="SARIEL"&&enemynear,fvar(38)=2
v = 3
value = anim

[state 1]
type = destroyself
trigger1 = ishelper&&time>=1&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=0&&enemynear,fvar(38)=2
trigger2 = ishelper&&time>=1&&enemynear,name="SARIEL"&&enemynear,fvar(38)=1
trigger3 = ishelper&&time>=5

[state 1]
type = changestate
trigger1 = ishelper&&time>=1&&enemynear,name="SARIEL"&&enemynear,fvar(19)!=1&&enemynear,fvar(38)=2
value = 2229900

[State 1]
type = changestate
trigger1 = time >=1&&!ishelper
value = 10380

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

[Statedef 13120]
type    = A
poweradd = 0
ctrl = 0
velset = 0,0
sprpriority = -1
movetype = H

[state 1]
type = destroyself
trigger1 = ishelper

[State 1]
type = PalFX
trigger1 = time = 0
time = 3
color = 0
add = 0,0,0
ignorehitpause = 1

[State 1]
type = PalFX
trigger1 = time = 3
time = 3
color = 0
add = 40,40,40
ignorehitpause = 1

[State 1]
type = PalFX
trigger1 = time = 5
time = 3
color = 0
add = 60,60,60
ignorehitpause = 1

[State 1]
type = statetypeset
trigger1 = time = 0
trigger1 = pos y = 0
value = S

[State 1]
type = PalFX
trigger1 = time >= 7
trigger1 = Time < 100
time = 2
color = 0
add = 35,35,35
ignorehitpause = 1

[State 812,4]
type = changeanim
trigger1 = selfanimexist(anim)
value = anim
elem = animelemno(-1)

[State 4000, PalFX]
type = PalFX
trigger1 = Time % 3 = 0
trigger1 = Time >= 100
time = 1
color = 0
add = 35,35,35
ignorehitpause = 1

[State 103]
type = changestate
trigger1 = time = 120
value = 10380

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

[Statedef 10380]
type    = A
movetype= H
physics = N
sprpriority = 4
velset = -4,-6

[state a]
type = destroyself
trigger1 = ishelper

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 5050, 1]
type = ChangeAnim
trigger1 = time=0
value = 5070

[State 821, 1]
type = VelAdd
Trigger1 = time > 0
y = .39

[State 821, 4]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100

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

[Statedef 104010]
type    = A
movetype= H
physics = N
sprpriority = 4
velset = 0,80

[State a] 
type = Afterimage
trigger1 = 1
trans = add
PalContrast =  0, 0, 0
PalBright = 0,0,0
time    =  0

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA

[State 1]
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 1]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = noshadow
flag3 = globalnoshadow

[state a]
type = destroyself
trigger1 = ishelper

[State 13121]
type = lifeset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 5050, 1]
type = ChangeAnim
trigger1 = time = 0
value = 5070

[State 821, 1]
type = VelAdd
Trigger1 = time > 0
y = .39

[State 821, 4]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5150

;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; 痺れ
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------

[Statedef 9000]
type    = S
movetype= H
physics = N
velset = 0,0

[State 13121]
type = lifeadd
trigger1 = time = 0
ignorehitpause = 1
value = -(Ceil(0.01 * Const(data.life)))
absolute = 1

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = lifeadd
trigger1 = life <= (Ceil(0.05 * Const(data.life)))
value = -9999999
absolute = 1

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[state a]
type = destroyself
trigger1 = ishelper

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9000, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9000, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(groundtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9000, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9000, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9000, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9000, 6]
type = StateTypeSet
trigger1 = Time = 0
trigger1 = GetHitVar(yvel) != 0 && GetHitVar(fall)
trigger2 = Pos Y != 0
value = a

[State 9000, 7]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 9001

[State 9000, 8]
type = ChangeState
trigger1 = HitShakeOver
value = 9030

[State 9000, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9000, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9000, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

[Statedef 9001]
type    = S
movetype= H
physics = S

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9001, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9001, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9001, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5005 + GetHitVar(animtype) + (GetHitVar(groundtype)=2)*10

[State 9001, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9001, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9001, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 9001, 7]
type = SelfState
trigger1 = HitOver
value = 0
ctrl = 1

;---------------------------------------------
[Statedef 9010]
type    = C
movetype= H
physics = N
velset = 0,0

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9010, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9010, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = 5020 + GetHitVar(animtype)

[State 9010, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9010, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9010, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9010, 6]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 9011

[State 9010, 7]
type = ChangeState
trigger1 = HitShakeOver
value = 9030

[State 9010, FFB Light]
type = ForceFeedback
trigger1 = anim = 5020
persistent = 0
time = 6
waveform = square

[State 9010, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5021
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9010, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5022
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 9011]
type    = C
movetype= H
physics = C

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9011, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9011, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9011, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5025 + GetHitVar(animtype)

[State 9011, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9011, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9011, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 9011, 7]
type = SelfState
trigger1 = HitOver
value = 11
ctrl = 1

;---------------------------------------------
[Statedef 9020]
type    = A
movetype= H
physics = N
velset = 0,0

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9020, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9020, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(airtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9020, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9020, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 9020, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9020, 6]
type = ChangeState
trigger1 = HitShakeOver
value = 9030

[State 9020, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9020, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9020, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
trigger4 = anim = [5051,5059]
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 9030]
type    = A
movetype= H
physics = N
ctrl = 0

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9030, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9030, 2]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9030, 3]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 9030, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 5040

[State 9030, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 9050

[State 9030, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 9035

;---------------------------------------------
[Statedef 9035]
type    = A
movetype= H
physics = N

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9035, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9035, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5035)
trigger1 = Anim != [5051,5059]
trigger1 = Anim != 5090
value = 5035

[State 9035, 3]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9035, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035
value = 5040

[State 9035, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035.
value = 9050

;---------------------------------------------
[Statedef 9050]
type    = A
movetype= H
physics = N

[State 9000, 1]
type = ScreenBound
trigger1 = stateno = 2999
trigger1 = 1
movecamera = 0,0

[State 9050, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9050, 2]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090
value = 5050

[State 9050, 3]
type = ChangeAnim
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 9050, 4]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9050, 5]
type = SelfState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200

[State 9050, 6]
type = SelfState
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210

[State 9050, 7]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100

;---------------------------------------------------------------------------
; 痺れ2
;---------------------------------------------------------------------------

[Statedef 19000]
type    = S
movetype= H
physics = N
velset = 0,0

[state a]
type = destroyself
trigger1 = ishelper

[State 13121]
type = lifeadd
trigger1 = time = 0
trigger1 = enemynear,name="SARIEL"&&enemynear,var(5)=1&&!ishelper&&enemynear,numhelper(22121)>=1&&enemynear,palno=12
ignorehitpause = 1
value = -(Ceil(0.0005 * Const(data.life)))
absolute = 1

[State 13121]
type = lifeadd
trigger1 = time = 0
trigger1 = !(enemynear,name="SARIEL"&&enemynear,var(5)=1&&!ishelper&&enemynear,numhelper(22121)>=1&&enemynear,palno=12)
ignorehitpause = 1
value = -(Ceil(0.01 * Const(data.life)))
absolute = 1

[State 13121]
type = lifeset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = powerset
triggerall = enemynear,name="SARIEL"&&enemynear,palno=12
trigger1 = life <= (Ceil(0.3 * Const(data.life)))
ignorehitpause = 1
value = 0

[State 13121]
type = lifeadd
trigger1 = life <= (Ceil(0.05 * Const(data.life)))
value = -9999999
absolute = 1

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State 9000, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(groundtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9000, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9000, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9000, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9000, 6]
type = StateTypeSet
trigger1 = Time = 0
trigger1 = GetHitVar(yvel) != 0 && GetHitVar(fall)
trigger2 = Pos Y != 0
value = a

[State 9000, 7]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 19001

[State 9000, 8]
type = ChangeState
trigger1 = HitShakeOver
value = 19030

[State 9000, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9000, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9000, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 19001]
type    = S
movetype= H
physics = S

[State 9001, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9001, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5005 + GetHitVar(animtype) + (GetHitVar(groundtype)=2)*10

[State 9001, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9001, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9001, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 9001, 7]
type = SelfState
trigger1 = HitOver
value = 0
ctrl = 1

;---------------------------------------------
[Statedef 19010]
type    = C
movetype= H
physics = N
velset = 0,0

[State 9010, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = 5020 + GetHitVar(animtype)

[State 9010, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9010, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9010, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9010, 6]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 19011

[State 9010, 7]
type = ChangeState
trigger1 = HitShakeOver
value = 19030

[State 9010, FFB Light]
type = ForceFeedback
trigger1 = anim = 5020
persistent = 0
time = 6
waveform = square

[State 9010, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5021
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9010, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5022
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 19011]
type    = C
movetype= H
physics = C

[State 9011, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9011, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5025 + GetHitVar(animtype)

[State 9011, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9011, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9011, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[State 9011, 7]
type = SelfState
trigger1 = HitOver
value = 11
ctrl = 1

;---------------------------------------------
[Statedef 19020]
type    = A
movetype= H
physics = N
velset = 0,0

[State 9020, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(airtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9020, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9020, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 9020, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9020, 6]
type = ChangeState
trigger1 = HitShakeOver
value = 19030

[State 9020, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9020, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9020, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
trigger4 = anim = [5051,5059]
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 19030]
type    = A
movetype= H
physics = N
ctrl = 0

[State 9030, 2]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9030, 3]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 9030, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 5040

[State 9030, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 19050

[State 9030, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 19035

;---------------------------------------------
[Statedef 19035]
type    = A
movetype= H
physics = N

[State 9035, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5035)
trigger1 = Anim != [5051,5059]
trigger1 = Anim != 5090
value = 5035

[State 9035, 3]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9035, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035
value = 5040

[State 9035, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035.
value = 19050

;---------------------------------------------
[Statedef 19050]
type    = A
movetype= H
physics = N

[State 9050, 2]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090
value = 5050

[State 9050, 3]
type = ChangeAnim
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 9050, 4]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9050, 5]
type = SelfState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200

[State 9050, 6]
type = SelfState
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210

[State 9050, 7]
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100

;---------------------------------------------------------------------------
; 痺れ3
;---------------------------------------------------------------------------

[Statedef 49000]
type    = S
movetype= H
physics = N
velset = 0,0

[state a]
type = destroyself
trigger1 = ishelper

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1]
type = lifeadd
trigger1 = 1
value = -9999999999
absolute = 1

[State 1]
type = lifeset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 1]
type = powerset
trigger1 = 1
ignorehitpause = 1
value = 0

[State 13121]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
value = 0

[State 1]
type = VarRangeSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
fvalue = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(1) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(2) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(3) = 0
IgnoreHitPause = 1

[State 1]
type = VarSet
trigger1 = enemynear,name="SARIEL"&&enemynear,fvar(37)=1&&!ishelper&&name!="SARIEL"
sysvar(4) = 0
IgnoreHitPause = 1

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9000, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9000, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(groundtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9000, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9000, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9000, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9000, 6]
type = StateTypeSet
trigger1 = Time = 0
trigger1 = GetHitVar(yvel) != 0 && GetHitVar(fall)
trigger2 = Pos Y != 0
value = a

[State 9000, 7]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 49001

[State 9000, 8]
type = ChangeState
trigger1 = HitShakeOver
value = 49030

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9000, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9000, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9000, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 49001]
type    = S
movetype= H
physics = S

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9001, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9001, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9001, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5005 + GetHitVar(animtype) + (GetHitVar(groundtype)=2)*10

[State 9001, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9001, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9001, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9001, 7]
type = SelfState
trigger1 = HitOver
value = 0
ctrl = 1

;---------------------------------------------
[Statedef 49010]
type    = C
movetype= H
physics = N
velset = 0,0

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9010, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9010, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = 5020 + GetHitVar(animtype)

[State 9010, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9010, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype) ;5051 - 4 + type

[State 9010, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9010, 6]
type = ChangeState
trigger1 = HitShakeOver
trigger1 = GetHitVar(yvel) = 0
value = 49011

[State 9010, 7]
type = ChangeState
trigger1 = HitShakeOver
value = 49030

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9010, FFB Light]
type = ForceFeedback
trigger1 = anim = 5020
persistent = 0
time = 6
waveform = square

[State 9010, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5021
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9010, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5022
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 49011]
type    = C
movetype= H
physics = C

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9011, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9011, 2]
type = HitVelSet
trigger1 = Time = 0
x = 1

[State 9011, 3]
type = ChangeAnim
trigger1 = AnimTime = 0
value = 5025 + GetHitVar(animtype)

[State 9011, 4]
type = VelMul
trigger1 = Time >= GetHitVar(slidetime)
x = .6

[State 9011, 5]
type = VelSet
trigger1 = HitOver
x = 0

[State 9011, 6]
type = DefenceMulSet
trigger1 = HitOver
value = 1

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9011, 7]
type = SelfState
trigger1 = HitOver
value = 11
ctrl = 1

;---------------------------------------------
[Statedef 49020]
type    = A
movetype= H
physics = N
velset = 0,0

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9020, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9020, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) != [3,5]
value = ifelse((GetHitVar(airtype) = 1),5000,5010) + GetHitVar(animtype)

[State 9020, 3]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = GetHitVar(animtype) = [3,5]
value = 5030

[State 9020, 4]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = (GetHitVar(animtype) = [4,5]) && (SelfAnimExist(5047 + GetHitVar(animtype)))
value = 5047 + GetHitVar(animtype)

[State 9020, 5]
type = ChangeAnim
trigger1 = Time > 0
value = anim

[State 9020, 6]
type = ChangeState
trigger1 = HitShakeOver
value = 49030

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9020, FFB Light]
type = ForceFeedback
trigger1 = anim = 5000
trigger2 = anim = 5010
persistent = 0
time = 6
waveform = square

[State 9020, FFB Medium]
type = ForceFeedback
trigger1 = anim = 5001
trigger2 = anim = 5011
persistent = 0
time = 8
waveform = sinesquare
ampl = 110,-1,-.3

[State 9020, FFB Hard]
type = ForceFeedback
trigger1 = anim = 5012
trigger2 = anim = 5002
trigger3 = anim = 5030
trigger4 = anim = [5051,5059]
persistent = 0
time = 15
waveform = sinesquare
ampl = 140

;---------------------------------------------
[Statedef 49030]
type    = A
movetype= H
physics = N
ctrl = 0

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9030, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9030, 2]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9030, 3]
type = HitVelSet
trigger1 = Time = 0
x = 1
y = 1

[State 9030, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 5040

[State 9030, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = Vel Y > 0
trigger2 = Pos Y >= 10
value = 49050

[State 9030, 6]
type = ChangeState
trigger1 = AnimTime = 0
value = 49035

[state a]
type = Changestate
trigger1 = !alive
value = 104010

;---------------------------------------------
[Statedef 49035]
type    = A
movetype= H
physics = N

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9035, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9035, 2]
type = ChangeAnim
trigger1 = Time = 0
trigger1 = SelfAnimExist(5035)
trigger1 = Anim != [5051,5059]
trigger1 = Anim != 5090
value = 5035

[State 9035, 3]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9035, 4]
type = SelfState
triggerall = !HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035
value = 5040

[State 9035, 5]
type = ChangeState
triggerall = HitFall
trigger1 = HitOver
trigger2 = AnimTime = 0
trigger3 = Vel Y > 0
trigger3 = Pos Y >= 10
trigger4 = Time = 0
trigger4 = Anim != 5035.
value = 49050

[state a]
type = Changestate
trigger1 = !alive
value = 104010

;---------------------------------------------
[Statedef 49050]
type    = A
movetype= H
physics = N

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 9050, 1]
type = PalFX
trigger1 = GameTime % 2
time = 1
add = 0,15,75
color = 0
invertall = 1

[State 9050, 2]
type = ChangeAnim
trigger1 = AnimTime = 0
trigger1 = Anim = 5035
trigger2 = Time = 0
trigger2 = Anim != 5035
trigger2 = (Anim != [5051, 5059]) && (Anim != [5061, 5069])
trigger2 = Anim != 5090
value = 5050

[State 9050, 3]
type = ChangeAnim
trigger1 = anim = [5050,5059]
trigger1 = Vel Y >= ifelse(anim = 5050, 1, -2)
trigger1 = SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 9050, 4]
type = VelAdd
trigger1 = 1
y = GetHitVar(yaccel)

[State 9050, 5]
type = SelfState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200

[State 9050, 6]
type = SelfState
triggerall = Vel Y > -1
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210

[state a]
type = Changestate
trigger1 = !alive
value = 104010

[State 9050, 7]
type = ChangeState
triggerall = alive = 1
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 15100

[State 9050, 7]
type = ChangeState
triggerall = alive = 0
trigger1 = Vel Y > 0
trigger1 = Pos Y >= ifelse((anim = [5051,5059]) || (anim = [5061,5069]), 0, 25)
value = 5100

;---------------------------------------------------------------------------
; ダウン
;---------------------------------------------------------------------------
[Statedef 181]
type = S
ctrl = 0
anim = 181
velset = 0,0
supermove = 1

[State 191, 3];天上天下
type = PlaySnd
trigger1 = time = 50
value = 181,0

[State 1000, 5]
type = Explod
trigger1 = animelem = 1
anim = 182
id = 182
sprpriority = 5
postype = p1
pos = 0,0
bindtime = 1
supermove = 1
removetime = -1
under = 0

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 181, 4]
type = AssertSpecial
trigger1 = time = [0,170]
flag = roundnotover

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

[Statedef 15100]
type    = L
movetype= H
physics = N

[State 1]
type = AssertSpecial
trigger1 = enemynear,name="SARIEL"&&enemynear,palno=12&&(gametime%3)=1
flag = invisible

[State 1];カメラ固定
type = screenbound
trigger1 = 1
value = 1
movecamera = 1

[State 1020, 4];画面シェイク
type = EnvShake
trigger1 = time = 0
time = 6
ampl = -6
freq = 95
phase = 95

[State 106, 3]
type = MakeDust
trigger1 = Time = 0
pos = -5,-2
spacing = 1

[State 106, 3]
type = MakeDust
trigger1 = Time = 5
pos = -5,-2
spacing = 1

[State 5100, 2] ;Hit ground anim (normal)
type = ChangeAnim
trigger1 = time = 0
value = 5100

[State 5100, 2] ;Hit ground anim (normal)
type = ChangeAnim
trigger1 = time = 5
value = 5110

[State 5100, 4]
type = PosSet
trigger1 = Time = 0
y = 0

[State 5100, 5]
type = VelSet
trigger1 = Time = 0
y = 0

[State 5100, 6] ;Reduce speed
type = VelMul
trigger1 = Time = 0
x = 0.002

[State 5100, 7]
type = SelfState
trigger1 = Time >= 110
value = 5120 

;==========================================================================================
;==========================================================================================
; ヘルパーエフェクト関係
;==========================================================================================
;==========================================================================================
;超必演出1 (セレス）
[Statedef 313699]
type    = S
movetype= A
physics = S
;anim = 99998

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 313700]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[State 6059,]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 313700]
type = Explod
trigger1 = var(56) <= 80
anim = 113281
id = 113281
sprpriority = 999999999
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = RemoveExplod
trigger1 = var(56) = 80
id = 113281
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 2000]
type = DestroySelf
trigger1 = var(56) > 80
ignorehitpause = 99999999

;---------------------------------------
;超必演出2 (SKY）
[Statedef 313700]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 313700]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[State 6059,]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 313700]
type = Explod
trigger1 = var(56) <= 80
anim = 113283
id = 113283
sprpriority = 999999999
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = RemoveExplod
trigger1 = var(56) = 80
id = 113281
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 2000]
type = DestroySelf
trigger1 = var(56) > 79
ignorehitpause = 99999999

;---------------------------------------
;超必演出3（ブラスト）
[Statedef 305000]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 305000]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[State 305000]
type = Explod
trigger1 = var(56) <= 80
anim = 30500
id = 30500
sprpriority = 999999999
scale = abs(0.03*(var(56)-30)),abs(0.03*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 305000]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 30500]
type = RemoveExplod
trigger1 = var(56) = 80
id = 30500
supermovetime = 99999
pausemovetime = 99999

[State 305000]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 305000]
type = DestroySelf
trigger1 = var(56) > 80
ignorehitpause = 99999999

;---------------------------------------
;超必演出4（ダージャ）
[Statedef 305010]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 305010]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 99999999
ignorehitpause = 99999999

[State 305010]
type = Explod
trigger1 = var(56) <= 80
anim = 30501
id = 30501
sprpriority = 999999999
pos = 0,0
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = sub
supermovetime = 99999
pausemovetime = 99999

[State 305010]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 305010]
type = RemoveExplod
trigger1 = var(56) = 80
id = 30501
supermovetime = 99999
pausemovetime = 99999

[State 305010]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 305010]
type = DestroySelf
trigger1 = var(56) > 80
ignorehitpause = 99999999

;----------------------------------------
;超必演出5 (ベホマ）
[Statedef 2402000]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 240200]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 99999999
ignorehitpause = 99999999

[State 240200]
type = Explod
trigger1 = var(56) <= 80
anim = 113282
id = 113282
sprpriority = 999999999
pos = 0,0
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 240200]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 240200]
type = RemoveExplod
trigger1 = var(56) = 80
id = 240200
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = DestroySelf
trigger1 = var(56) > 70
ignorehitpause = 99999999

;----------------------------------------
;超必演出6 (終焉）
[Statedef 240201]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 240200]
type = NotHitBy
trigger1 = !ishelper
value = SCA
time = 99999999
ignorehitpause = 99999999

[State 240200]
type = Explod
trigger1 = var(56) <= 80
anim = 17000
id = 17000
sprpriority = 999999999
pos = 0,0
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
postype = p1
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 240200]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 240200]
type = RemoveExplod
trigger1 = var(56) = 80
id = 17000
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = DestroySelf
trigger1 = var(56) > 70
ignorehitpause = 99999999

;----------------------------------------
;超必演出7 (三連）
[Statedef 240202]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 240200]
type = NotHitBy
trigger1 = !ishelper
value = SCA
time = 99999999
ignorehitpause = 99999999

[State 240200]
type = Explod
trigger1 = var(56) <= 80
anim = 18000
id = 18000
sprpriority = 999999999
pos = 0,0
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 240200]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 240200]
type = RemoveExplod
trigger1 = var(56) = 80
id = 18000
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 240200]
type = DestroySelf
trigger1 = var(56) > 70
ignorehitpause = 99999999

;----------------------------------------
;超必演出8 (不明）
[Statedef 240203]
type    = S
movetype= A
physics = S

[state p]
type = varadd
trigger1 = 1
var(56) = 1

[State 99998]
type = Changeanim
trigger1 = anim != 99998
value = 99998
ignorehitpause = 1

[State 313700]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[State 6059,]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 313700]
type = Explod
trigger1 = var(56) <= 80
anim = 113285
id = 113285
sprpriority = 999999999
scale = abs(0.05*(var(56)-30)),abs(0.05*(var(56)-30))
removetime = 16
ontop = 1
trans = add
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = RemoveExplod
trigger1 = var(56) = 80
id = 113281
supermovetime = 99999
pausemovetime = 99999

[State 313700]
type = PalFx
trigger1 = var(56) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 2000]
type = DestroySelf
trigger1 = var(56) > 79
ignorehitpause = 99999999

;-------------------------------------------------------------------------------------------------------
; 本体用
;-------------------------------------------------------------------------------------------------------
;円ヘルパーその1
[Statedef 31000]
type    = S   
movetype= A
physics = S

[State 15300]
type = Changeanim
trigger1 = anim != 31000
value = 31000
ignorehitpause = 1

[State 310000]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[state 0]
type = varset
trigger1 =gametime%60=0
fv = 0
value = gametime * 0.01
ignorehitpause = 99999999

[State 0]
Type = AngleDraw
Trigger1 = Time >= 0
Value = gametime * 1.5 * (1 + random%100) * 0.1
Scale = (ifelse((gametime%120<=59),((gametime * 0.01 - fvar(0))  / 0.6),(1 - (gametime * 0.01 - fvar(0))  / 0.6))) * 1.5,1.5
ignorehitpause = 99999999

[State 1009];回転
type = Angleadd
trigger1 = 1
value = 2*(GameTime%360)
ignorehitpause = 99999999

[state 0]
type = sprpriority
trigger1 = 1
value = 1000
ignorehitpause = 99999999

[State 0]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 99999999

[State 0]
type = BindToRoot
trigger1 = 1
pos = -5,-90
ignorehitpause = 99999999

[State 0]
Type = BindToTarget
Trigger1 = 1
ID = 31000

[State 0]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 99999999

[State 0]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 0]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999999999
ignorehitpause = 99999999

;-------------------------------------------------------------------------------------------------------
;円ヘルパーその2
[Statedef 31001]
type    = S   
movetype= A
physics = S

[State 15300]
type = Changeanim
trigger1 = anim != 31001
value = 31001
ignorehitpause = 1

[State 310000]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999
ignorehitpause = 99999999

[state 0]
type = varset
trigger1 =gametime%60=0
fv = 0
value = gametime * 0.01
ignorehitpause = 99999999

[State 0]
Type = AngleDraw
Trigger1 = Time >= 0
Value = gametime * 1.5 * (1 + random%100) * 0.1
Scale = (ifelse((gametime%120<=59),((gametime * 0.01 - fvar(0))  / 0.6),(1 - (gametime * 0.01 - fvar(0))  / 0.6))) * 1.5,1.5
ignorehitpause = 99999999

[State 1009];回転
type = Angleadd
trigger1 = 1
value = 2*(GameTime%360)
ignorehitpause = 99999999

[state 0]
type = sprpriority
trigger1 = 1
value = 1000
ignorehitpause = 99999999

[State 0]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 99999999

[State 0]
type = BindToRoot
trigger1 = 1
pos = -5,-90
ignorehitpause = 99999999

[State 0]
Type = BindToTarget
Trigger1 = 1
ID = 31001

[State 0]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 99999999

[State 0]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 0]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = 9999999999999
ignorehitpause = 99999999

;-------------------------------------------------------------------------------------------------------
;　パチェ魔方陣ヘルパー
;-------------------------------------------------------------------------------------------------------
[Statedef 15300]
type    = S   
movetype= A
physics = S

[State 15300]
type = Changeanim
trigger1 = anim != 15300
value = 15300
ignorehitpause = 1

[State 15300]
Type = VarSet
Trigger1 = var(3) > 359
var(3) = 0

[State 15300]
Type = VarAdd
Trigger1 = animelemtime(1)>0
var(3) = 1

[State 15300]
Type = PosSet
Trigger1 = 1
X = (Root,Pos X)
Y = 0

[State 15300]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow

[State 15300]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 15300]
Type = AngleDraw
Trigger1 = (var(3) < 90) || (var(3) = [180,269])
Value = IfElse((var(3)<90),0,-180)
Scale = 1,.2

[State 15300]
Type = AngleDraw
Trigger1 = (var(3) = [90,179]) || (var(3) = [270,359])
Value = IfElse((var(3)<180),-90,-270)
Scale = .2,1

[State 30170]
type = Trans
trigger1 = 1
trans = add

[State 15300]
type = NotHitBy
trigger1 = 1
value = SCA

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------------
;正義リング
;-------------------------------------------------------------------------------------------------------
[State 16000];正義リング（真ん中）手前
type = null;Explod
trigger1 = 1
anim = 15500
id = 16000
sprpriority = 99999999
scale = 0.4,0.4
postype = p1
pos = 0,-25
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（真ん中）奥
type = null;Explod
trigger1 = 1
anim = 15501
id = 16000
sprpriority = -1
scale = 0.4,0.4
postype = p1
pos = 0,-25
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（真ん中）手前
type = null;Explod
trigger1 = 1
anim = 15500
id = 16000
sprpriority = 99999999
scale = 0.4,0.4
postype = p1
pos = 0,-25
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（真ん中）奥
type = null;Explod
trigger1 = 1
anim = 15501
id = 16000
sprpriority = -1
scale = 0.4,0.4
postype = p1
pos = 0,-25
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999
;----------------------------------
[State 16000];正義リング（下）手前
type = null;Explod
trigger1 = 1
anim = 15500
id = 16000
sprpriority = 99999999
scale = 0.6,0.6
postype = p1
pos = 0,-5
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（下）奥
type = null;Explod
trigger1 = 1
anim = 15501
id = 16000
sprpriority = -1
scale = 0.6,0.6
postype = p1
pos = 0,-5
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（下）手前
type = null;Explod
trigger1 = 1
anim = 15500
id = 16000
sprpriority = 99999999
scale = 0.6,0.6
postype = p1
pos = 0,-5
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

[State 16000];正義リング（下）奥
type = null;Explod
trigger1 = 1
anim = 15501
id = 16000
sprpriority = -1
scale = 0.6,0.6
postype = p1
pos = 0,-5
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1
trans = add
superMoveTime = 9999
pauseMoveTime = 9999

;-------------------------------------------------------------------------------------------------------
;ぐるぐるリング
;-------------------------------------------------------------------------------------------------------
[Statedef 30170]
type    = S
movetype= A
physics = S
juggle  = 1                      
sprpriority = -5

[State 30170]
type = Changeanim
trigger1 = anim != 30170
value = 30170
ignorehitpause = 1

[State 30170]
type = NotHitBy
trigger1 = 1
value = SCA

[State 30170]
type = sprpriority
trigger1 = 1
value = -5

[State 30170]
type = ReversalDef
triggerall = !movehit || movehit >= 450
trigger1 = var(52) < 5
reversal.attr = SCA,NA,SA,HA,NT,ST,HT,NP,SP,HP,AA,AT,AP
pausetime = 0,0
sparkno = -1
sparkxy = 999,999
hitsound = -1
numhits = 0
ID = 1

[State 30170]
type = bindtoroot
trigger1 = 1
time = 500
pos = -5,-90

[State 30170]
type = AssertSpecial
trigger1 = var(52) >= 5
flag = invisible

[State 30170]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 15300]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 30170]
type = Trans
trigger1 = 1
trans = add

[State 30170]
type = angledraw
trigger1 = 1
scale = 0.85 - (var(52) * 0.1),0.85 - (var(52) * 0.1)

[State 30170]
type = targetvelset
trigger1 = movehit = 1
trigger1 = numtarget = 1
trigger1 = !target,ishelper
x = -32

[State 13500]
type = varadd
trigger1 = movehit = 1
trigger1 = numtarget = 1
trigger1 = !target,ishelper
var(52) = 1

[State 13500]
type = targetdrop
trigger1 = movehit = 1
trigger1 = numtarget > 0

[State 13500]
type = varadd
trigger1 = var(52) >= 5
var(53) = 1

[State 13500]
type = varset
trigger1 = var(53) >= 600
var(52) = 0

[State 13500]
type = varset
trigger1 = var(53) >= 600
var(53) = 0

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------------
;回るバリア1
[Statedef 30003]
ctrl = 0                     
juggle  = 1 
sprpriority = 4

[State 30003]
type = Changeanim
trigger1 = anim != 30003
value = 30003
ignorehitpause = 1

[State 30003]
type = NotHitBy
trigger1 = 1
value = SCA

[State 30003]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 30003]
type = BindToRoot
trigger1 = 1
pos = 0,-85
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30003]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30003]
type = AngleDraw
trigger1 = 1
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State -2]
type = AngleSet
trigger1 = 1
value = -1*(GameTime%360)
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30003]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30003]
type = DestroySelf
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------------
;回るバリア2
[Statedef 30004] 
ctrl = 0
juggle  = 1 
sprpriority = 4

[State 30004]
type = Changeanim
trigger1 = anim != 30004
value = 30004
ignorehitpause = 1

[State 30004]
type = NotHitBy
trigger1 = 1
value = SCA

[State 30004]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 99999999

[State 30004]
type = BindToRoot
trigger1 = 1
pos = 0,-85
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30004]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30004]
type = AngleDraw
trigger1 = 1
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 30004]
type = AngleSet
trigger1 = 1
value = -1*(GameTime%360)
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State -2]
type = Trans
trigger1 = 1
trans = add
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 3003]
type = DestroySelf
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
ignorehitpause = 1
supermovetime = 3600
pausemovetime = 3600

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------------
;車輪ヘルパー1
[Statedef 30400]
type    = S
movetype= A
physics = S

[State 15300]
type = Changeanim
trigger1 = anim != 30400
value = 30400
ignorehitpause = 1

[State 30400]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(55)!=gametime
ignorehitpause = 1

[State 30400]
type = NotHitBy
trigger1 = !ishelper
value = SCA
time = 999999999
ignorehitpause = 1

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

[state 30400]
type = sprpriority
trigger1 = 1
value = -2
ignorehitpause = 1

[State 30400]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 30400]
type = angledraw
trigger1= 1
scale= 0.73,0.73
ignorehitpause = 1

[State 30400]
type = Angleadd
trigger1 = 1
value = 0.6
ignorehitpause = 1

[State 30400]
type = BindToRoot
trigger1 = 1
pos = 0,-85
ignorehitpause = 1

[State 30400]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State 30400]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 1

;[State 30400]
type = Trans
trigger1 = 1
trans = Sub

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;----------------------------------------------------------------------------------------------------
;C

[Statedef 2111]

[State ]
type = null
trigger1 = ishelper
trigger1 = var(59) := 2111
ignorehitpause = 1

[State ]
type = statetypeset
trigger1 = ishelper
movetype= i
ignorehitpause = 1

[State ]
type = ctrlset
triggerall = ishelper
trigger1 = animelemtime(1) = 0
value = 0
ignorehitpause = 1

[State ]
type = velset
triggerall = ishelper
trigger1 = animelemtime(1) = 0
x = 0
y = 0
ignorehitpause = 1


[state ]
type = changeanim
trigger1 = 1
value = 2109;11074
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State -2]
type = Explod
trigger1 = root,stateno != 11064
trigger1 = root,stateno != 11054
trigger1 = root,stateno != 11047
trigger1 = root,stateno != 11081
trigger1 = (gametime%3) = 1
anim = 2111
id = 2111
sprpriority = 10
ownpal = 1
postype = p1
pos = 0,0
scale = 0.2,0.2
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
pausemovetime = 2147483647
supermovetime = 2147483647

[state ]
type = PlayerPush
trigger1 = 1
value = 0
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

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

[state ]
type = Nothitby
trigger1 = 1
value = SCA
time = -1

[state ]
type = turn
trigger1 = facing != root,facing

[state ]
type = trans
trigger1 = 1
trans = addalpha
alpha = 256,256

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

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

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

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

[state ]
type = bindtoroot
trigger1 = 1
pos = (var(21)*sin((gametime)*.6666))*1,-60+(var(21)*cos((gametime)*.6666))*1

[state ]
type = NULL;changestate
trigger1 = 1
value = 5150
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[Statedef 2112]

[State ]
type = null
trigger1 = ishelper
trigger1 = var(59) := 2112
ignorehitpause = 1

[State ]
type = statetypeset
trigger1 = ishelper
movetype= i
ignorehitpause = 1

[State ]
type = ctrlset
triggerall = ishelper
trigger1 = animelemtime(1) = 0
value = 0
ignorehitpause = 1

[State ]
type = velset
triggerall = ishelper
trigger1 = animelemtime(1) = 0
x = 0
y = 0
ignorehitpause = 1


[state ]
type = changeanim
trigger1 = 1
value = 2109;11074
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state ]
type = PlayerPush
trigger1 = 1
value = 0
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

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

[state ]
type = Nothitby
trigger1 = 1
value = SCA
time = -1

[state ]
type = turn
trigger1 = facing != root,facing

[state ]
type = trans
trigger1 = 1
trans = addalpha
alpha = 256,256

[State -2]
type = Explod
trigger1 = root,stateno != 11064
trigger1 = root,stateno != 11054
trigger1 = root,stateno != 11047
trigger1 = root,stateno != 11081
trigger1 = (gametime%3) = 1
anim = 2111
id = 2111
sprpriority = 10
ownpal = 1
postype = p1
pos = 0,0
scale = 0.2,0.2
bindtime = 1
supermove = 0
ignorehitpause = 1
under = 0
pausemovetime = 2147483647
supermovetime = 2147483647

[state ]
type = varadd
trigger1 = 1
var(1) = 1

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

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

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

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

[state ]
type = bindtoroot
trigger1 = 1
pos = (var(21)*sin((gametime)*.6666))*-1,-60+(var(21)*cos((gametime)*.6666))*-1

[state ]
type = NULL;changestate
trigger1 = 1
value = 5150
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

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

[Statedef 30401]
anim = 30401
sprpriority = -5

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

[State 1000]
type = AngleAdd
trigger1 = 1
value = 2
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 30401
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -3,-75
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(30401)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1


;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

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

[Statedef 30402]
anim = 30402
sprpriority = -4

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

[State 1000]
type = AngleAdd
trigger1 = 1
value = 2
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 30402
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -3,-75
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(30402)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1


;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

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

[Statedef 30403]
anim = 30403
sprpriority = -3

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

[State 1000]
type = AngleAdd
trigger1 = 1
value = 2
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 30403
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -3,-75
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(30403)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1


;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

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

[Statedef 30404]
anim = 30404
sprpriority = -3

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

[State 1000]
type = AngleAdd
trigger1 = 1
value = 2
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 30404
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -3,-75
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(30404)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1


;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

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

[Statedef 30405]
anim = 30404
sprpriority = -4

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

[State 1000]
type = AngleAdd
trigger1 = 1
value = -2
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 30405
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -3,-75
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(30405)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1

;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

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

[Statedef 35900]
anim = 35900
sprpriority = -2

[State 35900]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 1000]
type = AngleDraw
trigger1 = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

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

;[State 1000]
;type = AngleAdd
;trigger1 = 1
;value = 2
;SuperMoveTime = 99999999999999999
;PauseMoveTime = 99999999999999999

[state hogo1]
type = changestate
trigger1 =!ishelper
value = 0
ctrl=1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo2]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(40)!=gametime
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State hogo3]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state hogo4]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 35900
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -1, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = 1
Pos = -4,-71
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[State -1, AssertSpacial]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1
SuperMoveTime = 99999999999999999
PauseMoveTime = 99999999999999999

[state 150]
type = assertspecial
triggerall = ishelper(35900)
trigger1 = root,stateno = [2555,2557]
trigger2 = root,stateno = 2601
trigger3 = root,stateno = 220500
trigger4 = root,stateno = 3001
trigger5 = root,stateno = 35001
trigger6 = root,stateno = 23000
trigger7 = root,stateno = 22132
trigger8 = root,stateno = 2632
trigger9 = root,stateno = 22050
trigger10 = root,stateno = [301,302]
trigger11 = root,stateno = [2231,2232]
flag = Invisible
ignorehitpause = 1


;[State 1000, 0]
;type = DestroySelf
;trigger1 = root,var(0) = 1
;trigger2 = root,alive = 0

;-------------------------------------------------------------------------------------------------------
;車輪ヘルパー2
[Statedef 30450]
type    = S
movetype= A
physics = S

[State 30450]
type = Changeanim
trigger1 = anim != 30450
value = 30450
ignorehitpause = 1

[State 30400]
type = destroyself
triggerall =ishelper&&0
trigger1 = root,var(55)!=gametime
ignorehitpause = 1

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

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

[state 30400]
type = sprpriority
trigger1 = 1
value = -30
ignorehitpause = 1

[State 30400]
type = trans
trigger1 = 1
trans = add
ignorehitpause = 1

[State 30400]
type = angledraw
trigger1= 1
scale= 0.63,0.63
ignorehitpause = 1

[State 30400]
type = Angleadd
trigger1 = 1
value = -0.25
ignorehitpause = 1

[State 30400]
type = BindToRoot
trigger1 = 1
pos = 0,-85
ignorehitpause = 1

[State 30400]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State 30400]
type = AssertSpecial
trigger1 = root,stateno!=0
trigger1 = root,stateno!=5900
flag = invisible
ignorehitpause = 1

;[State 30400]
type = Trans
trigger1 = 1
trans = Sub

[State 0]
type = DestroySelf
trigger1 = root,anim != 0
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------------
; 時止め解除
[StateDef 30010]
Type = A
Physics = N
anim = 99990

[State -1]
Type = ScreenBound
Trigger1 = 1
Value = 0
MoveCamera = 0,0

[State -1]
Type = NotHitBy
Trigger1 = 1
Value = SAC, NT, ST, HT ,NA, SA, HA ,NP, SP, HP
Time = 1
IgnoreHitPause = 1

[State -1]
Type = AssertSpecial
Trigger1 = 1
Flag = Noshadow
IgnoreHitPause = 1

[State -1]
Type = SuperPause
Trigger1 = 1
Time = 0
MoveTime = 0
Darken = 0
Anim = -1
IgnoreHitPause = 1
SuperMoveTime  = 9999999999
PauseMoveTime  = 9999999999

[State -1]
Type = Pause
Trigger1 = 1
Time = 0
MoveTime = 0
IgnoreHitPause = 1
SuperMoveTime  = 9999999999
PauseMoveTime  = 9999999999

[State -1]
Type = DestroySelf
Trigger1  = 1
IgnoreHitPause = 1

;------------------------------------------
;強化オーラ
[Statedef 41000]
type = S
movetype = I
physics = N
sprpriority = -1
velset = 0,0
ctrl = 0

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

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

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

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

[State 41000]
type = bindtoroot
trigger1 = alive
facing = 1
pos = -3, 0
time = -1
ignorehitpause = 1
persistent = 1

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

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

[State 41000]
type = angledraw
trigger1 = alive
value = 0
scale = 1.015 + (.0065*time),1 + (.0065*time)
time = -1
ignorehitpause = 1
persistent = 1

[State 41000]
type = Destroyself
trigger1 = time >= 35

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;　Hitdef混線用
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 111111]
hitdefpersist = 1

[state 111111]
type = nothitby
trigger1 = 1
value = SAC
time = -1

[state 111111]
type = bindtoroot
trigger1 = 1

[state 111111]
type = changeanim
trigger1 = numtarget<8
value = 40010
ignorehitpause = 1

[state 111111]
type = statetypeset
trigger1 = numtarget<8
movetype = a
ignorehitpause = 1

[state 111111]
type = Hitdef
trigger1 = numtarget<8
attr =,hp
numhits = 0
damage = 0
getpower = 0
givepower = 0
hitflag = mafdlp
sparkno = -1
guard.sparkno = -1
pausetime = 0,0
guard.pausetime = 0,0
p2stateno = 0
affectteam = f
ignorehitpause=1

[state 111111]
type = statetypeset
trigger1 = numtarget = 8
movetype = i
ignorehitpause = 1

[state 111111]
type = changeanim
trigger1 = numtarget = 8
value = 40060

[state ];ターゲット維持
type = reversaldef
trigger1 = numtarget= 8
reversal.attr = sca,aa,at,ap
ignorehitpause = 1

[state 111111]
type = targetfacing
trigger1 = 0
trigger1 = numtarget
value = 1-2*(random%2)

[State 1]
type = TargetState
trigger1 = NumTarget = 8
trigger1 = root,stateno = 2405
value  = 2003
ignoreHitPause = 1

[State 1]
type = TargetState
trigger1 = NumTarget = 8
trigger1 = root,stateno = 2632
value  = 2003
ignoreHitPause = 1

;----------------------------------------------------------------------
;ターゲットヘルパー
[statedef 23640]
anim = 40011

[state 23640]
type = bindtoroot
trigger1 = 1

[state 23640]
type = statetypeset
trigger1 = 1
movetype = h

[state 23640]
type = hitby
trigger1 = 1
value = sac,hp

[state 23640]
type = destroyself
trigger1 = numhelper(111111)
trigger1 = helper(111111),numtarget=8

;----------------------------------------------------------------------
;占有用ダミーヘルパー
[statedef 40070]
anim = 40070

[state 40070]
type = destroyself
trigger1 = roundstate > 1

;-----------------------------------------------------------------------
;Projeターゲットヘルパー
[statedef 9994]
anim = 40011

[state 23640]
type = bindtoroot
trigger1 = 1

[state 23640]
type = hitby
trigger1 = 1
value = sac,hp

[state 23640]
type = destroyself
trigger1 = 0
