;飛び道具反射・ガード用ヘルパー
;var(1) - 飛び道具
;var(2-10) - 当身

[Statedef 19999]
type = S
anim = 19999

[State 19999]
type = SelfState
trigger1 = !IsHelper
value = 0

[State 19999]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 19999]
type = BindToParent
trigger1 = 1
facing = 1
time = 1
pos = 100,0

;飛び道具検知
[State -2]
type = VarSet
triggerall = !var(1)
trigger1 = InGuardDist
var(1) = 1

[State -2]
type = ParentVarSet
triggerall = var(1)
trigger1 = !InGuardDist
trigger2 = enemynear(parent,var(47)),movetype = A && (p2dist X < enemynear(var(47)),const(size.proj.attack.dist))
var(50) = gametime

[State -2]
type = VarSet
triggerall = var(1)
trigger1 = !InGuardDist
var(1) = 0

;当身補助
[State -2];当たった攻撃のstatenoと発生Fを格納
type = VarSet
var(10) = (enemynear(parent,var(47)),time) + (enemynear(parent,var(47)),stateno * 1000)
triggerall = enemynear(parent,var(47)),TeamMode = single || enemynear(parent,var(47)),TeamMode = turns
trigger1 = enemynear(parent,var(47)),statetype != A
trigger1 = parent,time = 1
;trigger1 = enemynear(parent,var(47)),hitdefattr = SC,AA
trigger1 = enemynear(parent,var(47)),stateno < 10000 && enemynear(parent,var(47)),time < 1000
trigger1 = parent,movetype = H

[State -2];当たった攻撃のstatenoと発生Fを格納
type = VarSet
v = 10
value = 0
triggerall = enemynear(parent,var(47)),TeamMode = single || enemynear(parent,var(47)),TeamMode = turns
trigger1 = parent,movetype != H
trigger2 = enemynear(parent,var(47)),prevstateno >= 200 && enemynear(parent,var(47)),stateno >= 200

[State -2];格納する変数のオフセット
type = VarSet
v = 2
value = (var(3) >= 1) + (var(4) >= 1) + (var(5) >= 1) + (var(6) >= 1) + (var(7) >= 1) + (var(8) >= 1) + (var(9) >= 1)
trigger1 = parent,movetype != H

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 0
trigger1 = var(3)/1000 = var(10)/1000 && var(3)

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 1
trigger1 = var(4)/1000 = var(10)/1000 && var(4)

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 2
trigger1 = var(5)/1000 = var(10)/1000 && var(5)

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 3
trigger1 = var(6)/1000 = var(10)/1000 && var(6) 

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 4
trigger1 = var(7)/1000 = var(10)/1000 && var(7)

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 5
trigger1 = var(8)/1000 = var(10)/1000 && var(8) 

[State -2];同じstatenoで発生Fが早かったらそっちに
type = VarSet
var(2) = 6
trigger1 = var(9)/1000 = var(10)/1000 && var(9)

[State -2];変数に格納
type = VarSet
v = 3 + var(2)
value = var(10)
triggerall = var(3 + var(2)) = 0 || ((var(3 + var(2))/1000 = var(10)/1000) && (var(3 + var(2)) > var(10)))
triggerall = enemynear(parent,var(47)),TeamMode = single || enemynear(parent,var(47)),TeamMode = turns
trigger1 = var(10) > 0
trigger1 = enemynear(parent,var(47)),hitdefattr = SC,NA


---------------------------------------------------------------------------
;OTHキラー当身
[StateDef 100020]
type = S
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 100020]
type = Reversaldef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
priority = 7
pausetime = 2, 50;99;999999999999999999999999999999999999999999999999999999999999999999999999999
sparkno = -1
hitsound = -1
p2stateno = 11000
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999


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


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

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

[State 100020]
type = Destroyself
trigger1 = (GameTime% 400 ) = 0 
trigger2 = numhelper(100020) = 2
ignorehitpause = 1
;---------------------------------------------------------------------------

;混線・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

[State 150, コントロール不可]
type = Ctrlset
trigger1 = 1
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 = Assertspecial
trigger1 = 1
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State 150, 振り向き＆歩き制御＆影消し]
type = Assertspecial
trigger1 = 1
flag = noautoturn
flag2 = nowalk
flag3 = noshadow
ignorehitpause = 1

[State 150, 透明化]
type = Assertspecial
trigger1 = 1
flag = invisible
flag2 = noshadow
ignorehitpause = 1

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

[State 150, 追従]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
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 = root,alive
trigger2 = !root,anim = [61001,61002]
trigger2 = !root,stateno = 4040404
value = C, HA
ignorehitpause = 1

[State ]
type = Hitby
trigger1 = !root,alive
trigger1 = root,palno = 12
trigger2 = root,anim = [61001,61002]
trigger3 = root,stateno = 4040404
value = SCA, HP
ignorehitpause = 1

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


[State -2]
type = null;Posset
trigger1 = 1;root,var(56)
x = P2BodyDist X
y = P2BodyDist Y
ignorehitpause = 1

[State 19999]
type = BindToRoot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
facing = 1
time = 1
pos = 0,0



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

[State  自キャラ以外だった場合]
type = Changestate
trigger1 = name != "OROCHI G3"
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;2434
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 = null;Hitby
trigger1 = 1
value = C, HA
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 = Parentvarset
trigger1 = ishelper(2233)
var(3) = Enemy(0),id
ignorehitpause = 1
;--------------------------------------------------------------------------------------
;Stateno != Var(X)式ステ抜け用変数調査
;--------------------------------------------------------------------------------------
[State 2233,Stateno = Var(X)調査]
Type       = Varset
Triggerall = Ishelper(2233)
Triggerall = PlayerIDexist(Root,Var(3))
Trigger1   = PlayerID(Root,Var(3)),Var(Gametime%60) = PlayerID(Root,Var(3)),Stateno
Trigger1   = 0 && Var(31) := Gametime%60
Trigger2   = PlayerID(Root,Var(3)),Stateno = 120
Trigger3   = PlayerID(Root,Var(3)),Stateno = [130,132]
Trigger4   = PlayerID(Root,Var(3)),Stateno = 140
Trigger5   = PlayerID(Root,Var(3)),Stateno = [150,155]
Trigger6   = PlayerID(Root,Var(3)),Stateno = 5
Trigger7   = PlayerID(Root,Var(3)),Stateno = 20
Trigger8   = PlayerID(Root,Var(3)),Stateno = 40
Trigger9   = Var(31) != [0,2147483647]
V          = 31
Value      = 0
Ignorehitpause = 1

;---------------------------------------------------------------------------
;Gametime式ステ抜け変数調査
;---------------------------------------------------------------------------
[State 2233,変数代入調査 : 1F目]
Type       = Varset
Triggerall = Ishelper(2233)
Triggerall = PlayerIDexist(Root,Var(3))
Triggerall = Var(59) = 0
Trigger1   = Var(59) := Gametime
V          = 58
Value      = PlayerID(Root,Var(3)),Var(Var(55))
Ignorehitpause = 1

[State 2233,変数代入調査 : 2F目]
Type       = Selfstate
Triggerall = Ishelper(2233)
Triggerall = PlayerIDexist(Root,Var(3))
Triggerall = Gametime = Var(59) + 1
Triggerall = 1 || Var(57) := PlayerID(Root,Var(3)),Var(Var(55))
Triggerall = Var(57) = Var(58)
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := 0))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Value      = 2233
Persistent = 256
Ignorehitpause = 1

[State 2233,変数代入調査 : 3F目]
Type       = Selfstate
Triggerall = Ishelper(2233)
Triggerall = PlayerIDexist(Root,Var(3))
Triggerall = Gametime = Var(59) + 2
Triggerall = 1 || Var(56) := PlayerID(Root,Var(3)),Var(Var(55))
Triggerall = Var(56) = Var(57) || Var(56) = Var(58)
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Value      = 2233
Persistent = 256
Ignorehitpause = 1

[State 2233,計算＆結果]
Type       = Null
Triggerall = Ishelper(2233)
Triggerall = Gametime = Var(59) + 2
Trigger1   = 1 || Var(54) := Floor(((Var(58) + Var(56)) - (2*Var(57)))/2)
Trigger1   = 1 || Var(53) := (Var(57) - Var(58)) - (Var(54)*(2*Var(59) + 1))
Trigger1   = Var(52) := Var(58) - (Var(59)*(Var(54)*Var(59) + Var(53)))
Ignorehitpause = 1

[State 2233,変数記憶,リセット]
Type       = Selfstate
Triggerall = Ishelper(2233)
Triggerall = PlayerIDexist(Root,Var(3))
Triggerall = Var(54) || Var(53) || Var(52)
Triggerall = Gametime > Var(59) + 1
Trigger1   = PlayerID(Root,Var(3)),Var(Var(55)) != Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger1   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger1   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger2   = PlayerID(Root,Var(3)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger2   = !(Var(51) + Var(50) + Var(49) + Var(48))
Trigger2   = 1 || Var(51) := Var(54)
Trigger2   = 1 || Var(50) := Var(53)
Trigger2   = 1 || Var(49) := Var(52)
Trigger2   = 1 || Var(48) := Var(55)
Trigger2   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger2   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger2   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger3   = PlayerID(Root,Var(3)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger3   = !!(Var(51) + Var(50) + Var(49) + Var(48))
Trigger3   = !(Var(47) + Var(46) + Var(45) + Var(44))
Trigger3   = Var(48) != Var(55)
Trigger3   = 1 || Var(47) := Var(54)
Trigger3   = 1 || Var(46) := Var(53)
Trigger3   = 1 || Var(45) := Var(52)
Trigger3   = 1 || Var(44) := Var(55)
Trigger3   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger3   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger3   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger4   = PlayerID(Root,Var(3)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger4   = !!(Var(51) + Var(50) + Var(49) + Var(48))
Trigger4   = !!(Var(47) + Var(46) + Var(45) + Var(44))
Trigger4   = !(Var(43) + Var(42) + Var(41) + Var(40))
Trigger4   = Var(48) != Var(55)
Trigger4   = Var(44) != Var(55)
Trigger4   = 1 || Var(43) := Var(54)
Trigger4   = 1 || Var(42) := Var(53)
Trigger4   = 1 || Var(41) := Var(52)
Trigger4   = 1 || Var(40) := Var(55)
Trigger4   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger4   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger4   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger5   = PlayerID(Root,Var(3)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger5   = !!(Var(51) + Var(50) + Var(49) + Var(48))
Trigger5   = !!(Var(47) + Var(46) + Var(45) + Var(44))
Trigger5   = !!(Var(43) + Var(42) + Var(41) + Var(40))
Trigger5   = !(Var(39) + Var(38) + Var(37) + Var(36))
Trigger5   = Var(48) != Var(55)
Trigger5   = Var(44) != Var(55)
Trigger5   = Var(40) != Var(55)
Trigger5   = 1 || Var(39) := Var(54)
Trigger5   = 1 || Var(38) := Var(53)
Trigger5   = 1 || Var(37) := Var(52)
Trigger5   = 1 || Var(36) := Var(55)
Trigger5   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger5   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger5   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger6   = PlayerID(Root,Var(3)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger6   = !!(Var(51) + Var(50) + Var(49) + Var(48))
Trigger6   = !!(Var(47) + Var(46) + Var(45) + Var(44))
Trigger6   = !!(Var(43) + Var(42) + Var(41) + Var(40))
Trigger6   = !!(Var(39) + Var(38) + Var(37) + Var(36))
;Trigger6   = !(Var(35) + Var(34) + Var(33) + Var(32))
Trigger6   = Var(48) != Var(55)
Trigger6   = Var(44) != Var(55)
Trigger6   = Var(40) != Var(55)
Trigger6   = Var(36) != Var(55)
Trigger6   = 1 || Var(35) := Var(54)
Trigger6   = 1 || Var(34) := Var(53)
Trigger6   = 1 || Var(33) := Var(52)
Trigger6   = 1 || Var(32) := Var(55)
Trigger6   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger6   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger6   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Value      = 2233
Persistent = 256
Ignorehitpause = 1

[State 2233,時間経過リセット]
Type       = Selfstate
Triggerall = Ishelper(2233)
Triggerall = Gametime > Var(59) + 2
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Triggerall = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger1   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Value      = 2233
Persistent = 256
Ignorehitpause = 1

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


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

[State -2]
type = Changestate
trigger1 = name != "OROCHI G3"
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 = ishelper(2333)
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
pos = 0, 0

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

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

[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 -2]
type = Assertspecial
trigger1 = ishelper(2333)
flag = invisible
flag2 = noshadow
ignorehitpause = 1



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

[State -3, 特殊効果]
type = AssertSpecial
triggerall = ishelper(2333)
triggerall = enemynear,name != "EX-Zetton"
triggerall = root,PalNo = 12
trigger1 = gametime % 45 = [0,42]
trigger2 = enemynear,name = "AhojinGod"
flag = TimerFreeze


[State -3, 特殊効果]
type = AssertSpecial
triggerall = ishelper(2333)
triggerall = enemynear,name != "EX-Zetton"
triggerall = root,PalNo = 11
trigger1 = gametime % 10 = [0,5]
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 BGM消去]
type = AssertSpecial
triggerall = ishelper(2333)
triggerall = root,palno = 12
trigger1 = root,sysfvar(3) = 0
flag = nomusic
ignorehitpause = 1
supermovetime = 99999999999
pausemovetime = 99999999999

[State -2, ]
type = LifeSet
triggerall = ishelper(2333)
value = LifeMax
trigger1 = 1
ignorehitpause = 1

[State -2, 強制宣告用]
type = LifeSet
triggerall = ishelper(2333)
value = 1
trigger1 = 1
ignorehitpause = 1

[State -2, 強制宣告時止めフラグリセット]
type = ParentVarSet
triggerall = ishelper(2333)
var(18) = (Parent,var(18)&(1^-1))  ;1bit目をOFF
trigger1 = 1
ignorehitpause = 1

[State -2, 強制宣告時止めフラグを立てる]
type = ParentVarSet
triggerall = ishelper(2333)
var(18) = (Parent,var(18)|1)  ;1bit目をON
trigger1 = !root,alive
trigger1 = root,palno = 12
trigger2 = root,anim = [61001,61002]
trigger3 = root,stateno = 4040404
triggerall  = Life = 1               ;LifeSetが機能する時
triggerall  = Enemy(0),Alive && Enemy(NumEnemy>1),Alive
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 = 100,100,200
under = 1
invertall = -1



[State -2]
type = Pause
;triggerall = root,anim != [731,733]
triggerall = root,PalNo = [7,12]
triggerall = ishelper(2333)
triggerall = !enemy,name = "Ill-Fate-Misuzu"
;triggerall = !root,anim = [61001,61002]
triggerall = gametime % 8 != [2, 7]
;triggerall = !root,var(9)
triggerall = !(enemynear,name ="AxAyAzSSX")
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 = root,anim != [731,733]
triggerall = root,PalNo = [7,12]
triggerall = ishelper(2333)
triggerall = !enemy,name = "Ill-Fate-Misuzu"
triggerall = gametime % 8 != [2, 7]
;triggerall = !root,var(9)
triggerall = !(enemynear,name ="AxAyAzSSX")
trigger1 = !root,anim = 9601
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 = !enemy,name = "Ill-Fate-Misuzu"
trigger1 = Root,anim = 16400
trigger1 = Root,animelemno(0) < 11
time = 2
movetime = 2
ignorehitpause = 1

[State -2]
type = Superpause
triggerall = ishelper(2333)
triggerall = !enemy,name = "Ill-Fate-Misuzu"
trigger1 = Root,anim = 16400
trigger1 = Root,animelemno(0) < 11
anim = -1
time = 2
movetime = 2
darken = 0
p2defmul = 1
ignorehitpause = 1



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

[State -2]
type = pause
triggerall = ishelper(2333)
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
triggerall = ishelper(2333)
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 = AnimElemTime(1) > 0
;triggerall = root,var(9)
;triggerall  = Life = 1 
trigger1 = (Parent,var(18)&1)  ;Pause条件成立
;trigger1 = !root,alive
;trigger1 = root,palno = 12
;trigger2 = root,anim = [61001,61002]
;trigger3 = root,stateno = 4040404
time = 9999999999999
movetime = 9999999999999
ignorehitpause = 1

[State -2, 強制死の宣告用時止め]
type = Superpause
triggerall = ishelper(2333)
;triggerall = AnimElemTime(1) > 0
;triggerall = root,var(9)
;triggerall  = Life = 1 
;trigger1 = !root,alive
;trigger1 = root,palno = 12
;trigger2 = root,anim = [61001,61002]
;trigger3 = root,stateno = 4040404
trigger1 = (Parent,var(18)&1)  ;Pause条件成立
anim = -1
time = 9999999999999
movetime = 9999999999999
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1


[State -2, 強制死の宣告用時止め解除]
type = null;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) > 30
time = 0
movetime = 0
ignorehitpause = 1

[State -2, 強制死の宣告用時止め解除]
type = null;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) > 30
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State -2, ]
type = LifeSet
value = LifeMax
trigger1 = 1
ignorehitpause = 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
sprpriority = 99
ontop =1
movehitpersist = 1
hitdefpersist  = 1

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

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

[State 200002, 押し戻し判定解除]
type = Playerpush
trigger1 = ishelper
value = 0
ignorehitpause=1

[State 200002, 本体アニメ同期]
type = changeanim
trigger1 = ishelper
value = root,anim
elem = root,animelemno(0)
ignorehitpause=1

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

[State 200002, 特殊効果]
type = angledraw
trigger1= var(0):=random%4||1
scale= 1+0.07*var(0),1+0.07*var(0);0.95+0.07*var(0),0.91+0.07*var(0)
ignorehitpause = 1

[State 200002, 特殊効果]
type = Trans
trigger1 = 1
trans = AddAlpha
Alpha = sysfvar(1),200;56
ignorehitpause = 1

[State 200002, 変数加算]
type = VarAdd
trigger1 = sysfvar(2) = 0
sysfvar(1) = 1
ignorehitpause = 1

[State 200002, 変数加算]
type = VarAdd
trigger1 = sysfvar(2) = 1
sysfvar(1) = -1
ignorehitpause = 1

[State 200002, 変数固定]
type = VarSet
trigger1 = sysfvar(2) = 0
trigger1 = sysfvar(1) >= 160
sysfvar(2) = 1
ignorehitpause = 1

[State 200002, 変数固定]
type = VarSet
trigger1 = sysfvar(2) = 1
trigger1 = sysfvar(1) <= 30
sysfvar(2) = 0
ignorehitpause = 1

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

[State 2233, ヘルパー透明化]
type = Assertspecial
trigger1 = RoundState < 2
trigger1 = Root,var(27) < 260
trigger2 = Root,movetype = H
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State ]
type = AssertSpecial 
triggerall = ishelper
triggerall = Root,palno = 6
triggerall = Root,var(37)>20
triggerall = !Root,var(46)
trigger1 = !Root,alive 
;trigger2 = loseko 
flag = noko  
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

[State -3]
type = AssertSpecial
triggerall = ishelper
triggerall = Root,sysvar(4) = [0,1499]
triggerall = Root,anim != 61002
triggerall = Root,var(37)>20
triggerall = Root,PalNo != 12
trigger1 = Root,alive != 1 
trigger2 = loseko 
trigger3 = Root,gethitvar(fall.damage) != 0 && Root,stateno = [5000,5150] 
flag = noko
ignorehitpause = 1
supermovetime = 99999999999999999999
pausemovetime = 99999999999999999999

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


[State 200002, ヘルパー追従]
type = null;PosSet
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
X = (Root,sysfvar(3)-(sysfvar(3)))
Y = Root,sysfvar(4)
ignorehitpause = 1

[State 200002, 変数加算]
type = VarAdd
trigger1 = sysfvar(4) = 0
trigger1 = 1;gametime%4 = 0
sysfvar(3) = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, 変数加算]
type = VarAdd
trigger1 = sysfvar(4) = 1
trigger1 = 1;gametime%4 = 0
sysfvar(3) = -1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, 変数固定]
type = VarSet
trigger1 = sysfvar(4) = 0
trigger1 = sysfvar(3) >= 7
sysfvar(4) = 1
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

[State 200002, 変数固定]
type = VarSet
trigger1 = sysfvar(4) = 1
trigger1 = sysfvar(3) <= -7
sysfvar(4) = 0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999

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

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

[State -2, 断末魔用ｔｉｍｅ代わり]
type = Varadd
triggerall = ishelper(23331)
triggerall = Root,sysvar(4) != [0,1490]
trigger1 = !Root,Alive
sysvar(4) = 1
ignorehitpause = 1

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


[State -2, 時止め解除用]
type = Varset
triggerall = ishelper(23331)
trigger1 = enemy,alive
trigger1 = enemy(numenemy = 2),alive
sysvar(2) = 0
ignorehitpause = 1

[State -2, 時止め解除用]
type = Varadd
triggerall = ishelper(23331)
trigger1 = !enemy,alive
trigger1 = !enemy(numenemy = 2),alive
sysvar(2) = 1
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 = null;Hitby
trigger1 = 1
value = C, HA
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 190000, ヘルパーＩＤ記憶]
type = Parentvarset
trigger1 = numhelper(190000)
var(12) = helper(190000),sysfvar(4)
ignorehitpause = 1

[state ]
type = parentvarset
trigger1 = var(53)
var(56) = var(53)
ignorehitpause = 1



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

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




;-------------------------------------------------------------------
;親変更用ループステート Parent,IDの1Byte目のアドレス用
[Statedef 29561]
type = U
movetype = U
movehitpersist = (Name != "OROCHI G3")
hitdefpersist = (Name != "OROCHI G3")

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

[State 29561, ループ回数]
type = VarAdd
var(8) = 1
trigger1 = 1
ignorehitpause = 1

[State 29561, Parent,IDの1Byte目のアドレスを0にリセットするステートへ]
type = SelfState
value = 2998267
triggerall = var(8) = [0,130]  ;最初にこのステートに来た時から130ループ
triggerall = hitpausetime
trigger1 = 1
persistent = 256
ignorehitpause = 1

[State 29561, Parent,IDの1Byte目のアドレスをいじるステートへ]
type = SelfState
value = 2998264
triggerall = var(4) = [1,127]       ;ループで弄れる範囲(最初に0にしているので0ならそのまま)
triggerall = var(7) < -var(4)+127+1 ;必要なだけ1桁目をループさせていない時(最後の+1はpersistentで127にするのを含めているため)
triggerall = hitpausetime
trigger1 = var(8) = [0,300]         ;ループ限界数
trigger1 = var(7) := var(7)+1 || 1  ;アドレスをいじるステートを読み込んだ回数
persistent = 256
ignorehitpause = 1

[State 29561, Parent,IDの1Byte目のアドレスをいじるステートへ(128の壁突破)]
type = SelfState
value = 2998300+var(4)
triggerall = var(4) = [128,255]     ;128の壁の突破が必要
triggerall = fvar(39)               ;全ID親変更ON
triggerall = PrevStateNo != 2998268 ;行動済みフラグリセットステートから戻ってきていない時
triggerall = PrevStateNo != [2998428,2998554] ;まだ128の壁突破ステートを通っていない
triggerall = hitpausetime
trigger1 = var(8) = [0,300]         ;ループ限界数
persistent = 256
ignorehitpause = 1

[State 29561, 2Byte目のアドレスを弄るステートへ]
type = SelfState
value = 29562
trigger1 = var(7) := 0 || 1  ;ループ変数リセット
trigger1 = var(8) := 0 || 1  ;ループ変数リセット
persistent = 256
ignorehitpause = 1

;-------------------------------------------------------------------
;親変更用ループステート Parent,IDの2Byte目のアドレス用

[Statedef 29562]
type = U
movetype = U
movehitpersist = 1
hitdefpersist = 1

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

[State 29562, ループ回数]
type = VarAdd
var(8) = 1
trigger1 = 1
ignorehitpause = 1

[State 29562, Parent,IDの2Byte目のアドレスをいじるステートへ]
type = SelfState
value = 2998265
triggerall = var(7) < var(5)
triggerall = hitpausetime
trigger1 = var(8) = [0,150]         ;ループ限界数
trigger1 = var(7) := var(7)+1 || 1  ;アドレスをいじるステートを読み込んだ回数
persistent = 256
ignorehitpause = 1

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

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

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

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

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

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

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

[State 29562, 親変更に失敗したらフラグセット]
type = VarSet
sysvar(0) = (sysvar(0)|2)  ;2bit目をON
trigger1 = !(sysvar(0)&1)
ignorehitpause = 1

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

[State 190000,自キャラ以外]
type = Changestate
trigger1 = name != "OROCHI G3"
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
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
trigger1 = !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))
trigger1 = 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))
trigger1 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger1 = NumTarget 
pos = -60,  - 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))
trigger1 = 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 = ReversalDef
trigger1 = 1
reversal.attr = SCA,SA
ignorehitpause = 1


[State 190000,ターゲット取得用HitDef]
type=HitDef
trigger1 = !NumTarget
trigger1 = GameTime%2;!(GameTime%2);
attr = SCA,SA
numhits = 0
sparkno = -1
hitsound = -1
affectteam = F
pausetime = 256*256*256*128-1,1
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; = 1
value = 6002
ignorehitpause = 1


[State 190000,駄目だお前は！（ターゲット的に）]
type = TargetDrop
trigger1 = NumTarget
trigger1 = !Target,ishelper
;keepone = 1
ignorehitpause=1

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

[State 190000,ターゲットを2つに絞る]
type = TargetDrop
trigger1 = !Ishelper(190000) || !Ishelper(190021)
trigger1 = NumTarget > 2
keepone = 2
ignorehitpause = 1

[State 190000, 一度全ID親変更ON/OFF確認ステートへ]
type = SelfState
value = 999999
trigger1 = !fvar(39)
trigger1 = !fvar(38)
persistent = 256
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 = VarSet
sysvar(0) = (sysvar(0)&(1^-1))  ;1bit目をOFF
trigger1 = !PlayerIDExist( Parent,ID )
trigger2 = Parent,Name = "OROCHI G3"
trigger2 = Parent,TeamSide = TeamSide
ignorehitpause = 1

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

