;---------------------------------------------------------------------------
;体の周りの発光体
;---------------------------------------------------------------------------

[Statedef 2793]
type    = A
movetype= I
physics = N
velset = 0,0
juggle = 8
poweradd= 0
sprpriority = 9
anim = 3023
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 = veladd
trigger1 = Time > 10
x = -0.5 + (random%2)

[state 2793]
type = destroyself
trigger1 = time >= 30

;---------------------------------------------------------------------------
; Spark Helper
[Statedef 2300]
type = A
movetype = I
physics = N
ctrl = 0
anim = 20000
velset = 0,0
ownpal = 1

[State 820,PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = 4350, 2
persistent = 0

[State 820,PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = 4350, 3
persistent = 0

[State 820,PlaySnd]
type = PlaySnd
trigger1 = Time = 0
value = 4350, 4
persistent = 0

[State 3000, BGPalFX]
type = BGPalFX
trigger1 = 1
time = 1
add = 0,0,0
mul = 32,32,32
sinadd = 0,0,0,1
invertall = 0
color = 256

;Super Spark left half, facing right
[State 3000, 1]
type = Explod
trigger1 = Time = 3
trigger1 = Pos X <= 0
trigger1 = Facing = 1
anim = 3020
postype = P1
pos = 0,0
facing = -1
sprpriority = 6
pausemovetime = 99999999999999
supermovetime = 99999999999999
persistent = 0

[State 4110, DestroySelf]
type = DestroySelf
trigger1 = Time > 39

;Super Spark right half, facing right
[State 3000, 1]
type = Explod
trigger1 = Time = 3
trigger1 = Pos X > 0
trigger1 = Facing = 1
anim = 3020
postype = P1
pos = 0,0
facing = 1
sprpriority = 6
pausemovetime = 99999999999999
supermovetime = 99999999999999
persistent = 0

;Super Spark left half, facing left
[State 3000, 1]
type = Explod
trigger1 = Time = 3
trigger1 = Pos X < 0
trigger1 = Facing = -1
anim = 3020
postype = P1
pos = 0,0
facing = 1
sprpriority = 6
pausemovetime = 99999999999999
supermovetime = 99999999999999
persistent = 0

[State 4110, DestroySelf]
type = DestroySelf
trigger1 = Time > 39

;Super Spark right half, facing left
[State 3000, 1]
type = Explod
trigger1 = Time = 3
trigger1 = Pos X > 0
trigger1 = Facing = -1
anim = 3020
postype = P1
pos = 0,0
facing = -1
sprpriority = 6
pausemovetime = 99999999999999
supermovetime = 99999999999999
persistent = 0

;Fade out
[State 4001, Fade Out]
type=palfx
trigger1= Time = 30
time=12
sinadd=-255,-255,-255,60

[State 4110, DestroySelf]
type = DestroySelf
trigger1 = Time > 39

;-----------------------------------------------------------------------------;
;Prune Juice
[StateDef 504]
type = S
movetype= A
physics = N
juggle  = 1
velset = 2,0
ctrl = 0
anim = 504

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

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

[State 0, AngleSet]
type = AngleSet
trigger1 = movecontact = 0
value = 90

[State 0, AngleSet]
type = AngleAdd
trigger1 = movecontact
value = 10*var(3)

[State 0, VelAdd]
type = VelAdd
trigger1 = movecontact
y = .3

[State 0, VelAdd]
type = VelAdd
trigger1 = 1
x = .4

[State 0, VelSet]
type = VelSet
trigger1 = movecontact = 1
x = Var(3)*-1
y = -8

[State 0, PlaySnd]
type = PlaySnd
trigger1 = movecontact = 1
value = S666,27+random%3
freqmul = 0.5 + (Parent,var(11)*0.1)

[State 300, 1]
type = HitDef
trigger1 = AnimElem = 1
attr = S, NA
damage = ifelse(root,palno=10,40,2),4;10
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 0
sparkno = 2
sparkxy = -10, -76
hitsound = S1, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 16
ground.velocity = -2
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12

[State 0, DestroySelf]
type = DestroySelf
trigger1 = Time = 999
trigger2 = Pos Y > 0

;-----------------------------------------------------------------------------;
;UBER-juice
[StateDef 505]
type = S
movetype= A
physics = N
juggle  = 1
velset = 2,0
ctrl = 0
anim = 504

[State 0, AngleDraw]
type = AngleDraw
trigger1 = 1

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

[State 0, AngleSet]
type = AngleSet
trigger1 = movecontact = 0
value = 90

[State 0, AngleSet]
type = AngleAdd
trigger1 = movecontact
value = 10*var(3)

[State 0, VelAdd]
type = VelAdd
trigger1 = movecontact
y = .3

[State 0, VelAdd]
type = VelAdd
trigger1 = 1
x = .6

[State 0, VelSet]
type = VelSet
trigger1 = movecontact = 1
x = Var(3)*-1
y = -8

[State 0, PlaySnd]
type = PlaySnd
trigger1 = movecontact = 1
value = S666,27+random%3
freqmul = 0.5 + (Parent,var(11)*0.1)

[State 300, 1]
type = HitDef
trigger1 = AnimElem = 1
attr = S, NA
damage = ifelse(root,palno=10,100,2),4;10
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 0
sparkno = 2
sparkxy = -10, -76
hitsound = S1, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 16
ground.velocity = -2
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
p2stateno = 5110

[State 0, DestroySelf]
type = DestroySelf
trigger1 = Time = 999
trigger2 = Pos Y > 0

;---------------------------------------------------------------------------
;Maxime
[Statedef 7800]
type = S
physics = N
ctrl = 0
anim = 7800
velset = 0,0
sprpriority = 2

[State 181, 2]
type = PlaySnd
trigger1 = time = 3
value = 8,15
channel = 2

[State 190, 4]
type = ChangeState
trigger1 = time > 150
trigger1 = !root,NumHelper(7860)
value = 7801

;---------------------------------------------------------------------------
;Maxime KO'ed
[Statedef 7801]
anim = 7801

[State 220, Position]
type = PosSet
trigger1 = Time = 0
y = 0

[State 181, 2]
type = PlaySnd
trigger1 = AnimElem = 1
value = 8, 16

[State 181, 2]
type = PlaySnd
trigger1 = AnimElem = 1
value = 1,4
channel = 2

[State 181, 2]
type = PlaySnd
trigger1 = animelem = 11
value = 5100,0
;-------------------------------------------------------------------------------
;Explosion
[Statedef 1820]
type = S
movetype= A
physics = N
velset = 0,0
ctrl = 0
anim = 4210

[State 1820]
type = EnvShake
trigger1 = AnimElem = 1
time = 50
freq = 100
ampl = 10

[State 1820, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 1
value = 800, 2

[State 1820, ヒット定義]
type = HitDef
trigger1 = Time = 0
attr = A, SA
animtype  = up
damage    = 20,5
affectteam = E;B
hitflag = MAFDP
priority  = 5
pausetime = 0,15
sparkxy = 0,0
sparkno = 3
hitsound   = s1,4
guardsound = 6,0
ground.type = High
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = 0,-20
guard.velocity = -7
air.velocity = 0,-15
envshake.time = 20           ;ヒットした時に画面を揺らす時間
envshake.ampl = 5            ;ヒットした時の画面の振幅
envshake.freq = 170          ;ヒットした時に画面が揺れる速度
palfx.time = 180
palfx.add = 150,0,-100
palfx.sinadd = 50,50,0,10
palfx.color = 0
palfx.invertall = 1
fall = 1
fall.recover = 0
GivePower = -500, -250

[State 1820, このヘルパーを消す]
type = DestroySelf
trigger1 = Animtime = 0
;========================<MOON>=============================
[Statedef 4305]
type=A
physics=N
movetype=I
anim=4325;ifelse(random<80,4315,ifelse(random<400,4305,4325))
velset=0,0
sprpriority=2

[State 4305, VarSet]
type = VarSet
trigger1 = !time
v = 56
value = ifelse(anim = 4315, 1, ifelse(anim = 4325, 2, 0))
ignorehitpause = 1
persistent = 1

[State 4305, bind]
type=bindtoroot
trigger1= root,stateno=4301
pos=0,230
[State 4305, bind]
type=posset
trigger1= root,stateno=4310 && root,movetype!=H
x=ceil(root,pos x)
[State 4305, bind]
type=posset
trigger1= root,stateno!=4301
y=0

[State 4305, fx]
type=explod
triggerall=!numexplod(4307)
trigger1=anim != 4315
trigger1=anim != 4316
anim=4307
ID=4307
sprpriority=3
postype=p1
pos=0,-230
bindtime=-1
removetime=-1
ignorehitpause=1

[State 4305, anim]
type=changeanim
trigger1= anim=4305 && (root,movecontact=[1,8])
value=4306
[State 4305, anim]
type=changeanim
trigger1= anim=4306 && !(root,movecontact=[1,8])
value=4305
[State 4305, anim]
type=changeanim
trigger1= anim=4315 && (root,movecontact=[1,8])
value=4316
[State 4305, anim]
type=changeanim
trigger1= anim=4316 && !(root,movecontact=[1,8])
value=4315
[State 4305, anim]
type=changeanim
trigger1= anim=4325 && (root,movecontact=[1,8])
value=4326
[State 4305, anim]
type=changeanim
trigger1= anim=4326 && !(root,movecontact=[1,8])
value=4325

[State 4305, end]
type=changestate
trigger1= root,movetype=H
trigger2= root,stateno!=4301 && (root,stateno!=[4310,4312])
value=4306


[Statedef 4306]
type=A
physics=N
movetype=I
anim=4314 ;4305 + (10*(var(56)))
velset=0,24
sprpriority=2

[State 4306, fx]
type=removeexplod
trigger1=numexplod

[State 4306, trans]
type=angledraw
trigger1= 1
scale= 1 + (time*.0625), 1 + (time*.0625)
[State 4306, trans]
type=trans
trigger1= 1
trans=addalpha
alpha= 256 - (time*16), (time*16)

[State 4306, end]
type=destroyself
trigger1= pos x!=[-480,480]
trigger2=time>=16

;===========< POSSY >==========  ;Borrowed from Rare Akuma.
;--- Chase ---
[Statedef 6180]
type = S
physics = N
anim = 12345+random%3
sprpriority = -1
ctrl = 0

[State 6180]
type = turn
trigger1 = time = 120
[State 6180]
type = velset
trigger1 = 1
x = 10


;--- Mini Chaser ---
[Statedef 6181]
type = S
physics = N
anim = 12345;Random-sized people ;10020 ;Breloom
sprpriority = -1
ctrl = 0
[State 6181]
type = velset
trigger1 = !time
x = 8 + (random / 250.0)

[Statedef 6182]
type = S
physics = N
anim = 6001 ;Homer
sprpriority = -1
ctrl = 0
[State 6182]
type = velset
trigger1 = !time
x = 8 + (random / 250.0)

[Statedef 6183]
type = S
physics = N
anim = 34567 ;Normal DIO
sprpriority = -1
ctrl = 0
[State 6183]
type = velset
trigger1 = !time
x = 8 + (random / 250.0)
;-------------------------------------------------------------------------------
;Hit Override
[Statedef 703]
type     = U
movetype = I
physics  = N
ctrl     = 1
velset   = 0,0
anim     = 5

[State -2, 無敵]
type = NotHitBy
trigger1 = Time = 0
value = SCA
time = 150

[State 702]
type = lifeadd
trigger1 = 1
value = -3
kill = 1

[State 702, Effect]
type = Explod
trigger1 = time = 1
anim = 2752
scale = 0.5, 0.5
postype = p1
pos = 0, -30
sprpriority = 3
supermove = 999999999
ownpal = 1
bindtime = -1
removeongethit = 1

[State 702, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 1
value = 0, 26

[State 702]
type = SelfState
trigger1 = animtime = 0
value = 0
ctrl = 1
anim = 0

[State 702, ステート変更] ;立ちとしゃがみ
type = ChangeState
triggerall = StateType != A
trigger1 = AnimTime = 0
value = ifelse(StateType=C,11,0)
ctrl = 1

[State 702, ステート変更] ;空中のみ
type = ChangeState
triggerall = StateType = A
trigger1 = Time >= 20
value = 51 ;common1.cns参照
ctrl = 1

;-------------------------------------------------------------------------------
;Holyja
[Statedef 12340]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 7600
poweradd = -1000
ctrl = 0

[State -2, 黒ドナルド攻撃力アップ]
type = playsnd
trigger1 = time = 0
value = 4350,8
ignorehitpause = 1

[State -2, 黒ドナルド攻撃力アップ]
type = attackmulset
trigger1 = 1
value = (random)*2
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999

[State 0, PalFXWiz]
type = AllPalFX
trigger1 = 1
time = 1
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 256

[State 0, PalFXWiz]
type = PalFX
trigger1 = 1
time = 1
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 256

[State 200, 1]
type = Posset
trigger1=1
y=0

[State 1]
type = AssertSpecial
trigger1 = 1
flag = nofg
flag2 = nobg
flag3 = invisible
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 3000, BG Black]
type = EnvColor
trigger1 = 1
value = 0,0,0
under = 1
time = 5
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = noBG
flag3 = noFG
supermovetime = 999999
pausemovetime = 999999
ignorehitpause = 1
persistent = 1

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = globalnoshadow
flag2 = noshadow
flag3 = invisible
supermovetime = 999999
pausemovetime = 999999
ignorehitpause = 1
persistent = 1

[State 210, Width]
type = Width
trigger1 = 1
value = 0,0

[State 1]
type = NotHitBy
trigger1 = 1
value = SCA
pausemovetime = 99999
supermovetime = 99999

[State 3040, 7]
type = BGPalfx
trigger1 = 1
time = 3
add = -256,-256,-256
under = 1
pausemovetime = 99999
supermovetime = 99999

[State 3040, 7]
type = EnvColor
trigger1 = 1
value = 0,0,0
time = 3
under = 1
pausemovetime = 99999
supermovetime = 99999

[State 3040, 7]
type = BGPalfx
trigger1 = 1
ignorehitpause = 1
time = 3
add = -256,-256,-256
under = 1
pausemovetime = 99999
supermovetime = 99999

[State 3040, 7]
type = EnvColor
trigger1 = 1
ignorehitpause = 1
value = 0,0,0
time = 3
under = 1
pausemovetime = 99999
supermovetime = 99999

[State 1000, 5]
type = Explod
trigger1 = Time = 0
anim = 7600
id = 7600
postype = back
scale = 1.0,1.0714285714285714285714285714286
pos = 0,0
bindtime = -1
ownpal = 0
trans=sub
removetime=-2
ignorehitpause = 1
sprpriority = 999999999999999999999999999999999999999999999999999999999999999999
ontop = 1
ownpal = 1

[State 1000, 5]
type = Explod
trigger1 = Time = 0
anim = 7600
id = 7600
postype = back
scale = 1.0,1.0714285714285714285714285714286
pos = 0,0
bindtime = -1
ownpal = 0
trans=add
removetime=-2
ignorehitpause = 1
sprpriority = 999999999999999999999999999999999999999999999999999999999999999999
ontop = 1
ownpal = 1

[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40000)<=0
triggerall=1;88000
name="SPsummon"
id=40000
pos=0,-83
postype=p1
facing=1
stateno=40000

[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40010)<=0
triggerall=1;88000
name="SPsummon"
id=40010
pos=0,-83+12000
postype=p1
facing=1
stateno=40010



[State 640, 1];上方
type = Projectile
triggerall=1
triggerall=numpartner!=0&&(partner,alive=1)
;triggerall=enemy,alive
;triggerall = time=1
trigger1 = 1
triggerall=time>=1
ProjID=7199
Projanim=71995
attr = S, HA
Projremove=0
Projremovetime=13
Velocity=0
Projespriority=9999999999999
postype=back
sparkxy = 999, -999
Offset=160,-240
pausetime=0,2
damage = 88000,88000
ground.type = High
ground.slidetime = 1
ground.hittime  = 1
ground.velocity = 0,0.01
air.velocity = 0,0.01
air.juggle = 0
fall = 1
guardflag = none
hitflag=MAF
;kill=0
givepower=-1000000
p2stateno=4273147
affectteam=B

[State 640, 1];上方
type = Projectile
triggerall=1
triggerall=numpartner=0||(partner,alive!=1)
;triggerall=enemy,alive
;triggerall = time=1
trigger1 = 1
triggerall=time>=1
ProjID=7199
Projanim=71995
attr = S, HA
Projremove=0
Projremovetime=13
Velocity=0
Projespriority=9999999999999
postype=back
sparkxy = 999, -999
Offset=160,-240
pausetime=0,2
damage = 88000,88000
ground.type = High
ground.slidetime = 1
ground.hittime  = 1
ground.velocity = 0,0.01
air.velocity = 0,0.01
air.juggle = 0
fall = 1
guardflag = none
hitflag=MAF
;kill=0
givepower=-1000000
p2stateno=4273147

[State 1]
type = AssertSpecial
trigger1 = 1
flag = nofg
flag2 = nobg
ignorehitpause = 1
pausemovetime = 999
supermovetime = 999

[State 1510, 9]
type = changestate
trigger1 = animtime = 0
value = 4502
;---------------------------------------------------------------------------
; Falling
[Statedef 2122]
type    = A
physics = N
anim = 1119
ctrl = 0
velset = 0,-3
sprpriority = 3

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = time = 3
value = 121,15
channel = 7

[State 1881, 速度加算]
type = VelAdd
trigger1 = time = 10
y = 8.5

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = pos y >= -3
name = "RONALD"
stateno = 2123
ID = 2122
keyctrl = 0
ownpal = 1
size.xscale = 0.5
size.yscale = 0.5
helpertype = Normal
ignorehitpause = 1

[State 1820, このヘルパーを消す]
type = DestroySelf
trigger1 = numhelper(2122) >= 2
trigger2 = pos y >= 0
ignorehitpause = 1
;-------------------------------------------------------------------------------
; Walk
[Statedef 2123]
type    = S
physics = N
anim = ifelse(palno=10,2000,1000)
ctrl = 0
velset = 0,0
sprpriority = 3

[State 6000, 移動速度]
type = posSet
trigger1 = 1
y = 0

[State 45, 7]
type = ChangeState
trigger1 = roundstate = 0
value = 2130
ctrl = 0

[State 2100]
type = HitOverride
trigger1 = Time = 0 &&  palno = 1 || palno = 2 || palno = 3 || palno = 4 || palno = 5 || palno = 6 || palno = 7 || palno = 8 || palno = 9 || palno = 11 || palno = 12
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 2127
time = -1
IgnoreHitPause = 1

[State 2100]
type = NotHitBy
trigger1 = Time = 0 && palno = 1 || palno = 2 || palno = 3 || palno = 4 || palno = 5 || palno = 6 || palno = 7 || palno = 8 || palno = 9 || palno = 11 || palno = 12
value = , AT;全ての投げに対し無効化
time = -1
IgnoreHitPause = 1

[State 2100]
type = NotHitBy
trigger1 = Time = 0 && palno = 10
value = SCA, NA, SA, HA, NP, SP, HP, AT, AP
time = -1
IgnoreHitPause = 1

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 409]
Type     = turn
trigger1 = 1
Trigger1 = p2dist X < 0

[State 409]
Type     = VelSet
trigger1 = 1
Trigger1 = root,palno != 10
Trigger1 = p2dist X > 1
X        = 0.9

[State 409]
Type     = VelSet
trigger1 = 1
Trigger1 = root,palno != 10
Trigger1 = p2dist X < 0
X        = -0.9

[State 409]
Type     = VelSet
trigger1 = 1
Trigger1 = root,palno = 10
Trigger1 = p2dist X > 1
X        = 5

[State 409]
Type     = VelSet
trigger1 = 1
Trigger1 = root,palno = 10
Trigger1 = p2dist X < 0
X        = -5

[State 45, 7]
type = ChangeState
trigger1 = roundstate = 3
trigger1 = root,alive != 0
value = 2130
ctrl = 0

[State 45, 7]
type = ChangeState
trigger1 = roundstate = 3
trigger1 = root,alive = 0
value = 2128
ctrl = 0

[State 45, 7]
type = ChangeState
trigger1 = time >= 10
trigger1 = p2bodydist X = [-10,10]
trigger1 = p2bodydist y >= -30
trigger1 = palno = 1 || palno = 2 || palno = 3 || palno = 4 || palno = 5 || palno = 6 || palno = 7 || palno = 8 || palno = 9 || palno = 11 || palno = 12
value = 2124
ctrl = 0

[State 45, 7]
type = ChangeState
trigger1 = time >= 10
trigger1 = p2bodydist X = [-50,50]
trigger1 = p2bodydist y >= -30
trigger1 = palno = 10
value = 4699
ctrl = 0
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Intro
[Statedef 2133]
type    = S
movetype = I
physics = N
anim = 1113
ctrl = 0
velset = 0,0
sprpriority = 3

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = time= 1
value = 1900, 4
volume = 255

[State 2111, 音を鳴らす]
trigger1 = 1
type = NotHitBy
value = SCA

[State 45, 7]
type = ChangeState
trigger1 = animtime = 0
value = 2130
ctrl = 0
;---------------------------------------------------------------------------
; Wait
[Statedef 2130]
type    = S
movetype = I
physics = N
anim = 1115
ctrl = 0
velset = 0,0
sprpriority = 3

[State 2111, 音を鳴らす]
trigger1 = 1
type = NotHitBy
value = SCA

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 45, 7]
type = ChangeState
trigger1 = roundstate = 2
value = 2123
ctrl = 0

[State 45, 7]
type = ChangeState
trigger1 = root,stateno = [180,185]
value = 2131
ctrl = 0

;--------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Clear
[Statedef 2131]
type    = S
movetype = I
physics = N
anim = 1114
ctrl = 0
velset = 0,0
sprpriority = 3

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = time= 1
value = 1900, 4
volume = 255

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 2111, 音を鳴らす]
trigger1 = 1
type = NotHitBy
value = SCA

