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

;混線・OTHキラー被弾・雑用ヘルパー
[StateDef 100022]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Statetypeset
trigger1 = IsHelper(100022)
statetype = C
movetype = I
physics = N
ignorehitpause = 1

[State ]
type = Changeanim
trigger1 = 1
value = 6001
ignorehitpause = 1

[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1

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

[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1

[State -2]
type = Posset
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = root,anim != [2502,2503] 
trigger1 = ishelper(100022)
x = P2BodyDist X
y = P2BodyDist Y
ignorehitpause = 1

[State 150, ヘルパー追従]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = root,anim = [2502,2503] 
trigger1 = ishelper(100022)
ignorehitpause = 1

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

[State 150, アーマー処理]
type = Hitoverride
trigger1 = 0
time = -1
slot = 1
attr = SCA, AA, AT, AP
stateno = 100022
ignorehitpause = 1

[State 150, 特定属性のみ命中]
type = Hitby
trigger1 = 1
value = C, HA
ignorehitpause = 1


[State 100022, アーマー処理]
type = Hitoverride 
triggerall = root,anim = [2502,2503] 
trigger1 = ishelper(100022)
time = -1               
slot = 1                
attr = SCA, AA, AT, AP   
stateno = 100022           
ignorehitpause = 1

[State dist]
Trigger1 = 1
type = DisplayToClipboard
ignorehitpause = 1
text = "ID = %d"
params = ID
ignorehitpause = 1

[State ]
type = assertspecial
trigger1 = IsHelper(100022)
flag = noshadow
ignorehitpause = 1
supermove = 1


[State ]
type = Changeanim
trigger1 = ishelper(100022)
value = 6001
ignorehitpause = 1


[State 準ステ固定]
type = Changestate
trigger1 = ishelper
value = 16500
ignorehitpause = 1

[State ]
type = null;Destroyself
trigger1 = numhelper(100022) = 2
ignorehitpause = 1


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

;強制宣告時占有ヘルパー
[StateDef 110022]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

[State ]
type = Statetypeset
trigger1 = IsHelper(110022)
statetype = C
movetype = I
physics = N
ignorehitpause = 1

[State ]
type = Changeanim
trigger1 = 1
value = 6001
ignorehitpause = 1

[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1

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

[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1

[State 150, ヘルパー追従]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = ishelper(110022)
ignorehitpause = 1

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

[State ]
type = Hitby
trigger1 = ishelper(110022)
value = SCA, HP
ignorehitpause = 1


[State 100022, アーマー処理]
type = Hitoverride 
trigger1 = ishelper(110022)
time = -1               
slot = 1                
attr = SCA, AA, AT, AP   
stateno = 110022           
ignorehitpause = 1


[State dist]
Trigger1 = 1
type = DisplayToClipboard
ignorehitpause = 1
text = "ID = %d"
params = ID
ignorehitpause = 1

[State ]
type = assertspecial
trigger1 = IsHelper(110022)
flag = noshadow
ignorehitpause = 1
supermove = 1

[State ]
type = Changeanim
trigger1 = ishelper(110022)
value = 6001
ignorehitpause = 1

[State ]
type = Destroyself
trigger1 = root,anim != [2502,2503] 
ignorehitpause = 1



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

[State  自キャラ以外だった場合]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 40000
ignorehitpause = 1

[State 2233, ヘルパーステートタイプ変更]
type = Statetypeset
trigger1 = ishelper(2233)
statetype = C
movetype = I
physics = N
ignorehitpause = 1

[State 2233, ヘルパーアニメ変更]
type = Changeanim
trigger1 = ishelper(2233)
value = 6000
ignorehitpause = 1

[State 2233, ヘルパーコントロール不可]
type = Ctrlset
trigger1 = ishelper(2233)
value = 0
ignorehitpause = 1

[State 190000]
type = Lifeset
trigger1 = ishelper(2233)
value = 0
ignorehitpause = 1

[State 2233, ヘルパー透明化]
type = Assertspecial
trigger1 = ishelper(2233)
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 2233, ヘルパーカメラ固定]
type = Screenbound
trigger1 = ishelper(2233)
value = 0
ignorehitpause = 1

[State 2233, ヘルパー押し戻し判定解除]
type = Playerpush
trigger1 = ishelper(2233)
value = 0
ignorehitpause = 1

[State 2233, ヘルパー追従]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = ishelper(2233)
pos = 0, 1000000
ignorehitpause = 1

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

[State 2233, みらくる式アニメ習得用当身判断]
type = Reversaldef
triggerall = ishelper(2233)
trigger1 = 1
numhits = 0
reversal.attr = C, HP
sparkno = -1
guard.sparkno = -1
pausetime = 1, 2
ignorehitpause = 1

[State 150, パンドラキラー改用変数調査]
type = Varset
triggerall = ishelper(2233)
trigger1 = enemynear,var(gametime % 60) = enemynear,stateno
trigger1 = enemynear,stateno != 0
trigger1 = var(1) := 1
var(0) = (gametime % 60)
ignorehitpause = 1

[State 150, ステ抜け変数初期化]
type = Null
triggerall = ishelper(2233)
trigger1 = !var(56)
trigger1 = var(23) := - 1 || var(27) := - 1 || var(31) := - 1 || var(35) := - 1 || var(39) := - 1
trigger1 = var(43) := - 1 || var(47) := - 1 || var(51) := - 1 || var(55) := - 1 || var(59) := - 1
trigger1 = var(56) := 1
ignorehitpause = 1

[State 150, ステ抜け変数調査]
type = Null
triggerall = ishelper(2233)
trigger1 = 1 || var(58) := var(58) * (var(58) < 10) || var(57) := ifelse(!var(58), gametime, var(57)) 
trigger1 = 1 || var(59) := ifelse(var(59) < 59 || var(59) = 59 && var(58) > 0, var(59), - 1) + !var(58)
trigger1 = 1 || var(10 + var(58)) := enemy,var(var(59))
trigger1 = var(58) := var(58) + 1
ignorehitpause = 1

[State 150, ステ抜け変数判定]
type = Null
triggerall = ishelper(2233)
triggerall = var(58) = 10
triggerall = var(10) != var(11) && var(10) != var(12) && var(10) != var(13) && var(10) != var(14) && var(10) != var(15)
triggerall = var(10) != var(16) && var(10) != var(17) && var(10) != var(18) && var(10) != var(19) && var(11) != var(12)
triggerall = var(11) != var(13) && var(11) != var(14) && var(11) != var(15) && var(11) != var(16) && var(11) != var(17)
triggerall = var(11) != var(18) && var(11) != var(19) && var(12) != var(13) && var(12) != var(14) && var(12) != var(15)
triggerall = var(12) != var(16) && var(12) != var(17) && var(12) != var(18) && var(12) != var(19) && var(13) != var(14)
triggerall = var(13) != var(15) && var(13) != var(16) && var(13) != var(17) && var(13) != var(18) && var(13) != var(19)
triggerall = var(14) != var(15) && var(14) != var(16) && var(14) != var(17) && var(14) != var(18) && var(14) != var(19)
triggerall = var(15) != var(16) && var(15) != var(17) && var(15) != var(18) && var(15) != var(19) && var(16) != var(17)
triggerall = var(16) != var(18) && var(16) != var(19) && var(17) != var(18) && var(17) != var(19) && var(18) != var(19)
trigger1 = var(23) = - 1
trigger1 = 1 || var(20) := (var(12)-var(10)-(var(11) - var(10)) * 2) / 2
trigger1 = 1 || var(21) := var(11) - var(20) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(20) * var(57) * var(57))
trigger1 = 1 || var(22) := var(10) - var(20) * var(57) * var(57) - var(21) * var(57)
trigger1 = 1 || var(23) := var(59)
trigger2 = var(27) = - 1
trigger2 = 1 || var(24) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger2 = 1 || var(25) := var(11) - var(24) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(24) * var(57) * var(57))
trigger2 = 1 || var(26) := var(10) - var(24) * var(57) * var(57) - var(25) * var(57)
trigger2 = 1 || var(27) := var(59)
trigger3 = var(31) = - 1
trigger3 = 1 || var(28) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger3 = 1 || var(29) := var(11) - var(28) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(28) * var(57) * var(57))
trigger3 = 1 || var(30) := var(10) - var(28) * var(57) * var(57) - var(29) * var(57)
trigger3 = 1 || var(31) := var(59)
trigger4 = var(35) = - 1
trigger4 = 1 || var(32) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger4 = 1 || var(33) := var(11) - var(32) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(32) * var(57) * var(57))
trigger4 = 1 || var(34) := var(10) - var(32) * var(57) * var(57) - var(33) * var(57)
trigger4 = 1 || var(35) := var(59)
trigger5 = var(39) = - 1
trigger5 = 1 || var(36) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger5 = 1 || var(37) := var(11) - var(36) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(36) * var(57) * var(57))
trigger5 = 1 || var(38) := var(10) - var(36) * var(57) * var(57) - var(37) * var(57)
trigger5 = 1 || var(39) := var(59)
trigger6 = var(43) = - 1
trigger6 = 1 || var(40) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger6 = 1 || var(41) := var(11) - var(40) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(40) * var(57) * var(57))
trigger6 = 1 || var(42) := var(10) - var(40) * var(57) * var(57) - var(41) * var(57)
trigger6 = 1 || var(43) := var(59)
trigger7 = var(47) = - 1
trigger7 = 1 || var(44) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger7 = 1 || var(45) := var(11) - var(44) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(44) * var(57) * var(57))
trigger7 = 1 || var(46) := var(10) - var(44) * var(57) * var(57) - var(45) * var(57)
trigger7 = 1 || var(47) := var(59)
trigger8 = var(51) = - 1
trigger8 = 1 || var(48) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger8 = 1 || var(49) := var(11) - var(48) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(48) * var(57) * var(57))
trigger8 = 1 || var(50) := var(10) - var(48) * var(57) * var(57) - var(49) * var(57)
trigger8 = 1 || var(51) := var(59)
trigger9 = var(55) = - 1
trigger9 = 1 || var(52) := (var(12) - var(10) - (var(11) - var(10)) * 2) / 2
trigger9 = 1 || var(53) := var(11) - var(52) * (var(57) + 1) * (var(57) + 1) - (var(10) - var(52) * var(57) * var(57))
trigger9 = 1 || var(54) := var(10) - var(52) * var(57) * var(57) - var(53) * var(57)
trigger9 = 1 || var(55) := var(59)
ignorehitpause = 1

[State 150, ヘルパーＩＤ記憶]
type = Parentvarset
triggerall = PlayerIDExist( Parent,ID )
trigger1 = ishelper(2233)
var(10) = id
ignorehitpause = 1

[State 150, デバッグ表示]
type = Displaytoclipboard
trigger1 = ishelper(2233)
text = "enemy,var(%d), f:%d, gametime:%d, pandora:%d"
params = var(59), var(58), var(57), var(0)
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [0, 60)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(23), var(20), var(21), var(22), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [60, 120)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(27), var(24), var(25), var(26), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [120, 180)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(31), var(28), var(29), var(30), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [180, 240)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(35), var(32), var(33), var(34), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [240, 300)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(39), var(36), var(37), var(38), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [300, 360)
text  ="\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(43), var(40), var(41), var(42), enemy,alive
ignorehitpause=1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
trigger1 = gametime % 540 = [360, 420)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(47), var(44), var(45), var(46), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [420, 480)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(51), var(48), var(49), var(50), enemy,alive
ignorehitpause = 1

[State 150, デバッグ表示２行目]
type = Appendtoclipboard
triggerall = ishelper(2233)
trigger1 = gametime % 540 = [480, 540)
text = "\nenemy,var(%d), a=%d, b=%d, c=%d, enemy,alive:%d"
params = var(55), var(52), var(53), var(54), enemy,alive
ignorehitpause = 1

;---------------------------------------------------------------------------
[Statedef 2333];時止め解除ヘルパー
type =A
movetype= I
physics=N

[State -2]
type = Changestate
trigger1 = !ishelper
trigger2 = name != "H_Yujiro"
value = 40000
ignorehitpause = 1

[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, 0

[State -2]
type = nothitby
trigger1 = ishelper(2333)
trigger1 = 1
value = SCA


[State -2]
type = Changeanim
trigger1 = ishelper(2333)
trigger1 = anim != 6002 
value = 6002
ignorehitpause = 1


[State -2]
type = Ctrlset
trigger1 = ishelper(2333)
value = 0
ignorehitpause = 1


[State 190000]
type = Lifeset
trigger1 = ishelper(2333)
value = 0
ignorehitpause = 1


[State -2]
type = Assertspecial
trigger1 = ishelper(2333)
flag = invisible
flag2 = noshadow
ignorehitpause = 1



[State -2]
type = Screenbound
trigger1 = ishelper(2333)
value = 0
ignorehitpause = 1

[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = ishelper(2333)
pos = 0, 0
ignorehitpause = 1

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

[State -3, 特殊効果]
type = AssertSpecial
triggerall = enemynear,name != "EX-Zetton"
triggerall = root,PalNo = 12
trigger1 = gametime % 35 = [0,32]
trigger2 = enemynear,name = "AhojinGod"
trigger3 = root,anim = [2502,2503]
flag = TimerFreeze

[State -3, 特殊効果]
type = AssertSpecial
Trigger1 = root,anim = 2700
flag = TimerFreeze

[State -3, 特殊効果]
type = AssertSpecial
trigger1 = root,anim = [2502,2503]
flag = TimerFreeze

[state ];時止め解除
type=pause
trigger1 = ishelper(2333)
time=0
movetime = 0
ignorehitpause = 1

[state ];時止め解除　
type = superpause
trigger1 = ishelper(2333)
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State -2]
type = Pause
triggerall = ishelper(2333)
;triggerall = roundstate = 2
triggerall = gametime % 8 != [2, 7]
trigger1 = enemynear,movetype = A
trigger1 = enemynear(numenemy > 1),movetype = A
trigger2 = roundstate = 2
trigger2 = enemynear,Name="ONI-MIKO-REIMU"
trigger2 = enemynear,SelfAnimExist(13000)
trigger2 = enemynear,alive!=0
trigger2 = !(GameTime%45)
time = 2
movetime = 2
ignorehitpause = 1

[State -2]
type = Superpause
triggerall = ishelper(2333)
;triggerall = roundstate = 2
triggerall = gametime % 8 != [2, 7]
trigger1 = enemynear,movetype = A
trigger1 = enemynear(numenemy > 1),movetype = A
trigger2 = roundstate = 2
trigger2 = enemynear,Name="ONI-MIKO-REIMU"
trigger2 = enemynear,SelfAnimExist(13000)
trigger2 = enemynear,alive!=0
trigger2 = !(GameTime%45)
anim = -1
time = 2
movetime = 2
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2]
type = Pause
triggerall = ishelper(2333)
triggerall = root,PalNo = 12
triggerall = !(enemynear,name ="G-Marisa") 
triggerall = !(enemynear,name ="Nemesis-R") 
triggerall = !(enemynear,name ="AxAyAzSSX")
triggerall = !(enemynear,name ="STG0235")
triggerall = !(enemynear,name = "FT_Ryo")
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
trigger2 = roundstate > 2
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1
[State -2]
type = Superpause
triggerall = ishelper(2333)
triggerall = root,PalNo = 12
triggerall = !(enemynear,name ="G-Marisa") 
triggerall = !(enemynear,name ="Nemesis-R") 
triggerall = !(enemynear,name ="AxAyAzSSX")
triggerall = !(enemynear,name ="STG0235")
triggerall = !(enemynear,name = "FT_Ryo")
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
trigger2 = roundstate > 2
anim = -1
time = 9999999999999
movetime = 9999999999999
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2]
type = pause
trigger1 = root,numprojid(55555) != 0
trigger2 = enemy,name ="Ill-Fate-Misuzu"
trigger2 = numenemy = 1
trigger2 = !numpartner
trigger2 = teamside = 1
trigger2 = enemy,palno = [11,12]
trigger2 = gametime%3 != 0			;アノマロカリスキラー
time=2147483647
movetime=2147483647
pausebg=0
persistent=256
ignorehitpause=1


[State -2]
type=superpause
trigger1 = root,numprojid(55555) != 0
trigger2 = enemy,name = "Ill-Fate-Misuzu"
trigger2 = numenemy = 1
trigger2 = !numpartner
trigger2 = teamside = 1
trigger2 = enemy,palno = [11,12]
trigger2 = gametime%3 != 0			;アノマロカリスキラー
time = 2147483647
movetime = 2147483647
pausebg = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 256
ignorehitpause = 1

[State -2, 強制死の宣告用時止め]
type = Pause
triggerall = ishelper(2333)
triggerall = helper(160000),NumTarget != 0 
triggerall = numhelper(160000)
trigger1 = !root,alive
;trigger1 = root,palno = 12
trigger2 = root,anim = [2502,2503]
trigger3 = root,stateno = 4040404
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State -2, 強制死の宣告用時止め]
type = Superpause
triggerall = ishelper(2333)
triggerall = helper(160000),NumTarget != 0 
triggerall = numhelper(160000)
trigger1 = !root,alive
;trigger1 = root,palno = 12
trigger2 = root,anim = [2502,2503]
trigger3 = root,stateno = 4040404
anim = -1
time = 9999999999999
movetime = 9999999999999
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State -2, 強制死の宣告用時止め解除]
type = Pause
triggerall = ishelper(2333)
triggerall = helper(160000),NumTarget != 0 
triggerall = numhelper(160000)
triggerall = enemy,alive
triggerall = enemy(numenemy = 2),alive
triggerall = numhelper(23331)
trigger1 = helper(23331),sysvar(3) > 35
time = 0
movetime = 0
ignorehitpause = 1

[State -2, 強制死の宣告用時止め解除]
type = Superpause
triggerall = ishelper(2333)
triggerall = helper(160000),NumTarget != 0 
triggerall = numhelper(160000)
triggerall = enemy,alive
triggerall = enemy(numenemy = 2),alive
triggerall = numhelper(23331)
trigger1 = helper(23331),sysvar(3) > 35
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1

[State 1000044]
type = BGPalFX
triggerall = root,PalNo = [7,12]
triggerall = ishelper(2333)
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
trigger2 = roundstate > 2
time = 50
mul = 200,10,10
under = 1
invertall = -1

[State 157, ヘルパー消去]
type = DestroySelf
triggerall = IsHelper(2333)
trigger1   = animelemtime(1) > 0
ignorehitpause = 1

[State 157]
type = null;helper
trigger1 = roundstate <= 3
trigger1 = ishelper(2333)
trigger1 = id%256 = [127,254]
trigger1 = playeridexist(id)
name = "id"
stateno = 8901016
id = 8901016
helpertype = player
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 0
pausemovetime = 99999999
supermovetime = 99999999
ignorehitpause = 1
;--------------------------------------------------------------------------------------------------
;  <ヘルパー> 時止め解除ヘルパーメモリ領域確保用ダミーヘルパーステート
;  時止め解除ヘルパー1で生成する時止め解除ヘルパー2のメモリ領域を確保しておくためのダミーヘルパー
;  なので,生成後はすぐにデストロイさせる。

[StateDef 23331]
type     = S
movetype = I
physics  = N
ctrl = 0
anim = -1
movehitpersist = 1
hitdefpersist  = 1

[State 23331, ヘルパー透明化] 
type = AssertSpecial     
trigger1 = ishelper(23331)
flag = invisible        
flag2 = noshadow         
ignorehitpause = 1

[State ]
type=nothitby
triggerall = Root,palno = 12
trigger1 = (enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger2 = (enemynear,name = "AhojinGod")
trigger3 = (enemynear,name="W-Reimu"&&enemy,palno=[11,12])
trigger4 = (enemynear,name="systemer")
trigger5 = (enemynear,name = "Grand Master")
trigger6 = (enemynear,name = "STG0235")
value=sca
ignorehitpause = 1

[State 2333, 敵発見！攻撃を開始する！]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State -2, ]
type = Varadd
triggerall = ishelper
triggerall = Root,palno = 12
triggerall = sysvar(1) = [0,1450]
trigger1 = enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000)
trigger1 = RoundState = 2
trigger1 = Random < 15
trigger2 = enemynear,name = "AhojinGod"
trigger2 = RoundState = 2
trigger2 = Random < 15
trigger3 = enemynear,name="W-Reimu"&&enemy,palno=[11,12]
trigger3 = RoundState = 2
trigger3 = Random < 15
trigger4 = enemynear,name = "systemer"
trigger4 = RoundState = 2
trigger4 = Random < 15
trigger5 = enemynear,name = "Grand Master"
trigger5 = RoundState = 2
trigger5 = Random < 5
trigger6 = enemynear,name = "STG0235"
trigger6 = RoundState = 2
trigger6 = Random < 5
sysvar(1) = 10
ignorehitpause = 1


[State -2, ]
type = VarSet
trigger1 = enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000)
trigger2 = enemynear,name = "AhojinGod"
trigger3 = enemynear,name="W-Reimu"&&enemy,palno=[11,12]
trigger4 = enemynear,name = "systemer"
triggerall = ishelper
triggerall = Root,palno = 12
triggerall = sysvar(1) < 700
sysvar(1) = 700
ignorehitpause = 1

[State 2333, ヘルパー追従]
type = BindToParent
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
facing = 1
time = 1
pos = 0,0

[State 2333, ヘルパー追従]
type = BindToParent
triggerall = Root,palno != 12
trigger1 = 1
facing = 1
time = 1
pos = 0,0


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

[State 2333, 無敵化]
type = null;NotHitBy
triggerall = IsHelper(2333)
trigger1   = 1
value = SCA
ignorehitpause = 1

[state 150, 回復]
type = varset
triggerall = root,palno = 12                                                       
trigger1 = roundstate != 2
sysvar(1) = 0                             
ignorehitpause = 1

[State 23331, ヘルパーステートタイプ変更]
type = Statetypeset      
trigger1 = ishelper(23331) 
movetype = I             
physics = N             
ignorehitpause = 1

[State 23331, ヘルパーアニメ変更]
type = Changeanim        
trigger1 = ishelper(23331) 
value = root,anim        
ignorehitpause = 1

[State 23331, ヘルパーコントロール不可]
type = Ctrlset           
trigger1 = ishelper(23331)
value = 0                
ignorehitpause = 1

[State 23331, ヘルパーライフ]
type = Lifeset           
trigger1 = ishelper(23331)
value = 9999999999999    
ignorehitpause = 1

[State 23331, ヘルパーカメラ固定]
type = Screenbound       
trigger1 = ishelper(23331)
value = 0               
ignorehitpause = 1

[State 23331, ヘルパー追従]
type = Bindtoroot     
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))  
trigger1 = ishelper(23331)
pos = 0, 0               
ignorehitpause = 1

[state 23331, ヘルパー押し戻し判定追加]
type = Playerpush        
trigger1 = ishelper(23331)
value = 1                
ignorehitpause = 1