[State 190000, 本来の親と現在の親のIDの256進数上の1桁目の差を求める]
type = Null
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
trigger1 = var(4) >  var(2)
trigger1 = var(6) := 128-(var(4)-var(2)) || 1
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,Parent,ID記憶]
Type       = Varset
Triggerall   = !Parent,Ishelper(45001)
Triggerall   = !Parent,Ishelper(45002)
Triggerall   = !Parent,Ishelper(45003)
Triggerall   = !Parent,Ishelper(989898)
Triggerall = PlayerIDexist(Parent,ID)
Trigger1   = Parent,Teamside != Teamside
V          = 22
Value      = Parent,ID
Ignorehitpause = 1

[State 190000,Parent,IDリセット]
Type       = Varset
Trigger1   = !PlayerIDexist(Var(22))
Trigger2   = PlayerID(Var(22)),Ishelper(123456787)
Trigger3   = PlayerID(Var(22)),Ishelper(1995006)
Trigger4   = PlayerID(Var(22)),Ishelper(1995007)
Trigger5   = PlayerID(Var(22)),Ishelper(1995008)
Trigger6   = PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger7   = PlayerID(Var(22)),Ishelper(Root,Var(14))
Trigger8   = PlayerID(Var(22)),Ishelper(Root,Var(15))
V          = 22
Value      = 0
Ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性低)]
type = Explod
triggerall = !NumExplod(44011)
triggerall = !NumExplod(44012)
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,Anim = Enemy,Anim       ;アーマーヘルパーは本体とアニメを同期させていることが多い
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2  ;試合外は無敵の可能性大
anim = 6002
ID = 44011
removetime = -1
ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性中)]
type = Explod
triggerall = !NumExplod(44012)
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,GetHitVar(damage)
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2 ;試合外は無敵の可能性大
trigger1 = !Parent,Anim = 6001
trigger1 = Parent,StateNo !=  5000        ;ヘルパーアーマーはHitOverRideを付けてると思うので
trigger1 = Parent,StateNo !=  5010
trigger1 = Parent,StateNo !=  5100
trigger1 = Parent,StateNo !=  5110
anim = 6002
ID = 44012
removetime = -1
ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性大)]
type = Explod
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,GetHitVar(damage)
trigger1 = Parent,Anim = Enemy,Anim       ;アーマーヘルパーは本体とアニメを同期させていることが多い
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2
trigger2 = Enemy(0),Numhelper(154)
trigger3 = Enemy(0),Numhelper(450000)
trigger4 = Enemy(0),Numhelper(450001)
trigger5 = Enemy(0),Numhelper(3141592)
trigger6 = Enemy(0),Numhelper(1666661)
trigger7 = Enemy(0),Numhelper(6400000)
trigger8 = Enemy(0),Numhelper(6444444)
anim = 6002
ID = 44013
removetime = -1
ignorehitpause = 1

[State 190000, 上位のアーマーヘルパー情報を見つけた場合は下位の情報を削除1]
type = RemoveExplod
ID = 44011
triggerall = NumExplod(44011)
trigger1 = NumExplod(44012)
trigger2 = NumExplod(44013)
ignorehitpause = 1

[State 190000, 上位のアーマーヘルパー情報を見つけた場合は下位の情報を削除2]
type = RemoveExplod
ID = 44012
trigger1 = NumExplod(44012)
trigger1 = NumExplod(44013)
ignorehitpause = 1


[State 190000,間者取得フラグON]
Type       = Varset
Triggerall = PlayerIDexist(Parent,ID)
Triggerall = Parent,Teamside != Teamside
Trigger1   = Parent,Ishelper(989898)
V          = 21
Value      = (Var(21) | 1)
Ignorehitpause = 1

[State 190000,探査ヘルパーParentフラグON]
Type       = Varset
Triggerall = PlayerIDexist(Parent,ID)
Trigger1   = Parent,Ishelper(45001)
Trigger2   = Parent,Ishelper(45002)
Trigger3   = Parent,Ishelper(45003)
V          = 21
Value      = (Var(21) | 2)
Ignorehitpause = 1

[State 190000,探査ヘルパーTargetフラグON]
Type       = Varset
Triggerall = Numtarget
Trigger1   = Target,Ishelper(45001)
;Trigger1   = !Parent,Ishelper(45001)
Trigger1   = Var(21) := (Var(21) | 8)
Trigger2   = Target,Ishelper(45002)
;Trigger2   = !Parent,Ishelper(45002)
Trigger2   = Var(21) := (Var(21) | 16)
Trigger3   = Target,Ishelper(45003)
;Trigger3   = !Parent,Ishelper(45003)
Trigger3   = Var(21) := (Var(21) | 32)
V          = 21
Value      = (Var(21) | 4)
Ignorehitpause = 1

[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 = 29561 + (var(7):=0) + (var(8):=0)  ;同時にループ変数リセット
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = !Parent,ishelper(989898)  ;間者ヘルパーには親変更を行わない
;triggerall = !(sysvar(0)&2)  ;親変更失敗フラグが立っていない
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = hitpausetime
triggerall = (var(3) = [0,127])              ;親変更可能なID(2Byte目)
triggerall = (var(4) = [0,127]) || fvar(39)  ;親変更可能なID(全ID親変更なら必ず)
triggerall = Parent,ID < 65536 ;大きすぎるIDには非対応
trigger1 = RoundState < 2
trigger2 = RoundState = 2 ;試合開始
;trigger2 = Root,sysvar(3)%600 > 299                 ;  常時混線を避ける
trigger3 = RoundState = 3                           ;試合後常時
persistent = 256
ignorehitpause = 1
[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29561 + (var(7):=0) + (var(8):=0)  ;同時にループ変数リセット
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = !Parent,ishelper(989898)  ;間者ヘルパーには親変更を行わない
;triggerall = !(sysvar(0)&2)  ;親変更失敗フラグが立っていない
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = hitpausetime
triggerall = (var(3) = [0,127])              ;親変更可能なID(2Byte目)
triggerall = (var(4) = [0,127]) || fvar(39)  ;親変更可能なID(全ID親変更なら必ず)
triggerall = Parent,ID < 65536 ;大きすぎるIDには非対応
trigger1 = RoundState < 2
trigger2 = RoundState = 2 ;試合開始
;trigger2 = Root,sysvar(3)%600 > 299                 ;  常時混線を避ける
trigger3 = RoundState = 3                           ;試合後常時
persistent = 256
ignorehitpause = 1
[State 190000, 親変更用ループステートへ]
type = SelfState
value = 29561 + (var(7):=0) + (var(8):=0)  ;同時にループ変数リセット
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = !Parent,ishelper(989898)  ;間者ヘルパーには親変更を行わない
;triggerall = !(sysvar(0)&2)  ;親変更失敗フラグが立っていない
triggerall = !(sysvar(0)&1)  ;親変更成功フラグが立っていない
triggerall = hitpausetime
triggerall = (var(3) = [0,127])              ;親変更可能なID(2Byte目)
triggerall = (var(4) = [0,127]) || fvar(39)  ;親変更可能なID(全ID親変更なら必ず)
triggerall = Parent,ID < 65536 ;大きすぎるIDには非対応
trigger1 = RoundState < 2
trigger2 = RoundState = 2 ;試合開始
;trigger2 = Root,sysvar(3)%600 > 299                 ;  常時混線を避ける
trigger3 = RoundState = 3                           ;試合後常時
persistent = 256
ignorehitpause = 1

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

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

[State 151, parent,stateno変数化、邪眼キラー範囲外]
type = Varset
triggerall = numtarget
triggerall = parent,ishelper
triggerall = parent,stateno != [0, 149]
triggerall = parent,stateno != [150,719]
triggerall = parent,stateno != [721,1004]
triggerall = parent,stateno != [1000,1007]
triggerall = parent,stateno != 1050
triggerall = parent,stateno != 1065
triggerall = parent,stateno != 1102
triggerall = parent,stateno != [1111, 1112]
triggerall = parent,stateno != 1116
triggerall = parent,stateno != 1200
triggerall = parent,stateno != 1202
triggerall = parent,stateno != 1300
triggerall = parent,stateno != 1302
triggerall = parent,stateno != 1350
triggerall = parent,stateno != 1400
triggerall = parent,stateno != [1410,1412]
triggerall = parent,stateno != 1450
triggerall = parent,stateno != 1500
triggerall = parent,stateno != 1510
triggerall = parent,stateno != [1600, 1602]
triggerall = parent,stateno != 1720
triggerall = parent,stateno != 1801
triggerall = parent,stateno != 2000
triggerall = parent,stateno != 2025
triggerall = parent,stateno != [2100, 2103]
triggerall = parent,stateno != 2105
triggerall = parent,stateno != [2200, 2206]
triggerall = parent,stateno != 2269
triggerall = parent,stateno != 2300
triggerall = parent,stateno != 2350
triggerall = parent,stateno != [2352, 2353]
triggerall = parent,stateno != [2355, 2356]
triggerall = parent,stateno != 2400
triggerall = parent,stateno != 2500
triggerall = parent,stateno != [2506, 2507]
triggerall = parent,stateno != 2600
triggerall = parent,stateno != 2611
triggerall = parent,stateno != 2901
triggerall = parent,stateno != 3002
triggerall = parent,stateno != 3041
triggerall = parent,stateno != 3052
triggerall = parent,stateno != 3059
triggerall = parent,stateno != 3185
triggerall = parent,stateno != 3403
triggerall = parent,stateno != [3920, 3921]
triggerall = parent,stateno != 3929
triggerall = parent,stateno != 3999
triggerall = parent,stateno != 4060
triggerall = parent,stateno != 4091
triggerall = parent,stateno != 4211
triggerall = parent,stateno != [4310, 4311]
triggerall = parent,stateno != [4330, 4331]
triggerall = parent,stateno != 4391
triggerall = parent,stateno != [4395, 4396]
triggerall = parent,stateno != 4510
triggerall = parent,stateno != 4512
triggerall = parent,stateno != [5000, 5001]
triggerall = parent,stateno != [5010, 5011]
triggerall = parent,stateno != 5020
triggerall = parent,stateno != 5030
triggerall = parent,stateno != 5035
triggerall = parent,stateno != 5040
triggerall = parent,stateno != 5050
triggerall = parent,stateno != [5070, 5071]
triggerall = parent,stateno != [5080, 5081]
triggerall = parent,stateno != 5101
triggerall = parent,stateno != 5110
triggerall = parent,stateno != [5120, 5150]
triggerall = parent,stateno != [5200, 5201]
triggerall = parent,stateno != 5210
triggerall = parent,stateno != 5500
triggerall = parent,stateno != 5600
triggerall = parent,stateno != 5788
triggerall = parent,stateno != [5789, 5790]
triggerall = parent,stateno != 5900
triggerall = parent,stateno != [6000, 6002]
triggerall = parent,stateno != [6010, 6012]
triggerall = parent,stateno != 6014
triggerall = parent,stateno != 6016
triggerall = parent,stateno != [6019, 6020]
triggerall = parent,stateno != [6024, 6027]
triggerall = parent,stateno != [6032, 6035]
triggerall = parent,stateno != 6100
triggerall = parent,stateno != 6301
triggerall = parent,stateno != 6306
triggerall = parent,stateno != 6540
triggerall = parent,stateno != 6789
triggerall = parent,stateno != 6900
triggerall = parent,stateno != 6920
triggerall = parent,stateno != 7000
triggerall = parent,stateno != [7040, 7047]
triggerall = parent,stateno != 7055
triggerall = parent,stateno != [7320, 7321]
triggerall = parent,stateno != [7326, 7327]
triggerall = parent,stateno != 7777
triggerall = parent,stateno != 7878
triggerall = parent,stateno != 8000
triggerall = parent,stateno != 8003
triggerall = parent,stateno != 8040
triggerall = parent,stateno != 8100
triggerall = parent,stateno != 8900
triggerall = parent,stateno != 9000
triggerall = parent,stateno != 9126
triggerall = parent,stateno != 9200
triggerall = parent,stateno != 9263
triggerall = parent,stateno != 9809
triggerall = parent,stateno != 9900
triggerall = parent,stateno != 9936
triggerall = parent,stateno != 9952
triggerall = parent,stateno != 9994
triggerall = parent,stateno != [10003, 10004]
triggerall = parent,stateno != 10012
triggerall = parent,stateno != 10015
triggerall = parent,stateno != 10101
triggerall = parent,stateno != 10504
triggerall = parent,stateno != 10651
triggerall = parent,stateno != [11001, 11004]
triggerall = parent,stateno != 11100
triggerall = parent,stateno != 11111
triggerall = parent,stateno != 11502
triggerall = parent,stateno != 11680
triggerall = parent,stateno != 11710
triggerall = parent,stateno != 11720
triggerall = parent,stateno != 11730
triggerall = parent,stateno != [12003, 12004]
triggerall = parent,stateno != 12310
triggerall = parent,stateno != 12345
triggerall = parent,stateno != 12500
triggerall = parent,stateno != 13000
triggerall = parent,stateno != 13050
triggerall = parent,stateno != 13100
triggerall = parent,stateno != 13200
triggerall = parent,stateno != 13500
triggerall = parent,stateno != [14000, 14002]
triggerall = parent,stateno != 16003
triggerall = parent,stateno != 18102
triggerall = parent,stateno != 19101
triggerall = parent,stateno != 20000
triggerall = parent,stateno != 20955
triggerall = parent,stateno != [22101, 22102]
triggerall = parent,stateno != 22122
triggerall = parent,stateno != 22222
triggerall = parent,stateno != 22224
triggerall = parent,stateno != 24601
triggerall = parent,stateno != 24610
triggerall = parent,stateno != 25544
triggerall = parent,stateno != 26320
triggerall = parent,stateno != 26485
triggerall = parent,stateno != [30000, 30004]
triggerall = parent,stateno != [30013, 30014]
triggerall = parent,stateno != [30020, 30021]
triggerall = parent,stateno != 31993
triggerall = parent,stateno != 32555
triggerall = parent,stateno != 37000
triggerall = parent,stateno != 40001
triggerall = parent,stateno != 40003
triggerall = parent,stateno != 40952
triggerall = parent,stateno != 43302
triggerall = parent,stateno != [43425, 43426]
triggerall = parent,stateno != 43655
triggerall = parent,stateno != 43705
triggerall = parent,stateno != 43708
triggerall = parent,stateno != 44488
triggerall = parent,stateno != 44900
triggerall = parent,stateno != 45755
triggerall = parent,stateno != 45999
triggerall = parent,stateno != 46060
triggerall = parent,stateno != 46965
triggerall = parent,stateno != 49933
triggerall = parent,stateno != 49943
triggerall = parent,stateno != 50000
triggerall = parent,stateno != [50505, 50506]
triggerall = parent,stateno != [51515, 51518]
triggerall = parent,stateno != 55555
triggerall = parent,stateno != 58901
triggerall = parent,stateno != 60000
triggerall = parent,stateno != 60050
triggerall = parent,stateno != 60315
triggerall = parent,stateno != 61000
triggerall = parent,stateno != 64000
triggerall = parent,stateno != 65000
triggerall = parent,stateno != 65500
triggerall = parent,stateno != 65530
triggerall = parent,stateno != 70000
triggerall = parent,stateno != 70100
triggerall = parent,stateno != 70200
triggerall = parent,stateno != 80000
triggerall = parent,stateno != 84555
triggerall = parent,stateno != 88885
triggerall = parent,stateno != 88887
triggerall = parent,stateno != 90000
triggerall = parent,stateno != [99919, 99920]
triggerall = parent,stateno != [99999, 100000]
triggerall = parent,stateno != 100002
triggerall = parent,stateno != 111222
triggerall = parent,stateno != 112235
triggerall = parent,stateno != 112240
triggerall = parent,stateno != 112250
triggerall = parent,stateno != 126100
triggerall = parent,stateno != 169990
triggerall = parent,stateno != 170000
triggerall = parent,stateno != 180002
triggerall = parent,stateno != 200000
triggerall = parent,stateno != 300000
triggerall = parent,stateno != 301050
triggerall = parent,stateno != 310120
triggerall = parent,stateno != 313900
triggerall = parent,stateno != 400000
triggerall = parent,stateno != 450000
triggerall = parent,stateno != 500000
triggerall = parent,stateno != 500033
triggerall = parent,stateno != 600000
triggerall = parent,stateno != 649999
triggerall = parent,stateno != 700000
triggerall = parent,stateno != [741003, 741004]
triggerall = parent,stateno != [800000,800001]
triggerall = parent,stateno != 900000
triggerall = parent,stateno != 910010
triggerall = parent,stateno != 1000000
triggerall = parent,stateno != 1168000
triggerall = parent,stateno != 1699922
triggerall = parent,stateno != 2000000
triggerall = parent,stateno != 3000000
triggerall = parent,stateno != 4000000
triggerall = parent,stateno != 5000000
triggerall = parent,stateno != [5000005, 5000006]
triggerall = parent,stateno != 5000010
triggerall = parent,stateno != 5000025
triggerall = parent,stateno != 5000052
triggerall = parent,stateno != 5000058
triggerall = parent,stateno != [5000070, 5000072]
triggerall = parent,stateno != 5000080
triggerall = parent,stateno != 5000085
triggerall = parent,stateno != 5000090
triggerall = parent,stateno != 5000095
triggerall = parent,stateno != 5000333
triggerall = parent,stateno != 6000000
triggerall = parent,stateno != 6400000
triggerall = parent,stateno != 7000000
triggerall = parent,stateno != 8000000
triggerall = parent,stateno != 9000000
triggerall = parent,stateno != 10000000
triggerall = parent,stateno != 20000000
triggerall = parent,stateno != [21360897, 21360898]
triggerall = parent,stateno != 22222222
triggerall = parent,stateno != 30000000
triggerall = parent,stateno != 40000000
triggerall = parent,stateno != 50000000
triggerall = parent,stateno != 60000000
triggerall = parent,stateno != 70000000
triggerall = parent,stateno != 80000000
triggerall = parent,stateno != 90000000
triggerall = parent,stateno != 100000000
triggerall = parent,stateno != 200000000
triggerall = parent,stateno != 300000000
triggerall = parent,stateno != 400000000
triggerall = parent,stateno != 500000000
triggerall = parent,stateno != 555555557
triggerall = parent,stateno != 600000000
triggerall = parent,stateno != 700000000
triggerall = parent,stateno != 800000000
triggerall = parent,stateno != 900000000
triggerall = parent,stateno != 987654321
triggerall = parent,stateno != 1000000000
triggerall = parent,stateno != 1100000000
triggerall = parent,stateno != 1200000000
triggerall = parent,stateno != 1300000000
triggerall = parent,stateno != 1400000000
triggerall = parent,stateno != 1500000000
triggerall = parent,stateno != 1600000000
triggerall = parent,stateno != 1700000000
triggerall = parent,stateno != 1800000000
triggerall = parent,stateno != 1900000000
triggerall = parent,stateno != 2000000000
triggerall = parent,stateno != 2100000000
triggerall = parent,stateno != 2147483647
triggerall = parent,stateno != 45000
triggerall = parent,stateno != 288888
triggerall = parent,stateno != 58010
triggerall = parent,stateno != [220000,220005]
triggerall = parent,stateno != 123456789
triggerall = parent,stateno != [19020,19024]
triggerall = parent,stateno != [15000,15003]
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,Hitbyステート取得用]
Type       = Projectile
Triggerall = Roundstate = 2
Triggerall = Numtarget
Trigger1   = !Parent,Ishelper(45001)
Trigger1   = Target,Ishelper(45001)
Trigger2   = !Parent,Ishelper(45002)
Trigger2   = Target,Ishelper(45002)
Trigger3   = !Parent,Ishelper(45003)
Trigger3   = Target,Ishelper(45003)
Attr       = SCA,AA,AT,AP,SA,ST,SP,NA,NT,NP,HA,HT,HP
Hitflag    = MAFDLP
Guradflag  = 
Getpower   = 0,0
Givepower  = 0,0
Sparkno    = -1
Sparkxy    = 999,999
Hitsound   = -1,0
Guardsound = -1,0
Priority   = 7,Hit
Damage     = 10,10
ProjID     = 1992936
Postype    = Left
Offset     = (Target,Pos X),(Target,Pos Y)
Projremove      = 0
Projremovetime  = 2
Projhits        = 1
Projpriority    = 2147483647
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Projanim        = 100005
Supermovetime   = 2147483647
Pausemovetime   = 2147483647
Ignorehitpause  = 1

[State 151, 対鬼巫女R]
type=targetstate
trigger1 = Parent,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000)
trigger1 = roundstate<3
trigger1 = !Parent,ishelper(3)
trigger1 = !Parent,ishelper(2)
trigger1 = !target,ishelper(3)
trigger1 = !target,ishelper(2)
value = 19500
ignorehitpause = 1
[State 151, 対アーシェット]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = target,ishelper
triggerall = !target,ishelper(3623605)
triggerall = !Parent,ishelper(3623605)
trigger1= enemynear,name ="assiette"
value = 45000
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 = 2000000000
projstagebound = 2000000000
projheightbound = -2000000000,2000000000
persistent = 256
ignorehitpause = 1
[State 151, 対コンナハズハー]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = Parent,ishelper
triggerall = roundstate = 2
trigger1= enemynear,authorname = "SAMSARA" && enemynear,name = "Krizalid"
value = 85151
ignorehitpause = 1
[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = !(enemynear,name = "assiette")
triggerall = !(enemynear,name = "AhojinGod")
triggerall = !(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = !(enemynear,authorname = "SAMSARA" && enemynear,name = "Krizalid")
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,ishelper(45001)||!Parent,ishelper(45002)||!Parent,ishelper(45003) 
triggerall = root,anim != [2720,2721]
triggerall = (root,sysvar(3) = [0,20000]) 
triggerall = enemynear,name !="Mirage" 
triggerall = enemynear,name !="AxAyAzSSX"
trigger1 = roundstate != 2
trigger1 = !Enemy,numhelper(989898)
trigger2 = root,anim = 2001 || root,anim = 2301
trigger3 = (root,sysvar(3) = [0,20000]) 
trigger3 = !Enemy,numhelper(989898) ;間者を取れていなかった場合は常時
trigger4 = (root,sysvar(3) = [1,3300]);アーマー拉致実行時間 
trigger5 = Root,sysvar(3)%600 > 299
trigger5 = Enemy,numhelper(989898) ;間者を取れているときは常時混線を避けておく
value = var(55)
ignorehitpause = 1
[State 151,探査ヘルパーステート飛ばし]
Type       = Targetstate
;triggerall = !Parent,name = "Tenma"
triggerall = !parent,ishelper(989898)
Trigger1   = 0;(Var(21) & 2)
Trigger1   = !(Parent,Stateno = 45000 || Parent,Stateno = 45600)
Trigger1   = parent,ishelper(45001) || parent,ishelper(45002) || parent,ishelper(45003)
Trigger2   = (Var(21) & 4)
Trigger2   = target,ishelper(45001) || target,ishelper(45002) || target,ishelper(45003)
Trigger2   = !(Target,Stateno = 45000 || Target,Stateno = 45600)
Value      = 45000
Ignorehitpause = 1
[State 151, 習得ステート飛ばし]
type = Targetstate
;triggerall = !Parent,name = "Tenma"
triggerall = parent,ishelper(989898)
trigger1 = 1
value = 45000
ignorehitpause = 1
[State 151,逆混線は探査情報取得を行う]
Type       = Selfstate
triggerall = !target,ishelper(989898)
triggerall = Numtarget
Trigger1   = Ishelper(190021)
Value      = 45100
Persistent = 256
Ignorehitpause = 1
[State 151,探査情報取得]
Type       = Selfstate
triggerall = !target,ishelper(989898)
;triggerall = target,ishelper(45001) || target,ishelper(45002) || target,ishelper(45003)
Trigger1   = (Var(21) & 4)
Value      = 45100
Persistent = 256
Ignorehitpause = 1

[State , ヘルパー消去]
type = Destroyself
trigger1 = (enemynear,name = "Singular"&&enemy,numhelper(4343))
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


[State 151,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
Ignorehitpause = 1
;--------------------------
;混線用

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

[State 190000,自キャラ以外]
type = Changestate
trigger1 = name != "OROCHI G3"
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))
trigger1 = 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))
trigger1 = ishelper(190008) || ishelper(190009) || ishelper(190010) || ishelper(190011) || ishelper(190012) || ishelper(190013) || ishelper(190014) || ishelper(190015) || ishelper(190024) || ishelper(190025)
trigger1 = NumTarget 
pos = -60,  - 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))
trigger1 = 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 = 1
value = 6002
ignorehitpause = 1

[State 190000,ステートタイプ変更]
type = Statetypeset
triggerall = NumTarget
;triggerall = parent,name != "Tenma"
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, 特定の数値をクリップボードに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,Parent,ID記憶]
Type       = Varset
Triggerall   = !Parent,Ishelper(45001)
Triggerall   = !Parent,Ishelper(45002)
Triggerall   = !Parent,Ishelper(45003)
Triggerall   = !Parent,Ishelper(989898)
Triggerall = PlayerIDexist(Parent,ID)
Trigger1   = Parent,Teamside != Teamside
V          = 22
Value      = Parent,ID
Ignorehitpause = 1

[State 190000,Parent,IDリセット]
Type       = Varset
Trigger1   = !PlayerIDexist(Var(22))
Trigger2   = PlayerID(Var(22)),Ishelper(123456787)
Trigger3   = PlayerID(Var(22)),Ishelper(1995006)
Trigger4   = PlayerID(Var(22)),Ishelper(1995007)
Trigger5   = PlayerID(Var(22)),Ishelper(1995008)
Trigger6   = PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger7   = PlayerID(Var(22)),Ishelper(Root,Var(14))
Trigger8   = PlayerID(Var(22)),Ishelper(Root,Var(15))
V          = 22
Value      = 0
Ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性低)]
type = Explod
triggerall = !NumExplod(44011)
triggerall = !NumExplod(44012)
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,Anim = Enemy,Anim       ;アーマーヘルパーは本体とアニメを同期させていることが多い
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2  ;試合外は無敵の可能性大
anim = 6002
ID = 44011
removetime = -1
ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性中)]
type = Explod
triggerall = !NumExplod(44012)
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,GetHitVar(damage)
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2 ;試合外は無敵の可能性大
trigger1 = !Parent,Anim = 6001
trigger1 = Parent,StateNo !=  5000        ;ヘルパーアーマーはHitOverRideを付けてると思うので
trigger1 = Parent,StateNo !=  5010
trigger1 = Parent,StateNo !=  5100
trigger1 = Parent,StateNo !=  5110
anim = 6002
ID = 44012
removetime = -1
ignorehitpause = 1

