;===================================
;　-2のステート
;  ===================================
[Statedef -2]

[State -2, 1]
type = varset
trigger1 = prevstateno = [190,199]
trigger2 = stateno = 5900
trigger2 = roundsexisted = 0
fv = 9
value = 2000.0000
persistent = 0
;４桁：ゲージデザイン
;３桁：パワーmugen
;２桁：ホーミングmugen
;１桁：霊力mugen
;0.1：アルカナフォース回数無限
;0.01：常時カウンター（１ＨＩＴ目のみ、一部飛び道具除く）
;0.001：ノックバック補正無し
;0.0001：復帰不能時間補正無し

;ボイスの大きさ
[State -2, 1]
type = varset
trigger1 = 1
v = 21
value = 200


[State -2, 1]
type = varset
trigger1 = palno = 11
fv = 9
value = floor(fvar(9)*0.001)*1000 + 111.0111
ignorehitpause = 1

[State -2, 1]
type = Powerset
trigger1 = floor(fvar(9)*0.01)-floor(fvar(9)*0.001)*10 = 1
value = Powermax
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = floor(fvar(9)*100)-floor(fvar(9)*10)*10 = 1
trigger1 = enemynear(0),movetype != H
v = 25
value = 1
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = floor(fvar(9)*1000)-floor(fvar(9)*100)*10 = 1
v = 24
value = 100
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = (fvar(9) - floor(fvar(9)))*1000 - floor((fvar(9) - floor(fvar(9)))*100)
v = 26
value = 100
ignorehitpause = 1

[State -2, 1];ゴールド（12P）カラー
type = null;palfx
trigger1 = palno = 12
time = 1
add = 128,128,-128
ignorehitpause = 1

[State -2, 1];ブラック（11P）カラー
type = null;palfx
trigger1 = palno = 11
time = 1
add = -224,-224,-224
ignorehitpause = 1

[State -2, 1]
type = LifeAdd
trigger1 = palno = 12
trigger1 = gametime%2 = 0
trigger1 = roundstate = 2
value = -1
kill = 0
absolute = 1
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = palno = 12
trigger1 = life = 1
fv = 9
value = floor(fvar(9)*0.001)*1000+111+(fvar(9)-floor(fvar(9)))
ignorehitpause = 1




















[State -2, 1]
type = DisplayToClipboard
trigger1 = Numhelper(7000) = 1
text = "Numhelper(8210) = %d"
params = Numhelper(8210)
ignorehitpause = 1

[State -2, 1]
type = null;DisplayToClipboard
trigger1 = 1
text = "fvar(5) = %f, var(26) = %d, var(24) = %d, var(20) = %d, var(1) = %d"
params = fvar(5),var(26),var(24),var(20),var(1)
ignorehitpause = 1

[State -2, 1]
type = null;DisplayToClipboard
trigger1 = Numhelper(7000) = 1
text = "var(5) = %d, var(6) = %d, var(7) = %d, var(8) = %d, var(9) = %d"
params = helper(7000),var(5), helper(7000),var(6), helper(7000),var(7), helper(7000),var(8), helper(7000),var(9)
ignorehitpause = 1




;コンフィグモード用ヘルパー
[State -2, 1]
type = helper
trigger1 = Numhelper(20000) = 0
trigger1 = command = "start" && command = "hold_a" && command = "hold_b"
trigger1 = var(19) = 0
helpertype = normal
name = "config"
ID = 20000
pos = 0,0
postype = p1
stateno = 20000
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 99999999
pausemovetime = 99999999

;小道具用ヘルパー
[State -2, 1]
type = helper
trigger1 = Numhelper(7000) = 0
helpertype = normal
name = "kodougu"
ID = 7000
pos = 0,0
postype = p1
stateno = 7000
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999

;つみこ
[State -2, 1]
type = helper
trigger1 = Numhelper(7001) = 0
helpertype = normal
name = "Tsumiko"
ID = 7001
pos = 0,0
postype = p1
stateno = 7001
keyctrl = 0
ownpal = 0
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999

;ふすみ
[State -2, 1]
type = helper
triggerall = Numhelper(7050) = 0
trigger1 = roundstate = 2
trigger2 = roundstate >= 1
trigger2 = Stateno != 190 && stateno != 194 && stateno != 197
helpertype = normal
name = "husumi"
ID = 7050
pos = -15,-105
postype = p1
stateno = 7050
keyctrl = 0
ownpal = ifelse(palno <= 9,1,0)
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999


[State -2, 1]
type = varset
triggerall = Numhelper(20000) = 0
trigger1 = var(1) = 0
v = 1
value = 3