[state 23331, ヘルパー振り向き]
type = Turn                      
triggerall = ishelper(23331)
trigger1 = facing != root,facing 
ignorehitpause = 1

[State 23331, 特定動作中無敵]
type = Nothitby              
triggerall = ishelper(23331)
trigger1 = root,anim != [0,99]
trigger1 = root,anim != 707 
trigger2 = roundstate != 2   
value = SCA                  
time = 3                   
ignorehitpause = 1

[State 23331, アーマー処理]
type = Hitoverride 
triggerall = roundstate = 2  
triggerall = root,anim = [0,196]  
trigger1 = ishelper(150)
time = -1               
slot = 1                
attr = SCA, AA, AT, AP   
stateno = 150           
ignorehitpause = 1

[State 23331, 特定動作中無敵]
type = Nothitby              
triggerall = ishelper(23331)
trigger1 = gethitvar(damage) 
value = SCA                  
time = 20                   
ignorehitpause = 1

[State 150, ヘルパーＩＤ記憶]
type = Parentvarset
trigger1 = ishelper(23331)
var(11) = id
ignorehitpause = 1

[state 150, 体力変数が変な値になったら修正]
type = varset          
triggerall = parent,anim != 2502                                          
trigger1 = sysvar(1) != [0,1550]
sysvar(1) = 0

[state 150, 専用対策、ファントム]
type = varset                                                    
triggerall = root,palno = 12
trigger1 = enemynear,name = "Phantom Mizuchi JP"     
sysvar(1) = 1400

[state 150, 回復]
Type = varadd 
triggerall = sysvar(1) = [0,1550] 
Triggerall = root,anim = 2700
Trigger1   = gametime%1 = 0
sysvar(1) = -2


[state 150, 回復]
type = varadd 
triggerall = root,anim = 703 || root,anim = 705                                                       
trigger1 = root,animelem = 1
sysvar(1) = -15               

[state 150, 回復]
type = varadd 
triggerall = root,anim = 5035   
trigger1 = root,animelem = 1
sysvar(1) = -150                                 

[state 150, 通常カラーガード処理]
type = varadd  
triggerall = parent,palno != 12   
triggerall = anim = [6003,6004]  
triggerall = sysvar(1) = [0,1000] 
trigger1 = root,animelem = 1                                                    
sysvar(1) = 15                             
ignorehitpause = 1

[state 150, 通常カラーガード処理]
type = varadd   
triggerall = parent,palno != 12  
triggerall = anim = [6003,6004]      
triggerall = sysvar(1) != [0,1000] 
trigger1 = root,animelem = 1                                                     
sysvar(1) = 10                           
ignorehitpause = 1

[state 150, 通常カラーダメージ処理(覚醒前)]
type = varadd   
triggerall = !root,var(3) 
triggerall = parent,palno != 12
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705)          
triggerall = sysvar(1) = [0,1000] 
triggerall = gethitvar(damage)     
trigger1 = root,animelem = 1                                                 
sysvar(1) = 90                             
ignorehitpause = 1

[state 150, 通常カラーダメージ処理(覚醒前)]
type = varadd    
triggerall = !root,var(3)   
triggerall = parent,palno != 12  
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705)  
triggerall = sysvar(1) != [0,1000]  
triggerall = gethitvar(damage) 
trigger1 = root,animelem = 1                                                    
sysvar(1) = 60                           
ignorehitpause = 1

[state 150, 通常カラーダメージ処理(覚醒)]
type = varadd   
triggerall = root,var(3) 
triggerall = parent,palno != 12
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705)          
triggerall = sysvar(1) = [0,1000] 
triggerall = gethitvar(damage)     
trigger1 = root,animelem = 1                                                 
sysvar(1) = 45                            
ignorehitpause = 1

[state 150, 通常カラーダメージ処理(覚醒)]
type = varadd    
triggerall = root,var(3)   
triggerall = parent,palno != 12  
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705)  
triggerall = sysvar(1) != [0,1000]  
triggerall = gethitvar(damage) 
trigger1 = root,animelem = 1                                                    
sysvar(1) = 30                           
ignorehitpause = 1


[state 150, 12Pガード処理]
type = varadd   
triggerall = parent,palno = 12   
triggerall = anim = [6003,6004]      
triggerall = sysvar(1) = [0,1000]     
trigger1 = root,animelem = 1                                               
sysvar(1) = 5                            
ignorehitpause = 1

[state 150, 12Pガード処理]
type = varadd    
triggerall = parent,palno = 12 
triggerall = anim = [6003,6004]        
triggerall = sysvar(1) != [0,1000]  
trigger1 = root,animelem = 1                                                 
sysvar(1) = 2                            
ignorehitpause = 1

[state 150, 12Pダメージ処理]
type = varadd    
triggerall = parent,palno = 12   
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705) 
triggerall = sysvar(1) = [0,1000]  
triggerall = gethitvar(damage) 
trigger1 = root,animelem = 1                                                  
sysvar(1) = 25                          
ignorehitpause = 1

[state 150, 12Pダメージ処理]
type = varadd    
triggerall = parent,palno = 12 
;triggerall = anim = 6005  
triggerall = anim != [6003,6004] 
triggerall = !(anim = 5035 || root,anim = 703 || root,anim = 705) 
triggerall = sysvar(1) != [0,1000] 
triggerall = gethitvar(damage) 
trigger1 = root,animelem = 1                                                   
sysvar(1) = 10                           
ignorehitpause = 1

[state 150, ダメージ処理]
type = varadd                                                     
triggerall = parent,anim = 2502
trigger1 = parent,animelemtime(109) > 0
sysvar(1) = 10                             
ignorehitpause = 1

[state 150, ダメージ処理]
type = varset                                                    
triggerall = parent,anim = 2502
trigger1 = parent,animelemtime(141) > 0
sysvar(1) = lifemax                             
ignorehitpause = 1

[state 150, ダメージ処理]
type = varset                                                    
triggerall = parent,anim = 2503
trigger1 = 1
sysvar(1) = lifemax - 1                            
ignorehitpause = 1

[state ]
type = null
triggerall = !var(53)
triggerall = numhelper(190000)||numhelper(190001)||numhelper(190002)||numhelper(190003)||numhelper(190004)||numhelper(190005)||numhelper(190006)||numhelper(190007)
triggerall = numhelper(190008)||numhelper(190009)||numhelper(190010)||numhelper(190011)||numhelper(190012)||numhelper(190013)||numhelper(190014)||numhelper(190015)||numhelper(190024)
triggerall = numhelper(190016)||numhelper(190017)||numhelper(190018)||numhelper(190019)||numhelper(190020)||numhelper(190021)||numhelper(190022)||numhelper(190023)
trigger1 = var(53):=floor(helper(190000),sysfvar(2))
trigger2 = var(53):=floor(helper(190001),sysfvar(2))
trigger3 = var(53):=floor(helper(190002),sysfvar(2))
trigger4 = var(53):=floor(helper(190003),sysfvar(2))
trigger5 = var(53):=floor(helper(190004),sysfvar(2))
trigger6 = var(53):=floor(helper(190005),sysfvar(2))
trigger7 = var(53):=floor(helper(190006),sysfvar(2))
trigger8 = var(53):=floor(helper(190007),sysfvar(2))
trigger9 = var(53):=floor(helper(190008),sysfvar(2))
trigger10 = var(53):=floor(helper(190009),sysfvar(2))
trigger11 = var(53):=floor(helper(190010),sysfvar(2))
trigger12 = var(53):=floor(helper(190011),sysfvar(2))
trigger13 = var(53):=floor(helper(190012),sysfvar(2))
trigger14 = var(53):=floor(helper(190013),sysfvar(2))
trigger15 = var(53):=floor(helper(190014),sysfvar(2))
trigger16 = var(53):=floor(helper(190015),sysfvar(2))
trigger17 = var(53):=floor(helper(190016),sysfvar(2))
trigger18 = var(53):=floor(helper(190017),sysfvar(2))
trigger19 = var(53):=floor(helper(190018),sysfvar(2))
trigger20 = var(53):=floor(helper(190019),sysfvar(2))
trigger21 = var(53):=floor(helper(190020),sysfvar(2))
trigger22 = var(53):=floor(helper(190021),sysfvar(2))
trigger23 = var(53):=floor(helper(190022),sysfvar(2))
trigger24 = var(53):=floor(helper(190023),sysfvar(2))
trigger25 = var(53):=floor(helper(190024),sysfvar(2))
ignorehitpause = 1

[State dist]
Trigger1 = 1
type = DisplayToClipboard
ignorehitpause = 1
text = "anim = %d"
params = (var(53))
ignorehitpause = 1

[State -2, 強制死の宣告用ｔｉｍｅ代わり]
type = Varadd
triggerall = ishelper(23331)
triggerall = root,anim = 2503
trigger1 = roundstate = 3
sysvar(3) = 1
ignorehitpause = 1

[State 190000, ヘルパーＩＤ記憶]
type = Parentvarset
triggerall = PlayerIDExist( Parent,ID )
trigger1 = numhelper(190000)
var(12) = helper(190000),sysfvar(4)
ignorehitpause = 1

[state ]
type = parentvarset
triggerall = PlayerIDExist( Parent,ID )
trigger1 = var(53)
var(56) = var(53)
ignorehitpause = 1



;--------------------------------------------------------------------------------------------------
;  時止め解除ヘルパー2を生成する。
;  空いているメモリ領域番号(?)で一番小さいのは時止め解除ヘルパーメモリ確保用ダミーヘルパーがいた
;  メモリ領域になるので,この位置に生成される。

[State 2333, 時止め解除ヘルパー2]
type = Helper
triggerall = IsHelper(23331)
trigger1   = !NumHelper(2333)
ID = 2333
name = "kaijo_2"
helpertype = Player
supermovetime = 99999999999
pausemovetime = 99999999999
ignorehitpause = 1




;---------------------------------------------------------------------------------
;----------------------------------------------------------------
;親変更用ループステート
[Statedef 29961]
type = U
movetype = U
movehitpersist = (Name != "H_Yujiro")
hitdefpersist = (Name != "H_Yujiro")

[State 29961, 誰だお前は！]
type = ChangeState
value = 45000
trigger1 = Name != "H_Yujiro"
ignorehitpause = 1

;-------------------------------------
;親変更に成功したかを確認する

[State 29961, 最初に親変更成功フラグをリセット]
type = VarSet
sysvar(0) = (sysvar(0)&(1^-1))  ;1bit目をOFF
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数をあらかじめ保存]
type = VarSet
sysvar(2) = Parent,var(0)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数をいじってみる]
type = ParentVarSet
var(0) = !sysvar(2)
  ;親の変数が0だったら1を入れ、そうでなければ0を入れる
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数がいじれたら親変更成功フラグを立てる]
type = VarSet
sysvar(0) = (sysvar(0)|1)  ;1bit目をON
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = Parent,var(0) = ( !sysvar(2) )
ignorehitpause = 1

[State 29961, 最後に変数を元にもどしてやる]
type = ParentVarSet
var(0) = sysvar(2)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更に失敗しているならエラメが余計に出るので
ignorehitpause = 1
;--------------------------------------
[State 29961, ループ回数]
type = VarAdd
var(8) = 1
trigger1 = 1
ignorehitpause = 1

;--------------------------------------
;Parent,IDの1桁目のアドレスをいじるステートへ
;  ※同じものを何個も並べているのはhitpausetimeがある間は
;    同じF中は同じ順番にあるChangeStateを実行できないため

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)  ;必要なだけ1桁目をループさせていない時
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)     ;親変更に成功していない
trigger1 = var(8) = [0,1000]        ;ループ限界数
trigger1 = var(7) := var(7)+1 || 1  ;アドレスをいじるステートを読み込んだ回数
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの1桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) < var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998264
persistent = 256
ignorehitpause = 1

;--------------------------------------
;Parent,IDの2桁目のアドレスをいじるステートへ

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)  ;親変更に成功していない
trigger1 = var(8) = [0,1000]        ;ループ限界数
trigger1 = var(7) := var(7)+1 || 1  ;アドレスをいじるステートを読み込んだ回数
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 29961, Parent,IDの2桁目のアドレスをいじるステートへ]
type = ChangeState
triggerall = var(7) >= var(6)
triggerall = hitpausetime
trigger1 = !(sysvar(0)&1)
trigger1 = var(8) = [0,1000]
trigger1 = var(7) := var(7)+1 || 1
value = 2998265
persistent = 256
ignorehitpause = 1

[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1


[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1


[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1

;----------------------------------------------------
[Statedef 190000];混線,親変更用ヘルパー
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

[State 190000,自キャラ以外]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State ]
type=nothitby
trigger1=1
value=sca

[State 190000,アニメ変更]
type = Changeanim
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
triggerall = !numtarget
value = 9502;6000
ignorehitpause = 11

[State 190000,動けないように]
type = Ctrlset
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,ライフをゼロに]
type = Lifeset
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,ヘルパーステートタイプ変更]
type = Statetypeset
triggerall = !numtarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
statetype = A
movetype = A
physics = N
ignorehitpause = 1

[State 190000,ヘルパーを見えなくする]
type = Assertspecial
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
flag = invisible
flag2 = noshadow
ignorehitpause = 1
[State 190000,カメラ固定]
type = Screenbound
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1
[State 190000,押し戻し判定削除]
type = Playerpush
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,無敵]
type = Nothitby
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = SCA
ignorehitpause = 1

[State 190000,ガード認識距離の無効化]
type = Attackdist
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1


[State 1920000,位置調整]
Type       = Bindtoroot
Trigger1   = Ishelper(190000) + Ishelper(190023)
Trigger1   = !numtarget
Pos        = -70,-225*Ishelper(190023)
Ingorehitpause = 1

[State 1920000,位置調整6]
Type       = Bindtoroot
Trigger1   = Ishelper(190001) + Ishelper(190002) + Ishelper(190003) + Ishelper(190004) + Ishelper(190005)
Trigger1   = !numtarget
Pos        = -70,-10 -10*Ishelper(190002) - 20*Ishelper(190003) - 30*Ishelper(190004) - 40*Ishelper(190005)
Ignorehitpause = 1

[State 1920000,位置調整7]
Type       = Bindtoroot
Trigger1   = Ishelper(190006) + Ishelper(190007) + Ishelper(190008) + Ishelper(190009) + Ishelper(190010) + Ishelper(190011)
Trigger1   = !numtarget
Pos        = -70,-60 - 10*Ishelper(190007) - 20*Ishelper(190008) - 30*Ishelper(190009) - 40*Ishelper(190010) - 50*Ishelper(190011)
Ignorehitpause = 1

[State 1920000,位置調整8]
Type       = Bindtoroot
Trigger1   = Ishelper(190012) + Ishelper(190013) + Ishelper(190014) + Ishelper(190015) + Ishelper(190016) + Ishelper(190017)
Trigger1   = !numtarget
Pos        = -70,-120 - 10*Ishelper(190013) - 20*Ishelper(190014) - 30*Ishelper(190015) - 40*Ishelper(190016) - 50*Ishelper(190017)
Ignorehitpause = 1

[State 1920000,位置調整9]
Type       = Bindtoroot
Trigger1   = Ishelper(190018) + Ishelper(190019) + Ishelper(190020) + Ishelper(190021) + Ishelper(190022) + Ishelper(190023) 
Trigger1   = !numtarget
Pos        = -70,-180 - 10*Ishelper(190019) - 20*Ishelper(190020) - 30*Ishelper(190021) - 40*Ishelper(190022) - 50*Ishelper(190023)
Ignorehitpause = 1


[State 190000,ターゲット習得時位置変更１]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger1 = NumTarget 
pos = 0,  - ishelper(190000) * 10 - ishelper(190001) * 20 - ishelper(190002) * 30 - ishelper(190003) * 40 - ishelper(190004) * 50 - ishelper(190005) * 60 - ishelper(190006) * 70 - ishelper(190007) * 80
ignorehitpause = 1

[State 190000,ターゲット習得時位置変更2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger1 = NumTarget 
pos = -30,  - ishelper(190008) * 10 - ishelper(190009) * 20 - ishelper(190010) * 30 - ishelper(190011) * 40 - ishelper(190012) * 50 - ishelper(190013) * 60 - ishelper(190014) * 70 - ishelper(190015) * 80 - ishelper(190024) * 90 - ishelper(190025) * 100
ignorehitpause = 1

[State 190000,ターゲット習得時位置変更3]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
trigger1 = NumTarget 
pos = -60,  - ishelper(190016) * 10 - ishelper(190017) * 20 - ishelper(190018) * 30 - ishelper(190019) * 40 - ishelper(190020) * 50 - ishelper(190021) * 60 - ishelper(190022) * 70 - ishelper(190023) * 80 - ishelper(190026) * 90
ignorehitpause = 1


[State 190000,ターゲット習得時アニメ変更]
type = Changeanim
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
triggerall = NumTarget
value = 6002
ignorehitpause = 1

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

[State 190000, ターゲットを1つに絞る]
type = TargetDrop
triggerall = NumTarget
trigger1 = NumTarget > 1
keepone = 1
ignorehitpause = 1


[State 16000, 親のIDを変数に記憶]
type = VarSet
triggerall = PlayerIDExist(Parent,ID)	;親が存在
triggerall = NumTarget 		;ターゲットを1つ持っている
trigger1   = Target,TeamSide = TeamSide	;ターゲットが自分のヘルパー
sysvar(1) = Parent,ID
ignorehitpause = 1

;-------------------------------------
;親変更に成功したかを確認する

[State 190000, 最初に親変更成功フラグをリセット]
type = VarSet
sysvar(0) = (sysvar(0)&(1^-1))  
trigger1 = 1
ignorehitpause = 1

[State 190000, 親の変数をあらかじめ保存]
type = VarSet
sysvar(2) = Parent,var(0)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 190000, 親の変数をいじってみる]
type = ParentVarSet
var(0) = !sysvar(2)
  ;親の変数が0だったら1を入れ、そうでなければ0を入れるらしい
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 190000, 親の変数がいじれたら親変更成功フラグを立てる]
type = VarSet
sysvar(0) = (sysvar(0)|1)  ;1bit目をON
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = Parent,var(0) = ( !sysvar(2) )
ignorehitpause = 1

[State 190000, 最後に変数を元にもどしてやる]
type = ParentVarSet
var(0) = sysvar(2)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更に失敗しているならエラメが余計に出るので
ignorehitpause = 1

[State 190000,ターゲット習得時ステートタイプ変更]
type = Statetypeset
triggerall = NumTarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 190000,永続ターゲット]
type = Reversaldef
triggerall = NumTarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
numhits = 0
reversal.attr = SCA, AA, AT, AP
pausetime = 0, 0
sparkno = -1
guard.sparkno = -1
ignorehitpause = 1

[State 190000,当身されないＨｉｔｄｅｆ]
type = Hitdef
triggerall = !(sysvar(0)&1)
triggerall = !numtarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
attr = ,NT
numhits = 0
hitflag = MAFDP
priority = 7, Hit
pausetime = 99999999999999999970, 10
animtype = hard
sparkxy = 999, -999
getpower = 0
givepower = -1
hitsound = -1
guardsound = -1
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0, 0
airguard.velocity = 0, 0
air.type = Low
air.velocity = 0, 0
air.hittime = 5
fall = 0
affectteam = f
ignorehitpause = 1


;-------------------------------------
[State 190000, 親がいなくなったら親変更成功フラグリセット]
type = VarSet
sysvar(0) = (sysvar(0)&(1^-1))  ;1bit目をOFF
trigger1 = !PlayerIDExist( Parent,ID )
trigger2 = Parent,Name = "H_Yujiro"
trigger2 = Parent,TeamSide = TeamSide
ignorehitpause = 1

[State 190000, 親のIDを保存]
type = VarSet
sysvar(1) = Parent,ID
triggerall = PlayerIDExist( Parent,ID )
trigger1 = !sysvar(1)
trigger1 = Parent,Name = "H_Yujiro"   ;本来の親のID
trigger1 = Parent,TeamSide  = TeamSide
trigger2 = (sysvar(0)&1)                   ;親変更成功フラグ
trigger2 = Parent,TeamSide != TeamSide     ;変更後の親のID
ignorehitpause = 1

;-------------------------------------
;本来の親と変更対象の親とのIDの差を求める・・・ここらへんよくわからんｗ

[State 29960, 本来の親と現在の親のIDの256進数上の1桁目と2桁目を記録]
type = Null
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = var(1) := floor( sysvar(1)/256 ) ||1  ;本来の親のIDの256進数2桁目
trigger1 = var(2) := ( sysvar(1)%256 ) ||1       ;本来の親のIDの256進数1桁目
trigger1 = var(3) := floor( Parent,ID/256 ) ||1  ;現在の親のIDの256進数2桁目
trigger1 = var(4) := ( Parent,ID%256 ) ||1       ;現在の親のIDの256進数1桁目
ignorehitpause = 1

[State 190000, 本来の親と現在の親のIDの256進数上の2桁目の差を求める]
type = Null
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = var(3) >  var(1)
trigger1 = var(5) := 128-(var(3)-var(1))
  ;アドレスをいじる際は超即死の原理として-1ずつ対応するアドレスが減少していく
  ;よって現在の親のIDの方が大きいならば-1していってはその値にはできない
  ;しかし、0の次はループして127になるので、
  ;(128-2つの数値の差)がループさせれば良い回数となる
  ;例：var(3)が127で、var(1)が0なら、var(5)の値は1
  ;    つまり1回アドレスをいじるステートを読めば対応アドレスが0から127に変化する
trigger2 = var(3) <= var(1)
trigger2 = var(5) := var(1)-var(3)
ignorehitpause = 1
  ;この差だけ2桁目をいじるステートをループさせれば良い

[State 190000, 本来の親と現在の親のIDの256進数上の1桁目の差を求める]
type = Null
triggerall = !(sysvar(0)&1)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = var(4) >  var(2)
trigger1 = var(6) := 128-(var(4)-var(2))
trigger2 = var(4) <= var(2)
trigger2 = var(6) := var(2)-var(4)
ignorehitpause = 1
  ;この差だけ1桁目をいじるステートをループさせれば良い

;-------------------------------------
[State 190000, 特定の数値をクリップボードに1]
type = DisplayToClipBoard
trigger1 = 1
ignorehitpause = 1
text = "Parent-ID=%d, Target-ID=%d, Before-ID=%d, Parent-Team=%d, aite=%d\n";Team=%d\n"
params = Parent,ID, Target,ID, sysvar(1), Parent,TeamSide, (parent,ishelper(6900));TeamSide
  ;親のID
  ;本来の親のID
  ;親のTeamSide
  ;自分のTeamSide

[State 190000, 特定の数値をクリップボードに2]
type = AppendToClipBoard
trigger1 = 1
ignorehitpause = 1
text = "Parent-Exist=%d, Parent-Change=%d, Pause=%d, anim=%d, ID=%d\n"
params = PlayerIDExist( Parent,ID ), (sysvar(0)&1)!=0, hitpausetime, var(54), ID
  ;親が存在するか
  ;親変更成功フラグ