[State 190000, 相手のアーマーヘルパーらしきものを取得したことを示すExplod(可能性大)]
type = Explod
triggerall = !NumExplod(44013)
triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 4040404)
trigger1 = Parent,GetHitVar(damage)
trigger1 = Parent,Anim = Enemy,Anim       ;アーマーヘルパーは本体とアニメを同期させていることが多い
trigger1 = !Parent,IsHelper(989898)     ;間者ヘルパーではない
trigger1 = TeamSide != Target,TeamSide
trigger1 = RoundState = 2
trigger2 = Enemy(0),Numhelper(154)
trigger3 = Enemy(0),Numhelper(450000)
trigger4 = Enemy(0),Numhelper(450001)
trigger5 = Enemy(0),Numhelper(3141592)
trigger6 = Enemy(0),Numhelper(1666661)
trigger7 = Enemy(0),Numhelper(6400000)
trigger8 = Enemy(0),Numhelper(6444444)
anim = 6002
ID = 44013
removetime = -1
ignorehitpause = 1

[State 190000, 上位のアーマーヘルパー情報を見つけた場合は下位の情報を削除1]
type = RemoveExplod
ID = 44011
triggerall = NumExplod(44011)
trigger1 = NumExplod(44012)
trigger2 = NumExplod(44013)
ignorehitpause = 1

[State 190000, 上位のアーマーヘルパー情報を見つけた場合は下位の情報を削除2]
type = RemoveExplod
ID = 44012
trigger1 = NumExplod(44012)
trigger1 = NumExplod(44013)
ignorehitpause = 1


[State 190000,間者取得フラグON]
Type       = Varset
Triggerall = PlayerIDexist(Parent,ID)
Triggerall = Parent,Teamside != Teamside
Trigger1   = Parent,Ishelper(989898)
V          = 21
Value      = (Var(21) | 1)
Ignorehitpause = 1

[State 190000,探査ヘルパーParentフラグON]
Type       = Varset
Triggerall = PlayerIDexist(Parent,ID)
Trigger1   = Parent,Ishelper(45001)
Trigger2   = Parent,Ishelper(45002)
Trigger3   = Parent,Ishelper(45003)
V          = 21
Value      = (Var(21) | 2)
Ignorehitpause = 1

[State 190000,探査ヘルパーTargetフラグON]
Type       = Varset
Triggerall = Numtarget
Trigger1   = Target,Ishelper(45001)
;Trigger1   = !Parent,Ishelper(45001)
Trigger1   = Var(21) := (Var(21) | 8)
Trigger2   = Target,Ishelper(45002)
;Trigger2   = !Parent,Ishelper(45002)
Trigger2   = Var(21) := (Var(21) | 16)
Trigger3   = Target,Ishelper(45003)
;Trigger3   = !Parent,Ishelper(45003)
Trigger3   = Var(21) := (Var(21) | 32)
V          = 21
Value      = (Var(21) | 4)
Ignorehitpause = 1


[State 190000,探査ヘルパーフラグOFF]
Type       = null;Varset
Triggerall = Numtarget
Trigger1   = !Target,Ishelper(45001)
Trigger1   = Parent,Ishelper(45001)
Trigger2   = !Target,Ishelper(45002)
Trigger2   = Parent,Ishelper(45002)
Trigger3   = !Target,Ishelper(45003)
Trigger3   = Parent,Ishelper(45003)
V          = 21
Value      = 0
Ignorehitpause = 1

[State 190000, ステートタイプ変更]
type = Statetypeset
triggerall = !(target,ishelper(45001) || target,ishelper(45002) || target,ishelper(45003))
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 190000, 親変更成功フラグリセット]
type = Varset
triggerall = name = "OROCHI G3"
triggerall = ishelper
trigger1 = !playerIDexist(parent,ID)
trigger2 = parent,name ="OROCHI G3"
trigger2 = parent,teamside = teamside	
sysvar(0) = (sysvar(0) & (1 ^ -1))
ignorehitpause = 1

[State 190000, 親変更用ステートへ]
type = SelfState
value = 190000
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = hitpausetime
triggerall = playerIDexist(parent,ID)
triggerall = !(sysvar(0) & 1)
trigger1 = prevstateno != 190000
trigger1 = prevstateno != 29961
persistent = 256
ignorehitpause = 1

[State 151, みらくる式アニメ記憶]
type = varset
triggerall = !sysfvar(2)
triggerall = numtarget
triggerall = Parent,ishelper
triggerall = Parent,sysfvar(2)
triggerall = parent,ishelper(989898)
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) = Parent,sysfvar(2)
ignorehitpause = 1

[State dist,デバッグ表示]
Trigger1 = ishelper
type = null;DisplayToClipboard
ignorehitpause = 1
text = "devilseyekiller = %d"
params = (sysvar(3))
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
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
var(23) = -1+random%2
triggerall = PlayerIDExist( Parent,ID )
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(4) = 890106
triggerall = Parent,name = "7L|]{(L2!"
;triggerall = (sysvar(0)&1)  ;親変更成功フラグ
trigger1 = 1;roundstate = [0,1]
ignorehitpause = 1

[State 151, 対欠損]
type = ParentVarSet
var(12) = gametime + 159357
triggerall = PlayerIDExist( Parent,ID )
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 = parent,ishelper(503)
trigger1 = Parent,name = "S_Remilia"
var(38) = 902
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 = (sysvar(0) & 1)
triggerall = parent,ishelper(4214)
trigger1 = parent,name = "Singularity"
var(16) = - 9999999999
ignorehitpause=1

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

[State 151, 対天魔]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = RoundState = 2
trigger1 = parent,name = "Tenma"
var(50) = -9999999999999
ignorehitpause = 1

[State 151, 対天魔]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = RoundState = 2
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)
triggerall = RoundState != 2
trigger1 = parent,name = "Tenma"
var(1) = gametime
ignorehitpause = 1

[State 151, 対Ｓ咲夜]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = parent,ishelper(3981341)
trigger1 = parent,name = "S_Sakuya"
var(3) = 9999999999999
ignorehitpause = 1

[State 151, 対Ｓ咲夜]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
triggerall = parent,ishelper(3981341)
trigger1 = parent,name = "S_Sakuya"
var(16) = 503503
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, 対おろりん11P]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
trigger1 = parent,name = "OrorinrinLand"
trigger1 = parent,authorname = "SAMSARA"
trigger1 = Enemy,palno = 11
var(3) = gametime
ignorehitpause = 1

[State 151, 準汎用]
type = null;Parentvarset
triggerall = !Root,sysvar(3) 
triggerall = playerIDexist(parent,ID)
triggerall = !parent,name = "Dies"
triggerall = parent,teamside != teamside
triggerall = (sysvar(0) & 1)
trigger1 = parent,ishelper(15000)
var(29) = gametime+129093012
ignorehitpause = 1

[State 151, 準汎用]
type = Parentvarset
triggerall = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
triggerall = !parent,name = "Dies"
triggerall = PlayerIDExist( Parent,ID )
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 = Root,sysvar(3) = [0,1000]
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 = Root,sysvar(3) = [0,1000]
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 = "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 = "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
;triggerall = Root,sysvar(3) = [0,1000]
trigger1=parent,ishelper(4343)
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
var(6)=60
ignorehitpause=1
[State 151, 準汎用]
type = ParentVarSet
;triggerall = Root,sysvar(3) = [0,1000]
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = Parent,IsHelper(97)
triggerall   = (sysvar(0) & 1)
trigger1 = 1
var(1) = 1
ignorehitpause = 1
[State 151, 準汎用]
type = ParentVarSet
var(4) = 890106
triggerall = Root,sysvar(3) = [0,1000]
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,IsHelper(6900)
trigger1   = (sysvar(0) & 1)
ignorehitpause = 1

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

[State 151, parent,stateno変数化、邪眼キラー範囲外]
type = Varset
triggerall = numtarget
triggerall = parent,ishelper
triggerall = parent,stateno != [0, 149]
triggerall = parent,stateno != [150,719]
triggerall = parent,stateno != [721,1004]
triggerall = parent,stateno != [1000,1007]
triggerall = parent,stateno != 1050
triggerall = parent,stateno != 1065
triggerall = parent,stateno != 1102
triggerall = parent,stateno != [1111, 1112]
triggerall = parent,stateno != 1116
triggerall = parent,stateno != 1200
triggerall = parent,stateno != 1202
triggerall = parent,stateno != 1300
triggerall = parent,stateno != 1302
triggerall = parent,stateno != 1350
triggerall = parent,stateno != 1400
triggerall = parent,stateno != [1410,1412]
triggerall = parent,stateno != 1450
triggerall = parent,stateno != 1500
triggerall = parent,stateno != 1510
triggerall = parent,stateno != [1600, 1602]
triggerall = parent,stateno != 1720
triggerall = parent,stateno != 1801
triggerall = parent,stateno != 2000
triggerall = parent,stateno != 2025
triggerall = parent,stateno != [2100, 2103]
triggerall = parent,stateno != 2105
triggerall = parent,stateno != [2200, 2206]
triggerall = parent,stateno != 2269
triggerall = parent,stateno != 2300
triggerall = parent,stateno != 2350
triggerall = parent,stateno != [2352, 2353]
triggerall = parent,stateno != [2355, 2356]
triggerall = parent,stateno != 2400
triggerall = parent,stateno != 2500
triggerall = parent,stateno != [2506, 2507]
triggerall = parent,stateno != 2600
triggerall = parent,stateno != 2611
triggerall = parent,stateno != 2901
triggerall = parent,stateno != 3002
triggerall = parent,stateno != 3041
triggerall = parent,stateno != 3052
triggerall = parent,stateno != 3059
triggerall = parent,stateno != 3185
triggerall = parent,stateno != 3403
triggerall = parent,stateno != [3920, 3921]
triggerall = parent,stateno != 3929
triggerall = parent,stateno != 3999
triggerall = parent,stateno != 4060
triggerall = parent,stateno != 4091
triggerall = parent,stateno != 4211
triggerall = parent,stateno != [4310, 4311]
triggerall = parent,stateno != [4330, 4331]
triggerall = parent,stateno != 4391
triggerall = parent,stateno != [4395, 4396]
triggerall = parent,stateno != 4510
triggerall = parent,stateno != 4512
triggerall = parent,stateno != [5000, 5001]
triggerall = parent,stateno != [5010, 5011]
triggerall = parent,stateno != 5020
triggerall = parent,stateno != 5030
triggerall = parent,stateno != 5035
triggerall = parent,stateno != 5040
triggerall = parent,stateno != 5050
triggerall = parent,stateno != [5070, 5071]
triggerall = parent,stateno != [5080, 5081]
triggerall = parent,stateno != 5101
triggerall = parent,stateno != 5110
triggerall = parent,stateno != [5120, 5150]
triggerall = parent,stateno != [5200, 5201]
triggerall = parent,stateno != 5210
triggerall = parent,stateno != 5500
triggerall = parent,stateno != 5600
triggerall = parent,stateno != 5788
triggerall = parent,stateno != [5789, 5790]
triggerall = parent,stateno != 5900
triggerall = parent,stateno != [6000, 6002]
triggerall = parent,stateno != [6010, 6012]
triggerall = parent,stateno != 6014
triggerall = parent,stateno != 6016
triggerall = parent,stateno != [6019, 6020]
triggerall = parent,stateno != [6024, 6027]
triggerall = parent,stateno != [6032, 6035]
triggerall = parent,stateno != 6100
triggerall = parent,stateno != 6301
triggerall = parent,stateno != 6306
triggerall = parent,stateno != 6540
triggerall = parent,stateno != 6789
triggerall = parent,stateno != 6900
triggerall = parent,stateno != 6920
triggerall = parent,stateno != 7000
triggerall = parent,stateno != [7040, 7047]
triggerall = parent,stateno != 7055
triggerall = parent,stateno != [7320, 7321]
triggerall = parent,stateno != [7326, 7327]
triggerall = parent,stateno != 7777
triggerall = parent,stateno != 7878
triggerall = parent,stateno != 8000
triggerall = parent,stateno != 8003
triggerall = parent,stateno != 8040
triggerall = parent,stateno != 8100
triggerall = parent,stateno != 8900
triggerall = parent,stateno != 9000
triggerall = parent,stateno != 9126
triggerall = parent,stateno != 9200
triggerall = parent,stateno != 9263
triggerall = parent,stateno != 9809
triggerall = parent,stateno != 9900
triggerall = parent,stateno != 9936
triggerall = parent,stateno != 9952
triggerall = parent,stateno != 9994
triggerall = parent,stateno != [10003, 10004]
triggerall = parent,stateno != 10012
triggerall = parent,stateno != 10015
triggerall = parent,stateno != 10101
triggerall = parent,stateno != 10504
triggerall = parent,stateno != 10651
triggerall = parent,stateno != [11001, 11004]
triggerall = parent,stateno != 11100
triggerall = parent,stateno != 11111
triggerall = parent,stateno != 11502
triggerall = parent,stateno != 11680
triggerall = parent,stateno != 11710
triggerall = parent,stateno != 11720
triggerall = parent,stateno != 11730
triggerall = parent,stateno != [12003, 12004]
triggerall = parent,stateno != 12310
triggerall = parent,stateno != 12345
triggerall = parent,stateno != 12500
triggerall = parent,stateno != 13000
triggerall = parent,stateno != 13050
triggerall = parent,stateno != 13100
triggerall = parent,stateno != 13200
triggerall = parent,stateno != 13500
triggerall = parent,stateno != [14000, 14002]
triggerall = parent,stateno != 16003
triggerall = parent,stateno != 18102
triggerall = parent,stateno != 19101
triggerall = parent,stateno != 20000
triggerall = parent,stateno != 20955
triggerall = parent,stateno != [22101, 22102]
triggerall = parent,stateno != 22122
triggerall = parent,stateno != 22222
triggerall = parent,stateno != 22224
triggerall = parent,stateno != 24601
triggerall = parent,stateno != 24610
triggerall = parent,stateno != 25544
triggerall = parent,stateno != 26320
triggerall = parent,stateno != 26485
triggerall = parent,stateno != [30000, 30004]
triggerall = parent,stateno != [30013, 30014]
triggerall = parent,stateno != [30020, 30021]
triggerall = parent,stateno != 31993
triggerall = parent,stateno != 32555
triggerall = parent,stateno != 37000
triggerall = parent,stateno != 40001
triggerall = parent,stateno != 40003
triggerall = parent,stateno != 40952
triggerall = parent,stateno != 43302
triggerall = parent,stateno != [43425, 43426]
triggerall = parent,stateno != 43655
triggerall = parent,stateno != 43705
triggerall = parent,stateno != 43708
triggerall = parent,stateno != 44488
triggerall = parent,stateno != 44900
triggerall = parent,stateno != 45755
triggerall = parent,stateno != 45999
triggerall = parent,stateno != 46060
triggerall = parent,stateno != 46965
triggerall = parent,stateno != 49933
triggerall = parent,stateno != 49943
triggerall = parent,stateno != 50000
triggerall = parent,stateno != [50505, 50506]
triggerall = parent,stateno != [51515, 51518]
triggerall = parent,stateno != 55555
triggerall = parent,stateno != 58901
triggerall = parent,stateno != 60000
triggerall = parent,stateno != 60050
triggerall = parent,stateno != 60315
triggerall = parent,stateno != 61000
triggerall = parent,stateno != 64000
triggerall = parent,stateno != 65000
triggerall = parent,stateno != 65500
triggerall = parent,stateno != 65530
triggerall = parent,stateno != 70000
triggerall = parent,stateno != 70100
triggerall = parent,stateno != 70200
triggerall = parent,stateno != 80000
triggerall = parent,stateno != 84555
triggerall = parent,stateno != 88885
triggerall = parent,stateno != 88887
triggerall = parent,stateno != 90000
triggerall = parent,stateno != [99919, 99920]
triggerall = parent,stateno != [99999, 100000]
triggerall = parent,stateno != 100002
triggerall = parent,stateno != 111222
triggerall = parent,stateno != 112235
triggerall = parent,stateno != 112240
triggerall = parent,stateno != 112250
triggerall = parent,stateno != 126100
triggerall = parent,stateno != 169990
triggerall = parent,stateno != 170000
triggerall = parent,stateno != 180002
triggerall = parent,stateno != 200000
triggerall = parent,stateno != 300000
triggerall = parent,stateno != 301050
triggerall = parent,stateno != 310120
triggerall = parent,stateno != 313900
triggerall = parent,stateno != 400000
triggerall = parent,stateno != 450000
triggerall = parent,stateno != 500000
triggerall = parent,stateno != 500033
triggerall = parent,stateno != 600000
triggerall = parent,stateno != 649999
triggerall = parent,stateno != 700000
triggerall = parent,stateno != [741003, 741004]
triggerall = parent,stateno != [800000,800001]
triggerall = parent,stateno != 900000
triggerall = parent,stateno != 910010
triggerall = parent,stateno != 1000000
triggerall = parent,stateno != 1168000
triggerall = parent,stateno != 1699922
triggerall = parent,stateno != 2000000
triggerall = parent,stateno != 3000000
triggerall = parent,stateno != 4000000
triggerall = parent,stateno != 5000000
triggerall = parent,stateno != [5000005, 5000006]
triggerall = parent,stateno != 5000010
triggerall = parent,stateno != 5000025
triggerall = parent,stateno != 5000052
triggerall = parent,stateno != 5000058
triggerall = parent,stateno != [5000070, 5000072]
triggerall = parent,stateno != 5000080
triggerall = parent,stateno != 5000085
triggerall = parent,stateno != 5000090
triggerall = parent,stateno != 5000095
triggerall = parent,stateno != 5000333
triggerall = parent,stateno != 6000000
triggerall = parent,stateno != 6400000
triggerall = parent,stateno != 7000000
triggerall = parent,stateno != 8000000
triggerall = parent,stateno != 9000000
triggerall = parent,stateno != 10000000
triggerall = parent,stateno != 20000000
triggerall = parent,stateno != [21360897, 21360898]
triggerall = parent,stateno != 22222222
triggerall = parent,stateno != 30000000
triggerall = parent,stateno != 40000000
triggerall = parent,stateno != 50000000
triggerall = parent,stateno != 60000000
triggerall = parent,stateno != 70000000
triggerall = parent,stateno != 80000000
triggerall = parent,stateno != 90000000
triggerall = parent,stateno != 100000000
triggerall = parent,stateno != 200000000
triggerall = parent,stateno != 300000000
triggerall = parent,stateno != 400000000
triggerall = parent,stateno != 500000000
triggerall = parent,stateno != 555555557
triggerall = parent,stateno != 600000000
triggerall = parent,stateno != 700000000
triggerall = parent,stateno != 800000000
triggerall = parent,stateno != 900000000
triggerall = parent,stateno != 987654321
triggerall = parent,stateno != 1000000000
triggerall = parent,stateno != 1100000000
triggerall = parent,stateno != 1200000000
triggerall = parent,stateno != 1300000000
triggerall = parent,stateno != 1400000000
triggerall = parent,stateno != 1500000000
triggerall = parent,stateno != 1600000000
triggerall = parent,stateno != 1700000000
triggerall = parent,stateno != 1800000000
triggerall = parent,stateno != 1900000000
triggerall = parent,stateno != 2000000000
triggerall = parent,stateno != 2100000000
triggerall = parent,stateno != 2147483647
triggerall = parent,stateno != 45000
triggerall = parent,stateno != 288888
triggerall = parent,stateno != 58010
triggerall = parent,stateno != [220000,220005]
triggerall = parent,stateno != 123456789
triggerall = parent,stateno != [19020,19024]
triggerall = parent,stateno != [15000,15003]
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 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) ;!= 0
trigger1 = !root,numprojid(55555)
projid = 55555
projanim = 6002
projremove = 0
projedgebound = 2000000000
projstagebound = 2000000000
projheightbound = -2000000000,2000000000
persistent = 256
ignorehitpause = 1
[State 151,Hitbyステート取得用]
Type       = Projectile
Triggerall = Roundstate = 2
Triggerall = Numtarget
Trigger1   = !Parent,Ishelper(45001)
Trigger1   = Target,Ishelper(45001)
Trigger2   = !Parent,Ishelper(45002)
Trigger2   = Target,Ishelper(45002)
Trigger3   = !Parent,Ishelper(45003)
Trigger3   = Target,Ishelper(45003)
Attr       = SCA,AA,AT,AP,SA,ST,SP,NA,NT,NP,HA,HT,HP
Hitflag    = MAFDLP
Guradflag  = 
Getpower   = 0,0
Givepower  = 0,0
Sparkno    = -1
Sparkxy    = 999,999
Hitsound   = -1,0
Guardsound = -1,0
Priority   = 7,Hit
Damage     = 10,10
ProjID     = 1992936
Postype    = Left
Offset     = (Target,Pos X),(Target,Pos Y)
Projremove      = 0
Projremovetime  = 2
Projhits        = 1
Projpriority    = 2147483647
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Projanim        = 100005
Supermovetime   = 2147483647
Pausemovetime   = 2147483647
Ignorehitpause  = 1
[State 151, 対鬼巫女R]
type=targetstate
trigger1 = Parent,name="ONI-MIKO-REIMU"&&Parent,SelfAnimExist(13000)
trigger1 = roundstate<3
trigger1 = !Parent,ishelper(3)
trigger1 = !Parent,ishelper(2)
trigger1 = !target,ishelper(3)
trigger1 = !target,ishelper(2)
value = 19500
ignorehitpause = 1
[State 151, 対アーシェット]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = target,ishelper
triggerall = !target,ishelper(3623605)
triggerall = !Parent,ishelper(3623605)
trigger1= enemynear,name ="assiette"
value = 45000
ignorehitpause = 1
[State 151, 対コンナハズハー]
type = Targetstate
triggerall = ishelper
triggerall = numtarget
triggerall = Parent,ishelper
triggerall = roundstate = 2
trigger1= enemynear,authorname = "SAMSARA" && enemynear,name = "Krizalid"
value = 85151
ignorehitpause = 1

[State 151, 習得ステート飛ばし]
type = Targetstate
triggerall = !(enemynear,name = "Dies")
triggerall = !(enemynear,name = "assiette")
triggerall = !(enemynear,name = "AhojinGod")
triggerall = !(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = !(enemynear,authorname = "SAMSARA" && enemynear,name = "Krizalid")
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,ishelper(45001)||!Parent,ishelper(45002)||!Parent,ishelper(45003) 
triggerall = root,anim != [2720,2721]
triggerall = (root,sysvar(3) = [0,20000]) 
triggerall = enemynear,name !="Mirage" 
triggerall = enemynear,name !="AxAyAzSSX"
trigger1 = roundstate != 2
trigger1 = !Enemy,numhelper(989898)
trigger2 = root,anim = 2001 || root,anim = 2301
trigger3 = (root,sysvar(3) = [0,20000]) 
trigger3 = !Enemy,numhelper(989898) ;間者を取れていなかった場合は常時
trigger4 = (root,sysvar(3) = [1,3300]);アーマー拉致実行時間 
trigger5 = Root,sysvar(3)%600 > 299
trigger5 = Enemy,numhelper(989898) ;間者を取れているときは常時混線を避けておく
value = var(55)
ignorehitpause = 1
[State 151,探査ヘルパーステート飛ばし]
Type       = Targetstate
;triggerall = !Parent,name = "Tenma"
triggerall = !parent,ishelper(989898)
Trigger1   = 0;(Var(21) & 2)
Trigger1   = !(Parent,Stateno = 45000 || Parent,Stateno = 45600)
Trigger1   = parent,ishelper(45001) || parent,ishelper(45002) || parent,ishelper(45003)
Trigger2   = (Var(21) & 4)
Trigger2   = target,ishelper(45001) || target,ishelper(45002) || target,ishelper(45003)
Trigger2   = !(Target,Stateno = 45000 || Target,Stateno = 45600)
Value      = 45000
Ignorehitpause = 1

[State 151, 習得ステート飛ばし]
type = Targetstate
;triggerall = !Parent,name = "Tenma"
triggerall = parent,ishelper(989898)
trigger1 = 1
value = 45000
ignorehitpause = 1

[State , ヘルパー消去]
type = Destroyself
trigger1 = (enemynear,name = "Singular"&&enemy,numhelper(4343))
ignorehitpause = 1
[State 151,逆混線は探査情報取得を行う]
Type       = Selfstate
triggerall = !target,ishelper(989898)
triggerall = Numtarget
Trigger1   = Ishelper(190021)
Value      = 45100
Persistent = 256
Ignorehitpause = 1
[State 151,探査情報取得]
Type       = Selfstate
triggerall = !target,ishelper(989898)
;triggerall = target,ishelper(45001) || target,ishelper(45002) || target,ishelper(45003)
Trigger1   = (Var(21) & 4)
Value      = 45100
Persistent = 256
Ignorehitpause = 1
[State 190000, ステート変更 - GameTime変数感知ステート]
type = null;SelfState
triggerall = !target,ishelper(989898)
;triggerall = !Parent,name = "Tenma"
triggerall = !parent,name = "Dies"
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,name = "S_Remilia"
triggerall = IsHelper(190000)
triggerall = numtarget		;ターゲットを取得
trigger1   = PrevStateNo != 16110	;GameTime変数感知ステート
trigger1   = PrevStateNo != [16103,16107]
trigger1   = PrevStateNo != 190000
value = 16110
persistent = 256
ignorehitpause = 1


[State 151,ステート変更 : ParentのHelperID取得]
Type       = null;Selfstate
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Trigger1   = PlayerIDexist(Var(22))
Value      = 45500
Persistent = 256
Ignorehitpause = 1

[State 151, ステート変更 - 親変数保存]
type = SelfState
triggerall = !parent,name = "Dies"
triggerall= !(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = !(enemynear,name="ONI-MIKO-REIMU"&&parent,selfanimexist(19090))
triggerall= !(enemynear,authorname = "SAMSARA" && enemynear,name = "Krizalid")
triggerall = enemynear,name !="AxAyAzSSX"
triggerall = !Parent,ishelper(989898)
triggerall = !Parent,name = "S_Sakuya"
triggerall = !Parent,name = "Tenma"
triggerall = !Parent,name = "S_Remilia"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = PrevStateNo != [16104,16107]
triggerall = !Parent,Name = "Hinako Shijo"
triggerall = !Parent,Name = "Rion"
;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


;------------------------------------------------------------------
;混線 : ParentのHelperID取得ステート

[Statedef 45500]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1

[State ,ステート変更 : 自キャラ以外]
Type       = Changestate
Trigger1   = Name != "OROCHI G3"
Value      = 45000
Persistent = 256
Ignorehitpause = 1

[State 45500,リセット]
Type       = Varset
Trigger1   = Var(15) != [0,2147483647]
Trigger2   = !PlayerIDexist(Var(22))
Trigger3   = Var(22) <= 0
V          = 15
Value      = 0
Ignorehitpause = 1

[State 45500,TargetのHelperID保存]
Type       = Null
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15) * Root,Var(16) * Root,Var(17))
Triggerall = PlayerIDexist(Var(22))
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Trigger1   = !PlayerID(Var(22)),Ishelper(Var(15) := Var(15) + 1)
Ignorehitpause = 1