[State -2, 1]
type = varset
triggerall = Numhelper(20000) = 0
triggerall = command = "z"
trigger1 = var(1) = 1
trigger1 = var(1) := 3
trigger2 = var(1) = 3
trigger2 = var(1) := 5
trigger3 = var(1) = 5
trigger3 = var(1) := 6
trigger4 = var(1) = 6
trigger4 = var(1) := 12
trigger5 = var(1) = 12
trigger5 = var(1) := 1
v = 1
value = var(1)
persistent = 10

[State -2, 1];アルカナ
type = null;varadd
trigger1 = command = "z"
trigger1 = var(1) <= 12
trigger2 = var(1) = 0
v = 1
value = ifelse(var(1) = 12,-11,1)
persistent = 10





[State -2, 1]
type = varset
trigger1 = StateType != A
v = 2
value = 0

[State -2, 1]
type = varset
trigger1 = 1
trigger1 = stateno != [40,52]
v = 3
value = 0

[State -2, 1]
type = varset
trigger1 = 1
trigger1 = stateno != [40,52]
v = 4
value = 0

[State -2, 1]
type = varset
trigger1 = 1
trigger1 = statetype != A
v = 5
value = 0

[State -2, 1]
type = varset
trigger1 = StateType != A
v = 7
value = 0

[State -2, 1]
type = varset
trigger1 = StateType != A
v = 9
value = 0

[State -2, 1]
type = varrangeset
trigger1 = 1
trigger1 = stateno != 2010
trigger1 = stateno != 2110
value = 0
first = 10
last = 11

[State -2, 1]
type = varset
trigger1 = time = 1
trigger1 = stateno != 3410
trigger1 = stateno != 3510
trigger1 = stateno != 3610
trigger1 = stateno != [150,155]
trigger1 = stateno != 11690
v = 12
value = 0
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = time = 1
trigger1 = stateno != 2510 && stateno != 2210 && stateno != 2110 && stateno != 2410 && stateno != 2010
v = 13
value = 0
ignorehitpause = 1

[State -2, 1]
type = turn
trigger1 = var(13) = 1
trigger1 = p2dist x < 0
ignorehitpause = 1
persistent = 0

[State -2, 1]
type = varset
trigger1 = 1
trigger1 = stateno != 3000
trigger1 = stateno != 3100
trigger1 = stateno != 3200
trigger1 = stateno != 3800
trigger1 = stateno != [600,620]
trigger1 = stateno != [1000,1020]
trigger1 = stateno != 1500
trigger1 = stateno != 1700
trigger1 = stateno != 8200
trigger1 = stateno != 8355
trigger1 = stateno != 193
trigger1 = stateno != [8400,8404]
trigger1 = stateno != 500
trigger1 = stateno != 20800 && stateno != 20008
trigger1 = stateno != 21500 && stateno != 21655
trigger1 = stateno != [21700,21704]
trigger1 = stateno != [10160,10162]
trigger1 = stateno != [11630,11631]
trigger1 = stateno != 198
v = 20
value = 0


;-----------------------------------------------------------------------------------------
;アルカナブラスト発動---------------------------------------------------------------------
;-----------------------------------------------------------------------------------------
[State -2, 1]
type = powerset
trigger1 = stateno != 2800
trigger1 = var(31) > 0
value = var(30)
ignorehitpause = 1

[State -2, 2];愛時水
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 1 || var(1) = 3 || var(1) = 10
trigger1 = 1
trigger2 = gametime%3 = 0
trigger2 = var(31) := var(31) -1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1

[State -2, 2];雷闇
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 2 || var(1) = 8
trigger1 = 1
trigger2 = gametime%7 = 0
trigger2 = var(31) := var(31) -1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1

[State -2, 2];樹火魔
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 4 || var(1) = 6 || var(1) = 9
trigger1 = 1
trigger2 = gametime%3 = 0
trigger2 = var(31) := var(31) -1
trigger3 = gametime%6 = 0
trigger3 = var(31) := var(31) -1
trigger4 = gametime%15 = 0
trigger4 = var(31) := var(31) -1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1

[State -2, 2];土
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 5
trigger1 = 1
trigger1 = var(31) := var(31) -1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1

[State -2, 2];光
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 12
trigger1 = 1
trigger1 = var(31) := var(31) -1
trigger2 = gametime%3 = 0
trigger2 = var(31) := var(31) -1
trigger3 = gametime%3 = 0
trigger3 = var(31) := var(31) -1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1

[State -2, 2];風鋼
type = varadd
triggerall = stateno != 2800 && var(31) > 0
triggerall = var(1) = 7 || var(1) = 11
trigger1 = 1
v = 31
value = ifelse(var(31) > 0,-1,0)
ignorehitpause = 1