[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29961
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = hitpausetime
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = var(7) <= 1000  ;失敗したと判断したらやめる
trigger1 = var(5) = [0,128]  ;親変更可能なIDの差
trigger1 = var(6) = [0,128]  ;親変更可能なIDの差
trigger1 = var(8) := 0 || 1  ;ループ変数リセット
persistent = 256
ignorehitpause = 1
[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29961
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = hitpausetime
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = var(7) <= 1000  ;失敗したと判断したらやめる
trigger1 = var(5) = [0,128]  ;親変更可能なIDの差
trigger1 = var(6) = [0,128]  ;親変更可能なIDの差
trigger1 = var(8) := 0 || 1  ;ループ変数リセット
persistent = 256
ignorehitpause = 1
[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29961
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = hitpausetime
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = var(7) <= 1000  ;失敗したと判断したらやめる
trigger1 = var(5) = [0,128]  ;親変更可能なIDの差
trigger1 = var(6) = [0,128]  ;親変更可能なIDの差
trigger1 = var(8) := 0 || 1  ;ループ変数リセット
persistent = 256
ignorehitpause = 1

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

[State 151, みらくる式アニメ記憶]
type = varset
triggerall = !sysfvar(2)
triggerall = numtarget 
triggerall = target,ishelper(989898)
triggerall = target,sysvar(3)
triggerall = target,time
triggerall = target,stateno = 45000
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
sysfvar(2) = target,sysvar(3)
ignorehitpause = 1
[State dist,デバッグ表示]
Trigger1 = ishelper
type = null;DisplayToClipboard
ignorehitpause = 1
text = "devilseyekiller = %d"
params = (sysvar(3))
ignorehitpause = 1
[State 151, 対四条雛子/ライオン]
type = null;ParentVarSet
var(23) = -1+random%2
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "Hinako Shijo" || Parent,Name = "Rion"
trigger1 = 1
ignorehitpause = 1

[State 151, 対欠損]
type = null;ParentVarSet
var(12) = gametime + 159357
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "E Youmu"
trigger1 = 1
ignorehitpause = 1
[State 151, 邪眼キラー範囲内]
type = Varset
triggerall = numtarget 
triggerall = target,ishelper
trigger1 = target,stateno = [0, 150]
trigger2 = target,stateno = [151, 719]
trigger3 = target,stateno = 1007
trigger4 = target,stateno = 1050
trigger5 = target,stateno = 1065
trigger6 = target,stateno = 1102
trigger7 = target,stateno = [1111, 1112]
trigger8 = target,stateno = 1116
trigger9 = target,stateno = 1200
trigger10 = target,stateno = 1202
trigger11 = target,stateno = 1300
trigger12 = target,stateno = 1302
trigger13 = target,stateno = 1350
trigger14 = target,stateno = 1400
trigger15 = target,stateno = 1412
trigger16 = target,stateno = 1450
trigger17 = target,stateno = 1500
trigger18 = target,stateno = 1510
trigger19 = target,stateno = [1600, 1602]
trigger20 = target,stateno = 1720
trigger21 = target,stateno = 1801
trigger22 = target,stateno = 2000
trigger23 = target,stateno = 2025
trigger24 = target,stateno = [2100, 2103]
trigger25 = target,stateno = 2105
trigger26 = target,stateno = [2200, 2206]
trigger27 = target,stateno = 2269
trigger28 = target,stateno = 2300
trigger29 = target,stateno = 2350
trigger30 = target,stateno = [2352, 2353]
trigger31 = target,stateno = [2355, 2356]
trigger32 = target,stateno = 2400
trigger33 = target,stateno = 2500
trigger34 = target,stateno = [2506, 2507]
trigger35 = target,stateno = 2600
trigger36 = target,stateno = 2611
trigger37 = target,stateno = 2901
trigger38 = target,stateno = 3002
trigger39 = target,stateno = 3041
trigger40 = target,stateno = 3052
trigger41 = target,stateno = 3059
trigger42 = target,stateno = 3185
trigger43 = target,stateno = 3403
trigger44 = target,stateno = [3920, 3921]
trigger45 = target,stateno = 3929
trigger46 = target,stateno = 3999
trigger47 = target,stateno = 4060
trigger48 = target,stateno = 4091
trigger49 = target,stateno = 4211
trigger50 = target,stateno = [4310, 4311]
trigger51 = target,stateno = [4330, 4331]
trigger52 = target,stateno = 4391
trigger53 = target,stateno = [4395, 4396]
trigger54 = target,stateno = 4510
trigger55 = target,stateno = 4512
trigger56 = target,stateno = [5000, 5001]
trigger57 = target,stateno = [5010, 5011]
trigger58 = target,stateno = 5020
trigger59 = target,stateno = 5030
trigger60 = target,stateno = 5035
trigger61 = target,stateno = 5040
trigger62 = target,stateno = 5050
trigger63 = target,stateno = [5070, 5071]
trigger64 = target,stateno = [5080, 5081]
trigger65 = target,stateno = 5101
trigger66 = target,stateno = 5110
trigger67 = target,stateno = 5120
trigger68 = target,stateno = [5200, 5201]
trigger69 = target,stateno = 5210
trigger70 = target,stateno = 5500
trigger71 = target,stateno = 5600
trigger72 = target,stateno = 5788
trigger73 = target,stateno = [5789, 5790]
trigger74 = target,stateno = 5900
trigger75 = target,stateno = [6000, 6002]
trigger76 = target,stateno = [6010, 6012]
trigger77 = target,stateno = 6014
trigger78 = target,stateno = 6016
trigger79 = target,stateno = [6019, 6020]
trigger80 = target,stateno = [6024, 6027]
trigger81 = target,stateno = [6032, 6035]
trigger82 = target,stateno = 6100
trigger83 = target,stateno = 6301
trigger84 = target,stateno = 6306
trigger85 = target,stateno = 6540
trigger86 = target,stateno = 6789
trigger87 = target,stateno = 6900
trigger88 = target,stateno = 6920
trigger89 = target,stateno = 7000
trigger90 = target,stateno = [7040, 7047]
trigger91 = target,stateno = 7055
trigger92 = target,stateno = [7320, 7321]
trigger93 = target,stateno = [7326, 7327]
trigger94 = target,stateno = 7777
trigger95 = target,stateno = 7878
trigger96 = target,stateno = 8000
trigger97 = target,stateno = 8003
trigger98 = target,stateno = 8040
trigger99 = target,stateno = 8100
trigger100 = target,stateno = 8900
trigger101 = target,stateno = 9000
trigger102 = target,stateno = 9126
trigger103 = target,stateno = 9200
trigger104 = target,stateno = 9263
trigger105 = target,stateno = 9809
trigger106 = target,stateno = 9900
trigger107 = target,stateno = 9936
trigger108 = target,stateno = 9952
trigger109 = target,stateno = 9994
trigger110 = target,stateno = [10003, 10004]
trigger111 = target,stateno = 10012
trigger112 = target,stateno = 10015
trigger113 = target,stateno = 10101
trigger114 = target,stateno = 10504
trigger115 = target,stateno = 10651
trigger116 = target,stateno = [11001, 11004]
trigger117 = target,stateno = 11100
trigger118 = target,stateno = 11111
trigger119 = target,stateno = 11502
trigger120 = target,stateno = 11680
trigger121 = target,stateno = 11710
trigger122 = target,stateno = 11720
trigger123 = target,stateno = 11730
trigger124 = target,stateno = [12003, 12004]
trigger125 = target,stateno = 12310
trigger126 = target,stateno = 12345
trigger127 = target,stateno = 12500
trigger128 = target,stateno = 13000
trigger129 = target,stateno = 13050
trigger130 = target,stateno = 13100
trigger131 = target,stateno = 13200
trigger132 = target,stateno = 13500
trigger133 = target,stateno = [14001, 14002]
trigger134 = target,stateno = 16003
trigger135 = target,stateno = 18102
trigger136 = target,stateno = 19101
trigger137 = target,stateno = 20000
trigger138 = target,stateno = 20955
trigger139 = target,stateno = [22101, 22102]
trigger140 = target,stateno = 22122
trigger141 = target,stateno = 22222
trigger142 = target,stateno = 22224
trigger143 = target,stateno = 24601
trigger144 = target,stateno = 24610
trigger145 = target,stateno = 25544
trigger146 = target,stateno = 26320
trigger147 = target,stateno = 26485
trigger148 = target,stateno = [30000, 30004]
trigger149 = target,stateno = [30013, 30014]
trigger150 = target,stateno = [30020, 30021]
trigger151 = target,stateno = 31993
trigger152 = target,stateno = 32555
trigger153 = target,stateno = 37000
trigger154 = target,stateno = 40001
trigger155 = target,stateno = 40003
trigger156 = target,stateno = 40952
trigger157 = target,stateno = 43302
trigger158 = target,stateno = [43425, 43426]
trigger159 = target,stateno = 43655
trigger160 = target,stateno = 43705
trigger161 = target,stateno = 43708
trigger162 = target,stateno = 44488
trigger163 = target,stateno = 44900
trigger164 = target,stateno = 45755
trigger165 = target,stateno = 45999
trigger166 = target,stateno = 46060
trigger167 = target,stateno = 46965
trigger168 = target,stateno = 49933
trigger169 = target,stateno = 49943
trigger170 = target,stateno = 50000
trigger171 = target,stateno = [50505, 50506]
trigger172 = target,stateno = [51515, 51518]
trigger173 = target,stateno = 55555
trigger174 = target,stateno = 58901
trigger175 = target,stateno = 60000
trigger176 = target,stateno = 60050
trigger177 = target,stateno = 60315
trigger178 = target,stateno = 61000
trigger179 = target,stateno = 64000
trigger180 = target,stateno = 65000
trigger181 = target,stateno = 65500
trigger182 = target,stateno = 65530
trigger183 = target,stateno = 70000
trigger184 = target,stateno = 70100
trigger185 = target,stateno = 70200
trigger186 = target,stateno = 80000
trigger187 = target,stateno = 84555
trigger188 = target,stateno = 88885
trigger189 = target,stateno = 88887
trigger190 = target,stateno = 90000
trigger191 = target,stateno = [99919, 99920]
trigger192 = target,stateno = [99999, 100000]
trigger193 = target,stateno = 100002
trigger194 = target,stateno = 111222
trigger195 = target,stateno = 112235
trigger196 = target,stateno = 112240
trigger197 = target,stateno = 112250
trigger198 = target,stateno = 126100
trigger199 = target,stateno = 169990
trigger200 = target,stateno = 170000
trigger201 = target,stateno = 180002
trigger202 = target,stateno = 200000
trigger203 = target,stateno = 300000
trigger204 = target,stateno = 301050
trigger205 = target,stateno = 310120
trigger206 = target,stateno = 313900
trigger207 = target,stateno = 400000
trigger208 = target,stateno = 450000
trigger209 = target,stateno = 500000
trigger210 = target,stateno = 500033
trigger211 = target,stateno = 600000
trigger212 = target,stateno = 649999
trigger213 = target,stateno = 700000
trigger214 = target,stateno = [741003, 741004]
trigger215 = target,stateno = 800000
trigger216 = target,stateno = 900000
trigger217 = target,stateno = 910010
trigger218 = target,stateno = 1000000
trigger219 = target,stateno = 1168000
trigger220 = target,stateno = 1699922
trigger221 = target,stateno = 2000000
trigger222 = target,stateno = 3000000
trigger223 = target,stateno = 4000000
trigger224 = target,stateno = 5000000
trigger225 = target,stateno = [5000005, 5000006]
trigger226 = target,stateno = 5000010
trigger227 = target,stateno = 5000025
trigger228 = target,stateno = 5000052
trigger229 = target,stateno = 5000058
trigger230 = target,stateno = [5000070, 5000072]
trigger231 = target,stateno = 5000080
trigger232 = target,stateno = 5000085
trigger233 = target,stateno = 5000090
trigger234 = target,stateno = 5000095
trigger235 = target,stateno = 5000333
trigger236 = target,stateno = 6000000
trigger237 = target,stateno = 6400000
trigger238 = target,stateno = 7000000
trigger239 = target,stateno = 8000000
trigger240 = target,stateno = 9000000
trigger241 = target,stateno = 10000000
trigger242 = target,stateno = 20000000
trigger243 = target,stateno = [21360897, 21360898]
trigger244 = target,stateno = 22222222
trigger245 = target,stateno = 30000000
trigger246 = target,stateno = 40000000
trigger247 = target,stateno = 50000000
trigger248 = target,stateno = 60000000
trigger249 = target,stateno = 70000000
trigger250 = target,stateno = 80000000
trigger251 = target,stateno = 90000000
trigger252 = target,stateno = 100000000
trigger253 = target,stateno = 200000000
trigger254 = target,stateno = 300000000
trigger255 = target,stateno = 400000000
trigger256 = target,stateno = 500000000
trigger257 = target,stateno = 555555557
trigger258 = target,stateno = 600000000
trigger259 = target,stateno = 700000000
trigger260 = target,stateno = 800000000
trigger261 = target,stateno = 900000000
trigger262 = target,stateno = 987654321
trigger263 = target,stateno = 1000000000
trigger264 = target,stateno = 1100000000
trigger265 = target,stateno = 1200000000
trigger266 = target,stateno = 1300000000
trigger267 = target,stateno = 1400000000
trigger268 = target,stateno = 1500000000
trigger269 = target,stateno = 1600000000
trigger270 = target,stateno = 1700000000
trigger271 = target,stateno = 1800000000
trigger272 = target,stateno = 1900000000
trigger273 = target,stateno = 2000000000
trigger274 = target,stateno = 2100000000
trigger275 = target,stateno = 2147483647
trigger276 = target,stateno = [721,1004]
trigger277 = target,stateno = 288888
trigger278 = target,stateno = 58010
trigger279 = target,stateno = [220000,220005]
var(55) = target,stateno
ignorehitpause = 1
[State 151, target,stateno変数化、邪眼キラー範囲外]
type = Varset
triggerall = numtarget
triggerall = target,ishelper
triggerall = target,stateno != [0, 150]
triggerall = target,stateno != [151,719]
triggerall = target,stateno != [721,1004]
triggerall = target,stateno != 1007
triggerall = target,stateno != 1050
triggerall = target,stateno != 1065
triggerall = target,stateno != 1102
triggerall = target,stateno != [1111, 1112]
triggerall = target,stateno != 1116
triggerall = target,stateno != 1200
triggerall = target,stateno != 1202
triggerall = target,stateno != 1300
triggerall = target,stateno != 1302
triggerall = target,stateno != 1350
triggerall = target,stateno != 1400
triggerall = target,stateno != 1412
triggerall = target,stateno != 1450
triggerall = target,stateno != 1500
triggerall = target,stateno != 1510
triggerall = target,stateno != [1600, 1602]
triggerall = target,stateno != 1720
triggerall = target,stateno != 1801
triggerall = target,stateno != 2000
triggerall = target,stateno != 2025
triggerall = target,stateno != [2100, 2103]
triggerall = target,stateno != 2105
triggerall = target,stateno != [2200, 2206]
triggerall = target,stateno != 2269
triggerall = target,stateno != 2300
triggerall = target,stateno != 2350
triggerall = target,stateno != [2352, 2353]
triggerall = target,stateno != [2355, 2356]
triggerall = target,stateno != 2400
triggerall = target,stateno != 2500
triggerall = target,stateno != [2506, 2507]
triggerall = target,stateno != 2600
triggerall = target,stateno != 2611
triggerall = target,stateno != 2901
triggerall = target,stateno != 3002
triggerall = target,stateno != 3041
triggerall = target,stateno != 3052
triggerall = target,stateno != 3059
triggerall = target,stateno != 3185
triggerall = target,stateno != 3403
triggerall = target,stateno != [3920, 3921]
triggerall = target,stateno != 3929
triggerall = target,stateno != 3999
triggerall = target,stateno != 4060
triggerall = target,stateno != 4091
triggerall = target,stateno != 4211
triggerall = target,stateno != [4310, 4311]
triggerall = target,stateno != [4330, 4331]
triggerall = target,stateno != 4391
triggerall = target,stateno != [4395, 4396]
triggerall = target,stateno != 4510
triggerall = target,stateno != 4512
triggerall = target,stateno != [5000, 5001]
triggerall = target,stateno != [5010, 5011]
triggerall = target,stateno != 5020
triggerall = target,stateno != 5030
triggerall = target,stateno != 5035
triggerall = target,stateno != 5040
triggerall = target,stateno != 5050
triggerall = target,stateno != [5070, 5071]
triggerall = target,stateno != [5080, 5081]
triggerall = target,stateno != 5101
triggerall = target,stateno != 5110
triggerall = target,stateno != 5120
triggerall = target,stateno != [5200, 5201]
triggerall = target,stateno != 5210
triggerall = target,stateno != 5500
triggerall = target,stateno != 5600
triggerall = target,stateno != 5788
triggerall = target,stateno != [5789, 5790]
triggerall = target,stateno != 5900
triggerall = target,stateno != [6000, 6002]
triggerall = target,stateno != [6010, 6012]
triggerall = target,stateno != 6014
triggerall = target,stateno != 6016
triggerall = target,stateno != [6019, 6020]
triggerall = target,stateno != [6024, 6027]
triggerall = target,stateno != [6032, 6035]
triggerall = target,stateno != 6100
triggerall = target,stateno != 6301
triggerall = target,stateno != 6306
triggerall = target,stateno != 6540
triggerall = target,stateno != 6789
triggerall = target,stateno != 6900
triggerall = target,stateno != 6920
triggerall = target,stateno != 7000
triggerall = target,stateno != [7040, 7047]
triggerall = target,stateno != 7055
triggerall = target,stateno != [7320, 7321]
triggerall = target,stateno != [7326, 7327]
triggerall = target,stateno != 7777
triggerall = target,stateno != 7878
triggerall = target,stateno != 8000
triggerall = target,stateno != 8003
triggerall = target,stateno != 8040
triggerall = target,stateno != 8100
triggerall = target,stateno != 8900
triggerall = target,stateno != 9000
triggerall = target,stateno != 9126
triggerall = target,stateno != 9200
triggerall = target,stateno != 9263
triggerall = target,stateno != 9809
triggerall = target,stateno != 9900
triggerall = target,stateno != 9936
triggerall = target,stateno != 9952
triggerall = target,stateno != 9994
triggerall = target,stateno != [10003, 10004]
triggerall = target,stateno != 10012
triggerall = target,stateno != 10015
triggerall = target,stateno != 10101
triggerall = target,stateno != 10504
triggerall = target,stateno != 10651
triggerall = target,stateno != [11001, 11004]
triggerall = target,stateno != 11100
triggerall = target,stateno != 11111
triggerall = target,stateno != 11502
triggerall = target,stateno != 11680
triggerall = target,stateno != 11710
triggerall = target,stateno != 11720
triggerall = target,stateno != 11730
triggerall = target,stateno != [12003, 12004]
triggerall = target,stateno != 12310
triggerall = target,stateno != 12345
triggerall = target,stateno != 12500
triggerall = target,stateno != 13000
triggerall = target,stateno != 13050
triggerall = target,stateno != 13100
triggerall = target,stateno != 13200
triggerall = target,stateno != 13500
triggerall = target,stateno != [14000, 14002]
triggerall = target,stateno != 16003
triggerall = target,stateno != 18102
triggerall = target,stateno != 19101
triggerall = target,stateno != 20000
triggerall = target,stateno != 20955
triggerall = target,stateno != [22101, 22102]
triggerall = target,stateno != 22122
triggerall = target,stateno != 22222
triggerall = target,stateno != 22224
triggerall = target,stateno != 24601
triggerall = target,stateno != 24610
triggerall = target,stateno != 25544
triggerall = target,stateno != 26320
triggerall = target,stateno != 26485
triggerall = target,stateno != [30000, 30004]
triggerall = target,stateno != [30013, 30014]
triggerall = target,stateno != [30020, 30021]
triggerall = target,stateno != 31993
triggerall = target,stateno != 32555
triggerall = target,stateno != 37000
triggerall = target,stateno != 40001
triggerall = target,stateno != 40003
triggerall = target,stateno != 40952
triggerall = target,stateno != 43302
triggerall = target,stateno != [43425, 43426]
triggerall = target,stateno != 43655
triggerall = target,stateno != 43705
triggerall = target,stateno != 43708
triggerall = target,stateno != 44488
triggerall = target,stateno != 44900
triggerall = target,stateno != 45755
triggerall = target,stateno != 45999
triggerall = target,stateno != 46060
triggerall = target,stateno != 46965
triggerall = target,stateno != 49933
triggerall = target,stateno != 49943
triggerall = target,stateno != 50000
triggerall = target,stateno != [50505, 50506]
triggerall = target,stateno != [51515, 51518]
triggerall = target,stateno != 55555
triggerall = target,stateno != 58901
triggerall = target,stateno != 60000
triggerall = target,stateno != 60050
triggerall = target,stateno != 60315
triggerall = target,stateno != 61000
triggerall = target,stateno != 64000
triggerall = target,stateno != 65000
triggerall = target,stateno != 65500
triggerall = target,stateno != 65530
triggerall = target,stateno != 70000
triggerall = target,stateno != 70100
triggerall = target,stateno != 70200
triggerall = target,stateno != 80000
triggerall = target,stateno != 84555
triggerall = target,stateno != 88885
triggerall = target,stateno != 88887
triggerall = target,stateno != 90000
triggerall = target,stateno != [99919, 99920]
triggerall = target,stateno != [99999, 100000]
triggerall = target,stateno != 100002
triggerall = target,stateno != 111222
triggerall = target,stateno != 112235
triggerall = target,stateno != 112240
triggerall = target,stateno != 112250
triggerall = target,stateno != 126100
triggerall = target,stateno != 169990
triggerall = target,stateno != 170000
triggerall = target,stateno != 180002
triggerall = target,stateno != 200000
triggerall = target,stateno != 300000
triggerall = target,stateno != 301050
triggerall = target,stateno != 310120
triggerall = target,stateno != 313900
triggerall = target,stateno != 400000
triggerall = target,stateno != 450000
triggerall = target,stateno != 500000
triggerall = target,stateno != 500033
triggerall = target,stateno != 600000
triggerall = target,stateno != 649999
triggerall = target,stateno != 700000
triggerall = target,stateno != [741003, 741004]
triggerall = target,stateno != 800000
triggerall = target,stateno != 900000
triggerall = target,stateno != 910010
triggerall = target,stateno != 1000000
triggerall = target,stateno != 1168000
triggerall = target,stateno != 1699922
triggerall = target,stateno != 2000000
triggerall = target,stateno != 3000000
triggerall = target,stateno != 4000000
triggerall = target,stateno != 5000000
triggerall = target,stateno != [5000005, 5000006]
triggerall = target,stateno != 5000010
triggerall = target,stateno != 5000025
triggerall = target,stateno != 5000052
triggerall = target,stateno != 5000058
triggerall = target,stateno != [5000070, 5000072]
triggerall = target,stateno != 5000080
triggerall = target,stateno != 5000085
triggerall = target,stateno != 5000090
triggerall = target,stateno != 5000095
triggerall = target,stateno != 5000333
triggerall = target,stateno != 6000000
triggerall = target,stateno != 6400000
triggerall = target,stateno != 7000000
triggerall = target,stateno != 8000000
triggerall = target,stateno != 9000000
triggerall = target,stateno != 10000000
triggerall = target,stateno != 20000000
triggerall = target,stateno != [21360897, 21360898]
triggerall = target,stateno != 22222222
triggerall = target,stateno != 30000000
triggerall = target,stateno != 40000000
triggerall = target,stateno != 50000000
triggerall = target,stateno != 60000000
triggerall = target,stateno != 70000000
triggerall = target,stateno != 80000000
triggerall = target,stateno != 90000000
triggerall = target,stateno != 100000000
triggerall = target,stateno != 200000000
triggerall = target,stateno != 300000000
triggerall = target,stateno != 400000000
triggerall = target,stateno != 500000000
triggerall = target,stateno != 555555557
triggerall = target,stateno != 600000000
triggerall = target,stateno != 700000000
triggerall = target,stateno != 800000000
triggerall = target,stateno != 900000000
triggerall = target,stateno != 987654321
triggerall = target,stateno != 1000000000
triggerall = target,stateno != 1100000000
triggerall = target,stateno != 1200000000
triggerall = target,stateno != 1300000000
triggerall = target,stateno != 1400000000
triggerall = target,stateno != 1500000000
triggerall = target,stateno != 1600000000
triggerall = target,stateno != 1700000000
triggerall = target,stateno != 1800000000
triggerall = target,stateno != 1900000000
triggerall = target,stateno != 2000000000
triggerall = target,stateno != 2100000000
triggerall = target,stateno != 2147483647
triggerall = target,stateno != 45000
triggerall = target,stateno != 288888
triggerall = target,stateno != 58010
triggerall = target,stateno != [220000,220005]
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
var(55) = 45000
ignorehitpause = 1

[State 151, 対アーシェット]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = target,ishelper
triggerall = !target,ishelper(3623605)
trigger1= enemynear,name ="assiette"
value = 45000
ignorehitpause = 1
[State 151, 対ハスター]
type = Targetstate
trigger1 = target,ishelper(6444444)
trigger1 = target,name = "Hastur"
value = 130
ignorehitpause = 1
[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = !(enemynear,name = "Dies")
triggerall = !(enemynear,name = "assiette")
triggerall = !(target,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000))
triggerall = !Parent,name = "S_Sakuya"
;triggerall = !target,ishelper(989898)
triggerall = var(55)
triggerall = (root,sysvar(3) = [0,10000]) 
trigger1 = ((GameTime% 20 ) = 0 ) || roundstate != 2 
trigger2 = root,anim = 2015 || root,anim = 2014 || root,anim = 2500
trigger3 = (root,sysvar(3) = [0,3150])
value = var(55)
ignorehitpause = 1

[State 151, 対鬼巫女R]
type=targetstate
trigger1 = target,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000)
trigger1 = roundstate<3
trigger1 = !target,ishelper(3)
trigger1 = !target,ishelper(2)
value = 19500
ignorehitpause = 1


[State 45100,対幸薄観鈴専用対策]
type = Projectile
trigger1 = Playeridexist(parent,id)		
trigger1 = parent,teamside!=teamside
trigger1 = target,name="Ill-Fate-Misuzu"
trigger1 = target,ishelper(10000)
trigger1 = teamside=1
trigger1 = enemy,palno=[11,12]
trigger1 = target,gethitvar(damage) 
trigger1 = !root,numprojid(55555)
projid = 55555
projanim = 6002
projremove = 0
projedgebound = 999999
projstagebound = 999999
projheightbound = -999999,999999
persistent = 256
ignorehitpause = 1

[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = target,ishelper(989898)
trigger1 = 1
value = 45000
ignorehitpause = 1
[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1
[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1
[State 190000, 親変更に成功したら混線＆変数いじりステートへ]
type = SelfState
value = 190001
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更成功フラグ
persistent = 256
ignorehitpause = 1
;--------------------------
;混線用

[StateDef 190001]
type     = U
movetype = U
movehitpersist = 1
hitdefpersist  = 1

[State 190000,自キャラ以外]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State ]
type=nothitby
trigger1=1
value=sca

[State 190000,動けないように]
type = Ctrlset
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,ライフをゼロに]
type = Lifeset
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,ヘルパーを見えなくする]
type = Assertspecial
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 190000,カメラ固定]
type = Screenbound
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,押し戻し判定削除]
type = Playerpush
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,無敵]
type = Nothitby
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = SCA
ignorehitpause = 1

