[State 29967, GameTime貫通をGameTimeかGameTime+1で計算するか決定(開幕親変更ヘルパー)]
type = VarSet
triggerall = PlayerIDExist( Parent,ID )
trigger1 = 1
sysvar(2) = GameTime + (Parent,MoveType=A)
ignorehitpause = 1
  ;親変更ヘルパーは相手より必ず手前のメモリにいるので
  ;親がMoveType=Aでないなら必ず自分が先に行動している


[State 29967, GameTime貫通:整数1]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID(Root,var(8)),var(30)
trigger2 = PlayerID(Root,var(8)),var(31)
trigger3 = PlayerID(Root,var(8)),var(32)
trigger4 = PlayerID(Root,var(8)),var(33)
var(PlayerID(Root,var(8)),var(30)) = sysvar(2)*sysvar(2)*PlayerID(Root,var(8)),var(31) + sysvar(2)*PlayerID(Root,var(8)),var(32) + PlayerID(Root,var(8)),var(33)
ignorehitpause = 1

  ;2次関数(ax^2+bx+c)のGameTime貫通
  ;GameTime+1でないのは、リダイレクト偽装を同時に行っていて、
  ;このヘルパーの方が先に行動するから

  ;ヘルパーを奪う時間をなるべく多くするため、
  ;変数リセットを行わない場合でもGameTime貫通は常に行う

;-------------------------------------
[State 29967, GameTime貫通:整数2]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID(Root,var(8)),var(35)
trigger2 = PlayerID(Root,var(8)),var(36)
trigger3 = PlayerID(Root,var(8)),var(37)
trigger4 = PlayerID(Root,var(8)),var(38)
var(PlayerID(Root,var(8)),var(35)) = sysvar(2)*sysvar(2)*PlayerID(Root,var(8)),var(36) + sysvar(2)*PlayerID(Root,var(8)),var(37) + PlayerID(Root,var(8)),var(38)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通:整数3]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID(Root,var(8)),var(40)
trigger2 = PlayerID(Root,var(8)),var(41)
trigger3 = PlayerID(Root,var(8)),var(42)
trigger4 = PlayerID(Root,var(8)),var(43)
var(PlayerID(Root,var(8)),var(40)) = sysvar(2)*sysvar(2)*PlayerID(Root,var(8)),var(41) + sysvar(2)*PlayerID(Root,var(8)),var(42) + PlayerID(Root,var(8)),var(43)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通:浮動小数1]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID(Root,var(8)),fvar(30)
trigger2 = PlayerID(Root,var(8)),fvar(31)
trigger3 = PlayerID(Root,var(8)),fvar(32)
trigger4 = PlayerID(Root,var(8)),fvar(33)
fvar(floor(PlayerID(Root,var(8)),fvar(30))) = sysvar(2)*sysvar(2)*PlayerID(Root,var(8)),fvar(31) + sysvar(2)*PlayerID(Root,var(8)),fvar(32) + PlayerID(Root,var(8)),fvar(33)
ignorehitpause = 1

[State 29967, GameTime貫通:浮動小数1-魔法の数字]
type = ParentVarAdd
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
triggerall = GameTime%100 < 50
trigger1 = PlayerID(Root,var(8)),fvar(30)
trigger2 = PlayerID(Root,var(8)),fvar(31)
trigger3 = PlayerID(Root,var(8)),fvar(32)
trigger4 = PlayerID(Root,var(8)),fvar(33)
fvar(floor(PlayerID(Root,var(8)),fvar(30))) = cos(9.9**99)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通:浮動小数2]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID(Root,var(8)),fvar(35)
trigger2 = PlayerID(Root,var(8)),fvar(36)
trigger3 = PlayerID(Root,var(8)),fvar(37)
trigger4 = PlayerID(Root,var(8)),fvar(38)
fvar(floor(PlayerID(Root,var(8)),fvar(35))) = sysvar(2)*sysvar(2)*PlayerID(Root,var(8)),fvar(36) + sysvar(2)*PlayerID(Root,var(8)),fvar(37) + PlayerID(Root,var(8)),fvar(38)
ignorehitpause = 1

[State 29967, GameTime貫通:浮動小数2-魔法の数字]
type = ParentVarAdd
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist(Root,var(8))  ;混線ヘルパー1(GameTime感知)が存在
triggerall = GameTime%100 < 50
trigger1 = PlayerID(Root,var(8)),fvar(35)
trigger2 = PlayerID(Root,var(8)),fvar(36)
trigger3 = PlayerID(Root,var(8)),fvar(37)
trigger4 = PlayerID(Root,var(8)),fvar(38)
fvar(floor(PlayerID(Root,var(8)),fvar(35))) = cos(9.9**99)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通-ヘルパー固有変数:整数1]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),var(30)
trigger2 = PlayerID( floor(Root,fvar(15)) ),var(31)
trigger3 = PlayerID( floor(Root,fvar(15)) ),var(32)
trigger4 = PlayerID( floor(Root,fvar(15)) ),var(33)
var(PlayerID( floor(Root,fvar(15)) ),var(30)) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(31) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(32) + PlayerID( floor(Root,fvar(15)) ),var(33)
ignorehitpause = 1

  ;2次関数(ax^2+bx+c)のGameTime貫通
  ;GameTime+1でないのは、リダイレクト偽装を同時に行っていて、
  ;このヘルパーの方が先に行動するから
  
  ;ヘルパーを奪う時間をなるべく多くするため、
  ;変数リセットを行わない場合でもGameTime貫通は常に行う

