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

[Statedef -2]

[State -2, 僗僥廗摼梡曄悢婰壇]
type = Parentvarset
triggerall = var(0) != gametime * 99
triggerall = movereversed
trigger1 = ishelper(3000) && stateno != 154 
trigger2 = ishelper(3100) && stateno != 154
trigger3 = ishelper(3200) && stateno != 154
trigger4 = ishelper(3300) && stateno != 154
trigger5 = ishelper(3400) && stateno != 154
trigger6 = ishelper(3500) && stateno != 154
trigger7 = ishelper(131) && stateno != 131
var(3) = stateno

[State -2, 挻懄巰曉偟梡曄悢婰壇]
type = Parentvarset
triggerall = hitpausetime > 0
triggerall = var(0) != gametime * 99
triggerall = movereversed
trigger1 = ishelper(3000) && stateno != 154 
trigger2 = ishelper(3100) && stateno != 154
trigger3 = ishelper(3200) && stateno != 154
trigger4 = ishelper(3300) && stateno != 154
trigger5 = ishelper(3400) && stateno != 154
trigger6 = ishelper(3500) && stateno != 154
trigger7 = ishelper(131) && stateno != 131
var(7) = stateno
ignorehitpause = 1

[State -2, 帪巭傔柍帇]
type = Pause
triggerall = !ishelper
triggerall = alive
triggerall = numhelper(155) > 0
trigger1 = palno != 11
trigger1 = roundstate > 2
trigger2 = palno = 11
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State -2, 帪巭傔柍帇]
type = Superpause
triggerall = !ishelper
triggerall = alive
triggerall = numhelper(155) > 0
trigger1 = palno != 11
trigger1 = roundstate > 2
trigger2 = palno = 11
anim = -1
time = 9999999999999
movetime = 9999999999999
unhittable = 0
darken = 0
p2defmul = 1
ignorehitpause = 1

[state -2, 挻懄巰梡帪巭傔]
type = Pause
triggerall = !ishelper
triggerall = alive
triggerall = palno != 11
trigger1 = !enemy,alive && !enemy(numenemy = 2),alive && !var(1)
time = 1
movetime = 1
ignorehitpause = 1

[state -2, 挻懄巰梡帪巭傔]
type = Superpause
triggerall = !ishelper
triggerall = alive
triggerall = palno != 11
triggerall = !enemy,alive && !enemy(numenemy = 2),alive && !var(1)
trigger1 = var(1) := 1
anim = -1
time = 1
movetime = 1
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2, 僿儖僷乕僇儊儔屌掕]
type = Screenbound
trigger1 = ishelper
value = 0
ignorehitpause = 1

[state -2, 傾乕儅乕徚柵帪曐尟梡]
type = Lifeset
triggerall = !ishelper
triggerall = palno != 11
triggerall = roundstate = 2
triggerall = numhelper(150)
trigger1 = numhelper(150) != 1
value = lifemax
ignorehitpause = 1

[state -2, 儔僀僼媧廂侾乣俇俹]
type = Lifeadd
triggerall = !ishelper
triggerall = numhelper(150)
triggerall = helper(150),gethitvar(damage)
trigger1 = palno = [1,6]
value = 20
ignorehitpause = 1

[state -2, 儔僀僼媧廂俈乣侾侽俹]
type = Lifeadd
triggerall = !ishelper
triggerall = numhelper(150)
triggerall = helper(150),gethitvar(damage)
trigger1 = palno = [7,10]
value = 40
ignorehitpause = 1

[state -2, 儔僀僼媧廂侾俀俹]
type = Lifeadd
triggerall = !ishelper
triggerall = numhelper(150)
triggerall = helper(150),gethitvar(damage)
trigger1 = palno = 12
value = 80
ignorehitpause = 1

[State -2, 侾侾俹儔僀僼]
type = Lifeset
triggerall = !ishelper
triggerall = roundstate = 2
trigger1 = palno = 11
value = 1 + random / 100
ignorehitpause = 1

[State -2, 侾侾俹僞僀儉傾僢僾夞暅]
type = Lifeset
triggerall = !ishelper
triggerall = roundstate != 2
trigger1 = palno = 11
value = 1000
ignorehitpause = 1

[State -2, 僈乕僪晄擻壔]
type = Assertspecial
trigger1 = 1
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State -2, 怳傝岦偒仌曕偒惂屼]
type = Assertspecial
trigger1 = !ishelper
flag = noautoturn
flag2 = nowalk
ignorehitpause = 1