[State 45500,ヘルパーID記憶]
Type       = Null
Triggerall = Numenemy = 1
Trigger1   = Enemy(0),Numhelper(154)
Trigger1   = 0 && Var(16) := 155
Trigger2   = Enemy(0),Numhelper(450000)
Trigger2   = 0 && Var(16) := 450001
Trigger3   = Enemy(0),Numhelper(450001)
Trigger3   = 0 && Var(16) := 450001
Trigger4   = Enemy(0),Numhelper(3141592)
Trigger4   = 0 && Var(16) := 3141592
Trigger5   = Enemy(0),Numhelper(1666661)
Trigger5   = 0 && Var(16) := 1666661
Trigger6   = Enemy(0),Numhelper(6400000)
Trigger6   = 0 && Var(16) := 6400000
Trigger7   = Enemy(0),Numhelper(6444444)
Trigger7   = 0 && Var(16) := 6444444
Ignorehitpause = 1

[State 45500,TargetのHelperID保存]
Type       = Null
Triggerall = PlayerIDexist(Var(22))
Triggerall = PlayerID(Var(22)),Ishelper(Var(15))
Trigger1   = !Root,Var(13)
Trigger1   = Var(16) := Var(15)
Trigger2   = Root,Var(13) && !Root,Var(14)
Trigger2   = !PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger2   = Var(17) := Var(15)
Trigger3   = Root,Var(14) && !Root,Var(15)
Trigger3   = !PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger3   = !PlayerID(Var(22)),Ishelper(Root,Var(14))
Trigger3   = Var(18) := Var(15)
Trigger4   = Root,Var(15) && !Root,Var(16)
Trigger4   = !PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger4   = !PlayerID(Var(22)),Ishelper(Root,Var(14))
Trigger4   = !PlayerID(Var(22)),Ishelper(Root,Var(15))
Trigger4   = Var(19) := Var(15)
Trigger5   = Root,Var(16) && !Root,Var(17)
Trigger5   = !PlayerID(Var(22)),Ishelper(Root,Var(13))
Trigger5   = !PlayerID(Var(22)),Ishelper(Root,Var(14))
Trigger5   = !PlayerID(Var(22)),Ishelper(Root,Var(15))
Trigger5   = !PlayerID(Var(22)),Ishelper(Root,Var(16))
Trigger5   = Var(20) := Var(15)
Ignorehitpause = 1

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


;探査情報取得ステート
[Statedef 45100]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1

[State ,ステート変更 : 自キャラ以外]
Type       = Changestate
Trigger1   = Name != "OROCHI G3"
Value      = 45000
Persistent = 256
Ignorehitpause = 1

[State 190000, ステートタイプ変更]
type = Statetypeset
trigger1 = 1
movetype = I
ignorehitpause = 1


[State 190000,]
type = Reversaldef
triggerall = NumTarget 
trigger1 = 1
numhits = 0
reversal.attr = SCA, AA, AT, AP
pausetime = 0, 0
sparkno = -1
guard.sparkno = -1
ignorehitpause = 1


[State 151, みらくる式アニメ記憶]
type = varset
triggerall = !sysfvar(2)
triggerall = numtarget
triggerall = Parent,ishelper
triggerall = Parent,sysfvar(2)
triggerall = parent,ishelper(989898)
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) = Parent,sysfvar(2)
ignorehitpause = 1

[State 45100,探査ヘルパーID取得]
Type       = Varset
Trigger1   = 1;(Var(21) & 4)
V          = 24
Value      = Target,ID
Ignorehitpause = 1

[State 45100,探査 : 開始の合図]
Type       = null;Projectile
Triggerall = (Var(21) & 8)
Triggerall = Roundstate = 2
Triggerall = PlayerIDexist(Root,Var(6))
;Triggerall = Enemy(0),NumprojID(1995006)
Trigger1   = Target,Hitpausetime > 0
Trigger1   = Target,Stateno = PlayerID(Root,Var(6)),Var(7)
Trigger2   = Target,Ishelper(45001) || Target,Ishelper(45002)
Trigger2   = Target,Stateno = 45000 || Target,Stateno = 45600
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992930
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 6002
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 45100,探査 : 回避ステート感知]
Type       = Projectile
;Triggerall = (Var(21) & 8)
Triggerall = !(Target,Stateno = 45000 || Target,Stateno = 45600 || Target,Stateno = 7878787878)
Triggerall  = Target,Ishelper(45001) || Target,Ishelper(45002);Target,Ishelper(45001)
Triggerall = PlayerIDexist(Root,Var(6))
Trigger1   = Target,Hitpausetime != Var(23)
Trigger2   = Target,Time > 2
Trigger3   = Target,Palno != 1
Trigger4   = !(Target,Movetype = A || Target,Movetype = I || Target,Movetype = H)
Trigger5   = !(Target,Statetype = A || Target,Statetype = S || Target,Statetype = C || Target,Statetype = L)
Trigger6   = Target,Alive != 1
Trigger7   = Target,Stateno != PlayerID(Root,Var(6)),Var(7)
;Trigger7   = Target,Stateno != 45000 
;Trigger7   = Target,Stateno != 45600 
;Trigger7   = Target,Stateno != 7878787878
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992940
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 100010
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 45100,探査 : ライフ減少ステート感知]
Type       = Projectile
Triggerall = (Var(21) & 48)
;Triggerall  = Target,Ishelper(45001) || Target,Ishelper(45002);Target,Ishelper(45001)
Triggerall = PlayerIDexist(Root,Var(6))
Trigger1   = Target,Life < Target,Lifemax
Trigger1   = Target,Stateno = 45000 || Target,Stateno = 45600
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992941
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 100010
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 45100,探査 : Hitdefステート感知]
Type       = Projectile
Triggerall = (Var(21) & 48)
Triggerall = PlayerIDexist(Root,Var(6))
Trigger1   = Target,Hitdefattr = SCA,AA,AP,AT
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992942
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 100010
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 45100,探査 : Hitbyステート感知]
Type       = Projectile
Triggerall = (Var(21) & 48)
Triggerall = PlayerIDexist(Root,Var(6))
;Trigger1   = Target,Gethitvar(Damage)
Trigger1   = Target,Numexplod(45600)
;Trigger1   = Target,Stateno = 45000 || Target,Stateno = 45600
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992943
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 100010
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 45100,比較用記憶]
Type       = Null
;Triggerall = (Var(21) & 8)
;Triggerall   = Target,Ishelper(45001)
;Triggerall   = !Parent,Ishelper(45001)
Trigger1   = Var(23) := Target,Hitpausetime - 1
Ignorehitpause = 1

[State 45100,デバッグ : 探査基本情報]
Type       = Displaytoclipboard
Trigger1   = 1;(Var(21) & 4)
Text       = "Tansa=%d,T-SN1=%d,T-SN2=%d,T-HP1=%d,T-HP2=%d\n"
Params     = (Enemy,NumprojID(1995006)),(Target,Stateno),(PlayerID(Root,Var(6)),Var(7)),(Target,Hitpausetime),Var(23)
Ignorehitpause = 1

[State 45100,デバッグ : 探査回避ステート]
Type       = Appendtoclipboard
Trigger1   = 1;(Var(21) & 4)
Text       = "A=%d,B=%d,C=%d,D=%d,E=%d"
Params     = Floor(PlayerID(Root,Var(6)),Fvar(39)),Floor(PlayerID(Root,Var(6)),Fvar(38)),Floor(PlayerID(Root,Var(6)),Fvar(37)),Floor(PlayerID(Root,Var(6)),Fvar(36)),Floor(PlayerID(Root,Var(6)),Fvar(35))
Ignorehitpause = 1

[State 45100,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Target,Ishelper(45001) || Target,Ishelper(45002) || Target,Ishelper(45003)|| Target,Ishelper(989898))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
Ignorehitpause = 1

[State 45100,ステート変更 : 混線タゲステ]
Type       = null;Selfstate
Trigger1   = 1
Value      = 190001
Persistent = 256
Ignorehitpause = 1

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

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

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


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


[State 16000, 本体保険]
type = SelfState
trigger1 = !IsHelper
value = 702
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 = varadd
trigger1 = ishelper
sysvar(3) = 1
ignorehitpause = 1

[State 190200]
type = Changestate
trigger1 = !ishelper
trigger2 = name != "OROCHI G3"
value = 45000
ignorehitpause = 1
[State 190200]
type = Hitby
triggerall = RoundState = [0,1]
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,SA 
ignorehitpause = 1

[State 190200]
type = NotHitby
triggerall = RoundState != [0,1]
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

[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
;triggerall = Anim != 9501
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
triggerall   = sysvar(3) >= 15
trigger1   = 0;Enemy,name != "Hastur"
;trigger1   = Enemy,name != "manny"
trigger1   = IsHelper(190200)
trigger1   = NumHelper(190000)
trigger1   = Helper(190000),NumTarget = 1
trigger1   = Helper(190001),NumTarget = 2
trigger2   = 0;Enemy,name != "manny"
;trigger2   = Enemy,name != "Hastur"
trigger2   = IsHelper(190201)
trigger2   = NumHelper(190001)
trigger2   = Helper(190001),NumTarget = 2
trigger3   = 0;Enemy,name != "manny"
;trigger3   = Enemy,name != "Hastur"
trigger3   = IsHelper(190202)
trigger3   = NumHelper(190002)
trigger3   = Helper(190002),NumTarget = 2
trigger4   = IsHelper(190203)
trigger4   = NumHelper(190003)
trigger4   = Helper(190003),NumTarget = 2
trigger5   = IsHelper(190204)
trigger5   = NumHelper(190004)
trigger5   = Helper(190004),NumTarget = 2
trigger6   = IsHelper(190205)
trigger6   = NumHelper(190005)
trigger6   = Helper(190005),NumTarget = 2
trigger7   = IsHelper(190206)
trigger7   = NumHelper(190006)
trigger7   = Helper(190006),NumTarget = 2
trigger8   = IsHelper(190207)
trigger8   = NumHelper(190007)
trigger8   = Helper(190007),NumTarget = 2
trigger9   = IsHelper(190208)
trigger9   = NumHelper(190008)
trigger9   = Helper(190008),NumTarget = 2
trigger10  = IsHelper(190209)
trigger10  = NumHelper(190009)
trigger10  = Helper(190009),NumTarget = 2
trigger11  = IsHelper(190210)
trigger11  = NumHelper(190010)
trigger11  = Helper(190010),NumTarget = 2
trigger12  = IsHelper(190211)
trigger12  = NumHelper(190011)
trigger12  = Helper(190011),NumTarget = 2
trigger13  = IsHelper(190212)
trigger13  = NumHelper(190012)
trigger13  = Helper(190012),NumTarget = 2
trigger14  = IsHelper(190213)
trigger14  = NumHelper(190013)
trigger14  = Helper(190013),NumTarget = 2
trigger15  = IsHelper(190214)
trigger15  = NumHelper(190014)
trigger15  = Helper(190014),NumTarget = 2
trigger16  = IsHelper(190215)
trigger16  = NumHelper(190015)
trigger16  = Helper(190015),NumTarget = 2
trigger17  = IsHelper(190216)
trigger17  = NumHelper(190016)
trigger17  = Helper(190016),NumTarget = 2
trigger18  = IsHelper(190217)
trigger18  = NumHelper(190017)
trigger18  = Helper(190017),NumTarget = 2
trigger19  = IsHelper(190218)
trigger19  = NumHelper(190018)
trigger19  = Helper(190018),NumTarget = 2
trigger20  = IsHelper(190219)
trigger20  = NumHelper(190019)
trigger20  = Helper(190019),NumTarget = 2
trigger21  = IsHelper(190220)
trigger21  = NumHelper(190020)
trigger21  = Helper(190020),NumTarget = 2
trigger21  = Helper(190021),NumTarget = 1
;trigger22  = IsHelper(190221)
;trigger22  = NumHelper(190021)
;trigger22  = Helper(190021),NumTarget = 2
;trigger23  = IsHelper(190222)
;trigger23  = NumHelper(190022)
;trigger23  = Helper(190022),NumTarget = 2
;trigger24  = IsHelper(190222)
;trigger24  = NumHelper(190023)
;trigger24  = Helper(190023),NumTarget = 1
value = 1111111
ignorehitpause = 1

[State -2, ヘルパー消去]
type = DestroySelf
trigger1   = Root,Var(13) > 0
trigger1   = IsHelper(190200)
trigger1   = NumHelper(190000)
trigger1   = Helper(190000),NumTarget = 1
trigger1   = Helper(190001),NumTarget = 2
trigger2   = Root,Var(14) > 0
trigger2   = IsHelper(190201)
trigger2   = NumHelper(190001)
trigger2   = Helper(190001),NumTarget = 2
trigger3   = Root,Var(15) > 0
trigger3   = IsHelper(190202)
trigger3   = NumHelper(190002)
trigger3   = Helper(190002),NumTarget = 2
trigger4   = Root,sysvar(3) > 5000
triggerall   = IsHelper(190200) || IsHelper(190201) || IsHelper(190202)
triggerall   = enemy,numhelper(989898) != 0
triggerall = Roundstate = 2		
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, 混線,親変更用ヘルパー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 = 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 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 = null;Nothitby
triggerall = NumTarget = 1
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


[State , ヘルパー消去]
type = Destroyself
trigger1 = (enemynear,name = "Singular"&&enemy,numhelper(4343))
ignorehitpause = 1
;--------------------------------------------------------------------------------------------------
;  <親変更ヘルパー> GameTime式ステート抜け貫通ステート

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

[State 16104, 敵監視]
type = ChangeState
trigger1 = Name != "OROCHI G3"
value = 45000	;超即死投げステート
persistent = 256
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貫通砲1]
Type       = Parentvarset
Triggerall = Var(10) := Gametime + (Parent,Movetype = A)
Triggerall = PlayerIDexist(Root,Var(10))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(10)),Var(51) + PlayerID(Root,Var(10)),Var(50) + PlayerID(Root,Var(10)),Var(49) + PlayerID(Root,Var(10)),Var(48)
V          = PlayerID(Root,Var(10)),Var(48)
Value      = PlayerID(Root,Var(10)),Var(51)*Var(10)*Var(10) + PlayerID(Root,Var(10)),Var(50)*Var(10) + PlayerID(Root,Var(10)),Var(49)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲2]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(10))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(10)),Var(47) + PlayerID(Root,Var(10)),Var(46) + PlayerID(Root,Var(10)),Var(45) + PlayerID(Root,Var(10)),Var(44)
V          = PlayerID(Root,Var(10)),Var(44)
Value      = PlayerID(Root,Var(10)),Var(47)*Var(10)*Var(10) + PlayerID(Root,Var(10)),Var(46)*Var(10) + PlayerID(Root,Var(10)),Var(45)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲3]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(10))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(10)),Var(43) + PlayerID(Root,Var(10)),Var(42) + PlayerID(Root,Var(10)),Var(41) + PlayerID(Root,Var(10)),Var(40)
V          = PlayerID(Root,Var(10)),Var(40)
Value      = PlayerID(Root,Var(10)),Var(43)*Var(10)*Var(10) + PlayerID(Root,Var(10)),Var(42)*Var(10) + PlayerID(Root,Var(10)),Var(41)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲4]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(10))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(10)),Var(39) + PlayerID(Root,Var(10)),Var(38) + PlayerID(Root,Var(10)),Var(37) + PlayerID(Root,Var(10)),Var(36)
V          = PlayerID(Root,Var(10)),Var(36)
Value      = PlayerID(Root,Var(10)),Var(39)*Var(10)*Var(10) + PlayerID(Root,Var(10)),Var(38)*Var(10) + PlayerID(Root,Var(10)),Var(37)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲5]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(10))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(10)),Var(35) + PlayerID(Root,Var(10)),Var(34) + PlayerID(Root,Var(10)),Var(33) + PlayerID(Root,Var(10)),Var(32)
V          = PlayerID(Root,Var(10)),Var(32)
Value      = PlayerID(Root,Var(10)),Var(35)*Var(10)*Var(10) + PlayerID(Root,Var(10)),Var(34)*Var(10) + PlayerID(Root,Var(10)),Var(33)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲6]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(7))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(7)),Var(51) + PlayerID(Root,Var(7)),Var(50) + PlayerID(Root,Var(7)),Var(49) + PlayerID(Root,Var(7)),Var(48)
V          = PlayerID(Root,Var(7)),Var(48)
Value      = PlayerID(Root,Var(7)),Var(51)*Var(10)*Var(10) + PlayerID(Root,Var(7)),Var(50)*Var(10) + PlayerID(Root,Var(7)),Var(49)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲7]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(7))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(7)),Var(47) + PlayerID(Root,Var(7)),Var(46) + PlayerID(Root,Var(7)),Var(45) + PlayerID(Root,Var(7)),Var(44)
V          = PlayerID(Root,Var(7)),Var(44)
Value      = PlayerID(Root,Var(7)),Var(47)*Var(10)*Var(10) + PlayerID(Root,Var(7)),Var(46)*Var(10) + PlayerID(Root,Var(7)),Var(45)
Ignorehitpause = 1

[State 16104,親変更Gametime貫通砲8]
Type       = Parentvarset
Triggerall = PlayerIDexist(Root,Var(7))
;Triggerall = roundstate > 1
Trigger1   = PlayerID(Root,Var(7)),Var(43) + PlayerID(Root,Var(7)),Var(42) + PlayerID(Root,Var(7)),Var(41) + PlayerID(Root,Var(7)),Var(40)
V          = PlayerID(Root,Var(7)),Var(40)
Value      = PlayerID(Root,Var(7)),Var(43)*Var(10)*Var(10) + PlayerID(Root,Var(7)),Var(42)*Var(10) + PlayerID(Root,Var(7)),Var(41)
Ignorehitpause = 1




[State 151,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Target,Ishelper(45001) || Target,Ishelper(45002) || Target,Ishelper(45003)|| Target,Ishelper(989898))
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
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 != "OROCHI G3"
value = 45000	;超即死投げステート
persistent = 256
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
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 151,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Target,Ishelper(45001) || Target,Ishelper(45002) || Target,Ishelper(45003)|| Target,Ishelper(989898))
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
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 != "OROCHI G3"
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,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "Hinako Shijo" || Parent,Name = "Rion"
trigger1 = 1
ignorehitpause = 1

[State 16106, 親の変数を弄る]
type = ParentVarSet
triggerall = enemy,alive&&enemy(numenemy>1),alive
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0) & 1)
triggerall = sysvar(4) = [1,230]	;変数弄り開始からの時間
trigger1   = sysvar(3) = [0,59]		
var(sysvar(3)) = ifelse( random%6, ifelse( random%5, ifelse( random%4, ifelse( random%3, ifelse( random%2, 1, (256*256*256*128-1) ), Parent,LifeMax ), random*random*random ), 0 )*((random%2)*2-1), sysvar(2) )
ignorehitpause = 1

[State 16106, 親の変数を弄る]
type = ParentVarSet
triggerall = enemy,alive&&enemy(numenemy>1),alive
triggerall = !Parent,name = "S_Sakuya"
triggerall = PlayerIDExist(Parent,ID)
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, (256*256*256*128-1) ), Parent,LifeMax ), random*random*random ), 0 )*((random%2)*2-1), sysvar(2) ), cos(9.9**99) )
ignorehitpause = 1

[State 16106, 対S咲夜]
type = ParentVarSet
var(3) = 999999999999999
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "S_Sakuya"
triggerall = Parent,IsHelper(3981341)
trigger1 = 1
ignorehitpause = 1

[State 16106, 対S咲夜]
type = ParentVarSet
var(16) = 503503
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)  ;親変更成功フラグ
triggerall = Parent,Name = "S_Sakuya"
triggerall = Parent,IsHelper(3981341)
trigger1 = 1
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
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 151,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Target,Ishelper(45001) || Target,Ishelper(45002) || Target,Ishelper(45003)|| Target,Ishelper(989898))
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
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 != "OROCHI G3"
value = 19000	;超即死投げステート
persistent = 256
ignorehitpause = 1

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

[State 16107, 親の変数を修復]
type = ParentVarSet
triggerall = PlayerIDExist(Parent,ID)
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,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
trigger1   = (sysvar(0) & 1)
persistent = 256
value = 16104
ignorehitpause = 1

[State 151,ステート変更 : ParentのHelperID取得]
Type       = Selfstate
Triggerall = !(Target,Ishelper(45001) || Target,Ishelper(45002) || Target,Ishelper(45003)|| Target,Ishelper(989898))
Triggerall = !(Root,Var(13) * Root,Var(14) * Root,Var(15))
Triggerall   = PlayerIDexist(Var(22))
trigger1 = NumExplod(44011)
trigger2 = NumExplod(44012)
trigger3 = NumExplod(44013)
;trigger4 = Root,sysvar(3) > 4000
Value      = 45500
Persistent = 256
Ignorehitpause = 1

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

;--------------------------------------------------------------------------------------------------
;  <並列混線ヘルパー1> GameTime変数感知ステート

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

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

[State 16110, 永続ターゲット]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
ignorehitpause = 1

[State 16110, GameTimeを変数に保存]
type = Null
trigger1 = var(0) := GameTime
trigger1 = var(1) := Enemy(0),var(var(4))
ignorehitpause = 1

[State 16110, 2F目の調査中変数保存]
type = VarSet
triggerall = var(0)			;GameTimeを保存
trigger1   = GameTime = var(0) + 1	;調査開始から2F目
var(2) = Enemy(0),var(var(4))
ignorehitpause = 1

[State 16110, 1F目と2F目の変数が同じなら調査]
type = ChangeState
triggerall = var(0)
triggerall = GameTime = var(0) + 1
triggerall = var(1) = var(2)		;1F目と2F目の変数が同じ
triggerall = var(0) := 0 || 1		;調査に使用した変数を初期化
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
trigger1   = ifelse(var(4) < 59,var(4) + 1,0) || 1	;次に調査する変数
value = StateNo						;ループ
persistent = 256
ignorehitpause = 1


[State 16110, 3F目の調査中変数保存]
type = VarSet
triggerall = var(0)
trigger1   = GameTime = var(0) + 2	;調査開始から3F目
var(3) = Enemy(0),var(var(4))
ignorehitpause = 1


[State 16110, 1F~3F目の変数のどれかが同じなら調査]
type = ChangeState
triggerall = var(0)
triggerall = GameTime = var(0) + 2
triggerall = var(1) = var(2) || var(1) = var(3) || var(2) = var(3)
triggerall = var(0) := 0 || 1		;調査に使用した変数を初期化
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
trigger1   = ifelse(var(4) < 59,var(4) + 1,0) || 1	;次に調査する変数
value = StateNo						;ループ
persistent = 256
ignorehitpause = 1


[State 16110, 2次関数のa,b,cを得る]
type = Null
triggerall = var(0)
triggerall = GameTime = var(0) + 2
triggerall = var(5) := Floor((var(1) - 2 * var(2) + var(3)) / 2 ) || 1
triggerall = var(6) := var(2) - var(1) - var(5) * (2 * var(0) + 1) || 1
trigger1   = var(7) := var(1) - var(5) * var(0) * var(0) - var(6) * var(0)
ignorehitpause = 1

[State 16110, 計算式が正しくなかったら次の変数を調査]
type = ChangeState
triggerall = var(0)
triggerall = var(5) || var(6) || var(7)
triggerall = GameTime <= var(0) + 10
triggerall = Enemy(0),var(var(4)) != var(5) * GameTime * GameTime + var(6) * GameTime + var(7)
triggerall = var(0) := 0 || 1	;調査に使用した変数を初期化
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
triggerall = var(4) := ifelse(var(4) < 59,var(4) + 1,0) || 1	;次に調査する変数
triggerall = var(5) := 0 || 1
triggerall = var(6) := 0 || 1
trigger1   = var(7) := 0 || 1
value = StateNo							;ループ
persistent = 256
ignorehitpause = 1