[State 190000,ガード認識距離の無効化]
type = Attackdist
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
value = 0
ignorehitpause = 1

[State 190000,位置変更１]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger1 = NumTarget
pos = 0,  - ishelper(190000) * 10 - ishelper(190001) * 20 - ishelper(190002) * 30 - ishelper(190003) * 40 - ishelper(190004) * 50 - ishelper(190005) * 60 - ishelper(190006) * 70 - ishelper(190007) * 80
ignorehitpause = 1

[State 190000,位置変更2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger1 = NumTarget 
pos = -30,  - ishelper(190008) * 10 - ishelper(190009) * 20 - ishelper(190010) * 30 - ishelper(190011) * 40 - ishelper(190012) * 50 - ishelper(190013) * 60 - ishelper(190014) * 70 - ishelper(190015) * 80 - ishelper(190024) * 90 - ishelper(190025) * 100
ignorehitpause = 1

[State 190000,位置変更3]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
trigger1 = NumTarget 
pos = -60,  - ishelper(190016) * 10 - ishelper(190017) * 20 - ishelper(190018) * 30 - ishelper(190019) * 40 - ishelper(190020) * 50 - ishelper(190021) * 60 - ishelper(190022) * 70 - ishelper(190023) * 80 - ishelper(190026) * 90
ignorehitpause = 1

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

[State 190000, ヘルパーＩＤ記憶]
type = varset
trigger1 = ishelper(190000)
sysfvar(4) = id
ignorehitpause = 1

[State 190000,アニメ変更]
type = Changeanim
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
triggerall = NumTarget 
value = 6002
ignorehitpause = 1

[State 190000,ステートタイプ変更]
type = Statetypeset
triggerall = NumTarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 190000,永続ターゲット]
type = Reversaldef
triggerall = NumTarget
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
numhits = 0
reversal.attr = SCA, AA, AT, AP
pausetime = 0, 0
sparkno = -1
guard.sparkno = -1
ignorehitpause = 1

;-------------------------------------
;-------------------------------------
;親変更に成功したかを確認する

[State 29961, 最初に親変更成功フラグをリセット]
type = VarSet
sysvar(0) = (sysvar(0)&(1^-1))  ;1bit目をOFF
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数をあらかじめ保存]
type = VarSet
sysvar(2) = Parent,var(0)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数をいじってみる]
type = ParentVarSet
var(0) = !sysvar(2)
  ;親の変数が0だったら1を入れ、そうでなければ0を入れる
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = 1
ignorehitpause = 1

[State 29961, 親の変数がいじれたら親変更成功フラグを立てる]
type = VarSet
sysvar(0) = (sysvar(0)|1)  ;1bit目をON
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = Parent,var(0) = ( !sysvar(2) )
ignorehitpause = 1

[State 29961, 最後に変数を元にもどしてやる]
type = ParentVarSet
var(0) = sysvar(2)
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = (sysvar(0)&1)  ;親変更に失敗しているならエラメが余計に出るので
ignorehitpause = 1

[State 190000, 特定の数値をクリップボードに1]
type = DisplayToClipBoard
trigger1 = 1
ignorehitpause = 1
text = "Parent-ID=%d, Target-ID=%d, Before-ID=%d, Parent-Team=%d, aite=%d\n";Team=%d\n"
params = Parent,ID, Target,ID, sysvar(1), Parent,TeamSide, (parent,ishelper(6900));TeamSide
  ;親のID
  ;本来の親のID
  ;親のTeamSide
  ;自分のTeamSide

[State 190000, 特定の数値をクリップボードに2]
type = AppendToClipBoard
trigger1 = 1
ignorehitpause = 1
text = "Parent-Exist=%d, Parent-Change=%d, Pause=%d, anim=%d, ID=%d\n"
params = PlayerIDExist( Parent,ID ), (sysvar(0)&1), hitpausetime, var(54), ID
  ;親が存在するか
  ;親変更成功フラグ

;!=0