[State 2120, このヘルパーを消す]
type = ChangeState
trigger1 = Time = 75
value = 2129
ignorehitpause = 1
;--------------------------------------------------------------------------
;---------------------------------------------------------------------------
; Grab
[Statedef 2124]
type    = S
movetype = A
physics = N
anim = 1116
ctrl = 0
velset = 0,0
sprpriority = 3

[State 2100]
type = HitOverride
trigger1 = Time = 0
attr = SCA, NA, SA, HA, NP, SP, HP
stateno = 2127
time = -1
IgnoreHitPause = 1

[State 2100]
type = NotHitBy
trigger1 = Time = 0
value = , AT;全ての投げに対し無効化
time = -1
IgnoreHitPause = 1

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = Time = 0
value = 5, 1

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 800, ヒット定義（投げ用）]
type = HitDef
Trigger1 = 1
hitflag = MADF
attr = S, NT          ;攻撃属性: これは Standing, Normal Throw（立ち通常投げ）
priority = 1, miss    ;投げなので優先度を低く、かつmissかdodgeの属性でなければなりません
sprpriority = 1       ;攻撃が当たった時に画像表示優先度を1に出来ます
p1stateno = 2125       ;自分のステート変更
p2stateno = 2126       ;相手を制御するステートに行かせる
guard.dist = 0        ;相手がガード状態に移行出来る距離（現在は0なのでガード不可）
fall.envshake.ampl = 6       ;ヒット後、相手が地面に着地した時の画面の振幅
fall.envshake.freq = 178     ;ヒット後、相手が地面に着地した時に画面が揺れる速度
fall.envshake.time = 15      ;ヒット後、相手が地面に着地した時に画面を揺らす時間
ignorehitpause=1