[State -2, 3]
type = varset
trigger1 = stateno = 2900
v = 31
value = 0
ignorehitpause = 1


;------------------------------------
;開人戸　浄神符
;------------------------------------
[State -2, 5]
type = helper
trigger1 = var(1) = 5
trigger1 = var(31) > 0
trigger1 = stateno != 2800
trigger1 = Numhelper(11370) = 0
helpertype = normal
name = "jyousinpu"
ID = 11370
pos = 0,0
postype = p1
stateno = 11370
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999

[State -2, 5]
type = NotHitBy
trigger1 = Numhelper(11370) = 1
value = ,AA,AP

[State -2, 5]
type = AssertSpecial
trigger1 = Numhelper(11370) = 1
trigger1 = Ishelper = 0
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard

[State -2, 5]
type = Lifeadd
trigger1 = Numhelper(11370) = 1
trigger1 = helper(11370),stateno = 11371
value = -1*helper(11370),GetHitVar(damage)
kill = 1
absolute = 0



;-----------------------------------------------------------------------------------------
;アルカナフォース発動---------------------------------------------------------------------
;-----------------------------------------------------------------------------------------
[State -2, 1]
type = powerset
trigger1 = stateno != 2900
trigger1 = var(29) = 1
trigger1 = power > var(30)
value = var(30)
ignorehitpause = 1

[State -2, 1]
type = poweradd
trigger1 = stateno != 2900
trigger1 = var(29) = 1
trigger1 = power >= 10
value = -10
ignorehitpause = 1

[State -2, 1]
type = powerset
trigger1 = stateno != 2900
trigger1 = var(29) = 1
trigger1 = power < 10
value = 0
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = stateno != 2900
trigger1 = var(29) = 1
v = 30
value = power
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = var(30) <= 0
trigger1 = var(29) = 1
trigger1 = stateno != 2900
v = 29
value = 2
ignorehitpause = 1





;-----------------------------------------------------------------------------------------
;イオリス　スフェラ-----------------------------------------------------------------------
;-----------------------------------------------------------------------------------------
[State -2, 1]
type = powerset
trigger1 = var(1) = 1
trigger1 = var(29) = 3
trigger1 = stateno != 10270
value = 0
ignorehitpause = 1

[State -2, 2]
type = varset
trigger1 = var(1) = 1
trigger1 = var(29) = 3
trigger1 = stateno != 10270
v = 29
value = 2
ignorehitpause = 1

[State -2, 3]
type = RemoveExplod
trigger1 = var(29) = 2
ID = 10270

[State -2, 3]
type = RemoveExplod
trigger1 = stateno != 10270
ID = 10275
[State -2, 3]
type = RemoveExplod
trigger1 = stateno != 10270
ID = 10276


;-----------------------------------------------------------------------------------------
;本不生の意発動中-------------------------------------------------------------------------
;-----------------------------------------------------------------------------------------
[State -2, 4]
type = powerset
trigger1 = var(1) = 3
trigger1 = var(29) = 3
trigger1 = movetype = H
value = 0
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = var(1) = 3
trigger1 = var(29) = 3
trigger1 = movetype = H
v = 29
value = 2
ignorehitpause = 1

[State -2, 10790]
type = null;SuperPause
trigger1 = var(1) = 3
trigger1 = var(29) = 4
time = -1
anim = -1
;sound = S100,1
pos = 0,0
movetime = 1
darken = 0
p2defmul = 1
poweradd = 0
unhittable = 1

[State -2, 1]
type = AssertSpecial
trigger1 = var(1) = 3
trigger1 = var(29) = 1 || (var(29) = [3,4])
flag = timerfreeze
ignorehitpause = 1

[State -2, 1]
type = TargetState
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = stateno != [3300,3350]
trigger1 = stateno != [8300,8399]
trigger1 = enemynear(0),stateno != [120,155]
value = 10755

[State -2, 1]
type = powerset
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = power > var(30)
value = var(30)
ignorehitpause = 1

[State -2, 1]
type = poweradd
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = power >= 8
value = -8
ignorehitpause = 1

[State -2, 1]
type = powerset
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = power < 8
value = 0
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = var(1) = 3
trigger1 = var(29) = 4
v = 30
value = power
ignorehitpause = 1

[State -2, 1]
type = varset
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = var(30) <= 0
v = 29
value = 2

[state -2, 1]
type = RemoveExplod
trigger1 = var(29) = 2
ID = 10780