[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29961
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = hitpausetime
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
;triggerall = var(7) <= 1000  ;失敗したと判断したらやめる
trigger1 = var(8) := 0 || 1  ;ループ変数リセット
persistent = 256
ignorehitpause = 1

[State 151, みらくる式アニメ記憶]
type = varset
triggerall = !sysfvar(2)
triggerall = numtarget 
triggerall = target,ishelper(989898)
triggerall = target,sysvar(3)
triggerall = target,time
triggerall = target,stateno = 45000
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
sysfvar(2) = target,sysvar(3)
ignorehitpause = 1

[State dist,デバッグ表示]
Trigger1 = ishelper
type = null;DisplayToClipboard
ignorehitpause = 1
text = "devilseyekiller = %d"
params = (sysvar(3))
ignorehitpause = 1

[State 190000, ステートタイプ変更]
type = Statetypeset
trigger1 = roundstate = [2, 3]
trigger1 = enemy,movetype != A
trigger1 = parent,movetype != A
trigger1 = random % 20 = 0
;trigger2 = enemynear,name = "Tenma"
trigger2 = (enemy,name = "ONI-MIKO-REIMU" && enemy,selfanimexist(19090))
statetype = S
movetype = A
physics = N
ignorehitpause = 1

[State 151, 対四条雛子/ライオン]
type = ParentVarSet
var(23) = -1+random%2
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "Hinako Shijo" || Parent,Name = "Rion"
trigger1 = 1
ignorehitpause = 1

[State 151, 対神咲夜]
type = ParentVarSet
var(50) = gametime+1298391829841
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "G-Sakuya"
trigger1 = 1
ignorehitpause = 1

[State 151, 対欠損]
type = ParentVarSet
var(12) = gametime + 159357
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "E Youmu"
trigger1 = 1
ignorehitpause = 1

[State 151, 対問題児みずか]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = enemynear,name = "Unknown"
trigger1 = enemynear,authorname = "SAMSARA"
trigger1 = enemynear,selfanimexist(1)
var(56) = gametime * 244 + (parent,movetype = A)
ignorehitpause = 1

[State 151, 対問題児みずか]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = parent,ishelper(100000)
trigger1 = enemynear,name = "Unknown"
trigger1 = enemynear,authorname = "SAMSARA"
trigger1 = enemynear,selfanimexist(1)
var(59) = 0
ignorehitpause = 1

[State 151, 対天魔]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = ishelper(101011)
triggerall = (sysvar(0) & 1)
trigger1 = parent,name = "Tenma"
var(45) = enemy,var(31)
ignorehitpause = 1

[State 151, 対天魔]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = ishelper(101011)
triggerall = (sysvar(0) & 1)
triggerall = parent,time > 10
trigger1 = parent,name = "Tenma"
var(45) = 0
ignorehitpause = 1

[State 151, 対天魔]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = ishelper(101011)
triggerall = (sysvar(0) & 1)
triggerall = parent,time > 10
trigger1 = parent,name = "Tenma"
var(50) = 0
ignorehitpause = 1

[State 151, 対天魔]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = ishelper(101011)
triggerall = (sysvar(0) & 1)
triggerall = parent,time > 10
trigger1 = parent,name = "Tenma"
fvar(0) = 0
ignorehitpause = 1

[State 151, 対ハスター]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(6444444)
trigger1 = parent,name = "Hastur"
var(58) = 49*gametime
ignorehitpause=1

[State 151, 対ハスター]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(6444444)
trigger1 = parent,name = "Hastur"
var(55) = gametime+123456789
ignorehitpause = 1

[State 151, 対ハスター]
type = Targetstate
trigger1 = target,ishelper(6444444)
trigger1 = target,name = "Hastur"
value = 130
ignorehitpause = 1


[State 151, 対　影紫]
type = ParentVarSet
var(4) = 890106
triggerall = Parent,name = "7L|]{(L2!"
;triggerall = (sysvar(0)&1)  ;親変更成功フラグ
trigger1 = 1;roundstate = [0,1]
ignorehitpause = 1

[State 151, 対シングラリティ]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = parent,ishelper(4214)
trigger1 = parent,name = "Singularity"
var(16) = - 9999999999
ignorehitpause=1

[State 151, 対アーシェット]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = target,ishelper
triggerall = !target,ishelper(3623605)
trigger1= enemynear,name ="assiette"
value = 45000
ignorehitpause = 1

[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
var(1) = 1
ignorehitpause = 1
[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
var(2) = 1
ignorehitpause = 1
[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
var(4) = 0
ignorehitpause = 1
[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
var(15) = 148
ignorehitpause = 1
[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
var(33) = 1
ignorehitpause = 1
[State 151, 対賽銭箱]
type = Parentvarset
trigger1 = parent,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090)
fvar(33) = 1
ignorehitpause = 1

[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(8) = 999
ignorehitpause=1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(9) = 700
ignorehitpause = 1
[State  対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(11) = 1000
ignorehitpause = 1
[State 151, 対鬼巫女]
type=ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(15) = 999
ignorehitpause = 1
[State 151, 対鬼巫女]
type=ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(16) = 999
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(17) = 999
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(18)=-999
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(21) = -9
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(27) = 999999
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
fvar(3) = 90
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(3)
var(2) = 88
ignorehitpause = 1
[State 151, 対鬼巫女]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
trigger1 = parent,name="ONI-MIKO-REIMU"&&Parent,IsHelper(1)
var(4) = 0
ignorehitpause = 1


[State 151, 対ディエス]
type = ParentVarSet
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
;triggerall = (sysvar(0) & 1)
trigger1 = parent,name = "Dies"
var(15) = gametime+gametime+var(20)
ignorehitpause = 1

[State 151, 対ディエス]
type = ParentVarSet
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
;triggerall = (sysvar(0) & 1)
trigger1 = parent,name = "Dies"
var(17) = gametime+200000000000
ignorehitpause = 1

[State 151, 対ディエス]
type = ParentVarSet
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
;triggerall = (sysvar(0) & 1)
trigger1 = parent,name = "Dies"
var(18) = gametime+var(19)
ignorehitpause = 1

[State 151, 対ディエス]
type = targetstate
triggerall = numtarget 
trigger1 = parent,name = "Dies"
value = 995
ignorehitpause = 1

[State 151, 対ディエス]
type = targetstate
triggerall = numtarget 
trigger1 = parent,name = "Dies"
value = 12500
ignorehitpause = 1

[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(9741)
var(1 - 1 * (parent,ishelper(9741))) = 0
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(11000)
var(2) = 1
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(11000)
var(3) = 0
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(11000)
var(4) = 0
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(11000)
var(36) = gametime + 123456789
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(11000)
var(58) = gametime * 49
ignorehitpause = 1

[State 151, 準汎用]
type = Parentvarset
triggerall = !Root,sysvar(3)
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = Parent,IsHelper(220000)
var(55) = gametime+123456789
ignorehitpause = 1
[State 151, 準汎用]
type = Parentvarset
triggerall = !Root,sysvar(3)
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = Parent,IsHelper(220000)
var(54) = 37564*gametime
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
var(50) = gametime+1298391829841
triggerall = PlayerIDExist( Parent,ID )
triggerall = !parent,name = "Dies"
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,IsHelper(99920)
trigger1   = (sysvar(0) & 1)
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = !parent,name = "Dies"
triggerall = Parent,TeamSide != TeamSide
triggerall = Parent,IsHelper(55000) 
trigger1 = (sysvar(0) & 1)
var(39) = GameTime + 10005 + (Parent,MoveType = A)
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
var(4) = gametime*255
triggerall = PlayerIDExist( Parent,ID )
triggerall = !parent,name = "Dies"
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = enemy,numhelper(1114)
trigger1 = 1
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
var(31) = 0
triggerall = enemy,numhelper(288888)
triggerall = !parent,name = "Dies"
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,name = "S_Remilia"
triggerall = !Parent,Name = "Hinako Shijo"
triggerall = !Parent,Name = "Rion"
;triggerall = !Parent,Name = "G-Sakuya"
triggerall = !Parent,name = "Tenma"
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,ishelper(989898)
triggerall = enemy,numhelper(989898) != 0
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
trigger1 = roundstate = [0,1]
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
var(31) = 1450
triggerall = enemy,numhelper(288888)
triggerall = !parent,name = "Dies"
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,name = "S_Remilia"
triggerall = !Parent,Name = "Hinako Shijo"
triggerall = !Parent,Name = "Rion"
;triggerall = !Parent,Name = "G-Sakuya""
triggerall = !Parent,name = "Tenma"
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,ishelper(989898)
triggerall = enemy,numhelper(989898) = 0
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
trigger1 = Roundstate = [0,1]
trigger1 = gametime% 30 = 0
ignorehitpause = 1
[State 16106, 準汎用]
type=parentvarset
trigger1=roundstate=2
trigger1=parent,ishelper(4343)
triggerall = !parent,name = "Dies"
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
var(6)=60
ignorehitpause=1
[State 151, 準汎用]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = !parent,name = "Dies"
triggerall = Parent,TeamSide != TeamSide
triggerall = Parent,IsHelper(97)
triggerall   = (sysvar(0) & 1)
trigger1 = 1
var(1) = 1
ignorehitpause = 1

[State 151, 邪眼キラー範囲内]
type = Varset
triggerall = numtarget 
triggerall = target,ishelper
trigger1 = target,stateno = [0, 150]
trigger2 = target,stateno = [151, 719]
trigger3 = target,stateno = 1007
trigger4 = target,stateno = 1050
trigger5 = target,stateno = 1065
trigger6 = target,stateno = 1102
trigger7 = target,stateno = [1111, 1112]
trigger8 = target,stateno = 1116
trigger9 = target,stateno = 1200
trigger10 = target,stateno = 1202
trigger11 = target,stateno = 1300
trigger12 = target,stateno = 1302
trigger13 = target,stateno = 1350
trigger14 = target,stateno = 1400
trigger15 = target,stateno = 1412
trigger16 = target,stateno = 1450
trigger17 = target,stateno = 1500
trigger18 = target,stateno = 1510
trigger19 = target,stateno = [1600, 1602]
trigger20 = target,stateno = 1720
trigger21 = target,stateno = 1801
trigger22 = target,stateno = 2000
trigger23 = target,stateno = 2025
trigger24 = target,stateno = [2100, 2103]
trigger25 = target,stateno = 2105
trigger26 = target,stateno = [2200, 2206]
trigger27 = target,stateno = 2269
trigger28 = target,stateno = 2300
trigger29 = target,stateno = 2350
trigger30 = target,stateno = [2352, 2353]
trigger31 = target,stateno = [2355, 2356]
trigger32 = target,stateno = 2400
trigger33 = target,stateno = 2500
trigger34 = target,stateno = [2506, 2507]
trigger35 = target,stateno = 2600
trigger36 = target,stateno = 2611
trigger37 = target,stateno = 2901
trigger38 = target,stateno = 3002
trigger39 = target,stateno = 3041
trigger40 = target,stateno = 3052
trigger41 = target,stateno = 3059
trigger42 = target,stateno = 3185
trigger43 = target,stateno = 3403
trigger44 = target,stateno = [3920, 3921]
trigger45 = target,stateno = 3929
trigger46 = target,stateno = 3999
trigger47 = target,stateno = 4060
trigger48 = target,stateno = 4091
trigger49 = target,stateno = 4211
trigger50 = target,stateno = [4310, 4311]
trigger51 = target,stateno = [4330, 4331]
trigger52 = target,stateno = 4391
trigger53 = target,stateno = [4395, 4396]
trigger54 = target,stateno = 4510
trigger55 = target,stateno = 4512
trigger56 = target,stateno = [5000, 5001]
trigger57 = target,stateno = [5010, 5011]
trigger58 = target,stateno = 5020
trigger59 = target,stateno = 5030
trigger60 = target,stateno = 5035
trigger61 = target,stateno = 5040
trigger62 = target,stateno = 5050
trigger63 = target,stateno = [5070, 5071]
trigger64 = target,stateno = [5080, 5081]
trigger65 = target,stateno = 5101
trigger66 = target,stateno = 5110
trigger67 = target,stateno = 5120
trigger68 = target,stateno = [5200, 5201]
trigger69 = target,stateno = 5210
trigger70 = target,stateno = 5500
trigger71 = target,stateno = 5600
trigger72 = target,stateno = 5788
trigger73 = target,stateno = [5789, 5790]
trigger74 = target,stateno = 5900
trigger75 = target,stateno = [6000, 6002]
trigger76 = target,stateno = [6010, 6012]
trigger77 = target,stateno = 6014
trigger78 = target,stateno = 6016
trigger79 = target,stateno = [6019, 6020]
trigger80 = target,stateno = [6024, 6027]
trigger81 = target,stateno = [6032, 6035]
trigger82 = target,stateno = 6100
trigger83 = target,stateno = 6301
trigger84 = target,stateno = 6306
trigger85 = target,stateno = 6540
trigger86 = target,stateno = 6789
trigger87 = target,stateno = 6900
trigger88 = target,stateno = 6920
trigger89 = target,stateno = 7000
trigger90 = target,stateno = [7040, 7047]
trigger91 = target,stateno = 7055
trigger92 = target,stateno = [7320, 7321]
trigger93 = target,stateno = [7326, 7327]
trigger94 = target,stateno = 7777
trigger95 = target,stateno = 7878
trigger96 = target,stateno = 8000
trigger97 = target,stateno = 8003
trigger98 = target,stateno = 8040
trigger99 = target,stateno = 8100
trigger100 = target,stateno = 8900
trigger101 = target,stateno = 9000
trigger102 = target,stateno = 9126
trigger103 = target,stateno = 9200
trigger104 = target,stateno = 9263
trigger105 = target,stateno = 9809
trigger106 = target,stateno = 9900
trigger107 = target,stateno = 9936
trigger108 = target,stateno = 9952
trigger109 = target,stateno = 9994
trigger110 = target,stateno = [10003, 10004]
trigger111 = target,stateno = 10012
trigger112 = target,stateno = 10015
trigger113 = target,stateno = 10101
trigger114 = target,stateno = 10504
trigger115 = target,stateno = 10651
trigger116 = target,stateno = [11001, 11004]
trigger117 = target,stateno = 11100
trigger118 = target,stateno = 11111
trigger119 = target,stateno = 11502
trigger120 = target,stateno = 11680
trigger121 = target,stateno = 11710
trigger122 = target,stateno = 11720
trigger123 = target,stateno = 11730
trigger124 = target,stateno = [12003, 12004]
trigger125 = target,stateno = 12310
trigger126 = target,stateno = 12345
trigger127 = target,stateno = 12500
trigger128 = target,stateno = 13000
trigger129 = target,stateno = 13050
trigger130 = target,stateno = 13100
trigger131 = target,stateno = 13200
trigger132 = target,stateno = 13500
trigger133 = target,stateno = [14001, 14002]
trigger134 = target,stateno = 16003
trigger135 = target,stateno = 18102
trigger136 = target,stateno = 19101
trigger137 = target,stateno = 20000
trigger138 = target,stateno = 20955
trigger139 = target,stateno = [22101, 22102]
trigger140 = target,stateno = 22122
trigger141 = target,stateno = 22222
trigger142 = target,stateno = 22224
trigger143 = target,stateno = 24601
trigger144 = target,stateno = 24610
trigger145 = target,stateno = 25544
trigger146 = target,stateno = 26320
trigger147 = target,stateno = 26485
trigger148 = target,stateno = [30000, 30004]
trigger149 = target,stateno = [30013, 30014]
trigger150 = target,stateno = [30020, 30021]
trigger151 = target,stateno = 31993
trigger152 = target,stateno = 32555
trigger153 = target,stateno = 37000
trigger154 = target,stateno = 40001
trigger155 = target,stateno = 40003
trigger156 = target,stateno = 40952
trigger157 = target,stateno = 43302
trigger158 = target,stateno = [43425, 43426]
trigger159 = target,stateno = 43655
trigger160 = target,stateno = 43705
trigger161 = target,stateno = 43708
trigger162 = target,stateno = 44488
trigger163 = target,stateno = 44900
trigger164 = target,stateno = 45755
trigger165 = target,stateno = 45999
trigger166 = target,stateno = 46060
trigger167 = target,stateno = 46965
trigger168 = target,stateno = 49933
trigger169 = target,stateno = 49943
trigger170 = target,stateno = 50000
trigger171 = target,stateno = [50505, 50506]
trigger172 = target,stateno = [51515, 51518]
trigger173 = target,stateno = 55555
trigger174 = target,stateno = 58901
trigger175 = target,stateno = 60000
trigger176 = target,stateno = 60050
trigger177 = target,stateno = 60315
trigger178 = target,stateno = 61000
trigger179 = target,stateno = 64000
trigger180 = target,stateno = 65000
trigger181 = target,stateno = 65500
trigger182 = target,stateno = 65530
trigger183 = target,stateno = 70000
trigger184 = target,stateno = 70100
trigger185 = target,stateno = 70200
trigger186 = target,stateno = 80000
trigger187 = target,stateno = 84555
trigger188 = target,stateno = 88885
trigger189 = target,stateno = 88887
trigger190 = target,stateno = 90000
trigger191 = target,stateno = [99919, 99920]
trigger192 = target,stateno = [99999, 100000]
trigger193 = target,stateno = 100002
trigger194 = target,stateno = 111222
trigger195 = target,stateno = 112235
trigger196 = target,stateno = 112240
trigger197 = target,stateno = 112250
trigger198 = target,stateno = 126100
trigger199 = target,stateno = 169990
trigger200 = target,stateno = 170000
trigger201 = target,stateno = 180002
trigger202 = target,stateno = 200000
trigger203 = target,stateno = 300000
trigger204 = target,stateno = 301050
trigger205 = target,stateno = 310120
trigger206 = target,stateno = 313900
trigger207 = target,stateno = 400000
trigger208 = target,stateno = 450000
trigger209 = target,stateno = 500000
trigger210 = target,stateno = 500033
trigger211 = target,stateno = 600000
trigger212 = target,stateno = 649999
trigger213 = target,stateno = 700000
trigger214 = target,stateno = [741003, 741004]
trigger215 = target,stateno = 800000
trigger216 = target,stateno = 900000
trigger217 = target,stateno = 910010
trigger218 = target,stateno = 1000000
trigger219 = target,stateno = 1168000
trigger220 = target,stateno = 1699922
trigger221 = target,stateno = 2000000
trigger222 = target,stateno = 3000000
trigger223 = target,stateno = 4000000
trigger224 = target,stateno = 5000000
trigger225 = target,stateno = [5000005, 5000006]
trigger226 = target,stateno = 5000010
trigger227 = target,stateno = 5000025
trigger228 = target,stateno = 5000052
trigger229 = target,stateno = 5000058
trigger230 = target,stateno = [5000070, 5000072]
trigger231 = target,stateno = 5000080
trigger232 = target,stateno = 5000085
trigger233 = target,stateno = 5000090
trigger234 = target,stateno = 5000095
trigger235 = target,stateno = 5000333
trigger236 = target,stateno = 6000000
trigger237 = target,stateno = 6400000
trigger238 = target,stateno = 7000000
trigger239 = target,stateno = 8000000
trigger240 = target,stateno = 9000000
trigger241 = target,stateno = 10000000
trigger242 = target,stateno = 20000000
trigger243 = target,stateno = [21360897, 21360898]
trigger244 = target,stateno = 22222222
trigger245 = target,stateno = 30000000
trigger246 = target,stateno = 40000000
trigger247 = target,stateno = 50000000
trigger248 = target,stateno = 60000000
trigger249 = target,stateno = 70000000
trigger250 = target,stateno = 80000000
trigger251 = target,stateno = 90000000
trigger252 = target,stateno = 100000000
trigger253 = target,stateno = 200000000
trigger254 = target,stateno = 300000000
trigger255 = target,stateno = 400000000
trigger256 = target,stateno = 500000000
trigger257 = target,stateno = 555555557
trigger258 = target,stateno = 600000000
trigger259 = target,stateno = 700000000
trigger260 = target,stateno = 800000000
trigger261 = target,stateno = 900000000
trigger262 = target,stateno = 987654321
trigger263 = target,stateno = 1000000000
trigger264 = target,stateno = 1100000000
trigger265 = target,stateno = 1200000000
trigger266 = target,stateno = 1300000000
trigger267 = target,stateno = 1400000000
trigger268 = target,stateno = 1500000000
trigger269 = target,stateno = 1600000000
trigger270 = target,stateno = 1700000000
trigger271 = target,stateno = 1800000000
trigger272 = target,stateno = 1900000000
trigger273 = target,stateno = 2000000000
trigger274 = target,stateno = 2100000000
trigger275 = target,stateno = 2147483647
trigger276 = target,stateno = [721,1004]
trigger277 = target,stateno = 288888
trigger278 = target,stateno = 58010
trigger279 = target,stateno = [220000,220005]
var(55) = target,stateno
ignorehitpause = 1

[State 151, target,stateno変数化、邪眼キラー範囲外]
type = Varset
triggerall = numtarget 
triggerall = target,ishelper
triggerall = target,stateno != [0, 150]
triggerall = target,stateno != [151,719]
triggerall = target,stateno != [721,1004]
triggerall = target,stateno != 1007
triggerall = target,stateno != 1050
triggerall = target,stateno != 1065
triggerall = target,stateno != 1102
triggerall = target,stateno != [1111, 1112]
triggerall = target,stateno != 1116
triggerall = target,stateno != 1200
triggerall = target,stateno != 1202
triggerall = target,stateno != 1300
triggerall = target,stateno != 1302
triggerall = target,stateno != 1350
triggerall = target,stateno != 1400
triggerall = target,stateno != 1412
triggerall = target,stateno != 1450
triggerall = target,stateno != 1500
triggerall = target,stateno != 1510
triggerall = target,stateno != [1600, 1602]
triggerall = target,stateno != 1720
triggerall = target,stateno != 1801
triggerall = target,stateno != 2000
triggerall = target,stateno != 2025
triggerall = target,stateno != [2100, 2103]
triggerall = target,stateno != 2105
triggerall = target,stateno != [2200, 2206]
triggerall = target,stateno != 2269
triggerall = target,stateno != 2300
triggerall = target,stateno != 2350
triggerall = target,stateno != [2352, 2353]
triggerall = target,stateno != [2355, 2356]
triggerall = target,stateno != 2400
triggerall = target,stateno != 2500
triggerall = target,stateno != [2506, 2507]
triggerall = target,stateno != 2600
triggerall = target,stateno != 2611
triggerall = target,stateno != 2901
triggerall = target,stateno != 3002
triggerall = target,stateno != 3041
triggerall = target,stateno != 3052
triggerall = target,stateno != 3059
triggerall = target,stateno != 3185
triggerall = target,stateno != 3403
triggerall = target,stateno != [3920, 3921]
triggerall = target,stateno != 3929
triggerall = target,stateno != 3999
triggerall = target,stateno != 4060
triggerall = target,stateno != 4091
triggerall = target,stateno != 4211
triggerall = target,stateno != [4310, 4311]
triggerall = target,stateno != [4330, 4331]
triggerall = target,stateno != 4391
triggerall = target,stateno != [4395, 4396]
triggerall = target,stateno != 4510
triggerall = target,stateno != 4512
triggerall = target,stateno != [5000, 5001]
triggerall = target,stateno != [5010, 5011]
triggerall = target,stateno != 5020
triggerall = target,stateno != 5030
triggerall = target,stateno != 5035
triggerall = target,stateno != 5040
triggerall = target,stateno != 5050
triggerall = target,stateno != [5070, 5071]
triggerall = target,stateno != [5080, 5081]
triggerall = target,stateno != 5101
triggerall = target,stateno != 5110
triggerall = target,stateno != 5120
triggerall = target,stateno != [5200, 5201]
triggerall = target,stateno != 5210
triggerall = target,stateno != 5500
triggerall = target,stateno != 5600
triggerall = target,stateno != 5788
triggerall = target,stateno != [5789, 5790]
triggerall = target,stateno != 5900
triggerall = target,stateno != [6000, 6002]
triggerall = target,stateno != [6010, 6012]
triggerall = target,stateno != 6014
triggerall = target,stateno != 6016
triggerall = target,stateno != [6019, 6020]
triggerall = target,stateno != [6024, 6027]
triggerall = target,stateno != [6032, 6035]
triggerall = target,stateno != 6100
triggerall = target,stateno != 6301
triggerall = target,stateno != 6306
triggerall = target,stateno != 6540
triggerall = target,stateno != 6789
triggerall = target,stateno != 6900
triggerall = target,stateno != 6920
triggerall = target,stateno != 7000
triggerall = target,stateno != [7040, 7047]
triggerall = target,stateno != 7055
triggerall = target,stateno != [7320, 7321]
triggerall = target,stateno != [7326, 7327]
triggerall = target,stateno != 7777
triggerall = target,stateno != 7878
triggerall = target,stateno != 8000
triggerall = target,stateno != 8003
triggerall = target,stateno != 8040
triggerall = target,stateno != 8100
triggerall = target,stateno != 8900
triggerall = target,stateno != 9000
triggerall = target,stateno != 9126
triggerall = target,stateno != 9200
triggerall = target,stateno != 9263
triggerall = target,stateno != 9809
triggerall = target,stateno != 9900
triggerall = target,stateno != 9936
triggerall = target,stateno != 9952
triggerall = target,stateno != 9994
triggerall = target,stateno != [10003, 10004]
triggerall = target,stateno != 10012
triggerall = target,stateno != 10015
triggerall = target,stateno != 10101
triggerall = target,stateno != 10504
triggerall = target,stateno != 10651
triggerall = target,stateno != [11001, 11004]
triggerall = target,stateno != 11100
triggerall = target,stateno != 11111
triggerall = target,stateno != 11502
triggerall = target,stateno != 11680
triggerall = target,stateno != 11710
triggerall = target,stateno != 11720
triggerall = target,stateno != 11730
triggerall = target,stateno != [12003, 12004]
triggerall = target,stateno != 12310
triggerall = target,stateno != 12345
triggerall = target,stateno != 12500
triggerall = target,stateno != 13000
triggerall = target,stateno != 13050
triggerall = target,stateno != 13100
triggerall = target,stateno != 13200
triggerall = target,stateno != 13500
triggerall = target,stateno != [14000, 14002]
triggerall = target,stateno != 16003
triggerall = target,stateno != 18102
triggerall = target,stateno != 19101
triggerall = target,stateno != 20000
triggerall = target,stateno != 20955
triggerall = target,stateno != [22101, 22102]
triggerall = target,stateno != 22122
triggerall = target,stateno != 22222
triggerall = target,stateno != 22224
triggerall = target,stateno != 24601
triggerall = target,stateno != 24610
triggerall = target,stateno != 25544
triggerall = target,stateno != 26320
triggerall = target,stateno != 26485
triggerall = target,stateno != [30000, 30004]
triggerall = target,stateno != [30013, 30014]
triggerall = target,stateno != [30020, 30021]
triggerall = target,stateno != 31993
triggerall = target,stateno != 32555
triggerall = target,stateno != 37000
triggerall = target,stateno != 40001
triggerall = target,stateno != 40003
triggerall = target,stateno != 40952
triggerall = target,stateno != 43302
triggerall = target,stateno != [43425, 43426]
triggerall = target,stateno != 43655
triggerall = target,stateno != 43705
triggerall = target,stateno != 43708
triggerall = target,stateno != 44488
triggerall = target,stateno != 44900
triggerall = target,stateno != 45755
triggerall = target,stateno != 45999
triggerall = target,stateno != 46060
triggerall = target,stateno != 46965
triggerall = target,stateno != 49933
triggerall = target,stateno != 49943
triggerall = target,stateno != 50000
triggerall = target,stateno != [50505, 50506]
triggerall = target,stateno != [51515, 51518]
triggerall = target,stateno != 55555
triggerall = target,stateno != 58901
triggerall = target,stateno != 60000
triggerall = target,stateno != 60050
triggerall = target,stateno != 60315
triggerall = target,stateno != 61000
triggerall = target,stateno != 64000
triggerall = target,stateno != 65000
triggerall = target,stateno != 65500
triggerall = target,stateno != 65530
triggerall = target,stateno != 70000
triggerall = target,stateno != 70100
triggerall = target,stateno != 70200
triggerall = target,stateno != 80000
triggerall = target,stateno != 84555
triggerall = target,stateno != 88885
triggerall = target,stateno != 88887
triggerall = target,stateno != 90000
triggerall = target,stateno != [99919, 99920]
triggerall = target,stateno != [99999, 100000]
triggerall = target,stateno != 100002
triggerall = target,stateno != 111222
triggerall = target,stateno != 112235
triggerall = target,stateno != 112240
triggerall = target,stateno != 112250
triggerall = target,stateno != 126100
triggerall = target,stateno != 169990
triggerall = target,stateno != 170000
triggerall = target,stateno != 180002
triggerall = target,stateno != 200000
triggerall = target,stateno != 300000
triggerall = target,stateno != 301050
triggerall = target,stateno != 310120
triggerall = target,stateno != 313900
triggerall = target,stateno != 400000
triggerall = target,stateno != 450000
triggerall = target,stateno != 500000
triggerall = target,stateno != 500033
triggerall = target,stateno != 600000
triggerall = target,stateno != 649999
triggerall = target,stateno != 700000
triggerall = target,stateno != [741003, 741004]
triggerall = target,stateno != 800000
triggerall = target,stateno != 900000
triggerall = target,stateno != 910010
triggerall = target,stateno != 1000000
triggerall = target,stateno != 1168000
triggerall = target,stateno != 1699922
triggerall = target,stateno != 2000000
triggerall = target,stateno != 3000000
triggerall = target,stateno != 4000000
triggerall = target,stateno != 5000000
triggerall = target,stateno != [5000005, 5000006]
triggerall = target,stateno != 5000010
triggerall = target,stateno != 5000025
triggerall = target,stateno != 5000052
triggerall = target,stateno != 5000058
triggerall = target,stateno != [5000070, 5000072]
triggerall = target,stateno != 5000080
triggerall = target,stateno != 5000085
triggerall = target,stateno != 5000090
triggerall = target,stateno != 5000095
triggerall = target,stateno != 5000333
triggerall = target,stateno != 6000000
triggerall = target,stateno != 6400000
triggerall = target,stateno != 7000000
triggerall = target,stateno != 8000000
triggerall = target,stateno != 9000000
triggerall = target,stateno != 10000000
triggerall = target,stateno != 20000000
triggerall = target,stateno != [21360897, 21360898]
triggerall = target,stateno != 22222222
triggerall = target,stateno != 30000000
triggerall = target,stateno != 40000000
triggerall = target,stateno != 50000000
triggerall = target,stateno != 60000000
triggerall = target,stateno != 70000000
triggerall = target,stateno != 80000000
triggerall = target,stateno != 90000000
triggerall = target,stateno != 100000000
triggerall = target,stateno != 200000000
triggerall = target,stateno != 300000000
triggerall = target,stateno != 400000000
triggerall = target,stateno != 500000000
triggerall = target,stateno != 555555557
triggerall = target,stateno != 600000000
triggerall = target,stateno != 700000000
triggerall = target,stateno != 800000000
triggerall = target,stateno != 900000000
triggerall = target,stateno != 987654321
triggerall = target,stateno != 1000000000
triggerall = target,stateno != 1100000000
triggerall = target,stateno != 1200000000
triggerall = target,stateno != 1300000000
triggerall = target,stateno != 1400000000
triggerall = target,stateno != 1500000000
triggerall = target,stateno != 1600000000
triggerall = target,stateno != 1700000000
triggerall = target,stateno != 1800000000
triggerall = target,stateno != 1900000000
triggerall = target,stateno != 2000000000
triggerall = target,stateno != 2100000000
triggerall = target,stateno != 2147483647
triggerall = target,stateno != 45000
triggerall = target,stateno != 288888
triggerall = target,stateno != 58010
triggerall = target,stateno != [220000,220005]
trigger1 = ishelper(190000) || ishelper(190001) || ishelper(190002) || ishelper(190003) || ishelper(190004) || ishelper(190005) || ishelper(190006) || ishelper(190007)
trigger2 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger3 = ishelper(190016) || ishelper(190017) || ishelper(190018) || ishelper(190019) || ishelper(190020) || ishelper(190021) || ishelper(190022) || ishelper(190023) || ishelper(190026) 
var(55) = 45000
ignorehitpause = 1

[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = !(enemynear,name = "Dies")
triggerall = !(enemynear,name = "assiette")
triggerall = !(target,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000))
triggerall = !Parent,name = "S_Sakuya"
;triggerall = !target,ishelper(989898)
triggerall = (root,sysvar(3) = [0,10000]) 
triggerall = var(55)
trigger1 = ((GameTime% 20 ) = 0 ) || roundstate != 2 
trigger2 = root,anim = 2015 || root,anim = 2014 || root,anim = 2500
trigger3 = (root,sysvar(3) = [0,3150])
value = var(55)
ignorehitpause = 1

[State 151, 対鬼巫女R]
type=targetstate
trigger1 = target,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000)
trigger1 = roundstate<3
trigger1 = !target,ishelper(3)
trigger1 = !target,ishelper(2)
value = 19500
ignorehitpause = 1

[State 45100,対幸薄観鈴専用対策]
type = Projectile
trigger1 = Playeridexist(parent,id)		
trigger1 = parent,teamside!=teamside
trigger1 = parent,name="Ill-Fate-Misuzu"
trigger1 = parent,ishelper(10000)
trigger1 = teamside=1
trigger1 = enemy,palno=[11,12]
trigger1 = parent,gethitvar(damage) 
trigger1 = !root,numprojid(55555)
projid = 55555
projanim = 6002
projremove = 0
projedgebound = 999999
projstagebound = 999999
projheightbound = -999999,999999
persistent = 256
ignorehitpause = 1


[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = target,ishelper(989898)
trigger1 = 1
value = 45000
ignorehitpause = 1

[State 151, ステート変更 - 親変数保存]
type = SelfState
triggerall = !target,ishelper(989898)
triggerall= !(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = PrevStateNo != [16104,16107]
triggerall = !Parent,Name = "Hinako Shijo"
triggerall = !Parent,Name = "Rion"
triggerall = !Parent,Name = "Tenma"
triggerall = !Parent,Name = "G-Sakuya"
triggerall = !Parent,name = "Singularity"
triggerall = enemy,alive&&enemy(numenemy>1),alive
trigger1   = (sysvar(0) & 1)	;親変更成功フラグ
persistent = 256
value = 16105			;親変数保存ステート
ignorehitpause = 1

;------------------------------------------------------------------------------
;  <ヘルパー> 並列混線被弾ヘルパーID調査

[StateDef 190200]
type     = S
movetype = I
physics  = N
ctrl = 0 
movehitpersist = 1
hitdefpersist  = 1

[State 16000, アニメ変更]
type = Changeanim
trigger1 = Anim != 6002
value = 6002
ignorehitpause = 1


[State 16000, 敵監視]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 45000	
ignorehitpause = 1

[State 16000, ステート変更 - 通常処理ステート]
type = SelfState
triggerall = IsHelper
trigger1   = TeamSide = 1		;1P側
trigger1   = PlayerIDExist(56)		;本体
trigger1   = PlayerID(56),var(49)	;親変更可能領域
trigger2   = TeamSide != 1		;1P側以外
value = 16000				;並列混線被弾ヘルパー通常処理
ignorehitpause = 1

[State 16000, 親変更不可能領域に場合ヘルパー消去]
type = DestroySelf
triggerall = IsHelper
triggerall = TeamSide = 1		;1P側
triggerall = PlayerIDExist(56)		;本体
triggerall = !PlayerID(56),var(49)	;親変更不可能領域
trigger1   = animelemtime(1) > 0		;2F目で消去
ignorehitpause = 1

;---------------------------------------------------------------------------------
;---------------------------------------------------------------------------
;
[Statedef 16000]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

[State 190200]
type = varset
trigger1 = ishelper
var(1) = 1
ignorehitpause = 1

[State 190200]
type = Changestate
trigger1 = !ishelper
trigger2 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State 190200,位置調整]
Type       = Bindtoroot
Trigger1   = Ishelper(190200) + Ishelper(190201) + Ishelper(190202) + Ishelper(190203) + Ishelper(190204) + Ishelper(190205)
Pos        = -70,-10*Ishelper(190201) - 20*Ishelper(190202) - 30*Ishelper(190203) - 40*Ishelper(190204) - 50*Ishelper(190205)
Ignorehitpause = 1

[State 190200,位置調整2]
Type       = Bindtoroot
Trigger1   = Ishelper(190206) + Ishelper(190207) + Ishelper(190208) + Ishelper(190209) + Ishelper(190210) + Ishelper(190211)
Pos        = -70,-60 - 10*Ishelper(190207) - 20*Ishelper(190208) - 30*Ishelper(190209) - 40*Ishelper(190210) - 50*Ishelper(190211)
Ignorehitpause = 1

[State 190200,位置調整3]
Type       = Bindtoroot
Trigger1   = Ishelper(190212) + Ishelper(190213) + Ishelper(190214) + Ishelper(190215) + Ishelper(190216) + Ishelper(190217)
Pos        = -70,-120 - 10*Ishelper(190213) - 20*Ishelper(190214) - 30*Ishelper(190215) - 40*Ishelper(190216) - 50*Ishelper(190217)
Ignorehitpause = 1

[State 190200,位置調整4]
Type       = Bindtoroot
Trigger1   = Ishelper(190218) + Ishelper(190219) + Ishelper(190220) + Ishelper(190221) + Ishelper(190222) + Ishelper(190223)
Pos        = -70,-180 - 10*Ishelper(190219) - 20*Ishelper(190220) - 30*Ishelper(190221) - 40*Ishelper(190222) - 50*Ishelper(190223)
Ignorehitpause = 1

[State 190200]
type = Screenbound
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215)
 || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = 0
ignorehitpause = 1

[State 190200]
type = Statetypeset
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
statetype = C
movetype = H
physics = N
ignorehitpause = 1

[State 190200]
type = Changeanim
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = 9501
ignorehitpause = 1

[State 190200]
type = Ctrlset
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = 0
ignorehitpause = 1

[State 190200]
type = Lifeset
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = 0
ignorehitpause = 1

[State 16001, ヘルパー消去]
type = SelfState
trigger1   = Enemy,name != "Hastur"
trigger1   = IsHelper(190200)
trigger1   = NumHelper(190000)
trigger1   = Helper(190000),NumTarget 
;trigger1   = Helper(190000),HitPauseTime
;trigger1   = Helper(190000),sysvar(1) > 0
trigger2   = Enemy,name != "Hastur"
trigger2   = IsHelper(190201)
trigger2   = NumHelper(190001)
trigger2   = Helper(190001),NumTarget 
;trigger2   = Helper(190001),HitPauseTime
;trigger2   = Helper(190001),sysvar(1) > 0
trigger3   = Enemy,name != "Hastur"
trigger3   = IsHelper(190202)
trigger3   = NumHelper(190002)
trigger3   = Helper(190002),NumTarget 
;trigger3   = Helper(190002),HitPauseTime
;trigger3   = Helper(190002),sysvar(1) > 0
trigger4   = IsHelper(190203)
trigger4   = NumHelper(190003)
trigger4   = Helper(190003),NumTarget 
;trigger4   = Helper(190003),HitPauseTime
;trigger4   = Helper(190003),sysvar(1) > 0
trigger5   = IsHelper(190204)
trigger5   = NumHelper(190004)
trigger5   = Helper(190004),NumTarget 
;trigger5   = Helper(190004),HitPauseTime
;trigger5   = Helper(190004),sysvar(1) > 0
trigger6   = IsHelper(190205)
trigger6   = NumHelper(190005)
trigger6   = Helper(190005),NumTarget 
;trigger6   = Helper(190005),HitPauseTime
;trigger6   = Helper(190005),sysvar(1) > 0
trigger7   = IsHelper(190206)
trigger7   = NumHelper(190006)
trigger7   = Helper(190006),NumTarget 
;trigger7   = Helper(190006),HitPauseTime
;trigger7   = Helper(190006),sysvar(1) > 0
trigger8   = IsHelper(190207)
trigger8   = NumHelper(190007)
trigger8   = Helper(190007),NumTarget 
;trigger8   = Helper(190007),HitPauseTime
;trigger8   = Helper(190007),sysvar(1) > 0
trigger9   = IsHelper(190208)
trigger9   = NumHelper(190008)
trigger9   = Helper(190008),NumTarget 
;trigger9   = Helper(190008),HitPauseTime
;trigger9   = Helper(190008),sysvar(1) > 0
trigger10  = IsHelper(190209)
trigger10  = NumHelper(190009)
trigger10  = Helper(190009),NumTarget 
;trigger10  = Helper(190009),HitPauseTime
;trigger10  = Helper(190009),sysvar(1) > 0
trigger11  = IsHelper(190210)
trigger11  = NumHelper(190010)
trigger11  = Helper(190010),NumTarget 
;trigger11  = Helper(190010),HitPauseTime
;trigger11  = Helper(190010),sysvar(1) > 0
trigger12  = IsHelper(190211)
trigger12  = NumHelper(190011)
trigger12  = Helper(190011),NumTarget 
;trigger12  = Helper(190011),HitPauseTime
;trigger12  = Helper(190011),sysvar(1) > 0
trigger13  = IsHelper(190212)
trigger13  = NumHelper(190012)
trigger13  = Helper(190012),NumTarget 
;trigger13  = Helper(190012),HitPauseTime
;trigger13  = Helper(190012),sysvar(1) > 0
trigger14  = IsHelper(190213)
trigger14  = NumHelper(190013)
trigger14  = Helper(190013),NumTarget 
;trigger14  = Helper(190013),HitPauseTime
;trigger14  = Helper(190013),sysvar(1) > 0
trigger15  = IsHelper(190214)
trigger15  = NumHelper(190014)
trigger15  = Helper(190014),NumTarget 
;trigger15  = Helper(190014),HitPauseTime
;trigger15  = Helper(190014),sysvar(1) > 0
trigger16  = IsHelper(190215)
trigger16  = NumHelper(190015)
trigger16  = Helper(190015),NumTarget 
;trigger16  = Helper(190015),HitPauseTime
;trigger16  = Helper(190015),sysvar(1) > 0
trigger17  = IsHelper(190216)
trigger17  = NumHelper(190016)
trigger17  = Helper(190016),NumTarget 
;trigger17  = Helper(190016),HitPauseTime
;trigger17  = Helper(190016),sysvar(1) > 0
trigger18  = IsHelper(190217)
trigger18  = NumHelper(190017)
trigger18  = Helper(190017),NumTarget 
;trigger18  = Helper(190017),HitPauseTime
;trigger18  = Helper(16117),sysvar(1) > 0
trigger19  = IsHelper(190218)
trigger19  = NumHelper(190018)
trigger19  = Helper(190018),NumTarget 
;trigger19  = Helper(190018),HitPauseTime
;trigger19  = Helper(190018),sysvar(1) > 0
trigger20  = IsHelper(190219)
trigger20  = NumHelper(190019)
trigger20  = Helper(190019),NumTarget 
;trigger20  = Helper(190019),HitPauseTime
;trigger20  = Helper(190019),sysvar(1) > 0
trigger21  = IsHelper(190220)
trigger21  = NumHelper(190020)
trigger21  = Helper(190020),NumTarget 
;trigger21  = Helper(190020),HitPauseTime
;trigger21  = Helper(190020),sysvar(1) > 0
trigger22  = IsHelper(190221)
trigger22  = NumHelper(190021)
trigger22  = Helper(190021),NumTarget 
;trigger22  = Helper(190021),HitPauseTime
;trigger22  = Helper(190021),sysvar(1) > 0
trigger23  = IsHelper(190222)
trigger23  = NumHelper(190022)
trigger23  = Helper(190022),NumTarget
;trigger23  = Helper(190022),HitPauseTime
;trigger23  = Helper(190022),sysvar(1) > 0
trigger24  = IsHelper(190223)
trigger24  = NumHelper(190023)
trigger24  = Helper(190023),NumTarget 
;trigger24  = Helper(190023),HitPauseTime
;trigger24  = Helper(190023),sysvar(1) > 0
value = 1111111
ignorehitpause = 1

[State -2, ヘルパー消去]
type = DestroySelf
trigger1   = Enemy,name = "Hastur"
triggerall   = IsHelper(190200) || IsHelper(190201) || IsHelper(190202)
triggerall   = enemy,numhelper(989898) != 0		
ignorehitpause = 1

[State -2, 混線,親変更用ヘルパー１呼び出し]
type = Helper
triggerall = ishelper(190200)
trigger1 = !numhelper(190000)
ID = 190000
name = "konsen_1"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー２呼び出し]
type = Helper
triggerall = ishelper(190201)
trigger1 = !numhelper(190001)
ID = 190001
name = "konsen_2"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー３呼び出し]
type = Helper
triggerall = ishelper(190202)
trigger1 = !numhelper(190002)
ID = 190002
name = "konsen_3"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー４呼び出し]
type = Helper
triggerall = ishelper(190203)
trigger1 = !numhelper(190003)
ID = 190003
name = "konsen_4"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー５呼び出し]
type = Helper
triggerall = ishelper(190204)
trigger1 = !numhelper(190004)
ID = 190004
name = "konsen_5"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー６呼び出し]
type = Helper
triggerall = ishelper(190205)
trigger1 = !numhelper(190005)
ID = 190005
name = "konsen_6"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー７呼び出し]
type = Helper
triggerall = ishelper(190206)
trigger1 = !numhelper(190006)
ID = 190006
name = "konsen_7"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー８呼び出し]
type = Helper
triggerall = ishelper(190207)
trigger1 = !numhelper(190007)
ID = 190007
name = "konsen_8"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー9呼び出し]
type = Helper
triggerall = ishelper(190208)
trigger1 = !numhelper(190008)
ID = 190008
name = "konsen_9"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー10呼び出し]
type = Helper
triggerall = ishelper(190209)
trigger1 = !numhelper(190009)
ID = 190009
name = "konsen_10"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー11呼び出し]
type = Helper
triggerall = ishelper(190210)
trigger1 = !numhelper(190010)
ID = 190010
name = "konsen_11"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー12呼び出し]
type = Helper
triggerall = ishelper(190211)
trigger1 = !numhelper(190011)
ID = 190011
name = "konsen_12"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー13呼び出し]
type = Helper
triggerall = ishelper(190212)
trigger1 = !numhelper(190012)
ID = 190012
name = "konsen_13"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー14呼び出し]
type = Helper
triggerall = ishelper(190213)
trigger1 = !numhelper(190013)
ID = 190013
name = "konsen_14"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー15呼び出し]
type = Helper
triggerall = ishelper(190214)
trigger1 = !numhelper(190014)
ID = 190014
name = "konsen_15"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー16呼び出し]
type = Helper
triggerall = ishelper(190215)
trigger1 = !numhelper(190015)
ID = 190015
name = "konsen_16"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー17呼び出し]
type = Helper
triggerall = ishelper(190216)
trigger1 = !numhelper(190016)
ID = 190016
name = "konsen_17"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー18呼び出し]
type = Helper
triggerall = ishelper(190217)
trigger1 = !numhelper(190017)
ID = 190017
name = "konsen_18"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー19呼び出し]
type = Helper
triggerall = ishelper(190218)
trigger1 = !numhelper(190018)
ID = 190018
name = "konsen_19"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー20呼び出し]
type = Helper
triggerall = ishelper(190219)
trigger1 = !numhelper(190019)
ID = 190019
name = "konsen_20"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー21呼び出し]
type = Helper
triggerall = ishelper(190220)
trigger1 = !numhelper(190020)
ID = 190020
name = "konsen_21"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー22呼び出し]
type = Helper
triggerall = ishelper(190221)
trigger1 = !numhelper(190021)
ID = 190021
name = "konsen_22"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー23呼び出し]
type = Helper
triggerall = ishelper(190222)
trigger1 = !numhelper(190022)
ID = 190022
name = "konsen_23"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1
[State -2, 混線,親変更用ヘルパー24呼び出し]
type = null;Helper
triggerall = ishelper(190223)
trigger1 = !numhelper(190023)
ID = 190023
name = "konsen_24"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線,親変更用ヘルパー25呼び出し]
type = null;Helper
triggerall = parent,var(49)
;triggerall = numhelper(190223) ;= 1
trigger1 = !numhelper(190024)
ID = 190024
name = "konsen_25"
postype = p1
pos = 0, 0
stateno = 190000
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State 190200]
type = Assertspecial
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 190200]
type = Playerpush
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = 0
ignorehitpause = 1