[State 16110, 正しかったら次の変数を調査2]
type = ChangeState
triggerall = var(0)
triggerall = var(5) || var(6) || var(7)
triggerall = GameTime = var(0) + 10
triggerall = !(var(30) || var(31) || var(32) || var(33))  ;未学習
triggerall = var(30) := var(4) || 1  ;正しいと思われる変数を保存
triggerall = var(31) := var(5) || 1
triggerall = var(32) := var(6) || 1
triggerall = var(33) := var(7) || 1
triggerall = var(0) := 0 || 1
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
triggerall = var(4) := ifelse(var(4) < 59,var(4) + 1,0) || 1  
triggerall = var(5) := 0 || 1
triggerall = var(6) := 0 || 1
trigger1   = var(7) := 0 || 1
value = StateNo
persistent = 256
ignorehitpause = 1
[State 16110, 正しかったら次の変数を調査2]
type = ChangeState
triggerall = var(0)
triggerall = var(5) || var(6) || var(7)
triggerall = GameTime = var(0) + 10
triggerall = var(30) || var(31) || var(32) || var(33)	;1つ目学習済
triggerall = var(4) != var(30) 				;同じ変数番号でない
triggerall = !(var(35) || var(36) || var(37) || var(38));未学習
triggerall = var(35) := var(4) || 1 
triggerall = var(36) := var(5) || 1
triggerall = var(37) := var(6) || 1
triggerall = var(38) := var(7) || 1
triggerall = var(0) := 0 || 1
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
triggerall = var(4) := ifelse(var(4) < 59,var(4) + 1,0) || 1 
triggerall = var(5) := 0 || 1
triggerall = var(6) := 0 || 1
trigger1   = var(7) := 0 || 1
value = StateNo
persistent = 256
ignorehitpause = 1

[State 16110, 正しかったら次の変数を調査3]
type = ChangeState
triggerall = var(0)
triggerall = var(5) || var(6) || var(7)
triggerall = GameTime = var(0) + 10
triggerall = var(30) || var(31) || var(32) || var(33)	;1つ目学習済
triggerall = var(35) || var(36) || var(37) || var(38)	;2つ目学習済
triggerall = var(4) != var(30)				;同じ変数番号でない
triggerall = var(4) != var(35)				;同じ変数番号でない
triggerall = !(var(40) || var(41) || var(42) || var(43));未学習
triggerall = var(40) := var(4) || 1  
triggerall = var(41) := var(5) || 1
triggerall = var(42) := var(6) || 1
triggerall = var(43) := var(7) || 1
triggerall = var(0) := 0 || 1
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
triggerall = var(4) := ifelse(var(4) < 59,var(4) + 1,0) || 1
triggerall = var(5) := 0 || 1
triggerall = var(6) := 0 || 1
trigger1   = var(7) := 0 || 1
value = StateNo
persistent = 256
ignorehitpause = 1

[State 16110, 調査開始時から時間が経過したら次の変数を調査]
type = ChangeState
triggerall = var(0)
triggerall = GameTime > var(0) + 10
triggerall = var(0) := 0 || 1
triggerall = var(1) := 0 || 1
triggerall = var(2) := 0 || 1
triggerall = var(3) := 0 || 1
triggerall = var(4) := ifelse(var(4) < 59,var(4) + 1, 0) || 1
triggerall = var(5) := 0 || 1
triggerall = var(6) := 0 || 1
trigger1   = var(7) := 0 || 1
value = StateNo
persistent = 256
ignorehitpause = 1

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

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

;---------------------------------------------------------------------------
;死の宣告
[Statedef 160000]
type     = A
movetype = A
physics  = N
ctrl     = 0
;anim     = 6000
sprpriority = 9
movehitpersist = 1
hitdefpersist = 1
[State 160000]
type = Turn
trigger1 = Root,facing != facing
ignorehitpause = 1
[State 160000]
type = ChangeAnim
trigger1 = NumTarget = 0
value = 6000
[State 160000]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
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, -110
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 160000, マーキングフラグリセット]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
trigger1 = roundstate < 1
var(9) = 0
ignorehitpause = 1
[State 160000, マーキングフラグセット]
type = Parentvarset
triggerall = playerIDexist(parent,ID)
triggerall = numtarget
trigger1 = !target,ishelper
var(9) = 1
ignorehitpause = 1
[State 160000, マーキングフラグリセット]
type = varset
triggerall = playerIDexist(parent,ID)
trigger1 = roundstate < 1
sysvar(4) = 0
ignorehitpause = 1
[State 160000, マーキングフラグセット]
type = varadd
triggerall = playerIDexist(parent,ID)
triggerall = numtarget
trigger1 = !target,ishelper
sysvar(4) = 1
ignorehitpause = 1

[State 160000]
type = TargetDrop
trigger1 = NumTarget
trigger1 = Target,IsHelper
ignorehitpause = 1
[State 160000]
type = StateTypeSet
trigger1 = !NumTarget
movetype = A
[State 160000]
type = ReversalDef
triggerall = roundstate = 2
triggerall = root,palno!=6
trigger1 = !NumTarget 
;trigger1 = gametime%10 = [5,9]
reversal.attr = SCA,AA,AP,AT
pausetime     = 0,2
numhits       = 0
sparkno       = -1
sparkxy       = 0,0
hitsound      = -1,0
fall.damage = 256*256*256*128 ;落下ダメージ
[State 160000]
type = ReversalDef
triggerall = roundstate = 2
triggerall = root,palno=6
trigger1 = !NumTarget 
;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 = Hitdef
triggerall = ishelper
triggerall = !NumTarget
triggerall = !Root,var(22)
triggerall = !(enemynear,name = "AhojinGod")
;triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = gametime%10 = [0,4]
trigger2 = roundstate != 2
trigger3 = gametime % 20 = 0 || roundstate != 2 || enemynear,stateno = 110 || enemynear,stateno = 115 || enemynear,stateno = 5210 
;trigger3 = root,sysvar(3) = [0,200]
attr = , AA, AT, AP;,HT
damage = 0,0
animtype = light
guardflag = 
priority = 3,Hit
pausetime = 0,0
sparkxy = 999999,999999
[State 160000]
type = StateTypeSet
trigger1 = NumTarget 
movetype = I
[State 160000]
type = ChangeAnim
trigger1 = numtarget
trigger1 = anim != 6002
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 = TargetLifeAdd
triggerall = numtarget
triggerall = Root,sysvar(3) != [3600,4000]
triggerall = (root,palno = [7, 12])
trigger1 = RoundState = 2
value = -2
kill = 1

[State 160000]
type = TargetLifeAdd
triggerall = numtarget
triggerall = Root,sysvar(3) != [3600,4000]
triggerall = (root,palno = [7, 12])
trigger1 = root,ctrl
trigger1 = RoundState = 2
trigger2 = root,anim = [731,733]
trigger3 = root,sysvar(3) = [2000,2500]
trigger4 = root,sysvar(3) = [6500,7000]
trigger5 = root,sysvar(3) = [12500,13000]
trigger6 = root,sysvar(3) = [16500,17000]
trigger7 = root,sysvar(3) = [28000,29000]
value = -999999999999999999999999999999
kill = 1

[State 160000]
type = TargetLifeAdd
triggerall = root,palno!=6
triggerall = numtarget
triggerall = Root,sysvar(3) != [3600,4000]
triggerall = target,name != "r-mai"
triggerall = (root,palno = [7, 12])
triggerall = root,ctrl
trigger1 = RoundState = 2
value = -999999999999999999999999999999
kill = 1
[State 160000]
triggerall = root,palno!=6
type = TargetPowerAdd
triggerall = root,ctrl
triggerall = numtarget
trigger1 = RoundState = 2
value = -10000000000000000000
[State 190000, 速度弄り]
type = Targetvelset
triggerall = numtarget
triggerall = root,palno != [1, 6]
trigger1 = root,sysvar(3) = [5000, 7500]
x = -99
y = -99
ignorehitpause = 1

[State 160000]
type = TargetLifeAdd
triggerall = numtarget
triggerall = Root,sysvar(3) != [3600,4000]
triggerall = (root,palno != [6, 12])
triggerall = roundstate = [0,1]
trigger1 = root,anim = [731,733]
trigger2 = root,anim = [2600,2601]
trigger3 = root,anim = [2300,2302]
trigger4 = root,anim = 2731
value = -999999999999999
kill = 1
absolute = 1

[State 160000]
type = TargetLifeAdd
triggerall = root,palno!=6
triggerall = numtarget
trigger1 = roundstate > 2
value = -9999999999999
kill = 1
absolute = 1
ignorehitpause = 1
[State 160000]
type = TargetLifeAdd
triggerall = root,palno!=6
triggerall = Root,sysvar(3) != [3600,4000]
triggerall = numtarget
triggerall = root,anim = [61001,61002]
trigger1 = roundstate > 2
value = -9999999999999
kill = 1
absolute = 1
ignorehitpause = 1
[State 160000]
type = TargetLifeAdd
triggerall = root,palno!=6
;triggerall = Root,sysvar(3) != [3600,4000]
triggerall = numtarget
trigger1 = root,anim = [61001,61002]
;trigger1 = roundstate > 2
value = -Enemy,LifeMax
absolute = 1
ignorehitpause = 1

[State 151, 邪眼キラー範囲内]
type = Varset
triggerall = root,palno!=6
triggerall = numtarget
triggerall = ishelper
trigger1 = target,stateno = [0, 149]
trigger2 = target,stateno = [151, 719]
trigger3 = target,stateno = [1000,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 = [1410,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, 5150]
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,800001]
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]
trigger280 = target,stateno = 123456789
trigger281 = target,stateno = [19020,19024]
var(55)= target,stateno
ignorehitpause = 1
[State 151, 邪眼キラー範囲外]
type = Varset
triggerall = root,palno!=6
triggerall = numtarget
triggerall = ishelper
triggerall = target,stateno != [0, 149]
triggerall = target,stateno != [151,719]
triggerall = target,stateno != [721,1004]
triggerall = target,stateno != [1000,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 != [1410,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, 5150]
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,800001]
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]
triggerall = target,stateno != 123456789
triggerall = target,stateno != [19020,19024]
trigger1 = 1
var(55) = 45000
ignorehitpause = 1

[State 140, 超即死投げ]
type = Targetstate
triggerall = root,palno!=6
triggerall = var(55)
triggerall = numtarget
triggerall = target,name != "r-mai"
triggerall = Root,sysvar(3) != [4000,4600]
triggerall = sysvar(4) != [0,300]
trigger1 = (root,palno = [6, 12])
trigger1 = roundstate = [0,1]
trigger2 = root,anim = [731,733]
trigger3 = root,anim = [2600,2601]
trigger4 = root,anim = [2300,2302]
trigger5 = root,anim = 2731
trigger6 = (root,palno = [6, 12])
trigger6 = gametime%2=0
trigger6 = Root,sysvar(3) = [0,3000]
trigger7 = root,anim = [61001,61002]
;trigger6 = Enemy,name = "rggg"
value = var(55)
ignorehitpause=1

[State 140, 超即死投げ]
type = Targetstate
triggerall = root,palno!=6
triggerall = numtarget
triggerall = target,name != "r-mai"
triggerall = root,anim != [61001,61002]
triggerall = (root,palno = [7, 12])
triggerall = Root,sysvar(3) != [4000,4600]
triggerall = sysvar(4) != [0,300]
;triggerall = enemynear,name != "R-kunagi"
triggerall = root,anim != [731,733]
triggerall = root,anim != 2601
trigger1 = roundstate = 2
trigger1 = root,ctrl
trigger2 = gametime%2=0
trigger2 = Root,sysvar(3) = [0,3000]
trigger3 = root,anim = [61001,61002]
value = var(55);40000
ignorehitpause=1


[State 140, 魂つぶし]
type = Targetvelset
Triggerall = P2BodyDist Y > 130
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 100
y=-1
ignorehitpause = 1
[State 140, 魂つぶし]
type = Targetvelset
Triggerall = P2BodyDist Y < 130
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 100
y=1
ignorehitpause = 1
[State 140, 魂つぶし]
type = Targetvelset
Triggerall = P2BodyDist X > 0
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 100
x = 1
ignorehitpause = 1
[State 140, 魂つぶし]
type = Targetvelset
Triggerall = P2BodyDist X < 0
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 100
x = -1
ignorehitpause = 1
[State 140, 魂つぶし]
type = targetbind
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 300
pos = 0, 90
[State 810, 相手固定]
type = TargetBind
triggerall = !Target,IsHelper
triggerall = NumTarget
trigger1 = Root,anim = 2102
trigger1 = Root,animelemno(0) < 31
pos = 30, 90
ignorehitpause = 1
[State 240, 4]
type = targetbind
triggerall = !Target,IsHelper
triggerall = NumTarget
trigger1 = Root,anim = 2102
trigger1 = Root,animelemno(0) = 32
postype = p1
pos = 55,80
[State 240, 4]
type = targetlifeadd
triggerall = !Target,IsHelper
triggerall = NumTarget
trigger1 = Root,anim = 2102
trigger1 = Root,animelemno(0) = 207
value = -1600000000000000000000000000000000000000000000000
absolute = 1
[State 240, 4]
type = targetstate
triggerall = !Target,IsHelper
triggerall = NumTarget
trigger1 = Root,anim = 2102
trigger1 = Root,animelemno(0) = 207
value = 2109

[State Bind]
type = Targetstate
triggerall = numtarget
trigger1 = Root,anim = 2102
trigger1 = Root,animelemno(0) < 206
value = 2104


[State 140, 投げ]
type = Targetstate
triggerall = numtarget
trigger1 = Root,anim = 2101
trigger1 = Root,animelemno(0) > 100
value = 5000
ignorehitpause=1


[State 140, 対Ｒ舞]
type = Targetstate
triggerall = root,palno!=6
triggerall = (root,palno = [7, 12])
triggerall = numtarget
trigger1 = target,name = "r-mai"
value = 0
ignorehitpause = 1

[State 140, 変則本体邪眼]
type = Targetstate
triggerall = numtarget
triggerall = (root,palno = [7, 12])
triggerall = sysvar(4) = [0,150]
trigger1 = 1
value = 1412
ignorehitpause = 1

[State 140, 変則本体邪眼]
type = Targetstate
triggerall = numtarget
triggerall = (root,palno = [7, 12])
triggerall = sysvar(4) = [150,300]
trigger1 = 1
value = 0
ignorehitpause = 1

[State 140, 相手死亡]
type = Targetstate
triggerall = root,palno!=6
triggerall = numtarget
triggerall = root,anim != [61001,61002]
triggerall = (root,palno = [11, 12])
trigger1 = !target,Alive
value = 40000
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
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 -2]
type = Ctrlset
trigger1 = 1
value = 0
ignorehitpause = 1
[State -2]
type = Targetdrop
triggerall = ishelper
trigger1 = numtarget = 8
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 = enemynear,name != "Mr.D"
triggerall = parent,var(30)
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 
triggerall = enemynear,name != "Mr.D"
trigger1 = !parent,var(30)
trigger2 = gametime%10 = [0,4]
trigger2 = parent,var(30)
reversal.attr = SCA, AA, AT, AP
fall.damage = 256*256*256*128 
priority = 7
pausetime = 1, 2
sparkno = -1
hitsound = -1
p2stateno = 11000
ignorehitpause = 1
SuperMoveTime = 99999
PauseMoveTime = 99999

[State 100020, 対本気リュウ]
type = Projectile
triggerall = root,palno != [1,6]
trigger1 = enemynear,name = "H-ryu"
projanim = 6000
projID = 100020
projremove = 0
projremovetime = 1
projsprpriority = -1
projheightbound = -1000000, 1000000
projedgebound = 1000000
projstagebound = 1000000
damage = 9999999999999
numhits = 0
attr = SCA, AA, AT, AP
hitflag = MA
priority = 7, hit
projpriority = 9999999999999
p2stateno = 30004
p2getp1state = 0 
sparkno = -1
guard.sparkno = -1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1


[State 100020]
type = null;Projectile
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 = 9999999999999
pausemovetime = 9999999999999
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
trigger1 = NumTarget != 0
value = 11000
persistent = 0

[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

[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
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 -2]
type = Attackdist
trigger1 = 1
value = 0
ignorehitpause = 1

[State 190000, アニメ変更]
type = Changeanim
trigger1 = root,anim != [2600,2601]
value = 6000
ignorehitpause = 1

[State 190000, アニメ変更]
type = Changeanim
trigger1 = root,anim = [2600,2601]
value = 6001
ignorehitpause = 1

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

[State 100101]
type = Hitdef
triggerall = !Root,var(22)
triggerall = !(enemynear,name = "AhojinGod")
triggerall = !enemynear,name = "Singularity"
;triggerall = !(enemynear,Name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = anim = 6000
triggerall = ishelper
trigger1 = (GameTime% 20 ) = 0 
trigger1 = root,palno = [7,12]
trigger2 = Enemy,anim = 6000
trigger3 = (GameTime% 20 ) = 0 
trigger3 = root,palno = [1,5]
trigger3 = root,anim = 732
trigger4 = Enemy,Stateno = 45000
attr = S,SA,SP,ST
sparkxy = 99999,-99999
pausetime = 0,0
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 = !(enemynear,name = "AhojinGod")
triggerall = !enemynear,name = "Singularity"
;triggerall = !(enemynear,Name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
triggerall = ishelper
triggerall = anim = 6000
trigger1 = root,anim = 9601
trigger2 = root,anim = 2731
attr = A, HP
animtype = hard
damage = ifelse(random % 3 = 0, 99999999999999, -99999999999999)
priority = 3
hitflag = MAFD
guardflag = MA
pausetime = 0, 0
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 2334]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1

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

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

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

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

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

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

[State -2]
type = Bindtoroot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1
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 2334, ]
type = Hitdef
triggerall = !Root,var(22)
triggerall = !(enemynear,name = "AhojinGod")
triggerall = !enemynear,name = "Singularity"
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
triggerall = ishelper(2334)
trigger1 = 1
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 2334, ヘルパー消去]
type = Destroyself
triggerall = ishelper(2334)
trigger1 = parent,anim != 9601
ignorehitpause = 1
;---------------------------------------------

