

;-|HA用ヘルパー|-------------------------------

[Statedef 150]

[State 150]
Type = VarSet
Trigger1 = 1
V = 36
Value = 100

[State 150]
Type = VarSet
Trigger1 = 1
V = 37
Value = 230

[State 150, 本体がきたら場合立ちへ移行]
type = ChangeState
triggerall = numhelper(150)
trigger1 = !IsHelper
value = 0
ignorehitpause = 1

[State 150, 親の位置に固定]
type = BindToRoot
triggerall = numhelper(150)
trigger1 = 1
time = 1
facing = 1
pos = 0, 0
ignorehitpause = 1

[State 150, 透明化]; 透明化
type = AssertSpecial
triggerall = numhelper(150)
trigger1 = 1
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 150, ヘルパーカメラ固定]
type = Screenbound       ;省略可、ヘルパーのカメラワークを設定します
trigger1 = ishelper(150)
value = 0                ;0でカメラを追わないようにします
ignorehitpause = 1

[State 150, ヘルパーコントロール不可]
type = Ctrlset           ;コントロール可否を設定します
triggerall = numhelper(150)
trigger1 = ishelper(150)
value = 0                ;0がコントロール不能です
ignorehitpause = 1

[State 150, ブランクアニメ設定]; HA処理用ヘルパーは基本ブランクアニメ
type = ChangeAnim
triggerall = numhelper(150)
trigger1 = 1
value = 20011
ignorehitpause = 1

[State 150, アニメ変更]; HA処理用 食らい判定アニメ
type = ChangeAnim
trigger1 = numhelper(150)
trigger1 = Parent,PalNo = [2,12]
value = Root, Anim
Elem = Root, AnimElemNo(0)
ignorehitpause = 1

[state 150,被弾属性制限]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 600
trigger1 = Parent,sysvar(3) > 400
value2 = SAC,AP
time = 1
ignorehitpause = 1

[state 150,被弾属性制限]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 400
trigger1 = Parent,sysvar(3) > 200
value2 = SAC,AA
time = 1
ignorehitpause = 1

[state 150,被弾属性制限]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 200
trigger1 = Parent,sysvar(3) > 0
value2 = SAC,AT
time = 1
ignorehitpause = 1

[State 150,被弾属性制限]
type = Nothitby
triggerall = Parent,PalNo = 12
triggerall = numhelper(150)
triggerall = ishelper(150)
trigger1 = root,var(41)
trigger1 = Parent,sysvar(3) <= 600
trigger1 = Parent,sysvar(3) > 0
Value2 = SAC
time = 1
ignorehitpause = 1

[State 150, 特定動作中無敵]
type = Nothitby
triggerall = Parent,PalNo = [2,5]
triggerall = numhelper(150)
triggerall = ishelper(150)
trigger1 = gethitvar(damage)
Value = SAC
time = 30
ignorehitpause = 1

[State 150, 特定動作中無敵]
type = Nothitby
triggerall = Parent,PalNo = [6,12]
triggerall = numhelper(150)
triggerall = ishelper(150)
trigger1 = gethitvar(damage)
Value = SAC
time = 60
ignorehitpause = 1

[State 150, 被弾判定制御]; ブランクアニメ時は無敵状態
type = NotHitBy
triggerall = numhelper(150)
trigger1 = Anim = 20011
value = SCA
ignorehitpause = 1

[state 150, ダメージ処理]
type = Varset
triggerall = numhelper(150)
triggerall = Parent,PalNo = [2,12]
trigger1 = 1
var(40) = GetHitVar(damage)
ignorehitpause = 1

[State 150, 攻撃被弾上書き]
type = HitOverRide
triggerall = numhelper(150)
trigger1 = 1
attr = SCA, AA, AT, AP
stateno = 150
ignorehitpause = 1

[state 150]
Type = Explod
triggerall = root,PalNo = [6,12]
triggerall = ishelper(150)
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(20018) = 0
Anim = 20018
ID = 20018
Pos = Var(36), Var(37)
PosType = Left
SprPriority = 9
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.6
ignorehitpause = 1

[State 150]
Type = Explod
triggerall = root,PalNo = [6,12]
triggerall = ishelper(150)
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(20018) = 0
Anim = 20018
ID = 20018
Pos = -Var(36), Var(37)
PosType = Right
SprPriority = 9
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.6
ignorehitpause = 1