[State 190200]
type = null;Bindtoroot
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
pos = 0,0
ignorehitpause = 1

[State 190200]
type = Hitby
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226)
 value = SCA,NT 
ignorehitpause = 1
[State 190200]
type = Nothitby
triggerall = NumTarget 
trigger1 = ishelper(190200) || ishelper(190201) || ishelper(190202) || ishelper(190203) || ishelper(190204) || ishelper(190205) || ishelper(190206) || ishelper(190207)
trigger2 = ishelper(190208) || ishelper(190209) || ishelper(190210) || ishelper(190211) || ishelper(190212) || ishelper(190213) || ishelper(190214) || ishelper(190215) || ishelper(190224) || ishelper(190225)
trigger3 = ishelper(190216) || ishelper(190217) || ishelper(190218) || ishelper(190219) || ishelper(190220) || ishelper(190221) || ishelper(190222) || ishelper(190223) || ishelper(190226) 
value = SCA
ignorehitpause = 1
;--------------------------------------------------------------------------------------------------
;  <親変更ヘルパー> GameTime式ステート抜け貫通ステート

[StateDef 16104]
type     = U
movetype = U
movehitpersist = 1
hitdefpersist  = 1

[State 16104, 敵監視]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 45000	;超即死投げステート
ignorehitpause = 1

[State 16104, gametime貫通をgametimeかgametime+1で計算するか決定]
type = Varset
triggerall = ishelper
trigger1 = playerIDexist(parent,ID)
sysvar(2) = gametime + (parent,movetype = A)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲１]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(23)) = playerid(root,var(10)),var(20) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(21) * sysvar(2) + playerid(root,var(10)),var(22)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲２]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(27)) = playerid(root,var(10)),var(24) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(25) * sysvar(2) + playerid(root,var(10)),var(26)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲３]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(31)) = playerid(root,var(10)),var(28) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(29) * sysvar(2) + playerid(root,var(10)),var(30)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲４]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(35)) = playerid(root,var(10)),var(32) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(33) * sysvar(2) + playerid(root,var(10)),var(34)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲５]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(39)) = playerid(root,var(10)),var(36) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(37) * sysvar(2) + playerid(root,var(10)),var(38)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲６]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(43)) = playerid(root,var(10)),var(40) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(41) * sysvar(2) + playerid(root,var(10)),var(42)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲７]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(47)) = playerid(root,var(10)),var(44) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(45) * sysvar(2) + playerid(root,var(10)),var(46)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲８]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(51)) = playerid(root,var(10)),var(48) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(49) * sysvar(2) + playerid(root,var(10)),var(50)
ignorehitpause = 1

[State 16104, gametime式ステ抜け貫通砲９]
type = Parentvarset
triggerall = ishelper
triggerall = playerIDexist(parent,ID)
triggerall = Parent,ishelper
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = roundstate > 1
triggerall = playerIDexist(root,var(10))
trigger1 = root,sysvar(3) < 5400
var(playerid(root,var(10)),var(55)) = playerid(root,var(10)),var(52) * sysvar(2) * sysvar(2) + playerid(root,var(10)),var(53) * sysvar(2) + playerid(root,var(10)),var(54)
ignorehitpause = 1

[State 16104]
type = SelfState
trigger1 = 1
persistent = 256
value = 190001
ignorehitpause = 1
;━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;  <親変更ヘルパー> 親変数保存ステート
;━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;--------------------------------------------------------------------------------------------------

[StateDef 16105]
type     = U
movetype = U
movehitpersist = 1
hitdefpersist  = 1


[State 16105, 敵監視]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 45000	;超即死投げステート
ignorehitpause = 1

[State 16105, ステート変更 - 変数弄り]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(4)		;変数弄り中フラグ
persistent = 256
value = 16106
ignorehitpause = 1

[State 16105, ループ変数初期化]
type = VarSet
trigger1 = StateNo != PrevStateNo
sysvar(3) = 0
ignorehitpause = 1

[State 16105, 親の変数を保存]
type = VarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,59]	;整数変数は0~59まで。
var(sysvar(3)) = Parent,var(sysvar(3))
ignorehitpause = 1

[State 16105, 親の変数を保存]
type = VarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,39]	;不動小数変数は0~39まで。
fvar(sysvar(3)) = Parent,fvar(sysvar(3))
ignorehitpause = 1

[State 16105, カウント]
type = VarAdd
trigger1 = 1
sysvar(3) = 1
ignorehitpause = 1

[State 16105, ループ]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,59]
persistent = 256
value = StateNo
ignorehitpause = 1

[State 16105, ステート変更 - 変数弄り]
type = SelfState
triggerall = RoundState = 2
triggerall = PlayerIDExist(Parent,ID)
triggerall = (sysvar(0) & 1)
triggerall = !Parent,IsHelper(989898)	;間者ヘルパーには行わない。
trigger1   = Random < 5
trigger2   = !(sysvar(0) & 2)		;1度も変数弄りをしていない
persistent = 256
value = 16106
ignorehitpause = 1

[State 16105, 変数弄り中フラグ消去]
type = VarSet
trigger1 = 1
sysvar(4) = 0
ignorehitpause = 1

[State 16105, ステート変更 - GameTime式ステ抜け貫通]
type = SelfState
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = enemy,alive&&enemy(numenemy>1),alive
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 16105, ステート変更 - 並列混線通常処理]
type = SelfState
trigger1 = 1
persistent = 256
value = 190001
ignorehitpause = 1

;--------------------------------------------------------------------------------------------------
;  <ヘルパー> 親変数弄りステート

[StateDef 16106]
type     = U
movetype = U
movehitpersist = 1
hitdefpersist  = 1

[State 16106, 敵監視]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 45000	;超即死投げステート
ignorehitpause = 1

[State 16106, GameTime式ステ抜け貫通計算判断]
type = VarSet
trigger1 = PlayerIDExist(Parent,ID)
sysvar(2) = GameTime + (Parent,MoveType = A)
ignorehitpause = 1

[State 16106, ループ変数初期化]
type = VarSet
trigger1 = StateNo != PrevStateNo
sysvar(3) = 0
ignorehitpause = 1

[State 151, 対四条雛子/ライオン]
type = ParentVarSet
var(23) = -1+random%2
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "Hinako Shijo" || Parent,Name = "Rion"
trigger1 = 1
ignorehitpause = 1

[State 16106, 親の変数を弄る]
type = ParentVarSet
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,ishelper
triggerall = enemy,alive&&enemy(numenemy>1),alive
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = sysvar(4) = [1,230]	;変数弄り開始からの時間
trigger1   = sysvar(3) = [0,58]		;var(59)はAIの変数として使われていることが多いので弄らない
var(sysvar(3)) = ifelse(Random % 6,ifelse(Random % 5,ifelse(Random % 4,ifelse(Random % 3,ifelse(Random % 2,1,9999999999999),Parent,LifeMax),Random * Random * Random),0) * ((Random % 2) * 2 - 1),sysvar(2))
ignorehitpause = 1

[State 16106, 親の変数を弄る]
type = ParentVarSet
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,ishelper
triggerall = enemy,alive&&enemy(numenemy>1),alive
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = sysvar(4) = [1,230]
trigger1   = sysvar(3) = [0,39]		;不動小数変数は0~39まで。
fvar(sysvar(3)) = ifelse(Random % 7,ifelse(Random % 6,ifelse(Random % 5,ifelse(Random % 4,ifelse(Random % 3,ifelse(Random % 2,1,999999999999),Parent,LifeMax),Random * Random * Random),0) * ((Random % 2) * 2 - 1),sysvar(2)),cos(9.9 ** 99))
ignorehitpause = 1

[State 16106, カウント]
type = VarAdd
trigger1 = 1
sysvar(3) = 1
ignorehitpause = 1

[State 16106, ループ]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = sysvar(4) = [1,230]
trigger1   = sysvar(3) = [0,58]
persistent = 256
value = StateNo
ignorehitpause = 1

[State 16106, 変数弄り中フラグ]
type = VarAdd
trigger1 = 1
sysvar(4) = 1
ignorehitpause = 1

[State 16106, 一度変数弄りを弄ったフラグ]
type = VarSet
trigger1 = 1
sysvar(0) = (sysvar(0) | 2)
ignorehitpause = 1


[State 16106, ステート変更 - 変数修復ステート]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(4) != [1,240]
persistent = 256
value = 16107
ignorehitpause = 1

[State 16106, ステート移動 - GameTime式ステ抜け貫通]
type = SelfState
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = enemy,alive&&enemy(numenemy>1),alive
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 16106, 並列混線通常処理ステートに戻る]
type = SelfState
trigger1 = 1
persistent = 256
value = 190001
ignorehitpause = 1


;--------------------------------------------------------------------------------------------------
;  <親変更ヘルパー> 親変数修復ステート

[StateDef 16107]
type     = U
movetype = U
movehitpersist = 1
hitdefpersist  = 1

[State 16107, 敵監視]
type = ChangeState
trigger1 = Name != "H_Yujiro"
value = 19000	;超即死投げステート
ignorehitpause = 1

[State 16107, プール変数初期化]
type = VarSet
trigger1 = StateNo != PrevStateNo
sysvar(3) = 0
ignorehitpause = 1

[State 16107, 親の変数を修復]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,58]
var(sysvar(3)) = var(sysvar(3))
ignorehitpause = 1

[State 16107, 親の変数を修復]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,ishelper
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,39]
fvar(sysvar(3)) = fvar(sysvar(3))
ignorehitpause = 1

[State 16107, カウント]
type = VarAdd
trigger1 = 1
sysvar(3) = 1
ignorehitpause = 1

[State 16107, ループ]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1   = sysvar(3) = [0,58]
persistent = 256
value = StateNo
ignorehitpause = 1

[State 16107, 変数弄り中フラグ消去]
type = VarSet
trigger1 = 1
sysvar(4) = 0
ignorehitpause = 1

[State 16107, ステート移動 - GameTime式ステ抜け貫通]
type = SelfState
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = enemy,alive&&enemy(numenemy>1),alive
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 16107, 並列混線通常処理ステートに戻る]
type = SelfState
trigger1 = 1
persistent = 256
value = 190001
ignorehitpause = 1

;---------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------
;死の宣告
[Statedef 160000]
type     = A
movetype = A
physics  = N
ctrl     = 0
anim     = 6000
sprpriority = 3
movehitpersist = 1
hitdefpersist = 1
[State 160000]
type = ChangeAnim
trigger1 = !NumTarget 
value = 6000
[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, -110
ignorehitpause = 1
[State -2, 対真鬼巫女]
type = PosSet
trigger1 = roundstate=2
trigger1 = enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000)
X = 0
Y = -350235
ignorehitpause = 1