;占有ヘルパー　
[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
trigger1 = 1
pos = 0, -90
[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 = !root,var(45)
triggerall = enemynear,name != "EX-Zetton"
triggerall = enemynear,name != "Crueltear=Relinquish"
triggerall = IsHelper
trigger1   = TeamSide = 1		;1P側
trigger1   = Root,var(49)		;親変更可能領域
trigger2   = TeamSide != 1		;1P側以外
ignorehitpause = 1

;--------------------------------------------------------
;親変更用ヘルパー
[Statedef 8901016]
[State ]
type=nothitby
trigger1=1
value=sca
[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 ]
type=helper
trigger1=roundstate<=3
trigger1=ishelper(8901016)
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
;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)
trigger1 = NumTarget 
X = 0
Y = -350235
ignorehitpause = 1

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

[State 821, 4]
type = Varadd
triggerall = ishelper
trigger1 = RoundState = 2
sysvar(4) = 1
ignorehitpause = 1

[State 821, 4]
type = Varset
triggerall = ishelper
trigger1 = numhelper(190000)
trigger1 = numhelper(190001)
trigger1 = numhelper(190002)
trigger1 = numhelper(190003)
trigger1 = numhelper(190004)
trigger1 = numhelper(190005)
trigger1 = numhelper(190006)
trigger1 = numhelper(190007)
sysvar(3) = 1
ignorehitpause = 1

[State 821, 4]
type = null;playsnd
;triggerall = sysvar(4) = [0,100]
triggerall = root,palno = [11,12]
triggerall = !numexplod(19650)
trigger1 = win
trigger1 = !Enemy,Alive
value = S181,0
volume = 1300
channel = 14

[State 821, 4]
;triggerall = sysvar(4) = [0,100]
triggerall = root,palno = [11,12]
trigger1 = win
type = null;StopSnd
trigger1 = roundstate = 3
channel = 1

[State 240, 4]
type = null; Explod
;triggerall = sysvar(4) = [0,100]
triggerall = root,palno = [11,12]
triggerall = !numexplod(19650) 
trigger1 = win
trigger1 = !Enemy,Alive
ownpal = 1
anim = 9650
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ID = 19650
removetime = -1
ontop = 1
sprpriority = -1
;trans = add
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999
[State 160000]
type = ChangeAnim
trigger1 = NumTarget = 0
value = 6000
[State 160000]
type = TargetDrop
trigger1 = Target,ishelper
trigger2 = Target,Name != "OROCHI G3"
ignorehitpause = 1
[State 160000]
type = StateTypeSet
movetype = A
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 = root,palno = [11,12]
triggerall   = roundstate != 0
trigger1 = !NumTarget
trigger2 = root,anim = 190
trigger3 = root,anim = 2530
trigger4 = root,anim = 9601
trigger5 = root,anim = 2721
trigger6 = root,anim = 2731
ignorehitpause = 1
[State 160000]
type = Hitdef
;triggerall = !Root,var(22)
triggerall = !(enemynear,name = "AhojinGod")
triggerall = !enemynear,name = "Singularity"
;triggerall   = Enemy,name != "Barbatos_Goetia"
triggerall   = root,palno = [11,12]
triggerall = ishelper
trigger1   = roundstate != 0
trigger1 = NumTarget = 0
attr = ,HT
affectteam = F
damage = 0,0
animtype = light
guardflag = 
priority = 3,Hit
pausetime = 0,0
sparkxy = 999999,999999
[State 160000]
type = StateTypeSet
triggerall = root,anim != 190
triggerall = root,anim != 2530
triggerall = root,anim != 9601
triggerall = root,anim != 2721
triggerall = root,anim != 2731
trigger1 = NumTarget 
trigger2 = sysvar(3) != 1
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
triggerall = numtarget
triggerall = !(enemynear,name="ONI-MIKO-REIMU"&&enemynear,SelfAnimExist(13000))
trigger1 = RoundState <= 3
trigger1 = Movetype = A
value = -9999999999999
ignorehitpause = 1
[State 45600,デバッグ]
Type       = null;Displaytoclipboard
Trigger1   = 1
Text       = "hitpausetime=%d,numtarget=%d"
Params     =  hitpausetime,numtarget
Ignorehitpause = 1


[State -2,ID]
Type       = Parentvarset
Trigger1   = 1
V          = 7
Value      = ID
Ignorehitpause = 1

[State -2,間者ヘルパー取得フラグ]
Type       = Parentvarset
Trigger1   = Numhelper(190000)
Trigger1   = (Helper(190000),Var(21) & 1)
Trigger1   = Var(8) := Helper(190000),Var(21)
Trigger2   = Numhelper(190001)
Trigger2   = (Helper(190001),Var(21) & 1)
Trigger2   = Var(8) := Helper(190001),Var(21)
Trigger3   = Numhelper(190002)
Trigger3   = (Helper(190002),Var(21) & 1)
Trigger3   = Var(8) := Helper(190002),Var(21)
Trigger4   = Numhelper(190003)
Trigger4   = (Helper(190003),Var(21) & 1)
Trigger4   = Var(8) := Helper(190003),Var(21)
Trigger5   = Numhelper(190004)
Trigger5   = (Helper(190004),Var(21) & 1)
Trigger5   = Var(8) := Helper(190004),Var(21)
Trigger6   = Numhelper(190005)
Trigger6   = (Helper(190005),Var(21) & 1)
Trigger6   = Var(8) := Helper(190005),Var(21)
Trigger7   = Numhelper(190006)
Trigger7   = (Helper(190006),Var(21) & 1)
Trigger7   = Var(8) := Helper(190006),Var(21)
Trigger8   = Numhelper(190007)
Trigger8   = (Helper(190007),Var(21) & 1)
Trigger8   = Var(8) := Helper(190007),Var(21)
Trigger9   = Numhelper(190008)
Trigger9   = (Helper(190008),Var(21) & 1)
Trigger9   = Var(8) := Helper(190008),Var(21)
Trigger10  = Numhelper(190009)
Trigger10  = (Helper(190009),Var(21) & 1)
Trigger10  = Var(8) := Helper(190009),Var(21)
Trigger11  = Numhelper(190010)
Trigger11  = (Helper(190010),Var(21) & 1)
Trigger11  = Var(8) := Helper(190010),Var(21)
Trigger12  = Numhelper(190011)
Trigger12  = (Helper(190001),Var(21) & 1)
Trigger12  = Var(8) := Helper(190011),Var(21)
Trigger13  = Numhelper(190012)
Trigger13  = (Helper(190012),Var(21) & 1)
Trigger13  = Var(8) := Helper(190012),Var(21)
Trigger14  = Numhelper(190013)
Trigger14  = (Helper(190013),Var(21) & 1)
Trigger14  = Var(8) := Helper(190013),Var(21)
Trigger15  = Numhelper(190014)
Trigger15  = (Helper(190014),Var(21) & 1)
Trigger15  = Var(8) := Helper(190014),Var(21)
Trigger16  = Numhelper(190015)
Trigger16  = (Helper(190015),Var(21) & 1)
Trigger16  = Var(8) := Helper(190015),Var(21)
Trigger17  = Numhelper(190016)
Trigger17  = (Helper(190016),Var(21) & 1)
Trigger17  = Var(8) := Helper(190016),Var(21)
Trigger18  = Numhelper(190017)
Trigger18  = (Helper(190017),Var(21) & 1)
Trigger18  = Var(8) := Helper(190017),Var(21)
Trigger19  = Numhelper(190018)
Trigger19  = (Helper(190018),Var(21) & 1)
Trigger19  = Var(8) := Helper(190018),Var(21)
Trigger20  = Numhelper(190019)
Trigger20  = (Helper(190019),Var(21) & 1)
Trigger20  = Var(8) := Helper(190019),Var(21)
Trigger21  = Numhelper(190020)
Trigger21  = (Helper(190020),Var(21) & 1)
Trigger21  = Var(8) := Helper(190020),Var(21)
Trigger22  = Numhelper(190021)
Trigger22  = (Helper(190021),Var(21) & 1)
Trigger22  = Var(8) := Helper(190021),Var(21)
Trigger23  = Numhelper(190022)
Trigger23  = (Helper(190022),Var(21) & 1)
Trigger23  = Var(8) := Helper(190022),Var(21)
Trigger24  = Numhelper(190023)
Trigger24  = (Helper(190023),Var(21) & 1)
Trigger24  = Var(8) := Helper(190023),Var(21)
Trigger25  = Numhelper(190024)
Trigger25  = (Helper(190024),Var(21) & 1)
Trigger25  = Var(8) := Helper(190024),Var(21)
Trigger26  = Numhelper(190025)
Trigger26  = (Helper(190025),Var(21) & 1)
Trigger26  = Var(8) := Helper(190025),Var(21)
V          = 16
Value      = Var(8)
Ignorehitpause = 1

[State -2,リダ偽装用ＩＤ伝達１]
Type       = Parentvarset
Triggerall = Root,Var(13) = 0
Trigger1   = Numhelper(190000)
Trigger1   = Var(9) := Helper(190000),Var(16)
Trigger2   = Numhelper(190001)
Trigger2   = Var(9) := Helper(190001),Var(16)
Trigger3   = Numhelper(190002)
Trigger3   = Var(9) := Helper(190002),Var(16)
Trigger4   = Numhelper(190003)
Trigger4   = Var(9) := Helper(190003),Var(16)
Trigger5   = Numhelper(190004)
Trigger5   = Var(9) := Helper(190004),Var(16)
Trigger6   = Numhelper(190005)
Trigger6   = Var(9) := Helper(190005),Var(16)
Trigger7   = Numhelper(190006)
Trigger7   = Var(9) := Helper(190006),Var(16)
Trigger8   = Numhelper(190007)
Trigger8   = Var(9) := Helper(190007),Var(16)
Trigger9   = Numhelper(190008)
Trigger9   = Var(9) := Helper(190008),Var(16)
Trigger10  = Numhelper(190009)
Trigger10  = Var(9) := Helper(190009),Var(16)
Trigger11  = Numhelper(190010)
Trigger11  = Var(9) := Helper(190010),Var(16)
Trigger12  = Numhelper(190011)
Trigger12  = Var(9) := Helper(190011),Var(16)
Trigger13  = Numhelper(190012)
Trigger13  = Var(9) := Helper(190012),Var(16)
Trigger14  = Numhelper(190013)
Trigger14  = Var(9) := Helper(190013),Var(16)
Trigger15  = Numhelper(190014)
Trigger15  = Var(9) := Helper(190014),Var(16)
Trigger16  = Numhelper(190015)
Trigger16  = Var(9) := Helper(190015),Var(16)
Trigger17  = Numhelper(190016)
Trigger17  = Var(9) := Helper(190016),Var(16)
Trigger18  = Numhelper(190017)
Trigger18  = Var(9) := Helper(190017),Var(16)
Trigger19  = Numhelper(190018)
Trigger19  = Var(9) := Helper(190018),Var(16)
Trigger20  = Numhelper(190019)
Trigger20  = Var(9) := Helper(190019),Var(16)
Trigger21  = Numhelper(190020)
Trigger21  = Var(9) := Helper(190020),Var(16)
Trigger22  = Numhelper(190021)
Trigger22  = Var(9) := Helper(190021),Var(16)
Trigger23  = Numhelper(190022)
Trigger23  = Var(9) := Helper(190022),Var(16)
Trigger24  = Numhelper(190023)
Trigger24  = Var(9) := Helper(190023),Var(16)
Trigger25  = Numhelper(190024)
Trigger25  = Var(9) := Helper(190024),Var(16)
Trigger26  = Numhelper(190025)
Trigger26  = Var(9) := Helper(190025),Var(16)
V          = 13
Value      = Var(9)
Ignorehitpause = 1

[State -2,リダ偽装用ＩＤ伝達２]
Type       = Parentvarset
Triggerall = Root,Var(14) = 0
Trigger1   = Numhelper(190000)
Trigger1   = Var(10) := Helper(190000),Var(17)
Trigger2   = Numhelper(190001)
Trigger2   = Var(10) := Helper(190001),Var(17)
Trigger3   = Numhelper(190002)
Trigger3   = Var(10) := Helper(190002),Var(17)
Trigger4   = Numhelper(190003)
Trigger4   = Var(10) := Helper(190003),Var(17)
Trigger5   = Numhelper(190004)
Trigger5   = Var(10) := Helper(190004),Var(17)
Trigger6   = Numhelper(190005)
Trigger6   = Var(10) := Helper(190005),Var(17)
Trigger7   = Numhelper(190006)
Trigger7   = Var(10) := Helper(190006),Var(17)
Trigger8   = Numhelper(190007)
Trigger8   = Var(10) := Helper(190007),Var(17)
Trigger9   = Numhelper(190008)
Trigger9   = Var(10) := Helper(190008),Var(17)
Trigger10  = Numhelper(190009)
Trigger10  = Var(10) := Helper(190009),Var(17)
Trigger11  = Numhelper(190010)
Trigger11  = Var(10) := Helper(190010),Var(17)
Trigger12  = Numhelper(190011)
Trigger12  = Var(10) := Helper(190011),Var(17)
Trigger13  = Numhelper(190012)
Trigger13  = Var(10) := Helper(190012),Var(17)
Trigger14  = Numhelper(190013)
Trigger14  = Var(10) := Helper(190013),Var(17)
Trigger15  = Numhelper(190014)
Trigger15  = Var(10) := Helper(190014),Var(17)
Trigger16  = Numhelper(190015)
Trigger16  = Var(10) := Helper(190015),Var(17)
Trigger17  = Numhelper(190016)
Trigger17  = Var(10) := Helper(190016),Var(17)
Trigger18  = Numhelper(190017)
Trigger18  = Var(10) := Helper(190017),Var(17)
Trigger19  = Numhelper(190018)
Trigger19  = Var(10) := Helper(190018),Var(17)
Trigger20  = Numhelper(190019)
Trigger20  = Var(10) := Helper(190019),Var(17)
Trigger21  = Numhelper(190020)
Trigger21  = Var(10) := Helper(190020),Var(17)
Trigger22  = Numhelper(190021)
Trigger22  = Var(10) := Helper(190021),Var(17)
Trigger23  = Numhelper(190022)
Trigger23  = Var(10) := Helper(190022),Var(17)
Trigger24  = Numhelper(190023)
Trigger24  = Var(10) := Helper(190023),Var(17)
Trigger25  = Numhelper(190024)
Trigger25  = Var(10) := Helper(190024),Var(17)
Trigger26  = Numhelper(190025)
Trigger26  = Var(10) := Helper(190025),Var(17)
V          = 14
Value      = Var(10)
Ignorehitpause = 1

[State -2,リダ偽装用ＩＤ伝達３]
Type       = Parentvarset
Triggerall = Root,Var(15) = 0
Trigger1   = Numhelper(190000)
Trigger1   = Var(11) := Helper(190000),Var(18)
Trigger2   = Numhelper(190001)
Trigger2   = Var(11) := Helper(190001),Var(18)
Trigger3   = Numhelper(190002)
Trigger3   = Var(11) := Helper(190002),Var(18)
Trigger4   = Numhelper(190003)
Trigger4   = Var(11) := Helper(190003),Var(18)
Trigger5   = Numhelper(190004)
Trigger5   = Var(11) := Helper(190004),Var(18)
Trigger6   = Numhelper(190005)
Trigger6   = Var(11) := Helper(190005),Var(18)
Trigger7   = Numhelper(190006)
Trigger7   = Var(11) := Helper(190006),Var(18)
Trigger8   = Numhelper(190007)
Trigger8   = Var(11) := Helper(190007),Var(18)
Trigger9   = Numhelper(190008)
Trigger9   = Var(11) := Helper(190008),Var(18)
Trigger10  = Numhelper(190009)
Trigger10  = Var(11) := Helper(190009),Var(18)
Trigger11  = Numhelper(190010)
Trigger11  = Var(11) := Helper(190010),Var(18)
Trigger12  = Numhelper(190011)
Trigger12  = Var(11) := Helper(190011),Var(18)
Trigger13  = Numhelper(190012)
Trigger13  = Var(11) := Helper(190012),Var(18)
Trigger14  = Numhelper(190013)
Trigger14  = Var(11) := Helper(190013),Var(18)
Trigger15  = Numhelper(190014)
Trigger15  = Var(11) := Helper(190014),Var(18)
Trigger16  = Numhelper(190015)
Trigger16  = Var(11) := Helper(190015),Var(18)
Trigger17  = Numhelper(190016)
Trigger17  = Var(11) := Helper(190016),Var(18)
Trigger18  = Numhelper(190017)
Trigger18  = Var(11) := Helper(190017),Var(18)
Trigger19  = Numhelper(190018)
Trigger19  = Var(11) := Helper(190018),Var(18)
Trigger20  = Numhelper(190019)
Trigger20  = Var(11) := Helper(190019),Var(18)
Trigger21  = Numhelper(190020)
Trigger21  = Var(11) := Helper(190020),Var(18)
Trigger22  = Numhelper(190021)
Trigger22  = Var(11) := Helper(190021),Var(18)
Trigger23  = Numhelper(190022)
Trigger23  = Var(11) := Helper(190022),Var(18)
Trigger24  = Numhelper(190023)
Trigger24  = Var(11) := Helper(190023),Var(18)
Trigger25  = Numhelper(190024)
Trigger25  = Var(11) := Helper(190024),Var(18)
Trigger26  = Numhelper(190025)
Trigger26  = Var(11) := Helper(190025),Var(18)
V          = 15
Value      = Var(11)
Ignorehitpause = 1



[State 45000,デバッグ : 習得リダ偽装ＩＤ]
Type       = Displaytoclipboard;Appendtoclipboard
Trigger1   = gametime%300=[151,300]
Text       = "V13=%d,V14=%d,V15=%d"
Params     = Root,var(13),Root,var(14),Root,var(15)
Ignorehitpause = 1

[State 45000,親変更Gametime式ステ抜け変数1]
Type       = null;Displaytoclipboard
Trigger1   = Gametime%6 = [0,1]
Text       = "V1=%d,A1=%d,B1=%d,C1=%d\n"
Params     = Var(48),Var(51),Var(50),Var(49)
Ignorehitpause = 1

[State 45000,親変更Gametime式ステ抜け変数2]
Type       = null;Displaytoclipboard
Trigger1   = Gametime%6 = [2,3]
Text       = "V2=%d,A2=%d,B2=%d,C2=%d\n"
Params     = Var(44),Var(47),Var(46),Var(45)
Ignorehitpause = 1

[State 45000,親変更Gametime式ステ抜け変数2]
Type       = null;Displaytoclipboard
Trigger1   = Gametime%6 = [4,5]
Text       = "V3=%d,A3=%d,B3=%d,C3=%d\n"
Params     = Var(40),Var(43),Var(42),Var(41)
Ignorehitpause = 1

[State 45000,Gametime式ステ抜け変数確認]
Type       = null;Appendtoclipboard
Trigger1   = 1
Text       = "GT=%d,1=%d,2=%d,3=%d,V=%d"
Params     = Var(59),Var(58),Var(57),Var(56),Var(39)
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 -3]
type = null;varset
trigger1  = parent,var(49) 
var(49) = parent,var(49)
ignorehitpause = 1

;--------------------------------------------------------------------------------------
;ヘルパーのGametime式ステ抜け変数調査
;--------------------------------------------------------------------------------------
[State -2,PlayerID取得]
Type       = Null
Triggerall = !PlayerIDexist(Var(39))
Trigger1   = Numhelper(190000)
Trigger1   = Var(39) := Helper(190000),Var(22)
Trigger2   = Numhelper(190001)
Trigger2   = Var(39) := Helper(190001),Var(22)
Trigger3   = Numhelper(190002)
Trigger3   = Var(39) := Helper(190002),Var(22)
Trigger4   = Numhelper(190003)
Trigger4   = Var(39) := Helper(190003),Var(22)
Trigger5   = Numhelper(190004)
Trigger5   = Var(39) := Helper(190004),Var(22)
Trigger6   = Numhelper(190005)
Trigger6   = Var(39) := Helper(190005),Var(22)
Trigger7   = Numhelper(190006)
Trigger7   = Var(39) := Helper(190006),Var(22)
Trigger8   = Numhelper(190007)
Trigger8   = Var(39) := Helper(190007),Var(22)
Trigger9   = Numhelper(190008)
Trigger9   = Var(39) := Helper(190008),Var(22)
Trigger10  = Numhelper(190009)
Trigger10  = Var(39) := Helper(190009),Var(22)
Trigger11  = Numhelper(190010)
Trigger11  = Var(39) := Helper(190010),Var(22)
Trigger12  = Numhelper(190011)
Trigger12  = Var(39) := Helper(190011),Var(22)
Trigger13  = Numhelper(190012)
Trigger13  = Var(39) := Helper(190012),Var(22)
Trigger14  = Numhelper(190013)
Trigger14  = Var(39) := Helper(190013),Var(22)
Trigger15  = Numhelper(190014)
Trigger15  = Var(39) := Helper(190014),Var(22)
Trigger16  = Numhelper(190015)
Trigger16  = Var(39) := Helper(190015),Var(22)
Trigger17  = Numhelper(190016)
Trigger17  = Var(39) := Helper(190016),Var(22)
Trigger18  = Numhelper(190017)
Trigger18  = Var(39) := Helper(190017),Var(22)
Trigger19  = Numhelper(190018)
Trigger19  = Var(39) := Helper(190018),Var(22)
Trigger20  = Numhelper(190019)
Trigger20  = Var(39) := Helper(190019),Var(22)
Trigger21  = Numhelper(190020)
Trigger21  = Var(39) := Helper(190020),Var(22)
Trigger22  = Numhelper(190021)
Trigger22  = Var(39) := Helper(190021),Var(22)
Trigger23  = Numhelper(190022)
Trigger23  = Var(39) := Helper(190022),Var(22)
Trigger24  = Numhelper(190023)
Trigger24  = Var(39) := Helper(190023),Var(22)
Trigger25  = Numhelper(190024)
Trigger25  = Var(39) := Helper(190024),Var(22)
Trigger26  = Numhelper(190025)
Trigger26  = Var(39) := Helper(190025),Var(22)
Ignorehitpause = 1

[State -2,Gametime変数リセット]
Type       = Varset
Triggerall = Roundstate > 0
Trigger1   = !PlayerIDexist(Var(39))
V          = 59
Value      = 0
Ignorehitpause = 1

[State -2,変数代入調査 : 1F目]
Type       = Varset
Triggerall = PlayerIDexist(Var(39))
Triggerall = Var(59) = 0
Trigger1   = Var(59) := Gametime
V          = 58
Value      = PlayerID(Var(39)),Var(Var(55))
Ignorehitpause = 1

[State -2,変数代入調査 : 2F目]
Type       = Selfstate
Triggerall = PlayerIDexist(Var(39))
Triggerall = Gametime = Var(59) + 1
Triggerall = 1 || Var(57) := PlayerID(Var(39)),Var(Var(55))
Triggerall = Var(57) = Var(58)
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := 0))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Value      = 223333
Persistent = 256
Ignorehitpause = 1

[State -2,変数代入調査 : 3F目]
Type       = Selfstate
Triggerall = PlayerIDexist(Var(39))
Triggerall = Gametime = Var(59) + 2
Triggerall = 1 || Var(56) := PlayerID(Var(39)),Var(Var(55))
Triggerall = Var(56) = Var(57) || Var(56) = Var(58)
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := 0))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Value      = 223333
Persistent = 256
Ignorehitpause = 1

[State -2,計算＆結果]
Type       = Null
Triggerall = PlayerIDexist(Var(39))
Triggerall = Gametime = Var(59) + 2
Trigger1   = 1 || Var(54) := Floor(((Var(58) + Var(56)) - (2*Var(57)))/2)
Trigger1   = 1 || Var(53) := (Var(57) - Var(58)) - (Var(54)*(2*Var(59) + 1))
Trigger1   = Var(52) := Var(58) - (Var(59)*(Var(54)*Var(59) + Var(53)))
Ignorehitpause = 1