;-------------------------------------
[State 29967, GameTime貫通-ヘルパー固有変数:整数2]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),var(35)
trigger2 = PlayerID( floor(Root,fvar(15)) ),var(36)
trigger3 = PlayerID( floor(Root,fvar(15)) ),var(37)
trigger4 = PlayerID( floor(Root,fvar(15)) ),var(38)
var(PlayerID( floor(Root,fvar(15)) ),var(35)) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(36) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(37) + PlayerID( floor(Root,fvar(15)) ),var(38)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通-ヘルパー固有変数:整数3]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),var(40)
trigger2 = PlayerID( floor(Root,fvar(15)) ),var(41)
trigger3 = PlayerID( floor(Root,fvar(15)) ),var(42)
trigger4 = PlayerID( floor(Root,fvar(15)) ),var(43)
var(PlayerID( floor(Root,fvar(15)) ),var(40)) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(41) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(42) + PlayerID( floor(Root,fvar(15)) ),var(43)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通-ヘルパー固有変数:整数4]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),var(45)
trigger2 = PlayerID( floor(Root,fvar(15)) ),var(46)
trigger3 = PlayerID( floor(Root,fvar(15)) ),var(47)
trigger4 = PlayerID( floor(Root,fvar(15)) ),var(48)
var(PlayerID( floor(Root,fvar(15)) ),var(45)) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(46) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(47) + PlayerID( floor(Root,fvar(15)) ),var(48)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通-ヘルパー固有変数:整数5]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),var(50)
trigger2 = PlayerID( floor(Root,fvar(15)) ),var(51)
trigger3 = PlayerID( floor(Root,fvar(15)) ),var(52)
trigger4 = PlayerID( floor(Root,fvar(15)) ),var(53)
var(PlayerID( floor(Root,fvar(15)) ),var(50)) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(51) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),var(52) + PlayerID( floor(Root,fvar(15)) ),var(53)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通ヘルパー固有変数:浮動小数1]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),fvar(30)
trigger2 = PlayerID( floor(Root,fvar(15)) ),fvar(31)
trigger3 = PlayerID( floor(Root,fvar(15)) ),fvar(32)
trigger4 = PlayerID( floor(Root,fvar(15)) ),fvar(33)
fvar(floor(PlayerID( floor(Root,fvar(15)) ),fvar(30))) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),fvar(31) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),fvar(32) + PlayerID( floor(Root,fvar(15)) ),fvar(33)
ignorehitpause = 1

[State 29967, GameTime貫通ヘルパー固有変数:浮動小数1-魔法の数字]
type = ParentVarAdd
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
triggerall = GameTime%100 < 50
trigger1 = PlayerID( floor(Root,fvar(15)) ),fvar(30)
trigger2 = PlayerID( floor(Root,fvar(15)) ),fvar(31)
trigger3 = PlayerID( floor(Root,fvar(15)) ),fvar(32)
trigger4 = PlayerID( floor(Root,fvar(15)) ),fvar(33)
fvar(floor(PlayerID( floor(Root,fvar(15)) ),fvar(30))) = cos(9.9**99)
ignorehitpause = 1

;-------------------------------------
[State 29967, GameTime貫通ヘルパー固有変数:浮動小数2]
type = ParentVarSet
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
trigger1 = PlayerID( floor(Root,fvar(15)) ),fvar(35)
trigger2 = PlayerID( floor(Root,fvar(15)) ),fvar(36)
trigger3 = PlayerID( floor(Root,fvar(15)) ),fvar(37)
trigger4 = PlayerID( floor(Root,fvar(15)) ),fvar(38)
fvar(floor(PlayerID( floor(Root,fvar(15)) ),fvar(35))) = sysvar(2)*sysvar(2)*PlayerID( floor(Root,fvar(15)) ),fvar(36) + sysvar(2)*PlayerID( floor(Root,fvar(15)) ),fvar(37) + PlayerID( floor(Root,fvar(15)) ),fvar(38)
ignorehitpause = 1

[State 29967, GameTime貫通ヘルパー固有変数:浮動小数2-魔法の数字]
type = ParentVarAdd
triggerall = PlayerIDExist( Parent,ID )
triggerall = Parent,TeamSide != TeamSide
triggerall = (sysvar(0)&1)             ;親変更成功フラグ
triggerall = RoundState > 1 && Root,var(59)  ;試合開始
triggerall = PlayerIDExist( floor(Root,fvar(15)) )  ;混線ヘルパー1(GameTime感知)が存在
triggerall = GameTime%100 < 50
trigger1 = PlayerID( floor(Root,fvar(15)) ),fvar(35)
trigger2 = PlayerID( floor(Root,fvar(15)) ),fvar(36)
trigger3 = PlayerID( floor(Root,fvar(15)) ),fvar(37)
trigger4 = PlayerID( floor(Root,fvar(15)) ),fvar(38)
fvar(floor(PlayerID( floor(Root,fvar(15)) ),fvar(35))) = cos(9.9**99)
ignorehitpause = 1