[State 160000]
type = AssertSpecial
trigger1 = 1
flag = NoShadow
flag2 = Invisible
ignorehitpause = 1
[State 160000]
type = TargetDrop
triggerall = NumTarget 
trigger1 = Target,IsHelper
ignorehitpause = 1
[State 160000]
type = StateTypeSet
trigger1 = !NumTarget 
movetype = A
[State 160000]
type = Hitdef
triggerall = !root,var(22)
triggerall = ishelper
triggerall = !NumTarget
trigger1 = gametime%10 = [0,4]
trigger2 = roundstate != 2
attr = ,HT
damage = 0,0
animtype = light
guardflag = 
priority = 3,Hit
pausetime = 0,0
sparkxy = 999999,999999
[State 160000]
type = ReversalDef
trigger1 = !NumTarget 
trigger1 = RoundState = 2
trigger1 = gametime%10 = [5,9]
reversal.attr = SCA,AA,AP,AT
pausetime     = 0,2
numhits       = 0
sparkno       = -1
sparkxy       = 0,0
hitsound      = -1,0
[State 160000]
type = StateTypeSet
trigger1 = NumTarget 
movetype = I
[State 160000]
type = ChangeAnim
trigger1 = NumTarget 
value = 6002
[State 160000]
type = ReversalDef
trigger1 = NumTarget
reversal.attr = SCA,AA,AP,AT
pausetime     = 0,2
numhits       = 0
sparkno       = -1
sparkxy       = 0,0
hitsound      = -1,0
[State 160000]
type = TargetBind
trigger1 = root,anim = 2502
pos = 60,110
time = 10
[State 160000]
type = TargetLifeAdd
triggerall = NumTarget
triggerall = palno = 12
triggerall = !target,ishelper
triggerall = root,anim != [2502,2503]
trigger1 = RoundState = 2
value = -2
kill = 1
[State 160000]
type = TargetLifeAdd
triggerall = NumTarget
triggerall = (root,palno = [11, 12])
triggerall = root,anim != [2502,2503]
triggerall = !target,ishelper
triggerall = root,ctrl
trigger1 = RoundState = 2
value = -999999999999999999999999999999
kill = 1
[State 160000]
type = TargetLifeAdd
triggerall = numtarget
triggerall = palno = 12
trigger1 = !target,ishelper && roundstate > 2
value = -9999999999999999
kill = 1
absolute = 1
[State 160000]
type = TargetLifeAdd
triggerall = numtarget
triggerall = root,anim = [2502,2503]
trigger1 = !target,ishelper && roundstate > 2
value = -9999999999999999
kill = 1
absolute = 1
[State 151, 邪眼キラー範囲内]
type = Varset
triggerall = numtarget
triggerall = !target,ishelper
trigger1 = target,stateno = [0, 150]
trigger2 = target,stateno = [151, 719]
trigger3 = target,stateno = 1007
trigger4 = target,stateno = 1050
trigger5 = target,stateno = 1065
trigger6 = target,stateno = 1102
trigger7 = target,stateno = [1111, 1112]
trigger8 = target,stateno = 1116
trigger9 = target,stateno = 1200
trigger10 = target,stateno = 1202
trigger11 = target,stateno = 1300
trigger12 = target,stateno = 1302
trigger13 = target,stateno = 1350
trigger14 = target,stateno = 1400
trigger15 = target,stateno = 1412
trigger16 = target,stateno = 1450
trigger17 = target,stateno = 1500
trigger18 = target,stateno = 1510
trigger19 = target,stateno = [1600, 1602]
trigger20 = target,stateno = 1720
trigger21 = target,stateno = 1801
trigger22 = target,stateno = 2000
trigger23 = target,stateno = 2025
trigger24 = target,stateno = [2100, 2103]
trigger25 = target,stateno = 2105
trigger26 = target,stateno = [2200, 2206]
trigger27 = target,stateno = 2269
trigger28 = target,stateno = 2300
trigger29 = target,stateno = 2350
trigger30 = target,stateno = [2352, 2353]
trigger31 = target,stateno = [2355, 2356]
trigger32 = target,stateno = 2400
trigger33 = target,stateno = 2500
trigger34 = target,stateno = [2506, 2507]
trigger35 = target,stateno = 2600
trigger36 = target,stateno = 2611
trigger37 = target,stateno = 2901
trigger38 = target,stateno = 3002
trigger39 = target,stateno = 3041
trigger40 = target,stateno = 3052
trigger41 = target,stateno = 3059
trigger42 = target,stateno = 3185
trigger43 = target,stateno = 3403
trigger44 = target,stateno = [3920, 3921]
trigger45 = target,stateno = 3929
trigger46 = target,stateno = 3999
trigger47 = target,stateno = 4060
trigger48 = target,stateno = 4091
trigger49 = target,stateno = 4211
trigger50 = target,stateno = [4310, 4311]
trigger51 = target,stateno = [4330, 4331]
trigger52 = target,stateno = 4391
trigger53 = target,stateno = [4395, 4396]
trigger54 = target,stateno = 4510
trigger55 = target,stateno = 4512
trigger56 = target,stateno = [5000, 5001]
trigger57 = target,stateno = [5010, 5011]
trigger58 = target,stateno = 5020
trigger59 = target,stateno = 5030
trigger60 = target,stateno = 5035
trigger61 = target,stateno = 5040
trigger62 = target,stateno = 5050
trigger63 = target,stateno = [5070, 5071]
trigger64 = target,stateno = [5080, 5081]
trigger65 = target,stateno = 5101
trigger66 = target,stateno = 5110
trigger67 = target,stateno = 5120
trigger68 = target,stateno = [5200, 5201]
trigger69 = target,stateno = 5210
trigger70 = target,stateno = 5500
trigger71 = target,stateno = 5600
trigger72 = target,stateno = 5788
trigger73 = target,stateno = [5789, 5790]
trigger74 = target,stateno = 5900
trigger75 = target,stateno = [6000, 6002]
trigger76 = target,stateno = [6010, 6012]
trigger77 = target,stateno = 6014
trigger78 = target,stateno = 6016
trigger79 = target,stateno = [6019, 6020]
trigger80 = target,stateno = [6024, 6027]
trigger81 = target,stateno = [6032, 6035]
trigger82 = target,stateno = 6100
trigger83 = target,stateno = 6301
trigger84 = target,stateno = 6306
trigger85 = target,stateno = 6540
trigger86 = target,stateno = 6789
trigger87 = target,stateno = 6900
trigger88 = target,stateno = 6920
trigger89 = target,stateno = 7000
trigger90 = target,stateno = [7040, 7047]
trigger91 = target,stateno = 7055
trigger92 = target,stateno = [7320, 7321]
trigger93 = target,stateno = [7326, 7327]
trigger94 = target,stateno = 7777
trigger95 = target,stateno = 7878
trigger96 = target,stateno = 8000
trigger97 = target,stateno = 8003
trigger98 = target,stateno = 8040
trigger99 = target,stateno = 8100
trigger100 = target,stateno = 8900
trigger101 = target,stateno = 9000
trigger102 = target,stateno = 9126
trigger103 = target,stateno = 9200
trigger104 = target,stateno = 9263
trigger105 = target,stateno = 9809
trigger106 = target,stateno = 9900
trigger107 = target,stateno = 9936
trigger108 = target,stateno = 9952
trigger109 = target,stateno = 9994
trigger110 = target,stateno = [10003, 10004]
trigger111 = target,stateno = 10012
trigger112 = target,stateno = 10015
trigger113 = target,stateno = 10101
trigger114 = target,stateno = 10504
trigger115 = target,stateno = 10651
trigger116 = target,stateno = [11001, 11004]
trigger117 = target,stateno = 11100
trigger118 = target,stateno = 11111
trigger119 = target,stateno = 11502
trigger120 = target,stateno = 11680
trigger121 = target,stateno = 11710
trigger122 = target,stateno = 11720
trigger123 = target,stateno = 11730
trigger124 = target,stateno = [12003, 12004]
trigger125 = target,stateno = 12310
trigger126 = target,stateno = 12345
trigger127 = target,stateno = 12500
trigger128 = target,stateno = 13000
trigger129 = target,stateno = 13050
trigger130 = target,stateno = 13100
trigger131 = target,stateno = 13200
trigger132 = target,stateno = 13500
trigger133 = target,stateno = [14001, 14002]
trigger134 = target,stateno = 16003
trigger135 = target,stateno = 18102
trigger136 = target,stateno = 19101
trigger137 = target,stateno = 20000
trigger138 = target,stateno = 20955
trigger139 = target,stateno = [22101, 22102]
trigger140 = target,stateno = 22122
trigger141 = target,stateno = 22222
trigger142 = target,stateno = 22224
trigger143 = target,stateno = 24601
trigger144 = target,stateno = 24610
trigger145 = target,stateno = 25544
trigger146 = target,stateno = 26320
trigger147 = target,stateno = 26485
trigger148 = target,stateno = [30000, 30004]
trigger149 = target,stateno = [30013, 30014]
trigger150 = target,stateno = [30020, 30021]
trigger151 = target,stateno = 31993
trigger152 = target,stateno = 32555
trigger153 = target,stateno = 37000
trigger154 = target,stateno = 40001
trigger155 = target,stateno = 40003
trigger156 = target,stateno = 40952
trigger157 = target,stateno = 43302
trigger158 = target,stateno = [43425, 43426]
trigger159 = target,stateno = 43655
trigger160 = target,stateno = 43705
trigger161 = target,stateno = 43708
trigger162 = target,stateno = 44488
trigger163 = target,stateno = 44900
trigger164 = target,stateno = 45755
trigger165 = target,stateno = 45999
trigger166 = target,stateno = 46060
trigger167 = target,stateno = 46965
trigger168 = target,stateno = 49933
trigger169 = target,stateno = 49943
trigger170 = target,stateno = 50000
trigger171 = target,stateno = [50505, 50506]
trigger172 = target,stateno = [51515, 51518]
trigger173 = target,stateno = 55555
trigger174 = target,stateno = 58901
trigger175 = target,stateno = 60000
trigger176 = target,stateno = 60050
trigger177 = target,stateno = 60315
trigger178 = target,stateno = 61000
trigger179 = target,stateno = 64000
trigger180 = target,stateno = 65000
trigger181 = target,stateno = 65500
trigger182 = target,stateno = 65530
trigger183 = target,stateno = 70000
trigger184 = target,stateno = 70100
trigger185 = target,stateno = 70200
trigger186 = target,stateno = 80000
trigger187 = target,stateno = 84555
trigger188 = target,stateno = 88885
trigger189 = target,stateno = 88887
trigger190 = target,stateno = 90000
trigger191 = target,stateno = [99919, 99920]
trigger192 = target,stateno = [99999, 100000]
trigger193 = target,stateno = 100002
trigger194 = target,stateno = 111222
trigger195 = target,stateno = 112235
trigger196 = target,stateno = 112240
trigger197 = target,stateno = 112250
trigger198 = target,stateno = 126100
trigger199 = target,stateno = 169990
trigger200 = target,stateno = 170000
trigger201 = target,stateno = 180002
trigger202 = target,stateno = 200000
trigger203 = target,stateno = 300000
trigger204 = target,stateno = 301050
trigger205 = target,stateno = 310120
trigger206 = target,stateno = 313900
trigger207 = target,stateno = 400000
trigger208 = target,stateno = 450000
trigger209 = target,stateno = 500000
trigger210 = target,stateno = 500033
trigger211 = target,stateno = 600000
trigger212 = target,stateno = 649999
trigger213 = target,stateno = 700000
trigger214 = target,stateno = [741003, 741004]
trigger215 = target,stateno = 800000
trigger216 = target,stateno = 900000
trigger217 = target,stateno = 910010
trigger218 = target,stateno = 1000000
trigger219 = target,stateno = 1168000
trigger220 = target,stateno = 1699922
trigger221 = target,stateno = 2000000
trigger222 = target,stateno = 3000000
trigger223 = target,stateno = 4000000
trigger224 = target,stateno = 5000000
trigger225 = target,stateno = [5000005, 5000006]
trigger226 = target,stateno = 5000010
trigger227 = target,stateno = 5000025
trigger228 = target,stateno = 5000052
trigger229 = target,stateno = 5000058
trigger230 = target,stateno = [5000070, 5000072]
trigger231 = target,stateno = 5000080
trigger232 = target,stateno = 5000085
trigger233 = target,stateno = 5000090
trigger234 = target,stateno = 5000095
trigger235 = target,stateno = 5000333
trigger236 = target,stateno = 6000000
trigger237 = target,stateno = 6400000
trigger238 = target,stateno = 7000000
trigger239 = target,stateno = 8000000
trigger240 = target,stateno = 9000000
trigger241 = target,stateno = 10000000
trigger242 = target,stateno = 20000000
trigger243 = target,stateno = [21360897, 21360898]
trigger244 = target,stateno = 22222222
trigger245 = target,stateno = 30000000
trigger246 = target,stateno = 40000000
trigger247 = target,stateno = 50000000
trigger248 = target,stateno = 60000000
trigger249 = target,stateno = 70000000
trigger250 = target,stateno = 80000000
trigger251 = target,stateno = 90000000
trigger252 = target,stateno = 100000000
trigger253 = target,stateno = 200000000
trigger254 = target,stateno = 300000000
trigger255 = target,stateno = 400000000
trigger256 = target,stateno = 500000000
trigger257 = target,stateno = 555555557
trigger258 = target,stateno = 600000000
trigger259 = target,stateno = 700000000
trigger260 = target,stateno = 800000000
trigger261 = target,stateno = 900000000
trigger262 = target,stateno = 987654321
trigger263 = target,stateno = 1000000000
trigger264 = target,stateno = 1100000000
trigger265 = target,stateno = 1200000000
trigger266 = target,stateno = 1300000000
trigger267 = target,stateno = 1400000000
trigger268 = target,stateno = 1500000000
trigger269 = target,stateno = 1600000000
trigger270 = target,stateno = 1700000000
trigger271 = target,stateno = 1800000000
trigger272 = target,stateno = 1900000000
trigger273 = target,stateno = 2000000000
trigger274 = target,stateno = 2100000000
trigger275 = target,stateno = 2147483647
trigger276 = target,stateno = [721,1004]
trigger277 = target,stateno = 288888
trigger278 = target,stateno = 58010
var(55)= target,stateno
ignorehitpause = 1
[State 151, 邪眼キラー範囲外]
type = Varset
triggerall = numtarget
triggerall = !target,ishelper
triggerall = target,stateno != [0, 150]
triggerall = target,stateno != [151,719]
triggerall = target,stateno != [721,1004]
triggerall = target,stateno != 1007
triggerall = target,stateno != 1050
triggerall = target,stateno != 1065
triggerall = target,stateno != 1102
triggerall = target,stateno != [1111, 1112]
triggerall = target,stateno != 1116
triggerall = target,stateno != 1200
triggerall = target,stateno != 1202
triggerall = target,stateno != 1300
triggerall = target,stateno != 1302
triggerall = target,stateno != 1350
triggerall = target,stateno != 1400
triggerall = target,stateno != 1412
triggerall = target,stateno != 1450
triggerall = target,stateno != 1500
triggerall = target,stateno != 1510
triggerall = target,stateno != [1600, 1602]
triggerall = target,stateno != 1720
triggerall = target,stateno != 1801
triggerall = target,stateno != 2000
triggerall = target,stateno != 2025
triggerall = target,stateno != [2100, 2103]
triggerall = target,stateno != 2105
triggerall = target,stateno != [2200, 2206]
triggerall = target,stateno != 2269
triggerall = target,stateno != 2300
triggerall = target,stateno != 2350
triggerall = target,stateno != [2352, 2353]
triggerall = target,stateno != [2355, 2356]
triggerall = target,stateno != 2400
triggerall = target,stateno != 2500
triggerall = target,stateno != [2506, 2507]
triggerall = target,stateno != 2600
triggerall = target,stateno != 2611
triggerall = target,stateno != 2901
triggerall = target,stateno != 3002
triggerall = target,stateno != 3041
triggerall = target,stateno != 3052
triggerall = target,stateno != 3059
triggerall = target,stateno != 3185
triggerall = target,stateno != 3403
triggerall = target,stateno != [3920, 3921]
triggerall = target,stateno != 3929
triggerall = target,stateno != 3999
triggerall = target,stateno != 4060
triggerall = target,stateno != 4091
triggerall = target,stateno != 4211
triggerall = target,stateno != [4310, 4311]
triggerall = target,stateno != [4330, 4331]
triggerall = target,stateno != 4391
triggerall = target,stateno != [4395, 4396]
triggerall = target,stateno != 4510
triggerall = target,stateno != 4512
triggerall = target,stateno != [5000, 5001]
triggerall = target,stateno != [5010, 5011]
triggerall = target,stateno != 5020
triggerall = target,stateno != 5030
triggerall = target,stateno != 5035
triggerall = target,stateno != 5040
triggerall = target,stateno != 5050
triggerall = target,stateno != [5070, 5071]
triggerall = target,stateno != [5080, 5081]
triggerall = target,stateno != 5101
triggerall = target,stateno != 5110
triggerall = target,stateno != 5120
triggerall = target,stateno != [5200, 5201]
triggerall = target,stateno != 5210
triggerall = target,stateno != 5500
triggerall = target,stateno != 5600
triggerall = target,stateno != 5788
triggerall = target,stateno != [5789, 5790]
triggerall = target,stateno != 5900
triggerall = target,stateno != [6000, 6002]
triggerall = target,stateno != [6010, 6012]
triggerall = target,stateno != 6014
triggerall = target,stateno != 6016
triggerall = target,stateno != [6019, 6020]
triggerall = target,stateno != [6024, 6027]
triggerall = target,stateno != [6032, 6035]
triggerall = target,stateno != 6100
triggerall = target,stateno != 6301
triggerall = target,stateno != 6306
triggerall = target,stateno != 6540
triggerall = target,stateno != 6789
triggerall = target,stateno != 6900
triggerall = target,stateno != 6920
triggerall = target,stateno != 7000
triggerall = target,stateno != [7040, 7047]
triggerall = target,stateno != 7055
triggerall = target,stateno != [7320, 7321]
triggerall = target,stateno != [7326, 7327]
triggerall = target,stateno != 7777
triggerall = target,stateno != 7878
triggerall = target,stateno != 8000
triggerall = target,stateno != 8003
triggerall = target,stateno != 8040
triggerall = target,stateno != 8100
triggerall = target,stateno != 8900
triggerall = target,stateno != 9000
triggerall = target,stateno != 9126
triggerall = target,stateno != 9200
triggerall = target,stateno != 9263
triggerall = target,stateno != 9809
triggerall = target,stateno != 9900
triggerall = target,stateno != 9936
triggerall = target,stateno != 9952
triggerall = target,stateno != 9994
triggerall = target,stateno != [10003, 10004]
triggerall = target,stateno != 10012
triggerall = target,stateno != 10015
triggerall = target,stateno != 10101
triggerall = target,stateno != 10504
triggerall = target,stateno != 10651
triggerall = target,stateno != [11001, 11004]
triggerall = target,stateno != 11100
triggerall = target,stateno != 11111
triggerall = target,stateno != 11502
triggerall = target,stateno != 11680
triggerall = target,stateno != 11710
triggerall = target,stateno != 11720
triggerall = target,stateno != 11730
triggerall = target,stateno != [12003, 12004]
triggerall = target,stateno != 12310
triggerall = target,stateno != 12345
triggerall = target,stateno != 12500
triggerall = target,stateno != 13000
triggerall = target,stateno != 13050
triggerall = target,stateno != 13100
triggerall = target,stateno != 13200
triggerall = target,stateno != 13500
triggerall = target,stateno != [14000, 14002]
triggerall = target,stateno != 16003
triggerall = target,stateno != 18102
triggerall = target,stateno != 19101
triggerall = target,stateno != 20000
triggerall = target,stateno != 20955
triggerall = target,stateno != [22101, 22102]
triggerall = target,stateno != 22122
triggerall = target,stateno != 22222
triggerall = target,stateno != 22224
triggerall = target,stateno != 24601
triggerall = target,stateno != 24610
triggerall = target,stateno != 25544
triggerall = target,stateno != 26320
triggerall = target,stateno != 26485
triggerall = target,stateno != [30000, 30004]
triggerall = target,stateno != [30013, 30014]
triggerall = target,stateno != [30020, 30021]
triggerall = target,stateno != 31993
triggerall = target,stateno != 32555
triggerall = target,stateno != 37000
triggerall = target,stateno != 40001
triggerall = target,stateno != 40003
triggerall = target,stateno != 40952
triggerall = target,stateno != 43302
triggerall = target,stateno != [43425, 43426]
triggerall = target,stateno != 43655
triggerall = target,stateno != 43705
triggerall = target,stateno != 43708
triggerall = target,stateno != 44488
triggerall = target,stateno != 44900
triggerall = target,stateno != 45755
triggerall = target,stateno != 45999
triggerall = target,stateno != 46060
triggerall = target,stateno != 46965
triggerall = target,stateno != 49933
triggerall = target,stateno != 49943
triggerall = target,stateno != 50000
triggerall = target,stateno != [50505, 50506]
triggerall = target,stateno != [51515, 51518]
triggerall = target,stateno != 55555
triggerall = target,stateno != 58901
triggerall = target,stateno != 60000
triggerall = target,stateno != 60050
triggerall = target,stateno != 60315
triggerall = target,stateno != 61000
triggerall = target,stateno != 64000
triggerall = target,stateno != 65000
triggerall = target,stateno != 65500
triggerall = target,stateno != 65530
triggerall = target,stateno != 70000
triggerall = target,stateno != 70100
triggerall = target,stateno != 70200
triggerall = target,stateno != 80000
triggerall = target,stateno != 84555
triggerall = target,stateno != 88885
triggerall = target,stateno != 88887
triggerall = target,stateno != 90000
triggerall = target,stateno != [99919, 99920]
triggerall = target,stateno != [99999, 100000]
triggerall = target,stateno != 100002
triggerall = target,stateno != 111222
triggerall = target,stateno != 112235
triggerall = target,stateno != 112240
triggerall = target,stateno != 112250
triggerall = target,stateno != 126100
triggerall = target,stateno != 169990
triggerall = target,stateno != 170000
triggerall = target,stateno != 180002
triggerall = target,stateno != 200000
triggerall = target,stateno != 300000
triggerall = target,stateno != 301050
triggerall = target,stateno != 310120
triggerall = target,stateno != 313900
triggerall = target,stateno != 400000
triggerall = target,stateno != 450000
triggerall = target,stateno != 500000
triggerall = target,stateno != 500033
triggerall = target,stateno != 600000
triggerall = target,stateno != 649999
triggerall = target,stateno != 700000
triggerall = target,stateno != [741003, 741004]
triggerall = target,stateno != 800000
triggerall = target,stateno != 900000
triggerall = target,stateno != 910010
triggerall = target,stateno != 1000000
triggerall = target,stateno != 1168000
triggerall = target,stateno != 1699922
triggerall = target,stateno != 2000000
triggerall = target,stateno != 3000000
triggerall = target,stateno != 4000000
triggerall = target,stateno != 5000000
triggerall = target,stateno != [5000005, 5000006]
triggerall = target,stateno != 5000010
triggerall = target,stateno != 5000025
triggerall = target,stateno != 5000052
triggerall = target,stateno != 5000058
triggerall = target,stateno != [5000070, 5000072]
triggerall = target,stateno != 5000080
triggerall = target,stateno != 5000085
triggerall = target,stateno != 5000090
triggerall = target,stateno != 5000095
triggerall = target,stateno != 5000333
triggerall = target,stateno != 6000000
triggerall = target,stateno != 6400000
triggerall = target,stateno != 7000000
triggerall = target,stateno != 8000000
triggerall = target,stateno != 9000000
triggerall = target,stateno != 10000000
triggerall = target,stateno != 20000000
triggerall = target,stateno != [21360897, 21360898]
triggerall = target,stateno != 22222222
triggerall = target,stateno != 30000000
triggerall = target,stateno != 40000000
triggerall = target,stateno != 50000000
triggerall = target,stateno != 60000000
triggerall = target,stateno != 70000000
triggerall = target,stateno != 80000000
triggerall = target,stateno != 90000000
triggerall = target,stateno != 100000000
triggerall = target,stateno != 200000000
triggerall = target,stateno != 300000000
triggerall = target,stateno != 400000000
triggerall = target,stateno != 500000000
triggerall = target,stateno != 555555557
triggerall = target,stateno != 600000000
triggerall = target,stateno != 700000000
triggerall = target,stateno != 800000000
triggerall = target,stateno != 900000000
triggerall = target,stateno != 987654321
triggerall = target,stateno != 1000000000
triggerall = target,stateno != 1100000000
triggerall = target,stateno != 1200000000
triggerall = target,stateno != 1300000000
triggerall = target,stateno != 1400000000
triggerall = target,stateno != 1500000000
triggerall = target,stateno != 1600000000
triggerall = target,stateno != 1700000000
triggerall = target,stateno != 1800000000
triggerall = target,stateno != 1900000000
triggerall = target,stateno != 2000000000
triggerall = target,stateno != 2100000000
triggerall = target,stateno != 2147483647
triggerall = target,stateno != 45000
triggerall = target,stateno != 288888
triggerall = target,stateno != 58010
trigger1 = 1
var(55) = 45000
ignorehitpause = 1
[State 140, 超即死投げ]
type=VarAdd
trigger1=ishelper
trigger1=roundstate>1
sysvar(4)=1
ignorehitpause=1