[State -2,変数記憶]
Type       = Selfstate
Triggerall = PlayerIDexist(Var(39))
Triggerall = Var(54) || Var(53) || Var(52)
Triggerall = Gametime > Var(59) + 1
Trigger1   = PlayerID(Var(39)),Var(Var(55)) != Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger1   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger1   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger1   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger2   = PlayerID(Var(39)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger2   = !(Var(51) + Var(50) + Var(49) + Var(48))
Trigger2   = 1 || Var(51) := Var(54)
Trigger2   = 1 || Var(50) := Var(53)
Trigger2   = 1 || Var(49) := Var(52)
Trigger2   = 1 || Var(48) := Var(55)
Trigger2   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger2   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger2   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger3   = PlayerID(Var(39)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger3   = Var(51) + Var(50) + Var(49) + Var(48)
Trigger3   = !(Var(47) + Var(46) + Var(45) + Var(44))
Trigger3   = Var(48) != Var(55)
Trigger3   = 1 || Var(47) := Var(54)
Trigger3   = 1 || Var(46) := Var(53)
Trigger3   = 1 || Var(45) := Var(52)
Trigger3   = 1 || Var(44) := Var(55)
Trigger3   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger3   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger3   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Trigger4   = PlayerID(Var(39)),Var(Var(55)) = Var(54)*Gametime*Gametime + Var(53)*Gametime + Var(52)
Trigger4   = Var(51) + Var(50) + Var(49) + Var(48)
Trigger4   = Var(47) + Var(46) + Var(45) + Var(44)
;Trigger4   = !(Var(43) + Var(42) + Var(41) + Var(40))
Trigger4   = !(Var(48) = Var(55) || Var(44) = Var(55))
Trigger4   = 1 || Var(43) := Var(54)
Trigger4   = 1 || Var(42) := Var(53)
Trigger4   = 1 || Var(41) := Var(52)
Trigger4   = 1 || Var(40) := Var(55)
Trigger4   = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Trigger4   = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger4   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Value      = 223333
Persistent = 256
Ignorehitpause = 1

[State -2,時間経過リセット]
Type       = Selfstate
Triggerall = PlayerIDexist(Var(39))
Triggerall = Gametime > Var(59) + 2
Triggerall = 1 || Var(59) := (Var(58) := (Var(57) := (Var(56) := 0)))
Triggerall = 1 || Var(55) := Ifelse(Var(55) < 59,Var(55) + 1,0)
Trigger1   = 1 || Var(54) := (Var(53) := (Var(52) := 0))
Value      = 223333
Persistent = 256
Ignorehitpause = 1



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


[State , ヘルパー消去]
type = Destroyself
trigger1 = (enemynear,name = "Singular"&&enemy,numhelper(4343))
ignorehitpause = 1

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

[StateDef 1111111]
movehitpersist = 1
hitdefpersist  = 1

[State 1111111, 敵監視]
type = ChangeState
triggerall = Name != "OROCHI G3"
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 1122222]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1


[State -2,ステートタイプ変更]
Type       = null;Statetypeset
Trigger1   = 1
Statetype  = C
Movetype   = I
Physics    = N
Ignorehitpause = 1
[State -2,ID記憶]
Type = Parentvarset
Trigger1 = !root,var(6)
V = 6 
Value = ID
Ignorehitpause = 1
[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1
[State 1122222, 敵監視]
type = ChangeState
triggerall = Name != "OROCHI G3"
trigger1   = !IsHelper
value = 45000
ignorehitpause = 1
[State 160000]
type = ChangeAnim
trigger1 = 1
value = 6002
[State -2]
type = Posset
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1;RoundState = 2
x = P2BodyDist X
y = P2BodyDist Y
ignorehitpause = 1
[State 821, 位置を本体に固定]
type = null;BindToRoot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1;RoundState != 2
time = 1
pos = 0,0
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

;--------------------------------------------------------------------------------------
;探査情報取得 : 混線ヘルパーIDと探査ヘルパーID

[State 1122222,探査ヘルパーID取得 : 先行]
Type       = Null
Triggerall = 1 || Var(3) := (Var(4) := (Var(5) := (Var(6) := 0)))
Trigger1   = Numhelper(190000)
Trigger1   = (Helper(190000),Var(21) & 8)
Trigger1   = 0 && Var(6) := Helper(190000),ID | Var(3) := Helper(190000),Var(24)
Trigger2   = Numhelper(190001)
Trigger2   = (Helper(190001),Var(21) & 8)
Trigger2   = 0 && Var(6) := Helper(190001),ID | Var(3) := Helper(190001),Var(24)
Trigger3   = Numhelper(190002)
Trigger3   = (Helper(190002),Var(21) & 8)
Trigger3   = 0 && Var(6) := Helper(190002),ID | Var(3) := Helper(190002),Var(24)
Trigger4   = Numhelper(190003)
Trigger4   = (Helper(190003),Var(21) & 8)
Trigger4   = 0 && Var(6) := Helper(190003),ID | Var(3) := Helper(190003),Var(24)
Trigger5   = Numhelper(190004)
Trigger5   = (Helper(190004),Var(21) & 8)
Trigger5   = 0 && Var(6) := Helper(190004),ID | Var(3) := Helper(190004),Var(24)
Trigger6   = Numhelper(190005)
Trigger6   = (Helper(190005),Var(21) & 8)
Trigger6   = 0 && Var(6) := Helper(190005),ID | Var(3) := Helper(190005),Var(24)
Trigger7   = Numhelper(190006)
Trigger7   = (Helper(190006),Var(21) & 8)
Trigger7   = 0 && Var(6) := Helper(190006),ID | Var(3) := Helper(190006),Var(24)
Trigger8   = Numhelper(190007)
Trigger8   = (Helper(190007),Var(21) & 8)
Trigger8   = 0 && Var(6) := Helper(190007),ID | Var(3) := Helper(190007),Var(24)
Trigger9   = Numhelper(190008)
Trigger9   = (Helper(190008),Var(21) & 8)
Trigger9   = 0 && Var(6) := Helper(190008),ID | Var(3) := Helper(190008),Var(24)
Trigger10  = Numhelper(190009)
Trigger10  = (Helper(190009),Var(21) & 8)
Trigger10  = 0 && Var(6) := Helper(190009),ID | Var(3) := Helper(190009),Var(24)
Trigger11  = Numhelper(190010)
Trigger11  = (Helper(190010),Var(21) & 8)
Trigger11  = 0 && Var(6) := Helper(190010),ID | Var(3) := Helper(190010),Var(24)
Trigger12  = Numhelper(190011)
Trigger12  = (Helper(190011),Var(21) & 8)
Trigger12  = 0 && Var(6) := Helper(190011),ID | Var(3) := Helper(190011),Var(24)
Trigger13  = Numhelper(190012)
Trigger13  = (Helper(190012),Var(21) & 8)
Trigger13  = 0 && Var(6) := Helper(190012),ID | Var(3) := Helper(190012),Var(24)
Trigger14  = Numhelper(190013)
Trigger14  = (Helper(190013),Var(21) & 8)
Trigger14  = 0 && Var(6) := Helper(190013),ID | Var(3) := Helper(190013),Var(24)
Trigger15  = Numhelper(190014)
Trigger15  = (Helper(190014),Var(21) & 8)
Trigger15  = 0 && Var(6) := Helper(190014),ID | Var(3) := Helper(190014),Var(24)
Trigger16  = Numhelper(190015)
Trigger16  = (Helper(190015),Var(21) & 8)
Trigger16  = 0 && Var(6) := Helper(190015),ID | Var(3) := Helper(190015),Var(24)
Trigger17  = Numhelper(190016)
Trigger17  = (Helper(190016),Var(21) & 8)
Trigger17  = 0 && Var(6) := Helper(190016),ID | Var(3) := Helper(190016),Var(24)
Trigger18  = Numhelper(190017)
Trigger18  = (Helper(190017),Var(21) & 8)
Trigger18  = 0 && Var(6) := Helper(190017),ID | Var(3) := Helper(190017),Var(24)
Trigger19  = Numhelper(190018)
Trigger19  = (Helper(190018),Var(21) & 8)
Trigger19  = 0 && Var(6) := Helper(190018),ID | Var(3) := Helper(190018),Var(24)
Trigger20  = Numhelper(190019)
Trigger20  = (Helper(190019),Var(21) & 8)
Trigger20  = 0 && Var(6) := Helper(190019),ID | Var(3) := Helper(190019),Var(24)
Trigger21  = Numhelper(190020)
Trigger21  = (Helper(190020),Var(21) & 8)
Trigger21  = 0 && Var(6) := Helper(190020),ID | Var(3) := Helper(190020),Var(24)
Trigger22  = Numhelper(190021)
Trigger22  = (Helper(190021),Var(21) & 8)
Trigger22  = 0 && Var(6) := Helper(190021),ID | Var(3) := Helper(190021),Var(24)
;Trigger23  = Numhelper(190022)
;Trigger23  = (Helper(190022),Var(21) & 8)
;Trigger23  = 0 && Var(6) := Helper(190022),ID | Var(3) := Helper(190022),Var(24)
;Trigger24  = Numhelper(190023)
;Trigger24  = (Helper(190023),Var(21) & 8)
;Trigger24  = 0 && Var(6) := Helper(190023),ID | Var(3) := Helper(190023),Var(24)
Ignorehitpause = 1

[State 1122222,探査ヘルパーID取得 : Hitpausetime有]
Type       = Null
Trigger1   = Numhelper(190000)
Trigger1   = (Helper(190000),Var(21) & 16)
Trigger1   = 0 && Var(12) := Helper(190000),ID | Var(4) := Helper(190000),Var(24)
Trigger2   = Numhelper(190001)
Trigger2   = (Helper(190001),Var(21) & 16)
Trigger2   = 0 && Var(12) := Helper(190001),ID | Var(4) := Helper(190001),Var(24)
Trigger3   = Numhelper(190002)
Trigger3   = (Helper(190002),Var(21) & 16)
Trigger3   = 0 && Var(12) := Helper(190002),ID | Var(4) := Helper(190002),Var(24)
Trigger4   = Numhelper(190003)
Trigger4   = (Helper(190003),Var(21) & 16)
Trigger4   = 0 && Var(12) := Helper(190003),ID | Var(4) := Helper(190003),Var(24)
Trigger5   = Numhelper(190004)
Trigger5   = (Helper(190004),Var(21) & 16)
Trigger5   = 0 && Var(12) := Helper(190004),ID | Var(4) := Helper(190004),Var(24)
Trigger6   = Numhelper(190005)
Trigger6   = (Helper(190005),Var(21) & 16)
Trigger6   = 0 && Var(12) := Helper(190005),ID | Var(4) := Helper(190005),Var(24)
Trigger7   = Numhelper(190006)
Trigger7   = (Helper(190006),Var(21) & 16)
Trigger7   = 0 && Var(12) := Helper(190006),ID | Var(4) := Helper(190006),Var(24)
Trigger8   = Numhelper(190007)
Trigger8   = (Helper(190007),Var(21) & 16)
Trigger8   = 0 && Var(12) := Helper(190007),ID | Var(4) := Helper(190007),Var(24)
Trigger9   = Numhelper(190008)
Trigger9   = (Helper(190008),Var(21) & 16)
Trigger9   = 0 && Var(12) := Helper(190008),ID | Var(4) := Helper(190008),Var(24)
Trigger10  = Numhelper(190009)
Trigger10  = (Helper(190009),Var(21) & 16)
Trigger10  = 0 && Var(12) := Helper(190009),ID | Var(4) := Helper(190009),Var(24)
Trigger11  = Numhelper(190010)
Trigger11  = (Helper(190010),Var(21) & 16)
Trigger11  = 0 && Var(12) := Helper(190010),ID | Var(4) := Helper(190010),Var(24)
Trigger12  = Numhelper(190011)
Trigger12  = (Helper(190011),Var(21) & 16)
Trigger12  = 0 && Var(12) := Helper(190011),ID | Var(4) := Helper(190011),Var(24)
Trigger13  = Numhelper(190012)
Trigger13  = (Helper(190012),Var(21) & 16)
Trigger13  = 0 && Var(12) := Helper(190012),ID | Var(4) := Helper(190012),Var(24)
Trigger14  = Numhelper(190013)
Trigger14  = (Helper(190013),Var(21) & 16)
Trigger14  = 0 && Var(12) := Helper(190013),ID | Var(4) := Helper(190013),Var(24)
Trigger15  = Numhelper(190014)
Trigger15  = (Helper(190014),Var(21) & 16)
Trigger15  = 0 && Var(12) := Helper(190014),ID | Var(4) := Helper(190014),Var(24)
Trigger16  = Numhelper(190015)
Trigger16  = (Helper(190015),Var(21) & 16)
Trigger16  = 0 && Var(12) := Helper(190015),ID | Var(4) := Helper(190015),Var(24)
Trigger17  = Numhelper(190016)
Trigger17  = (Helper(190016),Var(21) & 16)
Trigger17  = 0 && Var(12) := Helper(190016),ID | Var(4) := Helper(190016),Var(24)
Trigger18  = Numhelper(190017)
Trigger18  = (Helper(190017),Var(21) & 16)
Trigger18  = 0 && Var(12) := Helper(190017),ID | Var(4) := Helper(190017),Var(24)
Trigger19  = Numhelper(190018)
Trigger19  = (Helper(190018),Var(21) & 16)
Trigger19  = 0 && Var(12) := Helper(190018),ID | Var(4) := Helper(190018),Var(24)
Trigger20  = Numhelper(190019)
Trigger20  = (Helper(190019),Var(21) & 16)
Trigger20  = 0 && Var(12) := Helper(190019),ID | Var(4) := Helper(190019),Var(24)
Trigger21  = Numhelper(190020)
Trigger21  = (Helper(190020),Var(21) & 16)
Trigger21  = 0 && Var(12) := Helper(190020),ID | Var(4) := Helper(190020),Var(24)
Trigger22  = Numhelper(190021)
Trigger22  = (Helper(190021),Var(21) & 16)
Trigger22  = 0 && Var(12) := Helper(190021),ID | Var(4) := Helper(190021),Var(24)
;Trigger23  = Numhelper(190022)
;Trigger23  = (Helper(190022),Var(21) & 16)
;Trigger23  = 0 && Var(12) := Helper(190022),ID | Var(4) := Helper(190022),Var(24)
;Trigger24  = Numhelper(190023)
;Trigger24  = (Helper(190023),Var(21) & 16)
;Trigger24  = 0 && Var(12) := Helper(190023),ID | Var(4) := Helper(190023),Var(24)
Ignorehitpause = 1

[State 1122222,探査ヘルパーID取得 : Hitpausetime無]
Type       = Null
Trigger1   = Numhelper(190000)
Trigger1   = (Helper(190000),Var(21) & 32)
Trigger1   = 0 && Var(13) := Helper(190000),ID | Var(5) := Helper(190000),Var(24)
Trigger2   = Numhelper(190001)
Trigger2   = (Helper(190001),Var(21) & 32)
Trigger2   = 0 && Var(13) := Helper(190001),ID | Var(5) := Helper(190001),Var(24)
Trigger3   = Numhelper(190002)
Trigger3   = (Helper(190002),Var(21) & 32)
Trigger3   = 0 && Var(13) := Helper(190002),ID | Var(5) := Helper(190002),Var(24)
Trigger4   = Numhelper(190003)
Trigger4   = (Helper(190003),Var(21) & 32)
Trigger4   = 0 && Var(13) := Helper(190003),ID | Var(5) := Helper(190003),Var(24)
Trigger5   = Numhelper(190004)
Trigger5   = (Helper(190004),Var(21) & 32)
Trigger5   = 0 && Var(13) := Helper(190004),ID | Var(5) := Helper(190004),Var(24)
Trigger6   = Numhelper(190005)
Trigger6   = (Helper(190005),Var(21) & 32)
Trigger6   = 0 && Var(13) := Helper(190005),ID | Var(5) := Helper(190005),Var(24)
Trigger7   = Numhelper(190006)
Trigger7   = (Helper(190006),Var(21) & 32)
Trigger7   = 0 && Var(13) := Helper(190006),ID | Var(5) := Helper(190006),Var(24)
Trigger8   = Numhelper(190007)
Trigger8   = (Helper(190007),Var(21) & 32)
Trigger8   = 0 && Var(13) := Helper(190007),ID | Var(5) := Helper(190007),Var(24)
Trigger9   = Numhelper(190008)
Trigger9   = (Helper(190008),Var(21) & 32)
Trigger9   = 0 && Var(13) := Helper(190008),ID | Var(5) := Helper(190008),Var(24)
Trigger10  = Numhelper(190009)
Trigger10  = (Helper(190009),Var(21) & 32)
Trigger10  = 0 && Var(13) := Helper(190009),ID | Var(5) := Helper(190009),Var(24)
Trigger11  = Numhelper(190010)
Trigger11  = (Helper(190010),Var(21) & 32)
Trigger11  = 0 && Var(13) := Helper(190010),ID | Var(5) := Helper(190010),Var(24)
Trigger12  = Numhelper(190011)
Trigger12  = (Helper(190011),Var(21) & 32)
Trigger12  = 0 && Var(13) := Helper(190011),ID | Var(5) := Helper(190011),Var(24)
Trigger13  = Numhelper(190012)
Trigger13  = (Helper(190012),Var(21) & 32)
Trigger13  = 0 && Var(13) := Helper(190012),ID | Var(5) := Helper(190012),Var(24)
Trigger14  = Numhelper(190013)
Trigger14  = (Helper(190013),Var(21) & 32)
Trigger14  = 0 && Var(13) := Helper(190013),ID | Var(5) := Helper(190013),Var(24)
Trigger15  = Numhelper(190014)
Trigger15  = (Helper(190014),Var(21) & 32)
Trigger15  = 0 && Var(13) := Helper(190014),ID | Var(5) := Helper(190014),Var(24)
Trigger16  = Numhelper(190015)
Trigger16  = (Helper(190015),Var(21) & 32)
Trigger16  = 0 && Var(13) := Helper(190015),ID | Var(5) := Helper(190015),Var(24)
Trigger17  = Numhelper(190016)
Trigger17  = (Helper(190016),Var(21) & 32)
Trigger17  = 0 && Var(13) := Helper(190016),ID | Var(5) := Helper(190016),Var(24)
Trigger18  = Numhelper(190017)
Trigger18  = (Helper(190017),Var(21) & 32)
Trigger18  = 0 && Var(13) := Helper(190017),ID | Var(5) := Helper(190017),Var(24)
Trigger19  = Numhelper(190018)
Trigger19  = (Helper(190018),Var(21) & 32)
Trigger19  = 0 && Var(13) := Helper(190018),ID | Var(5) := Helper(190018),Var(24)
Trigger20  = Numhelper(190019)
Trigger20  = (Helper(190019),Var(21) & 32)
Trigger20  = 0 && Var(13) := Helper(190019),ID | Var(5) := Helper(190019),Var(24)
Trigger21  = Numhelper(190020)
Trigger21  = (Helper(190020),Var(21) & 32)
Trigger21  = 0 && Var(13) := Helper(190020),ID | Var(5) := Helper(190020),Var(24)
Trigger22  = Numhelper(190021)
Trigger22  = (Helper(190021),Var(21) & 32)
Trigger22  = 0 && Var(13) := Helper(190021),ID | Var(5) := Helper(190021),Var(24)
;Trigger23  = Numhelper(190022)
;Trigger23  = (Helper(190022),Var(21) & 32)
;Trigger23  = 0 && Var(13) := Helper(190022),ID | Var(5) := Helper(190022),Var(24)
;Trigger24  = Numhelper(190023)
;Trigger24  = (Helper(190023),Var(21) & 32)
;Trigger24  = 0 && Var(13) := Helper(190023),ID | Var(5) := Helper(190023),Var(24)
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;探査開始フラグ

[State 1122222,探査停止]
Type       = Projectile
Triggerall = Roundstate = 2
Triggerall = PlayerIDexist(Var(6))
Triggerall = (PlayerID(Var(6)),Var(21) & 4)
Trigger1   = !Root,NumprojID(1992940)
Trigger1   = !Root,NumprojID(1992941)
Trigger1   = !Root,NumprojID(1992942)
Trigger1   = !Root,NumprojID(1992943)
Trigger2   = Var(16) = 0
Trigger2   = 0 && Var(16) := 3
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992935
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 0
Projhits        = 0
Projanim        = 6002
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

[State 1122222,探査開始の合図 : 優先探査]
Type       = Projectile
Triggerall = RoundState = 2
Triggerall = root,var(56) ;|| Root,NumprojID(1992935)
Triggerall = PlayerIDexist(Var(6))
Triggerall = (PlayerID(Var(6)),Var(21) & 4)
Trigger1   = Var(15) = [-20,0]
Attr       = ,N
Hitflag    = 
Guardflag  = 
ProjID     = 1992937
Postype    = Right
Offset     = 0,10000
Projremove = 0
Projremovetime  = 1
Projhits        = 0
Projanim        = 6002
Projedgebound   = 1000000
Projstagebound  = 1000000
Projheightbound = -1000000,1000000
Pausemovetime   = 2147483647
Supermovetime   = 2147483647
Ignorehitpause  = 1

;--------------------------------------------------------------------------------------
;探査情報取得 : Life減少ステート

[State 1122222,Life減少ステート]
Type       = Varset
Trigger1   = Root,NumprojID(1992941)
FV         = 1 + !!Fvar(1) + !!Fvar(2) + !!Fvar(3) + !!Fvar(4) + !!Fvar(5) + !!Fvar(6) + !!Fvar(7) + !!Fvar(8) + !!Fvar(9)
Value      = Var(8)
Ignorehitpause = 1

[State 1122222,Hitdefステート]
Type       = Varset
Trigger1   = Root,NumprojID(1992942)
FV         = 11 + !!Fvar(11) + !!Fvar(12) + !!Fvar(13) + !!Fvar(14) + !!Fvar(15) + !!Fvar(16) + !!Fvar(17) + !!Fvar(18) + !!Fvar(19)
Value      = Var(8)
Ignorehitpause = 1

[State 1122222,Hitbyステート]
Type       = Varset
Trigger1   = Root,NumprojID(1992943)
FV         = 21 + !!Fvar(21) + !!Fvar(22) + !!Fvar(23) + !!Fvar(24) + !!Fvar(25) + !!Fvar(26) + !!Fvar(27) + !!Fvar(28) + !!Fvar(29)
Value      = Var(8) - !Root,NumprojID(1992937)
Ignorehitpause = 1

[State 1122222,回避ステート]
Type       = Varset
Trigger1   = Root,NumprojID(1992940)
FV         = 39 - !!Fvar(39) - !!Fvar(38) - !!Fvar(37) - !!Fvar(36)
Value      = Var(7)
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;探査情報リセット

[State 1122222,リセット : Life減少]
Type       = Null
Trigger1   = Fvar(10) = Fvar(1) | Fvar(10) = Fvar(2) | Fvar(10) = Fvar(3) | Fvar(10) = Fvar(4) | Fvar(10) = Fvar(5) | Fvar(10) = Fvar(6) | Fvar(10) = Fvar(7) | Fvar(10) = Fvar(8) | Fvar(10) = Fvar(9)
Trigger1   = Fvar(10) := 0
Trigger2   = Fvar(9) = Fvar(1) | Fvar(9) = Fvar(2) | Fvar(9) = Fvar(3) | Fvar(9) = Fvar(4) | Fvar(9) = Fvar(5) | Fvar(9) = Fvar(6) | Fvar(9) = Fvar(7) | Fvar(9) = Fvar(8)
Trigger2   = Fvar(9) := 0
Trigger3   = Fvar(8) = Fvar(1) | Fvar(8) = Fvar(2) | Fvar(8) = Fvar(3) | Fvar(8) = Fvar(4) | Fvar(8) = Fvar(5) | Fvar(8) = Fvar(6) | Fvar(8) = Fvar(7)
Trigger3   = Fvar(8) := 0
Trigger4   = Fvar(7) = Fvar(1) | Fvar(7) = Fvar(2) | Fvar(7) = Fvar(3) | Fvar(7) = Fvar(4) | Fvar(7) = Fvar(5) | Fvar(7) = Fvar(6)
Trigger4   = Fvar(7) := 0
Trigger5   = Fvar(6) = Fvar(1) | Fvar(6) = Fvar(2) | Fvar(6) = Fvar(3) | Fvar(6) = Fvar(4) | Fvar(6) = Fvar(5)
Trigger5   = Fvar(6) := 0
Trigger6   = Fvar(5) = Fvar(1) | Fvar(5) = Fvar(2) | Fvar(5) = Fvar(3) | Fvar(5) = Fvar(4)
Trigger6   = Fvar(5) := 0
Trigger7   = Fvar(4) = Fvar(1) | Fvar(4) = Fvar(2) | Fvar(4) = Fvar(3)
Trigger7   = Fvar(4) := 0
Trigger8   = Fvar(3) = Fvar(1) | Fvar(3) = Fvar(2)
Trigger8   = Fvar(3) := 0
Trigger9   = Fvar(2) = Fvar(1)
Trigger9   = Fvar(2) := 0
Ignorehitpause = 1

[State 1122222,リセット : Hitdef]
Type       = Null
Trigger1   = Fvar(20) = Fvar(11) | Fvar(20) = Fvar(12) | Fvar(20) = Fvar(13) | Fvar(20) = Fvar(14) | Fvar(20) = Fvar(15) | Fvar(20) = Fvar(16) | Fvar(20) = Fvar(17) | Fvar(20) = Fvar(18) | Fvar(20) = Fvar(19)
Trigger1   = Fvar(20) := 0
Trigger2   = Fvar(19) = Fvar(11) | Fvar(19) = Fvar(12) | Fvar(19) = Fvar(13) | Fvar(19) = Fvar(14) | Fvar(19) = Fvar(15) | Fvar(19) = Fvar(16) | Fvar(19) = Fvar(17) | Fvar(19) = Fvar(18)
Trigger2   = Fvar(19) := 0
Trigger3   = Fvar(18) = Fvar(11) | Fvar(18) = Fvar(12) | Fvar(18) = Fvar(13) | Fvar(18) = Fvar(14) | Fvar(18) = Fvar(15) | Fvar(18) = Fvar(16) | Fvar(18) = Fvar(17)
Trigger3   = Fvar(18) := 0
Trigger4   = Fvar(17) = Fvar(11) | Fvar(17) = Fvar(12) | Fvar(17) = Fvar(13) | Fvar(17) = Fvar(14) | Fvar(17) = Fvar(15) | Fvar(17) = Fvar(16)
Trigger4   = Fvar(17) := 0
Trigger5   = Fvar(16) = Fvar(11) | Fvar(16) = Fvar(12) | Fvar(16) = Fvar(13) | Fvar(16) = Fvar(14) | Fvar(16) = Fvar(15)
Trigger5   = Fvar(16) := 0
Trigger6   = Fvar(15) = Fvar(11) | Fvar(15) = Fvar(12) | Fvar(15) = Fvar(13) | Fvar(15) = Fvar(14)
Trigger6   = Fvar(15) := 0
Trigger7   = Fvar(14) = Fvar(11) | Fvar(14) = Fvar(12) | Fvar(14) = Fvar(13)
Trigger7   = Fvar(14) := 0
Trigger8   = Fvar(13) = Fvar(11) | Fvar(13) = Fvar(12)
Trigger8   = Fvar(13) := 0
Trigger9   = Fvar(12) = Fvar(11)
Trigger9   = Fvar(12) := 0
Ignorehitpause = 1

[State 1122222,リセット : Hitby]
Type       = Null
Trigger1   = Fvar(30) = Fvar(20) | Fvar(30) = Fvar(21) | Fvar(30) = Fvar(22) | Fvar(30) = Fvar(23) | Fvar(30) = Fvar(24) | Fvar(30) = Fvar(25) | Fvar(30) = Fvar(26) | Fvar(30) = Fvar(27) | Fvar(30) = Fvar(28) | Fvar(30) = Fvar(29)
Trigger1   = Fvar(30) := 0
Trigger2   = Fvar(29) = Fvar(20) | Fvar(29) = Fvar(21) | Fvar(29) = Fvar(22) | Fvar(29) = Fvar(23) | Fvar(29) = Fvar(24) | Fvar(29) = Fvar(25) | Fvar(29) = Fvar(26) | Fvar(29) = Fvar(27) | Fvar(29) = Fvar(28)
Trigger2   = Fvar(29) := 0
Trigger3   = Fvar(28) = Fvar(20) | Fvar(28) = Fvar(21) | Fvar(28) = Fvar(22) | Fvar(28) = Fvar(23) | Fvar(28) = Fvar(24) | Fvar(28) = Fvar(25) | Fvar(28) = Fvar(26) | Fvar(28) = Fvar(27)
Trigger3   = Fvar(28) := 0
Trigger4   = Fvar(27) = Fvar(20) | Fvar(27) = Fvar(21) | Fvar(27) = Fvar(22) | Fvar(27) = Fvar(23) | Fvar(27) = Fvar(24) | Fvar(27) = Fvar(25) | Fvar(27) = Fvar(26)
Trigger4   = Fvar(27) := 0
Trigger5   = Fvar(26) = Fvar(20) | Fvar(26) = Fvar(21) | Fvar(26) = Fvar(22) | Fvar(26) = Fvar(23) | Fvar(26) = Fvar(24) | Fvar(26) = Fvar(25)
Trigger5   = Fvar(26) := 0
Trigger6   = Fvar(25) = Fvar(20) | Fvar(25) = Fvar(21) | Fvar(25) = Fvar(22) | Fvar(25) = Fvar(23) | Fvar(25) = Fvar(24)
Trigger6   = Fvar(25) := 0
Trigger7   = Fvar(24) = Fvar(20) | Fvar(24) = Fvar(21) | Fvar(24) = Fvar(22) | Fvar(24) = Fvar(23)
Trigger7   = Fvar(24) := 0
Trigger8   = Fvar(23) = Fvar(20) | Fvar(23) = Fvar(21) | Fvar(23) = Fvar(22)
Trigger8   = Fvar(23) := 0
Trigger9   = Fvar(22) = Fvar(20) | Fvar(22) = Fvar(21)
Trigger9   = Fvar(22) := 0
Ignorehitpause = 1

[State 1122222,リセット : 回避]
Type       = Null
Trigger1   = Fvar(35) = Fvar(39) | Fvar(35) = Fvar(38) | Fvar(35) = Fvar(37) | Fvar(35) = Fvar(36)
Trigger1   = Fvar(35) := 0
Trigger2   = Fvar(36) = Fvar(39) | Fvar(36) = Fvar(38) | Fvar(36) = Fvar(37)
Trigger2   = Fvar(36) := 0
Trigger3   = Fvar(37) = Fvar(39) | Fvar(37) = Fvar(38)
Trigger3   = Fvar(37) := 0
Trigger4   = Fvar(38) = Fvar(39)
Trigger4   = Fvar(38) := 0
Ignorehitpause = 1

[State 1122222,リセット : 回避]
Type       = Null
Trigger1   = Floor(Fvar(39)) < Var(8)
Trigger1   = Fvar(39) := 0
Trigger2   = Floor(Fvar(38)) < Var(8)
Trigger2   = Fvar(38) := 0
Trigger3   = Floor(Fvar(37)) < Var(8)
Trigger3   = Fvar(37) := 0
Trigger4   = Floor(Fvar(36)) < Var(8)
Trigger4   = Fvar(36) := 0
Trigger5   = Floor(Fvar(35)) < Var(8)
Trigger5   = Fvar(35) := 0
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;ステート移行
[State 1122222,ステート移行 : 整理]
Type       = Selfstate
Trigger1   = Fvar(1) || Fvar(11) || Fvar(21)
Trigger2   = Fvar(35) || Fvar(36) || Fvar(37) || Fvar(38) || Fvar(39)
Value      = 1992906
Persistent = 256
Ignorehitpause = 1

[State 1122222,ステート移行 : 選択]
Type       = Selfstate
Trigger1   = 1
Value      = 1992907
Persistent = 256
Ignorehitpause = 1

[State 準ステ固定]
type = Changestate
trigger1 = ishelper
value = 16500
ignorehitpause = 1
;--------------------------------------------------------------------------
;雑用ヘルパー : 記憶したステートの整理用ステート

[Statedef 1992906]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1

[State ,自キャラ以外]
Type       = Changestate
Trigger1   = Name != "OROCHI G3"
Value      = 45000
Persistent = 256
Ignorehitpause = 1

[State 1992906,整理 : Life減少ステート]
Type       = Null
Triggerall = Var(10) := 1
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Ignorehitpause = 1

[State 1992906,整理 : Hitdefステート]
Type       = Null
Triggerall = Var(10) := 11
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Ignorehitpause = 1

[State 1992906,整理 : Hitbyステート]
Type       = Null
Triggerall = Var(10) := 21
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Trigger1   = 1 || Fvar(Var(10)) := Ifelse(!Fvar(Var(10)) && Fvar(Var(10) + 1),Fvar(Var(10) := Var(10) + 1),Fvar(Var(10) - 1))
Ignorehitpause = 1

[State 1992906,整理用ループ]
Type       = Selfstate
Triggerall = Var(14) := Var(14) + 1
Trigger1   = Var(14) = [1,10]
Value      = 1992906
Persistent = 256
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;ステート移行
;--------------------------------------------------------------------------------------
[State 1992906,ステート移行 : 選択]
Type       = Selfstate
;Triggerall = Roundstate = 2
Trigger1   = 1 || Var(14) := 0
Value      = 1992907
Persistent = 256
Ignorehitpause = 1


[State 準ステ固定]
type = Changestate
trigger1 = ishelper
value = 16500
ignorehitpause = 1
;-----------------------------------------------------------------------
;雑用ヘルパー : 選択/決定ステート

[Statedef 1992907]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1

;--------------------------------------------------------------------------------------
;返すステートの決定
;--------------------------------------------------------------------------------------
[State 1992907,定期的に返す]
Type       = Varset
Trigger1   = Var(11) != [0,450]
Trigger1   = Var(11) := 0
Trigger2   = Var(11) := Var(11) + 1
V          = 10
Value      = 0
Ignorehitpause = 1

[State 1992907,返すステートの決定 : Life減少]
Type       = Varset
Triggerall = Var(11) = (0,150]
Triggerall = Gametime%5 = 0
Trigger1   = Var(10) := 1 + !!Fvar(2)+!!Fvar(3)+!!Fvar(4)+!!Fvar(5)+!!Fvar(6)+!!Fvar(7)+!!Fvar(8)+!!Fvar(9)+!!Fvar(10)
V          = 9
Value      = Floor(Fvar(1 + Random%Var(10)))
Ignorehitpause = 1

[State 1992907,返すステートの決定 : Hitdef]
Type       = Varset
Triggerall = Var(11) = (150,300]
Triggerall = Gametime%5 = 0
Trigger1   = Var(10) := 1 + !!Fvar(12)+!!Fvar(13)+!!Fvar(14)+!!Fvar(15)+!!Fvar(16)+!!Fvar(17)+!!Fvar(18)+!!Fvar(19)+!!Fvar(20)
V          = 9
Value      = Floor(Fvar(11 + Random%Var(10)))
Ignorehitpause = 1

[State 1992907,返すステートの決定 : Life減少]
Type       = Varset
Triggerall = Var(11) = (300,450]
Triggerall = Gametime%5 = 0
Trigger1   = Var(10) := 1 + !!Fvar(22)+!!Fvar(23)+!!Fvar(24)+!!Fvar(25)+!!Fvar(26)+!!Fvar(27)+!!Fvar(28)+!!Fvar(29)+!!Fvar(30)
V          = 9
Value      = Floor(Fvar(21 + Random%Var(10)))
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;探査するステートの決定
;--------------------------------------------------------------------------------------
[State 1992907,探査ステート決定 : 優先]
Type       = Null
Triggerall = Root,NumprojID(1992937)
Triggerall = Var(15) := Var(15) - 1 || Var(7) := (Var(8) := 0)
Trigger1   = Var(15) = [-2,-1]
Trigger1   = Var(7) := 213101
Trigger2   = Var(15) = [-4,-3]
Trigger2   = Var(7) := 9997 || Var(8) := 213101
Trigger3   = Var(15) = [-6,-5]
Trigger3   = Var(7) := 70006 || Var(8) := 9997
Trigger4   = Var(15) = [-8,-7]
Trigger4   = Var(7) := 169995 || Var(8) := 70006
Trigger5   = Var(15) = [-10,-9]
Trigger5   = Var(7) := 30201 || Var(8) := 169995
Trigger6   = Var(15) = [-12,-11]
Trigger6   = Var(7) := 4500 || Var(8) := 30201
Trigger7   = Var(15) = [-14,-13]
Trigger7   = Var(7) := 4700 || Var(8) := 4500
Trigger8   = Var(15) = [-16,-15]
Trigger8   = Var(7) := 90000 || Var(8) := 4700
Trigger9   = Var(15) = [-18,-17]
Trigger9   = Var(8) := 90000
Ignorehitpause = 1

[State 1992907,探査ステート決定 : 通常]
Type       = Varadd
Triggerall = Root,NumprojID(1992935)
Triggerall = Root,NumprojID(1992937) = 0
Triggerall = Var(7) := Var(7) + 1
Trigger1   = Var(7) > Var(8) + 5
V          = 8
Value      = 1
Ignorehitpause = 1

[State 1992907,探査ステート決定 : 探査停止時]
Type       = Varadd
Triggerall = Root,NumprojID(1992937) = 0
Triggerall = Var(16) := Var(16) - (Var(16) > 0)
Trigger1   = Var(16) = 1
Trigger1   = Var(7) := Var(7) + 1
Trigger1   = Var(7) > Var(8) + 5
V          = 8
Value      = 1
Ignorehitpause = 1

[State 1992907,探査ステート決定 : 最初の設定]
Type       = Null
Triggerall = Root,NumprojID(1992937) = 0
Trigger1   = Var(7) <= 1
Trigger1   = 0 && Var(7) := 1;5000
Trigger2   = Var(8) <= 1
Trigger2   = Var(8) := 1;5000
Ignorehitpause = 1

[State 1992907,回避 : 1増加]
Type       = Varset
Trigger1   = Var(7) = 0 || Var(7) = 20 || Var(7) = 100 || Var(7) = 110 || Var(7) = 115 || Var(7) = 120 || Var(7) = 140
Trigger2   = Var(7) = 5020 || Var(7) = 5030 || Var(7) = 5035 || Var(7) = 5040 || Var(7) = 5050
Trigger3   = Var(7) = 5110 || Var(7) = 5120 || Var(7) = 5150 || Var(7) = 5210 || Var(7) = 5500 || Var(7) = 5900
V          = 7
Value      = Var(7) + 1
Ignorehitpause = 1

[State 1992907,回避 : 1増加]
Type       = Varset
Trigger1   = Var(8) = 0 || Var(8) = 20 || Var(8) = 100 || Var(8) = 110 || Var(8) = 115 || Var(8) = 120 || Var(8) = 140
Trigger2   = Var(8) = 5020 || Var(8) = 5030 || Var(8) = 5035 || Var(8) = 5040 || Var(8) = 5050
Trigger3   = Var(8) = 5110 || Var(8) = 5120 || Var(8) = 5150 || Var(8) = 5210 || Var(8) = 5500 || Var(8) = 5900
V          = 8
Value      = Var(8) + 1
Ignorehitpause = 1

[State 1992907,回避 : 2増加]
Type       = Varset
Trigger1   = Var(7) = 5000 || Var(7) = 5010 || Var(7) = 5070
Trigger2   = Var(7) = 5080 || Var(7) = 5100 || Var(7) = 5200
V          = 7
Value      = Var(7) + 2
Ignorehitpause = 1

[State 1992907,回避 : 2増加]
Type       = Varset
Trigger1   = Var(8) = 5000 || Var(8) = 5010 || Var(8) = 5070
Trigger2   = Var(8) = 5080 || Var(8) = 5100 || Var(8) = 5200
V          = 8
Value      = Var(8) + 2
Ignorehitpause = 1

[State 1992907,回避 : 3増加]
Type       = Varset
Trigger1   = Var(7) = 10 || Var(7) = 105 || Var(7) = 130
V          = 7
Value      = Var(7) + 3
Ignorehitpause = 1

[State 1992907,回避 : 3増加]
Type       = Varset
Trigger1   = Var(8) = 10 || Var(8) = 105 || Var(8) = 130
V          = 8
Value      = Var(8) + 3
Ignorehitpause = 1

[State 1992907,回避 : 準汎用]
Type       = Varset
Trigger1   = 0;Var(7) = 1;			雷様
Trigger2   = Var(7) = 60;			欠損少女
Trigger3   = Var(7) = 111;			P-mukai
Trigger4   = Var(7) = 210 || Var(7) = 13006;	「」
Trigger5   = Var(7) = 815 || Var(7) = 3020 || Var(7) = 3040 || Var(7) = 3050;メガリス
Trigger6   = Var(7) = 3030 || Var(7) = 3052;	メガリス
Trigger6   = Var(7) := Var(7) + 1
Trigger7   = Var(7) = 1830 || Var(7) = 1840 || Var(7) = 4010 || Var(7) = 4020 || Var(7) = 4040 || Var(7) = 11110;Wind_FS
Trigger8   = Var(7) = 2200 || Var(7) = 3801 || Var(7) = 23000;ハデス
Trigger9   = Var(7) = 50000;			KFMSP
Trigger10  = Var(7) = 6400000;			邪眼意思
Trigger11  = Var(7) = 1510;			オニワルド
Trigger12  = Var(7) = 121;			神みずか
Trigger13  = Var(7) = 5151 || Var(7) = 5152;	フラウロス　一応回避
Trigger14  = Var(7) = 510;                      Ｇテスト	
Trigger15  = Var(7) = 1 || Var(7) = 2;           Rクナギ
Trigger16  = Var(7) = 18;                       天魔
Trigger17  = Var(7) = 3250;                     無敵グリフォン
Trigger18  = Var(7) = 1200;                     コハクリザ
Trigger19  = Var(7) = 2203;			殺神貴試験体Ver.K、Ver.A
Trigger19  = Var(7) := Var(7) + 2	
V          = 7
Value      = Var(7) + 1
Ignorehitpause = 1

[State 1992907,回避 : 準汎用]
Type       = Varset
Trigger1   = 0;Var(8) = 1;			雷様
Trigger2   = Var(8) = 60;			欠損少女
Trigger3   = Var(8) = 111;			P-mukai
Trigger4   = Var(8) = 210 || Var(8) = 13006;	「」
Trigger5   = Var(8) = 815 || Var(8) = 3020 || Var(8) = 3040 || Var(8) = 3050;メガリス
Trigger6   = Var(8) = 3030 || Var(8) = 3052;	メガリス
Trigger6   = Var(8) := Var(8) + 1
Trigger7   = Var(8) = 1830 || Var(8) = 1840 || Var(8) = 4010 || Var(8) = 4020 || Var(8) = 4040 || Var(8) = 11110;Wind_FS
Trigger8   = Var(8) = 2200 || Var(8) = 3801 || Var(8) = 23000;　ハデス
Trigger9   = Var(8) = 50000;			KFMSP
Trigger10  = Var(8) = 6400000;			邪眼意思
Trigger11  = Var(8) = 1510;			オニワルド
Trigger12  = Var(8) = 121;			神みずか
Trigger13  = Var(8) = 5151 || Var(8) = 5152;    フラウロス　一応回避
Trigger14  = Var(8) = 510;                      Ｇテスト
Trigger15  = Var(8) = 1 || Var(8) = 2;          Rクナギ
Trigger16  = Var(8) = 18;                       天魔
Trigger17  = Var(8) = 3250;                     無敵グリフォン
Trigger18  = Var(8) = 1200;                     コハクリザ
Trigger19  = Var(8) = 2203;			殺神貴試験体Ver.K、Ver.A
Trigger19  = Var(8) := Var(7) + 2	
V          = 8
Value      = Var(8) + 1
Ignorehitpause = 1

[State 1992907,回避 : その他]
Type       = Null
Trigger1   = Var(7) = 40
Trigger1   = 0 && Var(7) := Var(7) + 13
Trigger2   = Var(7) = 150
Trigger2   = 0 && Var(7) := Var(7) + 6
Trigger3   = Fvar(39) && Var(7) = Floor(Fvar(39))
Trigger3   = 0 && Var(7) := Var(7) + 1
Trigger4   = Fvar(38) && Var(7) = Floor(Fvar(38))
Trigger4   = 0 && Var(7) := Var(7) + 1
Trigger5   = Fvar(37) && Var(7) = Floor(Fvar(37))
Trigger5   = 0 && Var(7) := Var(7) + 1
Trigger6   = Fvar(36) && Var(7) = Floor(Fvar(36))
Trigger6   = 0 && Var(7) := Var(7) + 1
Trigger7   = Fvar(35) && Var(7) = Floor(Fvar(35))
Trigger7   = 0 && Var(7) := Var(7) + 1
Ignorehitpause = 1

[State 1992907,回避 : その他]
Type       = Null
Trigger1   = Var(8) = 40
Trigger1   = 0 && Var(8) := Var(8) + 13
Trigger2   = Var(8) = 150
Trigger2   = 0 && Var(8) := Var(8) + 6
Trigger3   = Fvar(39) && Var(8) = Floor(Fvar(39))
Trigger3   = 0 && Var(8) := Var(8) + 1
Trigger4   = Fvar(38) && Var(8) = Floor(Fvar(38))
Trigger4   = 0 && Var(8) := Var(8) + 1
Trigger5   = Fvar(37) && Var(8) = Floor(Fvar(37))
Trigger5   = 0 && Var(8) := Var(8) + 1
Trigger6   = Fvar(36) && Var(8) = Floor(Fvar(36))
Trigger6   = 0 && Var(8) := Var(8) + 1
Trigger7   = Fvar(35) && Var(8) = Floor(Fvar(35))
Trigger7   = 0 && Var(8) := Var(8) + 1
Ignorehitpause = 1

;--------------------------------------------------------------------------------------
;デバッグ
;--------------------------------------------------------------------------------------
[State 1992905,デバッグ : ID/返すステート]
Type       = Displaytoclipboard
Trigger1   = 1
Text       = "ID1=%d,ID2=%d,STATE=%d,RANDOM1=%d,RANDOM2=%d\n"
Params     = Var(12),Var(13),Var(9),Var(10),Var(11)
Ignorehitpause = 1

[State 1992905,デバッグ : 探査中ステート]
Type       = Appendtoclipboard
Trigger1   = 1
Text       = "S1=%d,S2=%d"
Params     = Var(7),Var(8)
Ignorehitpause = 1

[State 1992905,デバッグ : 探査取得ステート]
Type       = Appendtoclipboard
Trigger1   = gametime%240=[0,59]
Text       = ",FV1=%d,FV2=%d,FV3=%d,FV4=%d,FV5=%d"
Params     = Floor(Fvar(1)),Floor(Fvar(2)),Floor(Fvar(3)),Floor(Fvar(4)),Floor(Fvar(5))
Ignorehitpause = 1

[State 1992905,デバッグ : 探査取得ステート]
Type       = Appendtoclipboard
Trigger1   = gametime%240=[60,119]
Text       = ",FV11=%d,FV12=%d,FV13=%d,FV14=%d,FV15=%d"
Params     = Floor(Fvar(11)),Floor(Fvar(12)),Floor(Fvar(13)),Floor(Fvar(14)),Floor(Fvar(15))
Ignorehitpause = 1

[State 1992905,デバッグ : 探査取得ステート]
Type       = Appendtoclipboard
Trigger1   = gametime%240=[120,179]
Text       = ",FV21=%d,FV22=%d,FV23=%d,FV24=%d,FV25=%d"
Params     = Floor(Fvar(21)),Floor(Fvar(22)),Floor(Fvar(23)),Floor(Fvar(24)),Floor(Fvar(25))
Ignorehitpause = 1

[State 1992905,デバッグ : 探査取得ステート]
Type       = Appendtoclipboard
Trigger1   = gametime%240=[180,240]
Text       = ",FV39=%d,FV38=%d,FV37=%d,FV36=%d,FV35=%d"
Params     = Floor(Fvar(39)),Floor(Fvar(38)),Floor(Fvar(37)),Floor(Fvar(36)),Floor(Fvar(35))
Ignorehitpause = 1

[State 準ステ固定]
type = Changestate
trigger1 = ishelper
value = 16500
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

;---------------------------------------------------------------------
;対　コンナハズリッドステート
[Statedef 85151]
Type=U
Movetype=U
Physics=U
Movehitpersist = 1
Hitdefpersist = 1

[State 85151, お前誰ー？ｗ]
type = ChangeState
value = 45000
trigger1 = !(name = "Krizalid" && authorname = "SAMSARA")
persistent = 256
ignorehitpause = 1

[State 85151, 行動状態リセット]
type = Statetypeset
movetype = A
trigger1 = 1
ignorehitpause = 1

[State 85151, カメラ固定]
type = Screenbound
value = 0
trigger1 = 1
ignorehitpause = 1

[State 85151, 無敵]
type = Nothitby
value = SCA
time = 1
trigger1 = 1
ignorehitpause = 1

[State 85151, HitDef解除]
type = Hitdef
trigger1 = 1
attr = 
ignorehitpause = 1

[State 85151, 変数セット]
type = Varset
sysfvar(0) = 1
trigger1 = roundstate = 2
ignorehitpause = 1

[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990030)
helpertype = normal
name = "konnnahazuha-"
id = 705990030
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990031)
helpertype = normal
name = "konnnahazuha-"
id = 705990031
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990032)
helpertype = normal
name = "konnnahazuha-"
id = 705990032
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990010)
helpertype = normal
name = "konnnahazuha-"
id = 705990010
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990011)
helpertype = normal
name = "konnnahazuha-"
id = 705990011
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990012)
helpertype = normal
name = "konnnahazuha-"
id = 705990012
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990020)
helpertype = normal
name = "konnnahazuha-"
id = 705990020
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990021)
helpertype = normal
name = "konnnahazuha-"
id = 705990021
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990022)
helpertype = normal
name = "konnnahazuha-"
id = 705990022
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990040)
helpertype = normal
name = "konnnahazuha-"
id = 705990040
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990041)
helpertype = normal
name = "konnnahazuha-"
id = 705990041
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990042)
helpertype = normal
name = "konnnahazuha-"
id = 705990042
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990000)
helpertype = normal
name = "konnnahazuha-"
id = 705990000
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990001)
helpertype = normal
name = "konnnahazuha-"
id = 705990001
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990002)
helpertype = normal
name = "konnnahazuha-"
id = 705990002
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990003)
helpertype = normal
name = "konnnahazuha-"
id = 705990003
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990004)
helpertype = normal
name = "konnnahazuha-"
id = 705990004
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990005)
helpertype = normal
name = "konnnahazuha-"
id = 705990005
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990006)
helpertype = normal
name = "konnnahazuha-"
id = 705990006
pos = 0,-1000
stateno = 96969696
ignorehitpause = 1
[State 85151]
type = helper
triggerall = playeridexist(id)
trigger1 = !numhelper(705990007)
helpertype = normal
name = "konnnahazuha-"
id = 705990007
pos = 0,-1000
stateno = 96969696
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
trigger1 = ishelper(110022)
ignorehitpause = 1

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