[State 10780, 2]
type = targetstate
trigger1 = Numtarget(10780) >= 1
trigger1 = var(29) = 4
value = 10785
ID = 10780
ignorehitpause = 1


[State 10780, 3]
type = Explod
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = NumExplod(10795) = 0
anim = 10795
ID = 10795
pos = 160,190
postype = back
facing = 1
bindtime = -1
removetime = -1
supermovetime = 99999999
pausemovetime = 99999999
scale = 0.5, 0.5
sprpriority = -1
ownpal = 1
removeongethit = 1
ignorehitpause = 1

[State 10780, 3]
type = Explod
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = NumExplod(10796) = 0
anim = 10796
ID = 10796
pos = 160,190
postype = back
facing = 1
bindtime = -1
removetime = -1
supermovetime = 99999999
pausemovetime = 99999999
scale = 0.5, 0.5
sprpriority = -1
ownpal = 1
removeongethit = 1
ignorehitpause = 1

[State 10780, 3]
type = Explod
trigger1 = var(1) = 3
trigger1 = var(29) = 4
trigger1 = NumExplod(10797) = 0
anim = 10797
ID = 10797
pos = 160,190
postype = back
facing = 1
bindtime = -1
removetime = -1
supermovetime = 99999999
pausemovetime = 99999999
scale = 0.5, 0.5
sprpriority = -1
ownpal = 1
removeongethit = 1
ignorehitpause = 1

[State 10780, 4]
type = RemoveExplod
trigger1 = var(29) != 4
ID = 10795
[State 10780, 4]
type = RemoveExplod
trigger1 = var(29) != 4
ID = 10796
[State 10780, 4]
type = RemoveExplod
trigger1 = var(29) != 4
ID = 10797



;------------------------------------
;地霊尊　軍奉行
;------------------------------------
[State -2, 5]
type = helper
trigger1 = var(1) = 5
trigger1 = var(29) = 1
trigger1 = stateno != 2900
trigger1 = Numhelper(11375) = 0
helpertype = normal
name = "ikusa"
ID = 11375
pos = 0,0
postype = p1
stateno = 11370
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999

[State -2, 5]
type = NotHitBy
trigger1 = Numhelper(11375) = 1
value = ,AA,AP

[State -2, 5]
type = AssertSpecial
trigger1 = Numhelper(11375) = 1
trigger1 = Ishelper = 0
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard

[State -2, 5]
type = Lifeadd
trigger1 = Numhelper(11375) = 1
trigger1 = helper(11375),stateno = 11371
value = ceil(-0.83*helper(11375),GetHitVar(damage))
kill = 1
absolute = 0



;------------------------------------
;大土神　大祓詞
;------------------------------------
[State 11420, 4]
type = RemoveExplod
trigger1 = var(29) = 2
ID = 11420
[State 11420, 4]
type = RemoveExplod
trigger1 = var(29) = 2
ID = 11422


;画面端めくり用
[State -2, 1]
type = helper
triggerall = Numhelper(7010) = 0
trigger1 = frontedgebodydist <= 0
trigger1 = enemynear(0),statetype != A
trigger1 = pos y >= enemynear(0),const(size.head.pos.y)
trigger2 = Numhelper(2610) = 1
trigger2 = helper(2610),screenpos x != [0,240]
trigger2 = enemynear(0),backedgebodydist <= 0
helpertype = normal
name = "mekuri"
ID = 7010
pos = -20,0
postype = p2
stateno = 7010
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 9999
pausemovetime = 9999