[State 45, 7]
type = ChangeState
trigger1 = animtime = 0
value = 2123
ctrl = 0
;---------------------------------------------------------------------------
; Grab ag
[Statedef 2125]
type    = A
movetype = A
physics = N
ctrl = 0
velset = 0,0

[State 1820]
type = EnvShake
trigger1 = time%30 = 0
trigger1 = Time <= 170
time = 30
freq = 50
ampl = 5

[State 2111, 音を鳴らす]
trigger1 = 1
type = NotHitBy
value = SCA

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = time= 2
value = 121, 16

[State 9100, anim1]
type=changeanim
Trigger1 = 1
value=1116
elem = 2
ignorehitpause = 1

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 9100, anim1]
type=SprPriority
Trigger1 = Time >= 160
value = -1

[State 1820]
type = palfx
trigger1 = Time = 50+70
time = 50
add = 250,0,250
sinadd = 50,50,0,10
color = 0
invertall = 1
;---------------------

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170
name = "applebom"
stateno = 1820
pos = 80, 10
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+5
name = "applebom"
stateno = 1820
pos = 0, 10
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+10
name = "applebom"
stateno = 1820
pos = -80, 10
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

;

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+15
name = "applebom"
stateno = 1820
pos = -80, -70
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+20
name = "applebom"
stateno = 1820
pos = 0, -70
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+25
name = "applebom"
stateno = 1820
pos = 80, -70
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