[State -2, 侾侾俹杮懱摟柧壔]
type = Assertspecial
triggerall = !ishelper
trigger1 = palno = 11
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State -2, 侾侾俹峌寕敾掕儔儞僟儉僟儊乕僕]
type = Projectile
triggerall = !ishelper
triggerall = alive
triggerall = roundstate = 2
triggerall = numexplod(12000) = 0
trigger1 = palno = 11
trigger2 = enemy,name = "ore_no_moto_yome"
projanim = 1002
projID = 132
projremove = 0
projremovetime = 1
projsprpriority = -1
attr = SCA, AA, AT, AP
hitflag = MA
damage = random
givepower = powermax
priority = 7, hit
projriority = 9999999999999
yaccel = 9999999999999
fall = 1
fall.recover = 0
fall.damage = 9999999999999
sparkxy = 999, 999
p2getp1state = 0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 俈乣侾俀俹旐抏梡僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = alive
triggerall = palno = [7,12]
triggerall = numhelper(130) = 0
trigger1 = numexplod(12000) = 0
ID = 130
name = "konsen_hidan"
postype = p1
pos = 0, 0
stateno = 130
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 侾侾俹僗僥廗摼梡僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = alive
triggerall = palno = 11
triggerall = roundstate = 2
triggerall = numhelper(131) = 0
trigger1 = numexplod(12000) = 0
ID = 131
name = "konsen_anime"
postype = p1
pos = 0, 0
stateno = 131
helpertype = player
size.xscale = 1
size.yscale = 1
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 侾侾俹尒偨栚僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = palno = 11
trigger1 = numhelper(132) = 0
ID = 132
name = "11p"
postype = p1
pos = 0, 0
stateno = 132
helpertype = player
size.xscale = 0.15
size.yscale = 0.15
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 僿儖僷乕傾乕儅乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = palno != 11
trigger1 = numhelper(150) = 0
ID = 150
name = "armor"
postype = p1
pos = 0, 0
stateno = 150
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 侾侾丄侾俀俹崿慄梡僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = alive
triggerall = numhelper(151) = 0
triggerall = numexplod(12000) = 0
trigger1 = palno = [11,12]
ID = 151
name = "konsen"
postype = p1
pos = 0, 0
stateno = 151
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 侾侾丄侾俀俹惗惉梡僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = alive
triggerall = numhelper(152) < 8
triggerall = numhelper(151) > 0
triggerall = helper(151),numtarget < 8
triggerall = numexplod(12000) = 0
trigger1 = palno = [11,12]
ID = 152
name = "konsen_seisei"
postype = p1
pos = 0, 0
stateno = 152
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 帪巭傔夝彍僿儖僷乕屇傃弌偟]
type = Helper
triggerall = !ishelper
triggerall = alive
trigger1 = numhelper(155) = 0
trigger2 = gametime % 60 = 0
ID = 155
name = "tokitome_kaijo"
postype = p1
pos = 0, 0
stateno = 155
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state -2, 旐抏梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(130)
value = 130
ignorehitpause = 1