[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 2301
trigger2 = stateno = 2301
trigger2 = anim != 2301
ID = 2300

[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 2401
ID = 2400

[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 8355 && stateno != 21655
ID = 8366

[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 110
trigger1 = stateno != 115
ID = 110

[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 8500
ID = 8501
ignorehitpause = 1


[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10100
ID = 10105
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10100
ID = 10106
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10130
ID = 10135
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10130
ID = 10136
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != [10160,10162]
ID = 10171
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != [10160,10162]
ID = 10172
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10200
ID = 10205
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10200
ID = 10206
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10200
ID = 10207
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10230
ID = 10235
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10230
ID = 10236
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10230
ID = 10237


[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10730
ID = 10735
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10730
ID = 10736
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 10730
ID = 10737

[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11300
trigger1 = stateno != 11315
ID = 11305
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11300
trigger1 = stateno != 11315
ID = 11306
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11330
trigger1 = stateno != 11345
ID = 11335
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11330
trigger1 = stateno != 11345
ID = 11336

[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11380
trigger1 = stateno != 11400
ID = 11385
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11380
trigger1 = stateno != 11400
ID = 11386
[State -2, 1]
type = ReMoveExplod
trigger1 = stateno != 11380
trigger1 = stateno != 11400
ID = 11387
[State -2, 1]
type = ReMoveExplod
trigger1 = (stateno != [8400,8404]) && (stateno != [21700,21704])
trigger2 = stateno = 8404 || stateno = 21704
trigger2 = animelemtime(11) = 1
ID = 8400

[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11600
ID = 11606

[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11690
ID = 11695

[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11720
ID = 11725
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11720
ID = 11726
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11720
ID = 11727

[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11750
ID = 11750
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11750
ID = 11755
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 11750
ID = 11756



[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13400
trigger1 = stateno != 13415
ID = 13405
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13400
trigger1 = stateno != 13415
ID = 13406
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13430
trigger1 = stateno != 13445
ID = 13435
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13430
trigger1 = stateno != 13445
ID = 13436
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13460
trigger1 = stateno != 13475
ID = 13465
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13460
trigger1 = stateno != 13475
ID = 13466
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13500
ID = 13505
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13500
ID = 13506
[State -2, 1]
type = RemoveExplod
trigger1 = stateno != 13500
ID = 13507


[State -2, 1];サイズ変化
type = ModifyExplod
trigger1 = NumExplod(640 + var(1)) = 1
trigger1 = NumExplod(652) = 0
trigger1 = NumExplod(646) = 0
ID = 640 + var(1)
scale = var(20)*0.033*0.7, var(20)*0.033*0.7
removeongethit = 1
ignorehitpause = 1

[State -2, 1];サイズ変化
type = ModifyExplod
trigger1 = NumExplod(646) = 1
ID = 646
scale = (30-var(20))*0.033*0.7, (30-var(20))*0.033*0.7
removeongethit = 1
ignorehitpause = 1

[State -2, 1];サイズ変化
type = ModifyExplod
trigger1 = NumExplod(652) = 1
ID = 652
scale = var(20)*0.033*0.9, var(20)*0.033*0.9
removeongethit = 1
ignorehitpause = 1


[State -2, 1]
type = playsnd
triggerall = Enemynear(0),movetype = H
triggerall = enemynear(0),backedgebodydist <= 1
triggerall = Numhelper(11760) = 0
trigger1 = enemynear(0),stateno = 8311
trigger1 = enemynear(0),time = 1
trigger2 = enemynear(0),stateno = 610
value = S4, 6
channel = 1
volume = var(21)
persistent = 0


[State -2, 1]
type = TargetState
trigger1 = Numhelper(10740) >= 1
trigger1 = helper(10740),var(0) < 158
trigger1 = enemynear(0),stateno != [120,155]
trigger1 = stateno != [3300,3350]
trigger1 = stateno != [8300,8399]
value = 10755


[State -2, 1]
type = Projectile
trigger1 = (stateno = [8401,8404]) || (stateno = [21701,21704])
trigger1 = movetype = A
projID = 8420
projanim = 8420
projscale = 0.5,0.5
projremovetime = 5
projsprpriority = 3
offset = -25 + random%50,-1*random%100
postype = p2
supermovetime = 9999
pausemovetime = 9999


[State -2, 1]
type = varset
trigger1 = var(29) = 2
trigger1 = floor(fvar(9)*10)-floor(fvar(9))*10 = 1
v = 29
value = 0



;射干玉12P召喚ステート
[State -2, 2];天狼
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 1
trigger1 = helper(7000),var(12) >= 60
trigger1 = Numhelper(8210) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "tenrou"
ID = 8210
pos = -30,0
postype = back
stateno = 3910
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0


[State -2, 2];玉兎
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 2
trigger1 = Numhelper(8210) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "gyokuto"
ID = 8210
pos = 160,0
postype = back
stateno = 4030
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State -2, 2];玉兎
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 2
trigger1 = Numhelper(8211) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "gyokuto"
ID = 8211
pos = 160,-240
postype = back
stateno = 4030
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0


[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8210) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8210
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8211) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8211
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8212) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8212
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8213) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8213
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8214) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8214
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0

[State 4100, 1]
type = helper
trigger1 = palno = 12
trigger1 = Numhelper(7000) >= 1
trigger1 = helper(7000),var(11) = 3
trigger1 = helper(7000),var(12) = 120
trigger1 = Numhelper(8215) = 0
trigger1 = roundstate = 2
helpertype = normal
name = "suzubati"
ID = 8215
pos = 30-random%60,-131+random%15
postype = back
stateno = 4110
keyctrl = 0
ownpal = 1
facing = 1
;size.xscale = 1
;size.yscale = 1
supermovetime = 0
pausemovetime = 0