;
[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+30
name = "applebom"
stateno = 1820
pos = 80, -160
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+35
name = "applebom"
stateno = 1820
pos = 0, -160
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

[State 1800, ヘルパーを出す]
type = Helper
trigger1 = Time = 170+40
name = "applebom"
stateno = 1820
pos = -80, -160
keyctrl = 0
ownpal = 1
size.xscale = 1
size.yscale = 1
helpertype = Normal
SprPriority = 5

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

[State 1210, キャラ本体に引っ付く位置]
type = TargetBind
trigger1 = Time <= 100+70
pos = 30,0

[State 1820, このヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 170+41

;---DIZZY TARGET---
[Statedef 2126]
type    = S
movetype= I
physics = N
velset=0,0
ctrl=0

[State 1980, ぶつかり判定]
type = PlayerPush
trigger1 = 1
value = 0

[State 2111, 音を鳴らす]
type = NotHitBy
Trigger1 = Time <= 100+70
value = SCA
time = 2
ignorehitpause = 1

[State 6000, 移動速度]
type = posSet
trigger1 = 1
y = 0

[State 9100, anim1]
type=changeanim
Trigger1 = Time = 0
value=5300
ignorehitpause = 1

[State 800, ステート変更]
type = ChangeState
Trigger1 = time >= 300
value = 0
ctrl = 0

;---------------------------------------------------------------------------
;ドナルドmini喰らい

[Statedef 2127]
type = S
movetype= H
physics = N
ctrl = 0
anim = 1118
velset=0,0

[State 3000, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 1
value = 120, 19

[State 2120, このヘルパーを消す]
type = ChangeState
trigger1 = Time = 1
trigger1 = random <= 100
value = 2128
ignorehitpause = 1

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 2120, このヘルパーを消す]
type = ChangeState
trigger1 = Time = 30
value = 2123

;---------------------------------------------------------------------------
;ドナルドblow

[Statedef 2128]
type = S
movetype= H
physics = N
ctrl = 0
velset=0,0
anim = 1118

[State 2111, 音を鳴らす]
trigger1 = 1
type = NotHitBy
value = SCA

[State 1820]
type = palfx
trigger1 = Time = 0
time = 50
add = 250,0,250
sinadd = 50,50,0,10
color = 0
invertall = 1

[State -2, Too Many Shrooms]
type = PalFX
trigger1 = Palno = 10
mul = floor(Random/3), floor(Random/3), floor(Random/3)
add = floor(Random/5), floor(Random/5), floor(Random/5)
ignorehitpause = 1
time = 1

[State 2120, このヘルパーを消す]
type = ChangeState
trigger1 = Time = 51
value = 1820
ignorehitpause = 1
;-------------------------------------------------------------------------------
[Statedef 4699]
type = S
movetype = A
physics = N
velset = 0
anim = 4699
poweradd=-15000
ctrl=0

[State 3000, Super]
type = Helper
trigger1 = AnimElem = 1
persistent = 0
id = 2320
name = "Super Spark Helper"
pos = 0,-50
postype = P1
stateno = 2300
helpertype = normal
supermove = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state ];ターゲットリロード
type=TargetDrop
trigger1=!ishelper
excludeID = 1000
keepone=0




[State 1]
type = trans
trigger1 = Time >= 18
trans=addalpha
alpha=256-((time-18)*256/8),(time-18)*256/8;256




[State 1]
type = AssertSpecial
trigger1 = 1
flag = nofg
flag2 = nobg
flag3 = nobardisplay
ignorehitpause = 1
pausemovetime = 999
supermovetime = 999

[State 3040, 7]
type = BGPalfx
trigger1 = 1
ignorehitpause = 1
time = 2
add = -256,-256,-256
under = 2

[State 3040, 7]
type = EnvColor
trigger1 = 1
ignorehitpause = 1
value = 0,0,0
time = ifelse(time<=2,120,3)
under = 2





[State 3101, 超必殺技発動の時間停止]
type = SuperPause
trigger1 = time = 0
anim=-1
pos=9999999,0
poweradd = 0
time=29
movetime=29






[State 8000, 7]
type = changestate
trigger1=time>=29
trigger1=1
value=4700
;---------------------------------------------------------------------------
; イントロ（カーネル抹殺用）
[Statedef 4700]
type     = S
movetype = I
physics  = N
ctrl = 0
anim = 32031
velset = 0,0

[State -2];アルティメットマックバースト
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = MA
priority = 7
pausetime = 0,20
sparkno = -1
hitsound = -1
numhits = 0

[State 1 ]
type = Targetstate
trigger1 = numtarget
trigger1=time>=12
value = 5150


[State -3, ]
type = varset
trigger1=1
fv=1
value=1-((time-180)*0.036)
;ifelse(time<=120,1,1-((time-20)/30))

[State -3, ]
type = varset
trigger1=1
trigger1=fvar(1)<=0
fv=1
value=0.01


;[State -3, ]
;type = varset
;trigger1=fvar(1)>=1
;fv=1
;value=1

[State 22076]
type = AssertSpecial
trigger1 = 1
trigger1 = time < 210
flag= noBG
flag2= noFG
flag3= nobardisplay

;[State 22076]
;type = EnvShake
;trigger1 = (GameTime%3) = 1
;trigger1 = time >= 12
;trigger1 = time < 210
;time = 10
;ampl = -7
;freq = 95
;phase = 95

[State 22076]
type = NotHitBy
trigger1 = time >= 12
value = SCA

[State 22076]
type = PlaySnd
trigger1 = time = 12
value = 4000, 7

[State 22076]
type = PlaySnd
trigger1 = time = 12
value = 4000, 8

[State 22076]
type = PlaySnd
trigger1 = time = 12
value = 4000, 9
volume = 150

[State 22076]
type = PlaySnd
trigger1 = time = 12
value = 4000, 10
volume = 150

[State 22076]
type = Projectile
triggerall = time >= 12
triggerall = time <= 200
trigger1 = (GameTime%3) = 1
attr = S, HA
projanim = 75152
projhitanim = -1
projid = 75152
projpriority = 999999999
projsprpriority = 999999999
projremove = 0
projremovetime = 5
postype = p1
offset=36,-88
velocity = 0
animtype  = diagup
damage  = 10,5
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 0,12
sparkno = 7506
sparkxy = -15,-99999999999999999999999999999
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
fall = 1
fall.recover = 0
juggle = 0



[state 22076]
type = targetstate
triggerall = time >= 12
triggerall = time <= 200
trigger1 = 1
value = 427314


[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40000)<=0
triggerall=1;88000
name="SPsummon"
id=40000
pos=0,-83
postype=p1
facing=1
stateno=40000

[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40002)<=0
triggerall=1;88000
name="SPsummon"
id=40002
pos=0,-83
postype=p1
facing=1
stateno=40000


[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40010)<=0
triggerall=1;88000
name="SPsummon"
id=40010
pos=0,-83+12000
postype=p1
facing=1
stateno=40010



[State 22076]
type = Explod
triggerall = time >= 12
trigger1 = (Time%4) = 1
anim = ifelse(palno=10,73040,74000)
id = 75150
sprpriority = 99
postype = p1
pos=36,-88
bindtime = 1
under = 0
ownpal = 1 ; = 1
persistent = 1
ignorehitpause = 1
;SuperMoveTime = 9999
;PauseMoveTime = 9999
;scale=1,ifelse(time<=120,1,1-((time-120)/30))

[State 22076]
type = Explod
triggerall = time >= 12
trigger1 = (Time%3) = 1
anim = ifelse(palno=10,73041,74001)
id = 75150
sprpriority = 9
postype = p1
pos=36,-88
bindtime = 1
under = 0
ownpal = 1 ; = 1
persistent = 1
ignorehitpause = 1
;SuperMoveTime = 9999
;PauseMoveTime = 9999
;scale=1,ifelse(time<=120,1,1-((time-120)/30))

















;[State 22076]
;type = Explod
;trigger1 = palno=12
;trigger1 = target,stateno = 220760 && enemyNear,time = 0 || projhit22079 = 1
;anim = 22109+var(35)
;sprpriority = 120
;postype = p2
;pos = (target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
;facing = -1
;ownpal = 1 ; = 1
;ontop = 1

;[State 22076]
;type = HitAdd
;trigger1 = target,stateno = 220760 && enemyNear,time = 0
;value = 1

;[State 22076]
;type = Envcolor
;trigger1 = time >= 12
;trigger1 = time < 210
;trigger1 = (GameTime%5) = 1
;ignorehitpause = 1
;value = 255, 255, 255
;time = 1
;under = 5
;supermove = 1

[state 22076]
type = modifyexplod
trigger1 = time >= 180
id=75150
scale=fvar(1),fvar(1)


[state 22076]
type = removeexplod
trigger1 = time >= 210
id=75150


[state 22076]
type = changestate
trigger1 = time >= 244
value = 2123
ctrl=1

[state 22076]
type = changestate
trigger1 = time >= 244
trigger1 = win
value = 2131
ctrl=1

[State 194, 特殊効果] ;「ROUND1, FIGHT!」のアナウンスが始まるまでは、このコントローラを使ってください
type = AssertSpecial
trigger1 = 1
flag = Intro ;イントロの状態になります
;---------------------------------------------------------------------------
;Energy Field
[Statedef 195020]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 3072
ownpal = 1

[State 195020]
type = BindToroot
trigger1 = 1
pos = -8,0

[State 195020]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 195020]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s2752
hitsound = s0,26
p1stateno = 195022
p2stateno = 195023
getpower = 0

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

[state 195020]
type = targetdrop
trigger1 = 1

[state 195020]
type = destroyself
trigger1 = enemy,life<enemy,lifemax*0.5||EnemyNear,HitDefAttr=SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
trigger2 = root,var(55)>=2||(root,stateno=[2000,2005])

;---------------------------------------------------------------------------
;Energy Field Helper
[Statedef 195021]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 3072
ownpal = 1

[State 195021]
type = BindToroot
trigger1 = 1
pos = -8,0

[State 195021]
type = AssertSpecial
trigger1 = 1
flag = invisible

[State 195021]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s2752
hitsound = s0,26
p1stateno = 195022
p2facing = ifelse(enemynear,vel x>0,-1,1)
getpower = 0

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

[state 195021]
type = targetdrop
trigger1 = 1

[state 195021]
type = destroyself
trigger1 = enemy,life<enemy,lifemax*0.5||!(EnemyNear,HitDefAttr=SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT)
trigger2 = root,var(55)>=2||(root,stateno=[2000,2005])

;---------------------------------------------------------------------------
;Energy Field p1 state
[Statedef 195022]
type    = S
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 3073
ownpal = 1

[State 195022]
type = BindToroot
trigger1 = 1
pos = -8,0

[State 195022]
type = AssertSpecial
trigger1 = 1
flag = invisible

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

[state 195022]
type = targetdrop
trigger1 = 1

[state 195022]
type = changestate
trigger1 = time >= 1
value = prevstateno

[state 195022]
type = destroyself
trigger1 = enemy,life<enemy,lifemax*0.5
trigger2 = root,var(55)>=2||(root,stateno=[2000,2005])

;---------------------------------------------------------------------------
;Energy Field p2 state
[Statedef 195023]
type    = A
movetype= H
physics = N
sprpriority = 4
velset = -4,-6

[state 195023]
type = destroyself
trigger1 = ishelper

[State 195023]
type = ChangeAnim
trigger1 = time=0
value = 5070

[State 195023]
type = VelAdd
Trigger1 = time > 0
y = .39

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

;---------------------------------------------------------------------------
;R-D-K (Permission from Hiperhazz)
[StateDef 13713]
ctrl = 0
physics = N
velset = 0
anim = 22260
sprpriority = -5
movetime = -1
supermovetime = -1

[State 44304, STSS]
type = StateTypeSet
trigger1 = Root,StateType = S
StateType = S
ignorehitpause=1

[State 44304, STSC]
type = StateTypeSet
trigger1 = Root,StateType = C
StateType = C
ignorehitpause=1

[State 44304, STSA]
type = StateTypeSet
trigger1 = Root,StateType = A
StateType = A
ignorehitpause=1

[State 44304, STSL]
type = StateTypeSet
trigger1 = Root,StateType = L
StateType = L
ignorehitpause=1

[State 6965, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = -1
Facing = 1
Pos = 0, 0
ignorehitpause=1

[State 13713]
Type = Helper
Triggerall = NumHelper(14714) = 0
Trigger1 = palno = 10
OwnPal = 1
ID = 14714
StateNo = 14714
keyctrl = 1
PauseMoveTime = 999999
SuperMoveTime = 999999
Name = "ReversalDef"

;---------------------------------------------------------------------------
;R-D-K Helper (Permission from Hiperhazz)
[StateDef 14714]
ctrl = 0
physics = N
velset = 0
anim = 22270
sprpriority = -5
movetime = -1
supermovetime = -1

[State 0, SelfState]
type = SelfState
trigger1 = movereversed
value = 14714

[State 44304, STSS]
type = StateTypeSet
trigger1 = Root,StateType = S
StateType = S
ignorehitpause=1

[State 44304, STSC]
type = StateTypeSet
trigger1 = Root,StateType = C
StateType = C
ignorehitpause=1

[State 44304, STSA]
type = StateTypeSet
trigger1 = Root,StateType = A
StateType = A
ignorehitpause=1

[State 44304, STSL]
type = StateTypeSet
trigger1 = Root,StateType = L
StateType = L
ignorehitpause=1

[State 6965, BindToRoot]
Type = BindToRoot
Trigger1 = 1
Time = -1
Facing = 1
Pos = 0, 0
ignorehitpause=1

[State 14714]
type=targetstate
trigger1= 1
value = 131313

[State 0, ReversalDef]
type = ReversalDef
trigger1 = ishelper(14714)
trigger1 = 1
reversal.attr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT,AT
sparkno = -1
hitsound = -1
p2stateno = 131313

;---------------------------------------------------------------------------
;R-D-K p2stateno (Permission from Hiperhazz)
[StateDef 131313]
ctrl = 0
physics = N
velset = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = ishelper
trigger1 = time >= 1

[State 0, ChangeAnim2]
type = ChangeAnim2
trigger1 = 1
value = 5300

[State 0, PosSet]
type = PosSet
trigger1 = 1
x = 0
y = 0

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 0
y = 0

[State 0, LifeAdd]
type = LifeAdd
trigger1 = 1
value = -9999999
kill = 1
absolute = 0

[State 0, LifeSet]
type = LifeSet
trigger1 = 1
value = 0
kill = 1

[State ]
type=lifeset
trigger1=name="Dan"
value= 0

[State ]
type=lifeset
trigger1=name="Kyurem, Wiju Dragon"
value= 0

[State ]
type=lifeset
trigger1=name="OmegaTH"
value= 0

[State ]
type=lifeset
trigger1=name="The Pacifer"
value= 0

[State ]
type=lifeset
trigger1=name="G Mizuchi"
value= 0

[State 0, PowerSet]
type = PowerSet
trigger1 = 1
value = 0
kill = 1

[State 0, VarRangeSet]
type = VarRangeSet
trigger1 = 1
value = 0
first = 0
last = 59

[State 0, VarRangeSet]
type = VarRangeSet
trigger1 = 1
fvalue = 0
first = 0
last = 39

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(0) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(1) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(2) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(3) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(4) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(5) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(6) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(7) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(8) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(9) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(10) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(11) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(12) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(13) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(14) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(15) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(16) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(17) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(18) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(19) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(20) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(21) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(22) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(23) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(24) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(25) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(26) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(27) = random%20*-1

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(28) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(29) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(30) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(31) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(32) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(33) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(34) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(35) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(36) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(37) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(38) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(39) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(40) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(41) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(42) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(43) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(44) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(45) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(46) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(47) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(48) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(49) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(50) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(51) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(52) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(53) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(54) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(55) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(56) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(57) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(58) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(59) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(0) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(1) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(2) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(3) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(4) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(5) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(6) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(7) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(8) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(9) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(10) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(11) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(12) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(13) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(14) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(15) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(16) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(17) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(18) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(19) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(20) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(21) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(22) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(23) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(24) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(25) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(26) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(27) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(28) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(29) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(30) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(31) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(32) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(33) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(34) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(35) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(36) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(37) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(38) = 0

[state ]
type = VarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(39) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(1) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(2) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(3) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(4) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(5) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(6) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(7) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(8) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(9) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(10) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(11) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(12) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(13) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(14) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(15) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(16) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(17) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(18) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(19) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(20) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(21) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(22) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(23) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(24) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(25) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(26) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(27) = random%20*-1

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(28) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(29) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(30) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(31) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(32) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(33) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(34) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(35) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(36) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(37) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(38) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(39) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(40) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(41) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(42) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(43) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(44) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(45) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(46) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(47) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(48) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(49) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(50) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(51) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(52) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(53) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(54) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(55) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(56) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(57) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(58) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
var(59) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(1) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(2) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(3) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(4) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(5) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(6) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(7) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(8) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(9) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(10) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(11) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(12) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(13) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(14) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(15) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(16) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(17) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(18) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(19) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(20) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(21) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(22) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(23) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(24) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(25) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(26) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(27) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(28) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(29) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(30) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(31) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(32) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(33) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(34) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(35) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(36) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(37) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(38) = 0

[state ]
type = parentVarSet
trigger1=ishelper&&root,name!="Black Kyurem"
trigger2=!ishelper&&name!="Black Kyurem"
fvar(39) = 0
;---------------------------------------------------------------------------
[Statedef 40000]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 71995
ctrl = 0

[State 42731453]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

[State 42731453]
type = posset
trigger1 = ishelper(40002)
pos = (enemynear,pos X),(enemynear,pos Y)



[state 1]
type=nothitby
trigger1=1
value=SCA,AA,AP,AT
[state 1]
type=hitby
trigger1=1
value=C,HT

[State 1]
type = ReversalDef
trigger1 =1
trigger1 =1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
;pausetime = 0,0
p2facing = 1
p2stateno = 4275634;ifelse(roundstate=2,4275634,4275634)   ;OTHタイプ
;p2stateno = 4275634 ;通常タイプ
;p1stateno=3052
p2life = 1

[State 1]
type = targetLifeAdd
trigger1 = 1
value = -21474836
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999


[State 1 ]
type = TargetState
trigger1 = roundstate!=2
value = 4273147;53

[state 3051]
type=destroyself
trigger1=parent,stateno!=4501
trigger1=parent,stateno!=4601
trigger1=parent,stateno!=4700

;[state -2]
;type = hitoverride
;trigger1 = 1
;attr = SCA,AA,AP,AT
;stateno = 40022
;---------------------------------------------------------------------------
[Statedef 40010]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 71995
ctrl = 0

[State 42731453]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

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

[State 1]
type = ReversalDef
trigger1 =1
trigger1 =1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
;pausetime = 0,0
p2facing = 1
p2stateno = 4275634;ifelse(roundstate=2,4275634,4275634)   ;OTHタイプ
;p2stateno = 4275634 ;通常タイプ
;p1stateno=3052
p2life = 1

[State 1]
type = targetLifeAdd
trigger1 = 1
value = -21474836
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[state 3051]
type=destroyself
trigger1=parent,stateno!=4501
trigger1=parent,stateno!=4601
trigger1=parent,stateno!=4700


;[state -2]
;type = hitoverride
;trigger1 = 1
;attr = SCA,AA,AP,AT
;stateno = 40010
;---------------------------------------------------------------------------
[Statedef 40020]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 71995
ctrl = 0

;[state 1]
;type=posset
;trigger1=roundstate=2
;y=0


[State 42731453]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

;[state 1]
;type=nothitby
;trigger1=1
;value=SCA,AA,AP,AT
;[state 1]
;type=hitby
;trigger1=1
;value=C,HT

[State 1]
type = ReversalDef
trigger1 =1
trigger1 =1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
;pausetime = 0,0
p2facing = 1
p2stateno = 4273147;ifelse(roundstate=2,4275634,4275634)   ;OTHタイプ
;p2stateno = 4275634 ;通常タイプ
;p1stateno=3052
p2life = 1

[State 1]
type = targetLifeAdd
trigger1 = 1
value = -21474836
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 195, ヴァリアートリガー            ]
type=helper
helpertype=player
triggerall=var(37)!=13
trigger1=numhelper(40021)<=0
;trigger1=roundstate=0
trigger1=parent,palno=10
name="defeater"
id=40021
pos=0,0
postype=p1
facing=1
stateno=40021

[State 1 ]
type = TargetState
trigger1 = roundstate=2
value = 4273147;53

[state 3051]
type=destroyself
trigger1=numexplod(5366)=4501

[state -2]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 40020
;---------------------------------------------------------------------------

[Statedef 40021]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 71995
ctrl = 0

;[state 1]
;type=posset
;trigger1=roundstate=2
;y=0


[State 42731453]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

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

[State 1]
type = ReversalDef
trigger1 =1
trigger1 =1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
;pausetime = 0,0
p2facing = 1
p2stateno = 4273147;ifelse(roundstate=2,4275634,4275634)   ;OTHタイプ
;p2stateno = 4275634 ;通常タイプ
;p1stateno=3052
p2life = 1

[State 1]
type = targetLifeAdd
trigger1 = 1
value = -21474836
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999



[State 1 ]
type = TargetState
trigger1 = roundstate=2
trigger1=0
value = 4273147;53

[state 3051]
type=destroyself
trigger1=numexplod(5366)=4501

[state -2]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 40021

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

[Statedef 40022]
type    = S
movetype= H
physics = N
velset = 0,0
juggle = 0
anim = 71995
ctrl = 0

[State 42731453]
type = screenbound
trigger1 = 1
value = 0
movecamera = 0

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

[State 1]
type = ReversalDef
trigger1 =1
trigger1 =1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,10
;pausetime = 0,0
p2facing = 1
p2stateno = 4275634;ifelse(roundstate=2,4275634,4275634)   ;OTHタイプ
;p2stateno = 4275634 ;通常タイプ
;p1stateno=3052
p2life = 1

[State 1]
type = targetLifeAdd
trigger1 = 1
value = -21474836
absolute = 1
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999


[State 1 ]
type = TargetState
trigger1 = roundstate!=2
value = 4273147;53

[state 3051]
type=destroyself
trigger1=parent,stateno!=4501

[state -2]
type = hitoverride
trigger1 = 1
attr = SCA,AA,AP,AT
stateno = 40000

;-----------------------------------------------------------------
; A-Bomb Killer
[Statedef 23000]
type = S
ctrl = 0
anim = 2
velset = 0,0
movetype = I
physics = S
sprpriority = 2

[State 23000]
type = Projectile
trigger1 = 1
attr = S, NA
projanim = 2
projid = 8903
projpriority = 9999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = hard
sparkno = -1
damage    = 9999999999999999
hitflag = MAFDP
pausetime = 6,6
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
air.fall = 1
fall.recover = 0
getpower = 0, 0
p2stateno = 1000050
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = Projectile
trigger1 = 1
attr = S, SP
projanim = 2
projid = 8903
projpriority = 999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = Light
sparkno = -1
damage    = 10,0
hitflag = MAFDP
pausetime = 8,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
getpower = 0, 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = Projectile
trigger1 = 1
attr = S, NA
projanim = 2
projid = 8903
projpriority = 9999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = hard
sparkno = -1
damage    = 9999999999999999
hitflag = MAFDP
pausetime = 6,6
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
air.fall = 1
fall.recover = 0
getpower = 0, 0
p2stateno = 1000050
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = Projectile
trigger1 = 1
attr = S, SP
projanim = 2
projid = 8903
projpriority = 999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = Light
sparkno = -1
damage    = 99999999999999
hitflag = MAFDP
pausetime = 8,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
getpower = 0, 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = Projectile
trigger1 = 1
attr = S, NA
projanim = 2
projid = 8904
projpriority = 9999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = hard
damage    = 10
hitflag = MAFDP
sparkno = -1
pausetime = 6,6
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
air.fall = 1
fall.recover = 0
getpower = 0, 0
p2stateno = 1000050
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = Projectile
trigger1 = 1
attr = S, SP
projanim = 2
projid = 8904
projpriority = 999999999
projremove = 1
projremovetime = 2
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
animtype  = Light
damage    = 10,0
hitflag = MAFDP
pausetime = 8,8
ground.type = low
sparkno = -1
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
getpower = 0, 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AT,AA,AP
priority = 7,hit
pausetime = 0,0
sparkno = -1
numhits = 0
p2stateno = 1000050
ignorehitpause = 1

[state -1]
type = targetdrop
trigger1 = numtarget > 0
trigger1 = target,ishelper
ignorehitpause = 1

[state 23000]
type = targetstate
trigger1 = 1
value = 0
ignorehitpause = 1

[state 23000]
type = targetlifeadd
trigger1 = 1
value = -8901016835111111111
ignorehitpause = 1
absolute = 1

[State 23000]
type = HitAdd
trigger1 = numtarget > 0
trigger1 = enemynear,time = [0,1]
trigger1 = enemynear,stateno = [89023,89024]
trigger2 = enemynear,life = 0||enemynear,alive = 0
trigger2 = timemod = 6,0
value = 1
ignorehitpause = 1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = win || lose || drawgame

;-----------------------------------------------------------
; A-Bomb Killer 2
[Statedef 23001]
type = S
ctrl = 0
anim = 2
velset = 0,0
movetype = I
physics = S
sprpriority = 2

[state -1]
type = targetdrop
trigger1 = numtarget > 0

[State reversal]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
supermovetime = 999000
sparkno = -1
pausemovetime = 999000
p2stateno = 1000050
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
supermovetime = 999000
sparkno = -1
pausemovetime = 999000
p2stateno = 1000050
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[state state]
type = targetstate
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = target,alive = 0
value = 5150
ignorehitpause = 1
pausemovetime = 9990000
supermovetime = 9990000

[State 0, DestroySelf]
type = DestroySelf
trigger1 = win || lose || drawgame

;--------------------------------------------------
[Statedef 1000050]
type    = S
movetype= H
physics = S
velset = 0,0

[State 0]
type = SelfState
trigger1 = name = "Black Kyurem"
trigger1 = !ishelper
value = 999999
ignorehitpause = 1

[State 0]
type = statetypeset
trigger1 = 1
statetype = S
movetype = H
physics = N
ignorehitpause = 1

[state a]
type = velset
trigger1 = time = 0
x = 0
y = 0
ignorehitpause = 1

[State 9997, 1]
type = varset
trigger1 = ishelper
var(44) = prevstateno
ignorehitpause = 1

[State 9997, 1]
type = varset
trigger1 = ishelper
var(4) = anim
ignorehitpause = 1

[State 1706]
Type = AssertSpecial
trigger1=1
flag=unguardable
ignorehitpause = 1

[State 9997, 1];画面内いとけ
type = posset
triggerall = !ishelper
trigger1 = pos y != [-1000,100]
y = 0
ignorehitpause = 1

[State 9997, 1]
type = powerset
triggerall = name !="Black Kyurem"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 9997, 1]
type = Lifeset
triggerall = name !="Black Kyurem"
trigger1 = 1
value = 0
ignorehitpause = 1