[state -2, 崿慄僗僥廗摼梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(131)
value = 131
ignorehitpause = 1

[state -2, 侾侾俹僐傾梡僗僥屌掕]
type = Selfstate
triggerall = !time
trigger1 = ishelper(132)
value = 132
ignorehitpause = 1

[state -2, 傾乕儅乕梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(150)
value = 150
ignorehitpause = 1

[state -2, 崿慄梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(151)
value = 151
ignorehitpause = 1

[state -2, 惗惉梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(152)
value = 152
ignorehitpause = 1

[state -2, 愯桳梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(153)
value = 153
ignorehitpause = 1

[state -2, 帪巭傔夝彍梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(155)
value = 155
ignorehitpause = 1

[State -2, 愝抲儈儔乕梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(2000)
trigger2 = ishelper(2100)
trigger3 = ishelper(2200)
value = 5150
ignorehitpause = 1

[State -2, 挼抏梡僗僥屌掕]
type = Selfstate
trigger1 = ishelper(3000)
trigger2 = ishelper(3100)
trigger3 = ishelper(3200)
trigger4 = ishelper(3300)
trigger5 = ishelper(3400)
trigger6 = ishelper(3500)
value = 5150
ignorehitpause = 1

[State -2, 傾僯儊姶抦]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = 10
trigger2 = anim = 11
trigger3 = anim = 12
trigger4 = anim = 20
trigger5 = anim = 40
trigger6 = anim = 100
trigger7 = anim = 101
trigger8 = anim = 105
trigger9 = anim = 106
trigger10 = anim = 116
trigger11 = anim = 117
trigger12 = anim = 170
trigger13 = anim = 175
trigger14 = anim = 180
trigger15 = anim = 181
trigger16 = anim = 190
trigger17 = anim = 191
trigger18 = anim = 200
trigger19 = anim = 210
trigger20 = anim = 220
trigger21 = anim = 230
trigger22 = anim = 240
trigger23 = anim = 250
trigger24 = anim = 400
trigger25 = anim = 410
trigger26 = anim = 420
trigger27 = anim = 430
trigger28 = anim = 440
trigger29 = anim = 450
trigger30 = anim = 600
trigger31 = anim = 610
trigger32 = anim = 620
trigger33 = anim = 630
trigger34 = anim = 640
trigger35 = anim = 650
trigger36 = anim = 700
trigger37 = anim = 800
trigger38 = anim = 900
trigger39 = anim = 1000
trigger40 = anim = 1100
trigger41 = anim = 1200
trigger42 = anim = 2000
trigger43 = anim = 2100
trigger44 = anim = 2200
trigger45 = anim = 3000
trigger46 = anim = 3100
trigger47 = anim = 3200
trigger48 = anim = 3300
trigger49 = anim = 3400
trigger50 = anim = 3500
trigger51 = anim = 5900
trigger52 = anim = 7000
trigger53 = anim = 7100
trigger54 = anim = 7200
trigger55 = anim = 8000
trigger56 = anim = 9000
trigger57 = anim = 9100
trigger58 = anim = 9200
value = anim
ignorehitpause = 1

[state -2, 傾僯儊姶抦]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = roundstate = 2
trigger1 = anim = 0
trigger2 = roundstate = 3
trigger2 = statetype != A
value = 0
ignorehitpause = 1

[State -2, 傾僯儊姶抦]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = [15,16]
value = 15
ignorehitpause = 1

[state -2, 傾僯儊姶抦]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = [20,21]
value = 20
ignorehitpause = 1

[state -2, 傾僯儊娔帇]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = [41,43]
value = 50
ignorehitpause = 1

[state -2, 傾僯儊娔帇]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = 51
value = 51
ignorehitpause = 1

[state -2, 傾僯儊姶抦]
type = Selfstate
triggerall = !ishelper
triggerall = alive
triggerall = !(enemy,name = "ONI-MIKO-REIMU" || enemy,name = "H-Reimu")
trigger1 = anim = 47
value = 52
ignorehitpause = 1

[state -2, gametime幃僗僥敳偗]
type = Selfstate
trigger1 = var(0) != gametime * 99
value = 40
ignorehitpause = 1

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

[Statedef -3]

[State -3, 僗僥敳偗梡曄悢]
type = Varset
trigger1 = 1
var(0) = gametime * 99
ignorehitpause = 1

[State -3, 僟儊乕僕]
type = Lifeadd
triggerall = !ishelper
triggerall = roundstate = 2
triggerall = palno != 11
trigger1 = numhelper(150) = 1
value = -1

[State -3, 摟柧俈乣侾俀俹]
type = Trans
trigger1 = palno = [7,10]
trigger2 = palno = 12
trans = add
ignorehitpause = 1

[State -3, 塭1乣俇丄侾俀俹]
type = Afterimage
triggerall = !ishelper
triggerall = time = 0
trigger1 = palno = [1,6]
trigger2 = palno = 12
time = -1
palcontrast = 32, 32, 32
paladd = 25, 25, 25
palmul = .65, .65, .65
framegap = 3
trans = add
ignorehitpause = 1

[State -3, 塭俈乣侾侽俹]
type = Afterimage
triggerall = !ishelper
triggerall = time = 0
trigger1 = palno = [7,10]
time = -1
palcontrast = 96, 0, 0
paladd = 25, 10, 10
palmul = .75, .65, .65
framegap = 3
trans = add
ignorehitpause = 1

[State -3, 揰柵侾侾俹]
type = Palfx
trigger1 = palno = 11
time = -1
add = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
mul = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
sinadd = 256, 256, 256, 256
invertall = 1
color = 0
ignorehitpause = 1

[State -3, 揰柵侾俀俹]
type = Palfx
trigger1 = palno = 12
time = -1
add = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
mul = 256 - (10 * gametime) % 256, 256 - (5 * gametime) % 256, 256 - (2 * gametime) % 256
sinadd = 256, 256, 256, 256
color = 0
ignorehitpause = 1

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