[State 100022, アーマー処理]
type = null;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
;triggerall = enemynear,name != "Ill-Fate-Misuzu"
trigger1 = Root,alive
ignorehitpause = 1


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

;飛び道具
[StateDef 14550]
type = U
movetype = U
physics = N
movehitpersist = 1
hitdefpersist = 1





[State ]
type = Statetypeset
trigger1 = Ishelper(14550)
statetype = S
movetype = I
physics = N
persistent = 0
ignorehitpause = 1

[State ]
type = Velset
trigger1 = Ishelper(14550)
trigger1 = animelem = 1 
x = 0
y = 0
persistent = 0
ignorehitpause = 1

[State ]
type = Changeanim
trigger1 = anim !=  14550
value = 14550
persistent = 0
ignorehitpause = 1

[State ]
type = Ctrlset
trigger1 = Ishelper(14550)
value = 0
persistent = 0
ignorehitpause = 1

[State ]
type = NotHitBy
triggerall = ishelper
trigger1 = Ishelper(14550)
value = SCA
ignorehitpause = 1


[State ]
type = Screenbound
trigger1 = Ishelper(14550)
value = 0
movecamera = 0

[State ]
type = Playsnd
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) = 0
value = 183,0
volume = 255

[State ]
type = Playsnd
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) = 40
value = 183,1
volume = 255

[State ]
type = Trans
trigger1 = Ishelper(14550)
trans = add
ignorehitpause = 1

[State ]
type = Velset
trigger1 = Ishelper(14550)
;trigger1 = animelemtime(12)
trigger1 = sysvar(3) >= 40
x = 4
ignorehitpause = 1

[State ]
type = AngleDraw
trigger1 = Ishelper(14550)
;trigger1 = animelemtime(12)
trigger1 = sysvar(3) >= 40
scale = 1.0,1.0

[State ]
type = AngleAdd
trigger1 = Ishelper(14550)
trigger1 = animelemtime(12)
value = -13

[State ]
type = null;Turn
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) > 50
ignorehitpause = 1
persistent = 0

[state ]
type = velset
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) = 0
x = 0

[state ]
type = veladd
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) >= 40
x = -.1

[State ]
type = Angleadd
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) > 59
value = -13
ignorehitpause = 1

[State ]
type = AssertSpecial
trigger1 = Ishelper(14550)
flag = noshadow

[State ]
type = Projectile
trigger1 = Ishelper(14550)
trigger1 = animelemtime(12)
trigger1 = sysvar(3) >= 40
trigger1 = gametime%10
trigger1 = Root,palno=6
attr = S, NA
animtype  = hard
damage = 5,5
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 14555
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
priority = 7, Hit
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = 0,0
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
palfx.time = 50
palfx.add = 0,0,0
palfx.mul = 50,50,250
palfx.sinadd = 100,100,100,100
palfx.color = 0
palfx.invertall = 1
supermovetime = 99999999999
pausemovetime = 99999999999


[State ]
type = Projectile
trigger1 = Ishelper(14550)
trigger1 = animelemtime(12)
trigger1 = sysvar(3) >= 40
trigger1 = gametime%10
trigger1 = Root,palno!=6
attr = S, NA
animtype  = hard
damage = 50,999999999
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 14555
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
priority = 7, Hit
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = 0,0
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
palfx.time = 50
palfx.add = 0,0,0
palfx.mul = 50,50,250
palfx.sinadd = 100,100,100,100
palfx.color = 0
palfx.invertall = 1
supermovetime = 99999999999
pausemovetime = 99999999999

[State -2, 時間計測]
type = Varadd
triggerall = ishelper
trigger1 = 1
sysvar(3) = 1
ignorehitpause = 1

[State -2, エフェクト]
type = Explod
triggerall = ishelper
trigger1 = Random < 50;gametime % 60 = 0
trigger2 = gametime % 60 = 0
postype = p1
pos = 10 - random % 40, - 10 - random % 40
anim = 14560
ID = 14563
facing = ifelse(random % 2 = 0, 1, -1)
vfacing = ifelse(random % 2 = 0, 1, -1)
scale = 0.2, 0.2
ontop = 1
ownpal  = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State ]
type = Selfstate
trigger1 = Ishelper(14550)
trigger1 = sysvar(3) >= 150
value = 14570
persistent = 256
ignorehitpause = 1

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


[State ]
type = Changeanim
trigger1 = anim != 14570
value = 14570
persistent = 0
ignorehitpause = 1

[State ]
type = Ctrlset
trigger1 = 1
value = 0
persistent = 0
ignorehitpause = 1

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

[State ]
type = Screenbound
trigger1 = 1
value = 1
movecamera = 1

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

[State ]
type = PlaySnd
trigger1 = sysvar(2) = 1
value = 183,1

[State ]
type = AngleDraw
trigger1 = sysvar(2) >= 40
scale = 1.0,1.0

[State ]
type = AngleAdd
trigger1 = sysvar(2) >= 40
value = 13

[state ]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State ]
type = Projectile
trigger1 = animelemtime(1)
trigger1 = sysvar(2) <= 150
trigger1 = gametime%10
trigger1 = Root,palno=6
attr = S, NA
animtype  = hard
damage = 5,5
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 14555
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = 0,0
guardsound = s183,2
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
palfx.time = 50
palfx.add = 0,0,0
palfx.mul = 50,50,250
palfx.sinadd = 100,100,100,100
palfx.color = 0
palfx.invertall = 1
supermovetime = 99999999999
pausemovetime = 99999999999

[State ]
type = Projectile
trigger1 = animelemtime(1)
trigger1 = sysvar(2) <= 150
trigger1 = gametime%10
trigger1 = Root,palno!=6
attr = S, NA
animtype  = hard
damage = 50,999999999
getpower = 0
givepower = -1
guardflag = M
hitflag = MAF
projanim = 14555
projremove = 0
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
pausetime = 0,0
sparkno = -1
guard.sparkno = -1
sparkxy = 0,0
guardsound = s183,2
ground.type = high 
ground.slidetime = 5
ground.hittime  = 5
ground.velocity = 0,-2
airguard.velocity = 0,0
air.type = Low
air.velocity = 0,-1
air.hittime = 5
fall = 1
palfx.time = 50
palfx.add = 0,0,0
palfx.mul = 50,50,250
palfx.sinadd = 100,100,100,100
palfx.color = 0
palfx.invertall = 1
supermovetime = 99999999999
pausemovetime = 99999999999

[State -2, エフェクト]
type = Explod
triggerall = ishelper
trigger1 = Random < 50;gametime % 60 = 0
trigger2 = gametime % 60 = 0
postype = p1
pos = 10 - random % 40, - 10 - random % 40
anim = 14560
ID = 14563
facing = ifelse(random % 2 = 0, 1, -1)
vfacing = ifelse(random % 2 = 0, 1, -1)
scale = 0.2, 0.2
ontop = 1
ownpal  = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = velset
trigger1 = sysvar(2) = 0
x = 0

[state ]
type = veladd
trigger1 = sysvar(2) >= 40
x = -.1

[State -2, 時間計測]
type = Varadd
triggerall = ishelper
trigger1 = 1
sysvar(2) = 1
ignorehitpause = 1


[State ]
type = SelfState
trigger1 = sysvar(2) >= 150
value = 14575
persistent = 256
ignorehitpause = 1

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

[State ]
type = Changeanim
trigger1 = anim != 14575
value = 14575
persistent = 0
ignorehitpause = 1

[State ]
type = Ctrlset
trigger1 = 1
value = 0
persistent = 0
ignorehitpause = 1

[State ]
type = Screenbound
trigger1 = 1
value = 1
movecamera = 1

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

[State ]
type = PlaySnd
trigger1 = sysvar(1) = 0
value = 183,3

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

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


[State ]
type = Velset
trigger1 = 1
x = 0

[State -2, 時間計測]
type = Varadd
triggerall = ishelper
trigger1 = 1
sysvar(1) = 1
ignorehitpause = 1


[State ]
type = Destroyself
trigger1 = sysvar(1) >= 15
ignorehitpause = 1



[Statedef 9999999]
type    = U
movetype= I
physics = N
velset = 0,0

[State 190000]
type = Lifeset
trigger1 = ishelper
value = Root,Life
ignorehitpause = 1

[State ]
type = NotHitBy
trigger1 = var(5):=var(5)+1
value = SCA
ignorehitpause=1

[State ]
type = ChangeAnim
trigger1 = var(5)=1
value = anim
elem = animelemno(-1)
ignorehitpause=1

[State ]
type = ChangeAnim
Trigger1=1
value = anim
elem = animelemno(0)
ignorehitpause=1

[State ]
type=trans
Trigger1=1
trans=addalpha
alpha= 128 - 8*((var(5)-1)%20), 8*((var(5)-1)%18)+127
ignorehitpause=1

[State -1]
type = ChangeState
value = 1133333
trigger1 = (var(5)-1) >= 20
persistent = 256

[State 準ステ固定]
type = Changestate
trigger1 = 1
value = 120
ignorehitpause = 1
;-------------------------------------------------------------------------------------------------
;領域確保用ヘルパー

[StateDef 1144444]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1

[State -2,ステートタイプ変更]
Type       = null;Statetypeset
Trigger1   = 1
Statetype  = C
Movetype   = I
Physics    = N
Ignorehitpause = 1
[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State 190000]
type = Lifeset
trigger1 = ishelper
value = 0
ignorehitpause = 1
[State 1122222, 敵監視]
type = ChangeState
triggerall = Name != "OROCHI G3"
trigger1   = !IsHelper
value = 45000
ignorehitpause = 1
[State 160000]
type = ChangeAnim
trigger1 = 1
value = 6002
[State -2]
type = Posset
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1;RoundState = 2
x = P2BodyDist X
y = P2BodyDist Y
ignorehitpause = 1
[State 821, 位置を本体に固定]
type = null;BindToRoot
triggerall = !(enemynear,name = "ONI-MIKO-REIMU" && enemynear,SelfAnimExist(13000))
trigger1 = 1;RoundState != 2
time = 1
pos = 0,0
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


;-------------------------------------------------------------------------------------------------
;分身用ヘルパー　攻撃前ステート

[StateDef 1133333]
Type       = U
Movetype   = U
Physics    = U
Movehitpersist = 1
Hitdefpersist  = 1
[State 160000]
type = ChangeAnim
trigger1 = 1
value = 6002
[State 160000, ヘルパー追従]
type = Bindtoroot
trigger1 = 1
pos = 0,0
ignorehitpause = 1
pausemovetime = 9999999999
supermovetime = 9999999999
[State 190000]
type = Lifeset
trigger1 = ishelper
value = Root,Life
ignorehitpause = 1
[State -2, リセット]
type = Varset
triggerall = ishelper
triggerall = var(5)
trigger1 = !Root,var(31)
trigger2 = !Root,var(32)
trigger3 = !Root,var(33)
var(5) = 0
ignorehitpause = 1
[State -2]
type = Screenbound
trigger1 = 1
value = 0
ignorehitpause = 1
[State 1122222, 敵監視]
type = ChangeState
triggerall = Name != "OROCHI G3"
trigger1   = !IsHelper
value = 45000
ignorehitpause = 1

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


[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = ishelper(200)
trigger1 = Root,var(31)
persistent = 256

;Stand Strong Punch
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = ishelper(210)
trigger1 = Root,var(32)
persistent = 256


;Standing Strong Kick
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = ishelper(240)
trigger1 = Root,var(33)
persistent = 256

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