[State 9997, 1]
type = Lifeadd
triggerall = name !="Black Kyurem"
trigger1 = 1
value = -99999999999999999
ignorehitpause = 1
Absolute = 1

[State 2752, Off]
Type = AssertSpecial
triggerall = !ishelper
trigger1=1
flag=nostandguard
flag2=nocrouchguard
flag3=noairguard
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = time%3 = 0
time = 90
add = 100,-180,-180
sinadd = -80,-80,-80,10
color = 0
invertall = 1
persistent = 30
ignorehitpause = 1

[State a]
type = AssertSpecial
trigger1 = ishelper
flag = invisible
ignorehitpause = 1

[State a]
type = PosSet
triggerall = ishelper
trigger1 = 1
x = 0
y = 2500
ignorehitpause = 1

[State proj]
type = Projectile
triggerall = ishelper
triggerall = time = 0
trigger1 = root,name !="Black Kyurem"
trigger1 = root,alive
trigger1 = time < 60
projID = 1708
projanim = anim
projhits = 999
projremovetime = 600
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
supermovetime = 999000
pausemovetime = 999000
attr = C,ST
hitflag = MAFPD
affectteam = B
givepower = 0,0
getpower = 0,0
pausetime = 0,0
persistent = 0
p1stateno = prevstateno*(root,alive=1)
ignorehitpause = 1