[State 140, 超即死投げ]
type = Targetstate
triggerall = var(55)
triggerall = numtarget
triggerall = parent,palno = 12
trigger1 = parent,anim = 2015
trigger2 = parent,anim = 2500
trigger3 = parent,movetype = A
trigger3 = parent,anim != 2015
trigger3 = parent,anim != 2005
trigger3 = parent,anim != 2014
trigger4 = roundstate >= 3
trigger4 = enemy,alive
trigger5 = parent,anim = 3500
value = var(55)
ignorehitpause=1
[State 140, 超即死投げ]
type = Targetstate
triggerall = var(55)
triggerall = Root,var(3)
triggerall = numtarget
triggerall = parent,palno != 12
trigger1 = parent,anim = 2015
trigger2 = parent,anim = 2500
trigger3 = parent,movetype = A
trigger3 = parent,anim != 2015
trigger3 = parent,anim != 2005
trigger3 = parent,anim != 2014
trigger4 = parent,anim = 3500
value = var(55)
ignorehitpause=1
[State 140, 超即死投げ]
type = Targetstate
triggerall = var(55)
triggerall = parent,palno = 12
triggerall = numtarget
trigger1=sysvar(4)=[0,200]
value = var(55)
ignorehitpause=1
[State 140, 超即死投げ]
type=Targetstate
triggerall = var(55)
triggerall = parent,palno = 12
triggerall = numtarget
trigger1=sysvar(4)=[13000,14000]
value=5900
ignorehitpause=1
[State 140, 超即死投げ]
type=Targetstate
triggerall = var(55)
triggerall = parent,palno = 12
triggerall = numtarget
trigger1=sysvar(4)=[200,600]
value=0
ignorehitpause=1

[State 140, 相手が死んだ]
type = Targetstate
triggerall = numtarget
trigger1 = !target,alive 
trigger1 = target,stateno != [5000,5150]
value = 99988666
ignorehitpause=1

[State 160000]
type = null;DestroySelf
trigger1 = GameTime%6000 = 0
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------

;常設OTHキラー　
[StateDef 200000]
type = C
movetype = A
physics = N
anim = 6000

[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, -90
[State -2, 対真鬼巫女]
type = PosSet
trigger1 = roundstate=2
trigger1 = enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000)
X = 0
Y = -350235
ignorehitpause = 1
[State -2]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1
[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1
[State -2]
type = Statetypeset
trigger1 = 1
statetype = C
movetype = A
physics = N
ignorehitpause = 1

[State 100020]
type = Reversaldef
triggerall = parent,var(30)
triggerall = root,palno = 12
trigger1 = gametime%10 = [5,9]
reversal.attr = SCA, AA, AT, AP
priority = 7
pausetime = 1, 2
sparkno = -1
hitsound = -1
p2stateno = parent,var(30)
p2getp1state = 0
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999

[State 100020]
type = Reversaldef 
trigger1 = !parent,var(30)
triggerall = root,palno = 12
trigger2 = gametime%10 = [0,4]
trigger2 = parent,var(30)
reversal.attr = SCA, AA, AT, AP
priority = 7
pausetime = 1, 2
sparkno = -1
hitsound = -1
p2stateno = 12000
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999

[State 100020]
type = Reversaldef 
triggerall = !root,palno = 12
trigger1 = parent,anim = 2500
reversal.attr = SCA, AA, AT, AP
priority = 7
pausetime = 1, 2
sparkno = -1
hitsound = -1
p2stateno = 12000
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999


[State 100020]
type = Projectile
triggerall = !root,var(21)
trigger1 = enemynear,name = "R-kunagi"
projanim = 6000
projID = 100020
projremove = 0
projremovetime = 1
projsprpriority = -1
projheightbound = -1000000, 1000000
projedgebound = 1000000
projstagebound = 1000000
numhits = 0
attr = SCA, AA, AT, AP
hitflag = MA
damage = 0
priority = 7, hit
projpriority = 9999999999999
p2stateno = 702
p2getp1state = 0 
sparkno = -1
guard.sparkno = -1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1


[State 100333]
type =  null;TargetLifeadd
trigger1 = NumTarget != 0
value = -99999999999999999999999999999999999999999999999999999999999999
kill = 1
absolute = 1

[State 810, Bind 1]
type = null;TargetState
trigger1 = win
;trigger2 = NumTarget != 0
value = 40000
persistent = 0


[State , ヘルパー消去]
type = null;Destroyself
trigger1 = (GameTime% 400 ) = 0 
ignorehitpause = 1
;---------------------------------------------------------------------------
; ステート記憶
[Statedef 200001]
type    = S
movetype= A
physics = S
anim = 6000

[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, -100
[State -2, 対真鬼巫女]
type = PosSet
trigger1 = roundstate=2
trigger1 = enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000)
X = 0
Y = -350235
ignorehitpause = 1
[State -2]
type = Attackdist
trigger1 = 1
value = 0
ignorehitpause = 1

[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1

[State 100101]
type = Hitdef
triggerall = !root,var(22)
triggerall = ishelper
trigger1 = enemy,alive 
trigger1 = (GameTime% 20 ) = 0 
trigger1 = root,palno = 12
trigger2 = Enemy,anim = 6000
attr = S,SA,SP,ST
sparkxy = 99999,-99999
pausetime = 11,11
damage = 99999999999*ifelse(random%2=0,1,-1),99999999999*ifelse(random%2=0,1,-1)
ignorehitpause = 1

[State 2334, ]
type = Hitdef
triggerall = !root,var(22)
triggerall = ishelper
trigger1 = root,anim = 2500
attr = A, HP
animtype = hard
damage = 9999999999999 * ifelse(random % 2 = 0, -1, 1)
priority = 3
hitflag = MAFD
guardflag = MA
pausetime = 0, 2
sparkno = -1
guard.sparkno = s-1
sparkxy = -2, -94
ground.type = low
ground.slidetime = 19
ground.hittime = 19
ground.velocity = -10.5
guard.velocity = -3
air.velocity = -3.7,-5.2
fall.recover = 0
fall = 1
fall.yvelocity = -1
fall.envshake.time = 9
yaccel = .51
ignorehitpause = 1

[State 100101]
type = null;Destroyself
triggerall = ishelper
trigger1 = AnimElem = 1, = 10
trigger2 = root,Win

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

;占有ヘルパー　
[StateDef 223322]
type = C
movetype = I
physics = N
anim = 6002
[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, -90
[State -2, 対真鬼巫女]
type = PosSet
trigger1 = roundstate=2
trigger1 = enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000)
X = 0
Y = -350235
ignorehitpause = 1
[State -2]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1
[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1
[State 16999, ヘルパー消去]
type = DestroySelf
triggerall = IsHelper
triggerall = enemynear,name != "EX-Zetton"
triggerall = enemynear,name != "Crueltear=Relinquish"
triggerall = enemynear,name != "GEL"
triggerall = enemynear,name != "Nightmare Kung Fu Men"
trigger1 = enemynear,name != "S-Konoha"
trigger1   = TeamSide = 1		;1P側
trigger1   = Root,var(49)		;親変更可能領域
trigger2   = TeamSide != 1		;1P側以外
ignorehitpause = 1

;--------------------------------------------------------
;親変更用ヘルパー
[Statedef 8901016]
[State ]
type=nothitby
trigger1=1
value=sca
[State ]
type=helper
trigger1=ishelper
trigger1=id%256!=255
name="id"
stateno=8901016
id=8901016
helpertype=player
pos=0,0
postype=p1
facing=1
keyctrl=0
ownpal=0
pausemovetime=99999999
supermovetime=99999999
ignorehitpause=1
[State ]
type=destroyself
trigger1=1
ignorehitpause=1
;--------------------------------------------------------
;時止め解除用ダミーヘルパー
[Statedef 8901014]
type = U
movetype = I
physics = N
movehitpersist = 1
hitdefpersist = 1
[State ]
type=nothitby
trigger1=1
value=sca
[State 8901014, ヘルパー消去]
type = DestroySelf
trigger1 = Root,NumHelper(23331)	
ignorehitpause = 1

;--------------------------------------------------------
;最終設置用ヘルパー
[Statedef 223333]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

[State 821, 位置を本体に固定]
type = BindToRoot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
time = 1
pos = 0,-Root,Pos Y+10
ignorehitpause = 1

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

[State 821, 本体と同じ向きにする]
type = Turn
trigger1 = Root,facing != facing
ignorehitpause = 1

[State 160000]
type = ChangeAnim
trigger1 = !NumTarget 
value = 6000
[State 160000]
type = TargetDrop
trigger1 = Target,ishelper
trigger2 = Target,Name != "H_Yujiro"
ignorehitpause = 1
[State 160000]
type = StateTypeSet
movetype = A
triggerall = root,palno = 12
triggerall = numhelper(190000)
triggerall = numhelper(190001)
triggerall = numhelper(190002)
triggerall = numhelper(190003)
triggerall = numhelper(190004)
triggerall = numhelper(190005)
triggerall = numhelper(190006)
triggerall = numhelper(190007)
triggerall   = roundstate != 0
trigger1 = !NumTarget
ignorehitpause = 1
[State 160000]
type = Hitdef
triggerall   = root,palno = 12
triggerall = ishelper
trigger1 = !NumTarget
attr = ,HT
affectteam = F
damage = 0,0
animtype = light
guardflag = 
priority = 3,Hit
pausetime = 0,0
sparkxy = 999999,999999
[State 160000]
type = StateTypeSet
trigger1 = NumTarget != 0
movetype = I
[State 160000]
type = ChangeAnim
trigger1 = NumTarget != 0
value = 6002
[State 160000]
type = ReversalDef
trigger1 = NumTarget != 0
reversal.attr = SCA,AA,AP,AT
pausetime     = 0,2
numhits       = 0
sparkno       = -1
sparkxy       = 0,0
hitsound      = -1,0
[State ]
type = targetfacing
triggerall = numtarget
trigger1 = root,facing != root,var(25)*2-1
value = -1
ignorehitpause = 1
[State ]
type = targetlifeadd
trigger1 = numtarget
value = -root,life*(root,life>0)+(Root,LifeMax-PlayerID(root,var(11)),sysvar(1));9999999999999
ignorehitpause = 1

[State ]
type=nothitby
trigger1=1
value=sca
[State -2, 占有ヘルパー1呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190200)	
trigger1   = !NumHelper(190000)	
ID = 223322
name = "senyuu_1"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999

[State -2, 混線受身,親ヘルパー１呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190200)	
trigger1   = !NumHelper(190000)	
ID = 190200
name = "seisei_1"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー2呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190201)	
trigger1   = !NumHelper(190001)	
ID = 223322
name = "senyuu_2"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー２呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190201)	
trigger1   = !NumHelper(190001)	
ID = 190201
name = "seisei_2"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー3呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190202)	
trigger1   = !NumHelper(190002)	
ID = 223322
name = "senyuu_3"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー３呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190203)	
trigger1   = !NumHelper(190003)	
ID = 190202
name = "seisei_3"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー4呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190203)	
trigger1   = !NumHelper(190003)	
ID = 223322
name = "senyuu_4"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー４呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190203)	
trigger1   = !NumHelper(190003)	
ID = 190203
name = "seisei_4"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー5呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190204)	
trigger1   = !NumHelper(190004)	
ID = 223322
name = "senyuu_5"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー５呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190204)	
trigger1   = !NumHelper(190004)	
ID = 190204
name = "seisei_5"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー6呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190205)	
trigger1   = !NumHelper(190005)	
ID = 223322
name = "senyuu_6"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー６呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190205)	
trigger1   = !NumHelper(190005)	
ID = 190205
name = "seisei_6"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー7呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190206)	
trigger1   = !NumHelper(190006)	
ID = 223322
name = "senyuu_7"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー７呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190206)	
trigger1   = !NumHelper(190006)	
ID = 190206
name = "seisei_7"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー8呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190207)	
trigger1   = !NumHelper(190007)	
ID = 223322
name = "senyuu_8"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー８呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190207)	
trigger1   = !NumHelper(190007)	
ID = 190207
name = "seisei_8"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー9呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190208)	
trigger1   = !NumHelper(190008)	
ID = 223322
name = "senyuu_9"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー9呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190208)	
trigger1   = !NumHelper(190008)	
ID = 190208
name = "seisei_9"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー10呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190209)	
trigger1   = !NumHelper(190009)	
ID = 223322
name = "senyuu_10"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー10呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190209)	
trigger1   = !NumHelper(190009)	
ID = 190209
name = "seisei_10"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー11呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190210)	
trigger1   = !NumHelper(190010)	
ID = 223322
name = "senyuu_11"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー11呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190210)	
trigger1   = !NumHelper(190010)	
ID = 190210
name = "seisei_11"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー12呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190211)	
trigger1   = !NumHelper(190011)	
ID = 223322
name = "senyuu_12"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー12呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190211)	
trigger1   = !NumHelper(190011)	
ID = 190211
name = "seisei_12"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー13呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190212)	
trigger1   = !NumHelper(190012)	
ID = 223322
name = "senyuu_13"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー13呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190212)	
trigger1   = !NumHelper(190012)	
ID = 190212
name = "seisei_13"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー14呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190213)	
trigger1   = !NumHelper(190013)	
ID = 223322
name = "senyuu_14"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー14呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190213)	
trigger1   = !NumHelper(190013)	
ID = 190213
name = "seisei_14"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー15呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190214)	
trigger1   = !NumHelper(190014)	
ID = 223322
name = "senyuu_15"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー15呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190214)	
trigger1   = !NumHelper(190014)	
ID = 190214
name = "seisei_15"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー16呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190215)	
trigger1   = !NumHelper(190015)	
ID = 223322
name = "senyuu_16"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー16呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190215)	
trigger1   = !NumHelper(190015)	
ID = 190215
name = "seisei_16"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー17呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190216)	
trigger1   = !NumHelper(190016)	
ID = 223322
name = "senyuu_17"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー17呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190216)	
trigger1   = !NumHelper(190016)	
ID = 190216
name = "seisei_17"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー18呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190217)	
trigger1   = !NumHelper(190017)	
ID = 223322
name = "senyuu_18"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー18呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190217)	
trigger1   = !NumHelper(190017)	
ID = 190217
name = "seisei_18"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー19呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190218)	
trigger1   = !NumHelper(190018)	
ID = 223322
name = "senyuu_19"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー19呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190218)	
trigger1   = !NumHelper(190018)	
ID = 190218
name = "seisei_19"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー20呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190219)	
trigger1   = !NumHelper(190019)	
ID = 223322
name = "senyuu_20"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー20呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190219)	
trigger1   = !NumHelper(190019)	
ID = 190219
name = "seisei_20"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー21呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190220)	
trigger1   = !NumHelper(190020)	
ID = 223322
name = "senyuu_21"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー21呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190220)	
trigger1   = !NumHelper(190020)	
ID = 190220
name = "seisei_21"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー22呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190221)	
trigger1   = !NumHelper(190021)	
ID = 223322
name = "senyuu_22"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー22呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190221)	
trigger1   = !NumHelper(190021)	
ID = 190221
name = "seisei_22"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー23呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190222)	
trigger1   = !NumHelper(190022)	
ID = 223322
name = "senyuu_23"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー23呼び出し]
type = Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190222)	
trigger1   = !NumHelper(190022)	
ID = 190222
name = "seisei_23"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 占有ヘルパー24呼び出し]
type = null;Helper
triggerall = IsHelper(223333)
triggerall = TeamSide != 1
triggerall = !NumHelper(190223)	
trigger1   = !NumHelper(190023)	
ID = 223322
name = "senyuu_24"
postype = p1
pos = 0, 0
stateno = 223322
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, 混線受身,親ヘルパー24呼び出し]
type = null;Helper
triggerall = IsHelper(223333)
triggerall = !NumHelper(190223)	
trigger1   = !NumHelper(190023)	
ID = 190223
name = "seisei_24"
postype = p1
pos = 0, 0
stateno = 190200
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1


[State 190200]
type = null;Helper
;triggerall = ishelper(190223)
trigger1 = !numhelper(8901016)
ID = 8901016
name = "id"
postype = p1
pos = 0, 0
stateno = 8901016
helpertype = player
keyctrl = 0
supermove = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state -3]
type = varset
trigger1  = parent,var(49) 
var(49) = parent,var(49)
ignorehitpause = 1


[State , ヘルパー消去]
type = Destroyself
trigger1 = numhelper(223333) > 1
ignorehitpause = 1

[State dist]
Trigger1 = 1
type = DisplayToClipboard
ignorehitpause = 1
text = "E,stNO = %d life = %d E,life = %d sokusi = %d anim = %d"
params = (enemy,stateno),(life),(enemy,life),(var(29)),(var(56))
ignorehitpause = 1

[State -1,2]; デバッグ表示2
type = AppendToClipboard
trigger1 = 1
text = "\ndistx = %d,disty = %d,tyosokusi = %d,helperid = %d,49 = %d"
params = floor(P2bodyDist X),ceil(P2BodyDist Y),(var(30)),(var(10)),(var(49))
ignorehitpause = 1

;-------------------------------------------------------------------------------------------------
; ヘルパー消去ステート

[StateDef 1111111]
movehitpersist = 1
hitdefpersist  = 1

[State 1111111, 敵監視]
type = ChangeState
triggerall = Name != "H_Yujiro"
trigger1   = !IsHelper
value = 45000
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper
ignorehitpause = 1

[State 1111111, ヘルパー消去]
type = DestroySelf
trigger1 = IsHelper

;---------------------------------------------------------------------------
; 未使用ヘルパー
[Statedef 200002]
type    = S
movetype= A
physics = S
sprpriority = 20

[State 200002, 見えないように]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, ヘルパー追従]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = ishelper(200002)
pos = 0,0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999
[State -2, 対真鬼巫女]
type = PosSet
trigger1 = roundstate=2
trigger1 = enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000)
X = 0
Y = -350235
ignorehitpause = 1
[State 200002, 無敵]
type = NotHitby
trigger1 = ishelper(200002)
value = SCA
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, アニメ]
type = ChangeAnim
trigger1 = 1
value = 6002
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, 押し戻し判定解除]
type = playerpush
trigger1 = 1
value = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999
[State 200002, カメラ操作]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999
[State 200002, コントロール可否]
type = CtrlSet
trigger1 = 1
value = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, 振り向き]
type = Turn
trigger1 = 1
trigger1 = facing != root,facing
ignorehitpause=1

[State 200002, ヘルパーライフ]
type = Lifeset
trigger1 = 1
value = 0
ignorehitpause = 1

;--------------------------------------------------------
;ライフ偽装用ヘルパー
[Statedef 224444]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1
;anim = 6002

[State 821, 位置を本体に固定]
type = BindToRoot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
time = 1
pos = 0,-Root,Pos Y+10
ignorehitpause = 1

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

[State 821, 本体と同じ向きにする]
type = Turn
trigger1 = Root,facing != facing
ignorehitpause = 1

[State 160000]
type = ChangeAnim
trigger1 = !NumTarget
value = 6000
[State 160000]
type = TargetDrop
trigger1 = Target,ishelper
trigger2 = Target,Name != "H_Yujiro"
ignorehitpause = 1
[State 160000]
type = StateTypeSet
movetype = A
triggerall = root,palno = 12
trigger1 = 1;!NumTarget
ignorehitpause = 1
[State 160000]
type = Hitdef
triggerall   = root,palno = 12
triggerall = ishelper
trigger1 = !NumTarget 
attr = ,HT
affectteam = F
damage = 0,0
animtype = light
guardflag = 
priority = 3,Hit
pausetime = 0,0
sparkxy = 999999,999999
[State 160000]
type = null;StateTypeSet
trigger1 = NumTarget != 0
movetype = I
[State 160000]
type = ChangeAnim
trigger1 = NumTarget != 0
value = 6002
[State 160000]
type = ReversalDef
trigger1 = NumTarget != 0
reversal.attr = SCA,AA,AP,AT
pausetime     = 0,2
numhits       = 0
sparkno       = -1
sparkxy       = 0,0
hitsound      = -1,0

[State ]
type = targetlifeadd
trigger1 = numtarget
trigger1 = roundstate < 3
value = -99999999999
ignorehitpause = 1

;---------------------------------
;対鬼巫女ステート
[StateDef 19500]
type = U
movetype = U
physics = U
movehitpersist = 1
hitdefpersist = 1

[State -2,混線ステートへ]
type = ChangeState
trigger1 = !(Name="ONI-MIKO-REIMU"&&Root,SelfAnimExist(13000))
persistent = 256
value = 45000
ignorehitpause = 1

[State -2,ステートタイプ変更]
type = StateTypeSet
trigger1 = Name="ONI-MIKO-REIMU"
movetype = I
physics = N
ignorehitpause = 1

[State -2,無敵]
type = NotHitBy
trigger1 = name = "ONI-MIKO-REIMU"
time = -1
value = SCA
ignorehitpause = 1

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