[State 150]
Type = Explod
triggerall = root,PalNo = [6,12]
triggerall = ishelper(150)
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(20017) = 0
Anim = 20017
ID = 20017
Pos = Var(36), Var(37)
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 150]
Type = Explod
triggerall = root,PalNo = [6,12]
triggerall = ishelper(150)
Trigger1 = roundstate > 1
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(20017) = 0
Anim = 20017
ID = 20017
Pos = -Var(36), Var(37)
PosType = Right
SprPriority = 10
Facing = -1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.5, 0.5
ignorehitpause = 1

[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = 12
trigger1 = root,sysvar(3) > 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0.5*(root,sysvar(3))/1200.0 , 0.5
ignorehitpause = 1

[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = [8,11]
trigger1 = root,sysvar(3) > 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0.5*(root,sysvar(3))/1000.0 , 0.5
ignorehitpause = 1

[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = [6,7]
trigger1 = root,sysvar(3) > 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0.5*(root,sysvar(3))/800.0 , 0.5
ignorehitpause = 1


[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = 12
trigger1 = root,sysvar(3) <= 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0, 0.5
ignorehitpause = 1

[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = [8,11]
trigger1 = root,sysvar(3) <= 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0, 0.5
ignorehitpause = 1

[State 150]
type = ModifyExplod
triggerall = ishelper(150)
trigger1 = root,PalNo = [6,7]
trigger1 = root,sysvar(3) <= 0
Trigger1 = NumExplod(20017) > 0
ID = 20017
Scale = 0, 0.5
ignorehitpause = 1

[State 150]
type = DestroySelf
trigger1 = StateNo != 150
ignorehitpause = 1

[State 150, デバッグ]
type = DisplayToClipboard
trigger1 = 1
text = "Var(40) = %d, Var(41) = %d, Var(1) = %d, Root, AnimTime = %d, AnimTime = %d"
params = Var(40), Var(41), Var(1), Root, AnimTime, AnimTime

;-|属性判断用ヘルパー|-------------------------------

[statedef 151]

[State 151]
type = DisplayToClipboard
trigger1 = ishelper
text = "var(24) = %d,var(25) = %d,var(26) = %d,var(27) = %d"
params = var(24),var(25),var(26),var(27)

[state 151]
type = Parentvarset
trigger1 = ishelper
trigger1 = root,var(6) = 0
var(6) = ID
ignorehitpause=1

[state 151]
type = Parentvarset
triggerall = ishelper
trigger1 = sysvar(3) = 2
var(5) = 1
ignorehitpause = 1

[state 151]
type = varset
triggerall = sysvar(3) = 0
trigger1 = root,sysvar(3) <= 600
trigger2 = root,Life <= 500
sysvar(3) = 1
ignorehitpause = 1

[state 151]
type = varset
triggerall = sysvar(3) = 1
trigger1 = root,anim = 500000
trigger1 = root,animelemtime(1) >= 0
sysvar(3) = 2
ignorehitpause = 1

[State 151]
Type = VarSet
Trigger1 = 1
var(58) = 15
ignorehitpause = 1

[State 151]
Type = VarSet
Trigger1 = 1
var(59) = 50
ignorehitpause = 1

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

[state 151]
type = null
triggerall = ishelper
trigger1 = var(0):=helper(20090),var(4)||1
trigger1 = var(1):=helper(20091),var(4)||1
trigger1 = var(2):=helper(20092),var(4)||1
trigger1 = var(3):=helper(20093),var(4)||1
trigger1 = var(4):=helper(20094),var(4)||1
trigger1 = var(5):=helper(20095),var(4)||1
trigger1 = var(6):=helper(20096),var(4)||1
trigger1 = var(7):=helper(20097),var(4)||1
trigger1 = var(8):=helper(20098),var(4)||1
trigger1 = var(9):=helper(20099),var(4)||1
trigger1 = var(10):=helper(200900),var(4)||1
trigger1 = var(11):=helper(200901),var(4)||1
trigger1 = var(12):=helper(200902),var(4)||1
trigger1 = var(13):=helper(200903),var(4)||1
trigger1 = var(14):=helper(200904),var(4)||1
trigger1 = var(15):=helper(200905),var(4)||1
trigger1 = var(16):=helper(200906),var(4)||1
trigger1 = var(17):=helper(200907),var(4)||1
trigger1 = var(18):=helper(200908),var(4)||1
trigger1 = var(19):=helper(200909),var(4)||1
trigger1 = var(20):=helper(2009000),var(4)||1
trigger1 = var(21):=helper(2009001),var(4)||1
trigger1 = var(22):=helper(2009002),var(4)||1
trigger1 = var(23):=helper(2009003),var(4)||1
ignorehitpause = 1

[state 151]
type = null
triggerall = ishelper
trigger1 = var(28):=helper(20090),var(28)||1
trigger1 = var(29):=helper(20091),var(28)||1
trigger1 = var(30):=helper(20092),var(28)||1
trigger1 = var(31):=helper(20093),var(28)||1
trigger1 = var(32):=helper(20094),var(28)||1
trigger1 = var(33):=helper(20095),var(28)||1
trigger1 = var(34):=helper(20096),var(28)||1
trigger1 = var(35):=helper(20097),var(28)||1
trigger1 = var(36):=helper(20098),var(28)||1
trigger1 = var(37):=helper(20099),var(28)||1
trigger1 = var(38):=helper(200900),var(28)||1
trigger1 = var(39):=helper(200901),var(28)||1
trigger1 = var(40):=helper(200902),var(28)||1
trigger1 = var(41):=helper(200903),var(28)||1
trigger1 = var(42):=helper(200904),var(28)||1
trigger1 = var(43):=helper(200905),var(28)||1
trigger1 = var(44):=helper(200906),var(28)||1
trigger1 = var(45):=helper(200907),var(28)||1
trigger1 = var(46):=helper(200908),var(28)||1
trigger1 = var(47):=helper(200909),var(28)||1
trigger1 = var(48):=helper(2009000),var(28)||1
trigger1 = var(49):=helper(2009001),var(28)||1
trigger1 = var(50):=helper(2009002),var(28)||1
trigger1 = var(51):=helper(2009003),var(28)||1
ignorehitpause = 1

[state 151]
type = null
triggerall = roundstate = 2
triggerall = numenemy
trigger1 = var(24):=enemy,stateno||1
trigger1 = var(25):=enemy,var(var(26))||1
ignorehitpause = 1

[state 151]
type =changestate
triggerall = roundstate = 2
triggerall = var(24) != var(25)
triggerall = var(26) != 59 
trigger1 = var(26) := var(26)+1 || 1
value = stateno
ignorehitpause = 1

[state 151]
type = varset
triggerall = roundstate = 2
trigger1 = !var(27)
trigger1 = var(24) != 0
trigger1 = var(24) = var(25)
var(27) = var(26)
ignorehitpause = 1

[state 151]
type = varset
triggerall = roundstate = 2
trigger1 = var(26) = 59
value = 0
ignorehitpause = 1

[state 151]
type = Parentvarset
triggerall = ishelper
trigger1 = root,var(9) = 0
var(9) = var(0+random%24)
ignorehitpause = 1

[state 151]
type = Parentvarset
triggerall = ishelper
trigger1 = root,var(42) = 0
var(42) = var(28+random%24)
ignorehitpause = 1

[State 151]
type = Explod
trigger1 = gametime%20 = 0
trigger1 = numexplod(200240) = 0
trigger1 = sysvar(3) = 2
anim = 20024
ID = 200240
scale = 1,1
postype = back
pos = 0,0
sprpriority = 7
;supermove = 1
ownpal = 1
bindtime = -1
pausemovetime = 9999999
supermovetime = 9999999
removeongethit = 1

[State 151]
type = Explod
trigger1 = gametime%80 = 0
trigger1 = numexplod(200241) = 0
trigger1 = sysvar(3) = 2
anim = 20024
ID = 200241
scale = 1,1
facing = -1
postype = back
pos = 0,0
sprpriority = 7
;supermove = 1
ownpal = 1
bindtime = -1
pausemovetime = 9999999
supermovetime = 9999999
removeongethit = 1

[State 151]
type = Explod
trigger1 = gametime%140 = 0
trigger1 = numexplod(200242) = 0
trigger1 = sysvar(3) = 2
anim = 20024
ID = 200242
scale = 1,1
postype = back
pos = 0,0
sprpriority = 7
;supermove = 1
ownpal = 1
bindtime = -1
pausemovetime = 9999999
supermovetime = 9999999
removeongethit = 1

[State 151]
type = Explod
trigger1 = gametime%200 = 0
trigger1 = numexplod(200243) = 0
trigger1 = sysvar(3) = 2
anim = 20024
ID = 200243
scale = 1,1
facing = -1
postype = back
pos = 0,0
sprpriority = 7
;supermove = 1
ownpal = 1
bindtime = -1
pausemovetime = 9999999
supermovetime = 9999999
removeongethit = 1

[State 151]
Type = Explod
triggerall = sysvar(3) = 2
Trigger1 = TeamSide = 1
Trigger1 = NumExplod(20025) = 0
Anim = 20025
ID = 20025
Pos = var(58),var(59)
PosType = Left
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.25, 0.25
ignorehitpause = 1

[State 151]
Type = Explod
triggerall = sysvar(3) = 2
Trigger1 = TeamSide = 2
Trigger1 = NumExplod(20025) = 0
Anim = 20025
ID = 20025
Pos = -var(58),var(59)
PosType = Right
SprPriority = 10
Facing = 1
BindTime = -1
OwnPal = 1
OnTop = 1
RemoveTime = -1
SuperMove = 1
PauseMoveTime = 99999999
SuperMoveTime = 99999999
Scale = 0.25, 0.25
ignorehitpause = 1

[state 151]
type = Projectile
trigger1 = sysvar(3) = 2
trigger1 = gametime%2 = 0
damage = random
ProjAnim = 20010
Attr =  SAC,NA,SA,HA,NT,ST,HT,NP,SP,HP,AP,AT,AP
HitFlag = MAFD
projremovetime = 1
sparkxy = -10,-6000
sparkno = -1
offset = 0,0
projremove = 0
projhits = 1
IgnoreHitPause = 1
fall.damage = 99999999999999
supermovetime = 9999999999999
pausemovetime = 9999999999999

[state 151]
type = Projectile
trigger1 = roundstate >= 3
damage = random
ProjAnim = 20010
Attr =  SAC,NA,SA,HA,NT,ST,HT,NP,SP,HP,AP,AT,AP
HitFlag = MAFD
projremovetime = 1
sparkxy = -10,-6000
sparkno = -1
offset = 0,0
projremove = 0
projhits = 1
IgnoreHitPause = 1
fall.damage = 99999999999999
supermovetime = 9999999999999
pausemovetime = 9999999999999

[state 151]
type = Projectile
trigger1 = enemy,name = "E Youmu"
damage = random
ProjAnim = 20010
Attr =  SAC,NA,SA,HA,NT,ST,HT,NP,SP,HP,AP,AT,AP
HitFlag = MAFD
projremovetime = 1
sparkxy = -10,-6000
sparkno = -1
offset = 0,0
projremove = 0
projhits = 1
IgnoreHitPause = 1
fall.damage = 99999999999999
supermovetime = 9999999999999
pausemovetime = 9999999999999

[state 151]
type = Projectile
trigger1 = enemy,name = "G-Sakuya"
damage = random+1234567
ProjAnim = 20010
Attr =  SAC,NA,SA,HA,NT,ST,HT,NP,SP,HP,AP,AT,AP
HitFlag = MAFD
projremovetime = 1
sparkxy = -10,-6000
sparkno = -1
offset = 0,0
projremove = 0
projhits = 1
IgnoreHitPause = 1
fall.damage = 99999999999999
supermovetime = 9999999999999
pausemovetime = 9999999999999

[State 151]
type = BindToRoot
triggerall = numhelper(151)
trigger1 = 1
time = 1
facing = 1
pos = 0, 0
ignorehitpause = 1

[State 151]
type = AssertSpecial
triggerall = numhelper(151)
trigger1 = 1
flag = invisible
flag2 = noshadow
ignorehitpause = 1

[State 151]
type = Screenbound
trigger1 = ishelper(151)
value = 0
ignorehitpause = 1

[State 151]
type = Ctrlset
triggerall = numhelper(151)
trigger1 = ishelper(151)
value = 0
ignorehitpause = 1

[State 151]
type = ChangeAnim
triggerall = numhelper(151)
trigger1 = 1
value = 20011
ignorehitpause = 1

[State 151]
type = ChangeAnim
trigger1 = numhelper(151)
trigger1 = Parent,PalNo = 12
value = Root, Anim
Elem = Root, AnimElemNo(0)
ignorehitpause = 1

[state 151]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 600
trigger1 = Parent,sysvar(3) > 400
value = SAC,AA,AT
time = 1
ignorehitpause = 1

[state 151]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 400
trigger1 = Parent,sysvar(3) > 200
value = SAC,AP,AT
time = 1
ignorehitpause = 1

[state 151]
type = HitBy
trigger1 = Parent,PalNo = 12
trigger1 = Parent,sysvar(3) <= 200
trigger1 = Parent,sysvar(3) > 0
value = SAC,AA,AP
time = 1
ignorehitpause = 1

[State 151]
type = NotHitBy
triggerall = numhelper(151)
trigger1 = Anim = 20011
value = SCA
ignorehitpause = 1

[state 151]
type = Parentvarset
triggerall = numhelper(151)
triggerall = Parent,PalNo = 12
trigger1 = 1
var(41) = GetHitVar(damage)
ignorehitpause = 1

[State 151]
type = HitOverRide
triggerall = numhelper(151)
trigger1 = 1
attr = SCA, AA, AT, AP
stateno = 151
ignorehitpause = 1