[State proj]
type = Projectile
triggerall = ishelper
trigger1 = root,name !="Black Kyurem"
trigger1 = root,alive
trigger1 = time < 60
projID = 1709
projanim = var(4)
projhits = 999
projremovetime = 600
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
supermovetime = 999000
pausemovetime = 999000
attr = C,ST
hitflag = MAFPD
affectteam = B
givepower = 0,0
getpower = 0,0
pausetime = 0,0
persistent = 0
p1stateno = var(44)*(root,alive=1)
ignorehitpause = 1

[State proj]
type = Projectile
triggerall = ishelper
trigger1 = root,alive = 0
trigger1 = root,name !="Black Kyurem"
projID = 1709
projanim = var(4)
projhits = 999
projremovetime = 600
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
supermovetime = 999000
pausemovetime = 999000
attr = C,ST
hitflag = MAFPD
affectteam = B
givepower = 0,0
getpower = 0,0
pausetime = 0,0
persistent = 0
p1stateno = 50
ignorehitpause = 1

[State proj]
type = Projectile
triggerall = ishelper
trigger1 = root,name !="Black Kyurem"
trigger1 = time = 0
projID = gametime
projanim = anim
projhits = 999
projremovetime = 600
projheightbound = -2000000000, 2000000000
ProjEdgeBound = 2000000000
ProjStageBound = 2000000000
postype = p1
offset = 0,199997500
supermovetime = 999000
pausemovetime = 999000
attr = C,ST
hitflag = MAFPD
affectteam = B
givepower = 0,0
getpower = 0,0
pausetime = 0,0
persistent = 0
p1stateno = 50
ignorehitpause = 1

[state destoryhelper]
type = destroyself
trigger1 = ishelper
ignorehitpause = 1

[State 60]
type = changestate
triggerall = !ishelper
trigger1 = name !="Black Kyurem"
trigger1 = !alive
value = 5150
ignorehitpause = 1

[State 9997, 1]
type = SelfState
triggerall = !ishelper
trigger1 = Time > 0
trigger2 = name ="Black Kyurem"
value = 5050
ignorehitpause = 1

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 0
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 1
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 2
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 3
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 4
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 5
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 6
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 7
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 8
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 9
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 10
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 11
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 12
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 13
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 14
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 15
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 16
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 17
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 18
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 19
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 20
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 21
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 22
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 23
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 24
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 25
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 26
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 27
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 28
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 29
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 30
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 31
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 32
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 33
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 34
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 35
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 36
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 37
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 38
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 39
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 40
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 41
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 42
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 43
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 44
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 45
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 46
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 47
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 48
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 49
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 50
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 51
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 52
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 53
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 54
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 55
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 56
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 57
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 58
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
v = 59
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 0
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 1
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 2
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 3
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 4
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 5
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 6
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 7
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 8
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 9
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 10
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 11
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 12
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 13
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 14
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 15
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 16
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 17
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 18
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 19
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 20
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 21
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 22
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 23
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 24
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 25
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 26
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 27
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 28
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 29
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 30
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 31
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 32
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 33
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 34
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 35
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 36
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 37
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 38
value = random-499

[State 0, ParentVarSet]
type = ParentVarSet
trigger1 = name != "Black Kyurem"
fv = 39
value = random-499

;---------------------------------------------------------------------------
[Statedef 999999]
type    = S
movetype= I
physics = N
ctrl = 0
anim = 10000

[State -2, Explod]
type = Explod
triggerall = numexplod(3205) = 0 && (root,var(10)=0||root,var(10)=7)
trigger1 = time = 0
anim = 4210
ID = 3205
pos = 0,-1079
postype = p2
removetime = 31
sprpriority = 999999

[State -2, PlaySnd]
type = PlaySnd
triggerall = numexplod(3205) != 0 && (root,var(10)=0||root,var(10)=7)
trigger1 = time = 0
value = S800,2
volume = 0
channel = -1
;―――――――――――――――――――――――――――――
;火の玉ヘルパー

[Statedef 133]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1

[State ]
type=changeanim
triggerall=ishelper(133)
triggerall=root,palno=[1,12]
trigger1=anim!=133
value=133
ignorehitpause=1

[State ]
type=Statetypeset
triggerall=ishelper(133)
trigger1=root,palno=[1,12]
statetype=S
movetype=A
physics=N
ignorehitpause=1

[State ]
type=Statetypeset
triggerall=ishelper(133)
trigger1=root,palno!=[1,12]
trigger1=!numtarget
trigger2=root,var(11)
statetype=S
movetype=A
physics=N
ignorehitpause=1

[State ]
type=Statetypeset
triggerall=ishelper(133)
trigger1=root,palno!=[1,12]
trigger1=numtarget
statetype=S
movetype=I
physics=N
ignorehitpause=1

[State 対真鬼巫女]
type=PosSet
trigger1=roundstate=2
trigger1=enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000)
X=0
Y=-350235
ignorehitpause=1

[State ]
Type=velset
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=AnimElemtime(1)=0
x=ifelse(vel x>9,9,-9)
y=ifelse(vel y>8,8,-8)
IgnoreHitPause=1

[State ]
type=velset
triggerall=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=vel x>11||vel x<-11
x=ifelse(vel x>9,9,-9)
IgnoreHitPause=1

[State ]
type=velset
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=vel y>8||vel y<-8
y=ifelse(vel y>8,8,-8)
IgnoreHitPause=1

[State ]
type=veladd
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=rootdist y>20
y=1;2
ignorehitpause=1

[State ]
type=veladd
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=rootdist y<20
y=-1;2
ignorehitpause=1

[State ]
type=veladd
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=rootdist x>0
x=1;2
ignorehitpause=1

[State ]
type=veladd
trigger1=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1=rootdist x<0
x=-1;2
ignorehitpause=1

[State ]
type=AssertSpecial
trigger1=ishelper(133)
flag=NoShadow
;flag2=Invisible
ignorehitpause=1

[State ]
type=Ctrlset
trigger1=ishelper(133)
value=0
ignorehitpause=1

[State ]
type=Lifeset
trigger1=ishelper(133)
value=9999999999999
ignorehitpause=1

[State ]
type=Screenbound
trigger1=ishelper(133)
value=0
ignorehitpause=1

[State ]
type=sprpriority
trigger1=ishelper(133)
value=ifelse(vel x>0,7,4)
ignorehitpause=1

[state ]
type=Playerpush
trigger1=ishelper(133)
value=0
ignorehitpause=1

[state ]
type=turn
triggerall=ishelper(133)
trigger1=facing!=root,facing

ignorehitpause=1

[State ]
type=AngleDraw
triggerall=ishelper(133)
trigger1=!lose
scale=1+0.02*(gametime%30),1+0.02*(gametime%30)
ignorehitpause=1

[State Shadow]
type=AfterImage
triggerall=ishelper(133)
trigger1=root,palno=[1,12]
trigger1=AnimElemtime(1)=0
Trans=add
TimeGap=1
FrameGap=5
time=-1
length=60
PalBright=0,-250,-250
PalContrast=256,0,0
Palmul=.65,.65,.75
ignorehitpause=1

[State Shadow]
type=AfterImage
triggerall=ishelper(133)
trigger1=root,palno=[1,12]
trigger1=roundstate=0
Trans=add
TimeGap=1
FrameGap=5
time=-1
length=60
PalBright=0,-250,-250
PalContrast=256,0,0
Palmul=.65,.65,.75
ignorehitpause=1

[State Shadow]
type=AfterImage
triggerall=ishelper(133)
trigger1=root,palno=[1,12]
trigger1=AnimElemtime(1)=0
time=99999999
TimeGap=2
FrameGap=1
length=60
palcolor=0
PalBright=30,30,30
PalContrast=300,300,300
Palmul=.65,.65,.75
Trans=add
ignorehitpause=1

[State Shadow]
type=AfterImage
triggerall=ishelper(133)
trigger1=root,palno=[1,12]
trigger1=roundstate=0
time=-1
TimeGap=2
FrameGap=1
length=60
palcolor=0
PalBright=100,100,100
PalContrast=400,400,400
Trans=add
ignorehitpause=1

[State ]
type=Projectile
triggerall=ishelper(133)
triggerall=root,palno!=[11,12]
triggerall=roundstate=2
trigger1=gametime%10=1
trigger2=gametime%20=1
trigger3=gametime%30=1
trigger4=gametime%40=1
trigger5=gametime%50=1
trigger6=gametime%60=1
trigger7=gametime%70=1
trigger8=gametime%80=1
trigger9=gametime%90=1
trigger10=gametime%100=1
trigger11=gametime%15=1
trigger12=gametime%25=1
trigger13=gametime%35=1
trigger14=gametime%45=1
trigger15=gametime%55=1
trigger16=gametime%65=1
trigger17=gametime%75=1
trigger18=gametime%85=1
trigger19=gametime%95=1
trigger20=gametime%105=1
trigger21=gametime%17=1
trigger22=gametime%27=1
trigger23=gametime%37=1
trigger24=gametime%47=1
trigger25=gametime%57=1
trigger26=gametime%67=1
trigger27=gametime%77=1
trigger28=gametime%87=1
trigger29=gametime%97=1
trigger30=gametime%107=1
projID=1100
projanim=1100
projhitanim=1101
projremanim=1101
projscale=0.8,0.8
projremove=0
projremovetime=50
attr=A,SP
damage=18,6
animtype=Hard
hitflag=MAF
guardflag=L
pausetime=0,0
hitsound=S5,32
velocity=0,0
remvelocity=0,0
accel=0.5,0
velmul=1,1
numhits=0
projpriority=7
projsprpriority=3
projheightbound=-1000000,1000000
projedgebound=1000000
projstagebound=1000000
ownpal=1
projshadow=0,0,0
palfx.time=15
palfx.add=32,0,0
palfx.mul=300,192,192
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[State ]
Type=Explod
trigger1=ProjHit=1||ProjHit=1||ProjHit=1
trigger2=ProjHit=2||ProjHit=2||ProjHit=2
trigger3=ProjHit=3||ProjHit=3||ProjHit=3
anim=11110
ID=11110
pos=floor(P2BodyDist X+random%10-20),floor(P2BodyDist Y+random%10-20)
postype=p1
scale=1,1
trans=add
sprpriority=7
removetime=24
SuperMoveTime=99999999999
PauseMoveTime=99999999999
ignorehitpause=1

[State ]
Type=Explod
triggerall=ishelper(133)
trigger1=gametime%2=0
anim=111
ID=133
pos=floor(sin(gametime%40*12*(pi/180))*8),floor(cos(gametime%40*12*(pi/180))*8)
postype=p1
scale=0.8,0.8
trans=add
sprpriority=ifelse(vel x>0,7,0)
SuperMoveTime=99999999999
PauseMoveTime=99999999999
ignorehitpause=1

[State ]
type=HitDef
triggerall=ishelper(133)
triggerall=!MoveReversed
trigger1=root,palno!=[1,12]
trigger1=root,statetype=A
attr=,NA
damage=32,8
animtype=Light
hitflag=MAFDLP
pausetime=0,0
sparkno=-1
sparkxy=0,0
ground.type=High
palfx.time=15
palfx.add=32,0,0
palfx.mul=300,192,192
ignorehitpause=1

[State 速度弄り]
type=Targetvelset
triggerall=numtarget
triggerall=!target,ishelper
triggerall=root,palno!=[2,10]
trigger1=roundstate=[2,3]
trigger1=root,sysvar(1)=[0,3000]
x=-99
y=-99
ignorehitpause=1

[State ]
type=ReversalDef
triggerall=ishelper(133)
triggerall=root,palno!=12
trigger1=!root,var(30)
reversal.attr=SCA,AA,AP,AT
pausetime=1,2+random%3
sparkxy=999,999
p2stateno=7000
palfx.time=15
palfx.add=0,-250,-250
palfx.mul=300,192,192
ignorehitpause=1

[State ]
type=ReversalDef
triggerall=root,palno=12
trigger1=!NumTarget
reversal.attr=SCA,AA,AP,AT
pausetime=1,2+random%3
numhits=0
sparkno=-1
sparkxy=0,0
hitsound=-1,0
palfx.time=15
palfx.add=0,-250,-250
palfx.mul=300,192,192
ignorehitpause=1

[State ]
type=Reversaldef
triggerall=ishelper(133)
triggerall=!(enemynear,name="Ultimate Kung Fu Man")
trigger1=root,var(30)
numhits=0
reversal.attr=SCA,AA,AT,AP
pausetime=1,2
sparkno=-1
guard.sparkno=-1
p2stateno=root,var(30)
p2getp1state=0
ignorehitpause=1

[State ]
type=Hitdef
triggerall=ishelper(133)
triggerall=root,palno!=12
triggerall=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,selfanimexist(13000))
trigger1=gametime % 10=0||enemynear,stateno=110||enemynear,stateno=115||enemynear,stateno=1305||enemynear,stateno=4026||enemynear,stateno=5210||enemynear,stateno=6266||enemynear,stateno=7777
trigger2=roundstate!=2
attr=,AA,AT,AP
hitflag=MAFDP
numhits=0
palfx.time=15
palfx.add=0,-250,-250
palfx.mul=300,192,192
sparkxy=999999,999999
fall.damage=256*256*256*128
ignorehitpause=1

[State ]
type=ReversalDef
triggerall=root,palno=12
trigger1=NumTarget
reversal.attr=SCA,AA,AP,AT
pausetime=0,0
numhits=0
sparkno=-1
sparkxy=0,0
hitsound=-1,0
palfx.time=15
palfx.add=0,-250,-250
palfx.mul=300,192,192
ignorehitpause=1

[State ]
type=ReversalDef
triggerall=root,palno!=12
trigger1=NumTarget
trigger1=root,sysvar(1)>=1000
reversal.attr=SCA,AA,AP,AT
pausetime=1,2+random%3
numhits=0
sparkno=-1
sparkxy=0,0
hitsound=-1,0
palfx.time=15
palfx.add=0,-250,-250
palfx.mul=300,192,192
fall.damage=256*256*256*128
ignorehitpause=1

[State 毒]
type=TargetLifeAdd
triggerall=numtarget
triggerall=!(enemynear,name="Felix")
triggerall=!target,ishelper
trigger1=RoundState=2
trigger1=NumTarget=1
value=-Floor(Enemy(0),LifeMax/100)
kill=1
ignorehitpause=1

[State ]
type=TargetLifeAdd
triggerall=numtarget
triggerall=!target,ishelper
trigger1=RoundState>2
trigger1=NumTarget=1
value=-999999999999
kill=1
ignorehitpause=1

[State ]
type=Varset
triggerall=numtarget=1
triggerall=target,ishelper
trigger1=(target,stateno=[0,1004])||target,stateno=1007||target,stateno=1010||target,stateno=1020||target,stateno=1043||target,stateno=1050||target,stateno=1065
trigger2=target,stateno=1070||(target,stateno=[1100,1102])||(target,stateno=[1110,1120])||(target,stateno=[1200,1202])||(target,stateno=[1209,1210])|| target,stateno=1220||(target,stateno=[1253,1254])
trigger3=(target,stateno=[1300,1303])||target,stateno=1350||target,stateno=1400||target,stateno=1412||target,stateno=1450||target,stateno=1500||target,stateno=1510||(target,stateno=[1600,1602])
trigger4=target,stateno=1720||target,stateno=1801||target,stateno=1999||(target,stateno=[2000,2005])||(target,stateno=[2010,2011])||(target,stateno=[2020,2025])||target,stateno=2029
trigger5=(target,stateno=[2100,2105])||target,stateno=2110||(target,stateno=[2120,2121])||target,stateno=2125||target,stateno=2133||(target,stateno=[2200,2206])||target,stateno=2210
trigger6=(target,stateno=[2220,2222])||target,stateno=2269||target,stateno=2300||(target,stateno=[2350,2356])||target,stateno=2400||target,stateno=2500||(target,stateno=[2506,2507])
trigger7=target,stateno=2600||target,stateno=2611||target,stateno=2901||(target,stateno=[3000,3002])||target,stateno=3041||target,stateno=3052||target,stateno=3059||(target,stateno=[3100,3101])
trigger8=target,stateno=3185||target,stateno=3200||target,stateno=3210||target,stateno=3230||target,stateno=3300||target,stateno=3333||target,stateno=3400||target,stateno=3403
trigger9=(target,stateno=[3510,3519])||(target,stateno=[3920,3921])||target,stateno=3929||(target,stateno=[3999,4001])||target,stateno=4050||target,stateno=4060||target,stateno=4080
trigger10=target,stateno=4090||target,stateno=4091||target,stateno=4211||(target,stateno=[4310,4311])||(target,stateno=[4330,4331])||target,stateno=4391||(target,stateno=[4395,4396])
trigger11=target,stateno=4444||target,stateno=4500||(target,stateno=[4510,4512])||target,stateno=4600||target,stateno=4920||target,stateno=4921||target,stateno=4922||target,stateno=4930
trigger12=(target,stateno=[5000,5001])||(target,stateno=[5010,5011])||target,stateno=5020||target,stateno=5030||target,stateno=5035||target,stateno=5040||target,stateno=5050
trigger13=(target,stateno=[5070,5071])||(target,stateno=[5080,5081])||(target,stateno=[5100,5101])||target,stateno=5110||target,stateno=5120||(target,stateno=[5200,5201])||target,stateno=5210
trigger14=target,stateno=5500||target,stateno=5555||target,stateno=5600||(target,stateno=[5788,5790])||target,stateno=5858||target,stateno=5900||target,stateno=5910||(target,stateno=[6000,6007])
trigger15=(target,stateno=[6010,6016])||(target,stateno=[6019,6020])||(target,stateno=[6024,6027])||(target,stateno=[6032,6035])||(target,stateno=[6100,6107])||target,stateno=6110
trigger16=target,stateno=6301||target,stateno=6306||target,stateno=6540||target,stateno=6666||target,stateno=6789||target,stateno=6800||target,stateno=6900||target,stateno=6920
trigger17=(target,stateno=[6999,7000])||target,stateno=7006||target,stateno=7011||(target,stateno=[7040,7047])||target,stateno=7055||target,stateno=7309||(target,stateno=[7320,7321])
trigger18=(target,stateno=[7326,7327])||target,stateno=7777||target,stateno=7878||(target,stateno=[8000,8006])||target,stateno=8012||target,stateno=8015||target,stateno=8040||target,stateno=8100
trigger19=target,stateno=8888||target,stateno=8900||target,stateno=9000||target,stateno=9007||target,stateno=9010||target,stateno=9100||target,stateno=9110||target,stateno=9126
trigger20=target,stateno=9200||target,stateno=9263||target,stateno=9809||(target,stateno=[9900,9901])||target,stateno=9936||target,stateno=9952||target,stateno=9988||(target,stateno=[9990,10004])
trigger21=target,stateno=10012||target,stateno=10015||target,stateno=10040||target,stateno=10101||(target,stateno=[10190,10199])||target,stateno=10504||target,stateno=10651
trigger22=(target,stateno=[11000,11004])||target,stateno=11100||target,stateno=11111||target,stateno=11301||target,stateno=11502||target,stateno=11680||target,stateno=11710||target,stateno=11720
trigger23=target,stateno=11730||(target,stateno=[11999,12004])||target,stateno=12030||target,stateno=12310||target,stateno=12345||target,stateno=12500||target,stateno=13000||target,stateno=13020
trigger24=target,stateno=13050||target,stateno=13100||target,stateno=13200||target,stateno=13500||(target,stateno=[14001,14002])||target,stateno=15000||target,stateno=15010||target,stateno=15100
trigger25=target,stateno=15110||target,stateno=15120||target,stateno=15200||target,stateno=15210||target,stateno=15220||target,stateno=16003||target,stateno=16803||target,stateno=18102
trigger26=target,stateno=19101||(target,stateno=[20000,20005])||target,stateno=20955||(target,stateno=[21000,21003])||target,stateno=21012||(target,stateno=[22101,22102])||target,stateno=22122
trigger27=(target,stateno=[22222,22224])||target,stateno=22428||target,stateno=24601||target,stateno=24610||target,stateno=25544||target,stateno=26320||target,stateno=26485||target,stateno=29995
trigger28=(target,stateno=[30000,30005])||target,stateno=30010||(target,stateno=[30013,30014])||(target,stateno=[30020,30021])||target,stateno=31993||target,stateno=32555||target,stateno=33333
trigger29=target,stateno=37000||(target,stateno=[40000,40010])||target,stateno=40020||target,stateno=40030||target,stateno=40952||target,stateno=43302||(target,stateno=[43425,43426])
trigger30=target,stateno=43655||target,stateno=43705||target,stateno=43708||target,stateno=44444||target,stateno=44488||target,stateno=44900||target,stateno=45755||target,stateno=45999
trigger31=target,stateno=46060||target,stateno=46965||target,stateno=49933||target,stateno=49943||(target,stateno=[49999,50000])||(target,stateno=[50505,50506])||(target,stateno=[51515,51518])
trigger32=target,stateno=55555||target,stateno=56414||target,stateno=58900||target,stateno=58901||target,stateno=60000||target,stateno=60010||target,stateno=60050||target,stateno=60315
trigger33=target,stateno=61000||target,stateno=64000||target,stateno=65000||target,stateno=65500||target,stateno=65530||target,stateno=66666||target,stateno=70000||target,stateno=70100
trigger34=target,stateno=70200||target,stateno=77777||target,stateno=80000||target,stateno=84555||(target,stateno=[88885,88888])||target,stateno=90000||(target,stateno=[90017,90019])
trigger35=target,stateno=94401||(target,stateno=[99919,99920])||target,stateno=99999||target,stateno=100215||target,stateno=102500||target,stateno=108000||target,stateno=110010
trigger36=target,stateno=111111||target,stateno=111222||target,stateno=112235||target,stateno=112240||target,stateno=112250||target,stateno=126100||target,stateno=169990||target,stateno=170000
trigger37=target,stateno=180002||(target,stateno=[188888,188889])||target,stateno=200000||target,stateno=220000||target,stateno=220005||target,stateno=222222||(target,stateno=[288888,288891])||target,stateno=300000
trigger38=target,stateno=301050||target,stateno=310120||target,stateno=313900||target,stateno=400000||target,stateno=444444||target,stateno=445051||target,stateno=450000||target,stateno=500000||target,stateno=500033||target,stateno=555555
trigger39=target,stateno=600000||target,stateno=649999||target,stateno=666666||target,stateno=700000||target,stateno=741002||(target,stateno=[741003,741004])||target,stateno=777777
trigger40=target,stateno=800000||target,stateno=888881||target,stateno=888888||target,stateno=900000||target,stateno=910010||target,stateno=99999||target,stateno=1000005
trigger41=(target,stateno=[1000010,1000014])||target,stateno=1000034||(target,stateno=[1000040,1000043])||target,stateno=1111111||target,stateno=1168000||target,stateno=1699922
trigger42=target,stateno=2000000||target,stateno=2222222||target,stateno=3000000||target,stateno=3333333||target,stateno=4000000||target,stateno=4444444||target,stateno=4498234
trigger43=target,stateno=5000000||(target,stateno=[5000005,5000006])||target,stateno=5000010||target,stateno=5000025||target,stateno=5000052||target,stateno=5000058||(target,stateno=[5000070,5000072])
trigger44=target,stateno=5000080||target,stateno=5000085||target,stateno=5000090||target,stateno=5000095||target,stateno=5000333||target,stateno=5555555||target,stateno=6000000
trigger45=target,stateno=6400000||target,stateno=6666666||target,stateno=7000000||target,stateno=7777777||target,stateno=8000000||target,stateno=8888888||target,stateno=9000000
trigger46=target,stateno=9999999||target,stateno=10000000||target,stateno=11111111||target,stateno=20000000||(target,stateno=[21360897,21360898])||target,stateno=22222222||target,stateno=30000000
trigger47=target,stateno=33333333||target,stateno=40000000||target,stateno=44444444||target,stateno=50000000||target,stateno=55555555||target,stateno=60000000||target,stateno=66666666
trigger48=target,stateno=70000000||target,stateno=77777777||target,stateno=80000000||target,stateno=88010000||target,stateno=88040000||target,stateno=88080000
trigger49=(target,stateno=[88888880,88888889])||target,stateno=90000000||(target,stateno=[99999999,100000000])||target,stateno=111111111||target,stateno=123456789||target,stateno=200000000
trigger50=target,stateno=222222222||target,stateno=300000000||target,stateno=333333333||target,stateno=400000000||target,stateno=444444444||target,stateno=500000000
trigger51=(target,stateno=[555555555,555555557])||target,stateno=600000000||target,stateno=666666666||target,stateno=700000000||target,stateno=777777777||target,stateno=800000000
trigger52=target,stateno=880100000||target,stateno=880400000||target,stateno=880800000||target,stateno=888802222||target,stateno=888888880||(target,stateno=[888888888,888888889])
trigger52=target,stateno=900000000||target,stateno=987654321||target,stateno=990990990||target,stateno=999999999||target,stateno=1000000000||target,stateno=1100000000||target,stateno=1111111111
trigger53=target,stateno=1200000000||target,stateno=1300000000||target,stateno=1400000000||target,stateno=1500000000||target,stateno=1600000000||target,stateno=1700000000||target,stateno=1800000000
trigger54=target,stateno=1900000000||target,stateno=2000000000||target,stateno=2100000000||target,stateno=2147483647
sysfvar(1)=target,stateno
ignorehitpause=1

[State 超即死投げ邪眼範囲内]
type=Targetstate
triggerall=NumTarget=1
triggerall=!target,ishelper
triggerall=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,selfanimexist(13000))
triggerall=!(enemynear,name="Felix")
triggerall=root,palno!=[2,10]
trigger1=roundstate!=2||root,sysvar(1)=[2000,6000]
trigger2=root,anim=2300||root,anim=2100||root,anim=20021||root,anim=20020
value=floor(sysfvar(1))
ignorehitpause=1

[State ]
type=Targetstate
triggerall=NumTarget=1
triggerall=!target,ishelper
triggerall=!(enemynear,name="ONI-MIKO-REIMU"&&enemynear,selfanimexist(13000))
triggerall=!(enemynear,name="Felix")
triggerall=target,stateno!=sysfvar(1)
triggerall=root,palno!=[2,10]
trigger1=roundstate!=2||root,sysvar(1)=[2000,6000]
trigger2=root,anim=2300||root,anim=2100||root,anim=20021||root,anim=20020
value=7000
ignorehitpause=1

[State 対Sジャド-]
type=Targetstate
triggerall=numtarget
triggerall=target,ishelper
trigger1=target,name="SUPER_JADO_SAN"
value=7000
ignorehitpause=1

[State 対名前長いＫＦＭ２]
type=Targetstate
triggerall=ishelper(135)
triggerall=NumTarget
triggerall=!target,numhelper
trigger1=target,name="SHIN CRAZY BURNING ARIEN LOLOL CHAOS TYPE KFM"
value=7000
ignorehitpause=1

[State 対幽霊意志]
type=Targetstate
triggerall=numtarget
triggerall=target,ishelper
trigger1=target,name="Will_of_The_Ghost"
value=7000
ignorehitpause=1

[State ]
type=Displaytoclipboard
trigger1=ishelper(133)
text="target,stateno:%d"
params=sysfvar(1)
ignorehitpause=1

[State ]
type=Selfstate
trigger1=1
value=5150
ignorehitpause=1
