
[Statedef -2]

[State -2, 属性判断用ヘルパー生成]
type = Helper
triggerall = PalNo = 12
trigger1 = NumHelper(151) < 1
helpertype = player
name = "attr judgment Helper"
ID = 151
pos = 0, 0
postype = p1
stateno = 151
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[State -2, HA用ヘルパー]
type = Helper
triggerall = PalNo = [2,12]
trigger1 = NumHelper(150) < 1
helpertype = player
name = "HA Helper"
ID = 150
pos = 0, 0
postype = p1
stateno = 150
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state -2,即死返し用ステート記憶ヘルパー]
type = helper
trigger1 = !ishelper
trigger1 = PalNo = [9,12]
trigger1 = NumHelper(20120) < 1
trigger1 = roundstate = 2
trigger1 = gametime%60 = 0
helpertype = player
id=20120
name = "kioku"
stateno=20120
pos = 0,-500
pausemovetime=999999
supermovetime=999999

[State -2, 永続タゲ用ヘルパー作成]
type = helper
triggerall = PalNo = [8,12]
trigger1 = NumHelper(20060) < 1
helpertype = player
name = "target Helper1"
ID = 20060
pos = 40, -50
postype = p1
stateno = 20060
keyctrl = 0
size.xscale = 0.3
size.yscale = 0.3
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state -2,時止め解除&時止めヘルパー作成]
type=helper
helpertype=player
triggerall = !numhelper(50000)
trigger1 = root,PalNo = [9,12]
trigger1 = numhelper(80000)
trigger1 = ishelper(80000)
trigger2 = roundstate >= 2
trigger2 = numhelper(80000) = 0
trigger3 = !ishelper
trigger3 = PalNo = [2,8]
id=50000
name = "tokitomekaizyo"
stateno=50000
pausemovetime=999999
supermovetime=999999

[state -2,hitdef型永続targetヘルパー]
type = helper
trigger1 = !ishelper
;trigger1 = PalNo = [9,12]
trigger1 = NumHelper(20121) < 1
helpertype = player
id=20121
name = "target helper2"
stateno=20121
pos = 0,-500
pausemovetime=999999
supermovetime=999999

[State -2, 即死返し用くらいヘルパー]
type = helper
triggerall = PalNo = [1,12]
triggerall = !Ishelper
trigger1 = numhelper(20130) < 1
id = 20130
name = "kurai2"
pos = 0,0
postype = P1
stateno = 20130
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, みらくるさん用当身ヘルパー]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
trigger1 = numhelper(20140) < 1
id = 20140
name = "mirakurusann"
pos = 0,0
postype = P1
stateno = 20140
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, ストーリーモード用ヘルパー]
type = helper
triggerall = PalNo = [9,11]
triggerall = !Ishelper
trigger1 = numhelper(20170) < 1
id = 20170
name = "story-helper"
pos = 0,0
postype = P1
stateno = 20170
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20090)=0
id = 20090
name = "H-konsen1"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20091)=0
id = 20091
name = "H-konsen2"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20092)=0
id = 20092
name = "H-konsen3"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20093)=0
id = 20093
name = "H-konsen4"
pos = 0,0
postype = P1
stateno = 20093
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20094)=0
id = 20094
name = "H-konsen5"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20095)=0
id = 20095
name = "H-konsen6"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20096)=0
id = 20096
name = "H-konsen7"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20097)=0
id = 20097
name = "H-konsen8"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20098)=0
id = 20098
name = "H-konsen9"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, 混線ヘルパー作成]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20099)=0
id = 20099
name = "H-konsen10"
pos = 0,0
postype = P1
stateno = 20090
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999


[State -2, ヘルパーリダイレクト偽装用ヘルパー]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
triggerall = TeamSide = 2
trigger1 = numhelper(20160) < 1
trigger1 = Life > 900
id = 20160
name = "helper-redirect-camouflage"
pos = 0,0
postype = P1
stateno = 20160
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2, ヘルパーリダイレクト偽装用ヘルパー]
type = helper
triggerall = PalNo = [9,12]
triggerall = !Ishelper
trigger1 = TeamSide = 2
trigger1 = numhelper(20161) < 1
trigger1 = Life > 900
id = 20161
name = "helper-redirect-camouflage"
pos = 0,0
postype = P1
stateno = 20160
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20102) = 0
trigger1 = !Ishelper
trigger1 = helper(20092),numtarget = 0
id = 20102
name = "konnsennyoukurai3"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20103) = 0
trigger1 = !Ishelper
trigger1 = helper(20093),numtarget = 0
id = 20103
name = "konnsennyoukurai4"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20104) = 0
trigger1 = !Ishelper
trigger1 = helper(20094),numtarget = 0
id = 20104
name = "konnsennyoukurai5"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20105) = 0
trigger1 = !Ishelper
trigger1 = helper(20095),numtarget = 0
id = 20105
name = "konnsennyoukurai6"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20106) = 0
trigger1 = !Ishelper
trigger1 = helper(20096),numtarget = 0
id = 20106
name = "konnsennyoukurai7"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20107) = 0
trigger1 = !Ishelper
trigger1 = helper(20097),numtarget = 0
id = 20107
name = "konnsennyoukurai8"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20108) = 0
trigger1 = !Ishelper
trigger1 = helper(20098),numtarget = 0
id = 20108
name = "konnsennyoukurai9"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = PalNo = [9,12]
triggerall = TeamSide = 2
trigger1 = numhelper(20109) = 0
trigger1 = !Ishelper
trigger1 = helper(20099),numtarget = 0
id = 20109
name = "konnsennyoukurai10"
pos = 0,0
postype = P1
stateno = 20100
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

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

[state -2]
type = AssertSpecial
trigger1 = ishelper(20090)||ishelper(20100)
flag = invisible
flag2 = noshadow
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2,時間遅延]
type = AssertSpecial
trigger1 = !ishelper 
trigger1 = PalNo = [9,12]
trigger1 = (gametime%2) = 0
trigger1 = var(44) = 0
flag = timerfreeze
ignorehitpause = 1

[State -2,時間遅延]
type = AssertSpecial
trigger1 = !ishelper 
trigger1 = PalNo = [9,12]
trigger1 = (gametime%4) != 0
trigger1 = var(44) = 1
flag = timerfreeze
ignorehitpause = 1

[State -2]
type = AssertSpecial
triggerall = !ishelper && name ="G-tenko"
triggerall = roundstate>=3
triggerall = alive
trigger1 = anim != 181
trigger1 = anim != 175
trigger1 = anim != 170
flag = roundnotover
ignorehitpause = 1

[State -2, ガード不能化]
type = Assertspecial
triggerall = !ishelper
trigger1 = !ishelper 
flag = nostandguard
flag2 = nocrouchguard
flag3 = noairguard
ignorehitpause = 1

[State -2, 振り向き制御]
type = Assertspecial
trigger1 = 1
flag = noautoturn
ignorehitpause = 1

[State -2,試合前時止め解除]
type = pause
triggerall = roundstate = [0,1]
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
time = 0
movetime = 0
ignorehitpause = 1

[State -2,試合前時止め解除]
type = superpause
triggerall = roundstate = [0,1]
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2,時止め無視]
type = pause
triggerall = enemy,name != "Phantom Mizuchi JP"
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
time = 2147483647
movetime = 2147483647
ignorehitpause = 1

[State -2,時止め無視]
type = superpause
triggerall = enemy,name != "Phantom Mizuchi JP"
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2,時止め無視]
type = pause
triggerall = enemy,name = "Phantom Mizuchi JP"
triggerall = roundstate = 2
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
time = 2147483647
movetime = 2147483647
ignorehitpause = 1

[State -2,時止め無視]
type = superpause
triggerall = enemy,name = "Phantom Mizuchi JP"
triggerall = roundstate = 2
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2,試合終了後時止め解除]
type = pause
triggerall = roundstate >= 3
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
trigger1 = !var(45)
time = 0
movetime = 0
ignorehitpause = 1

[State -2,試合終了後時止め解除]
type = superpause
triggerall = roundstate >= 3
trigger1 = !ishelper && name ="G-tenko"
trigger1 = PalNo = [2,12]
trigger1 = alive
trigger1 = !var(45)
anim = -1
time = 0
movetime = 0
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2,対現実用試合終了後時止め]
type = pause
trigger1 = !ishelper && name ="G-tenko"
trigger1 = enemy,name = "genjitsu"
triggerall = roundstate >= 2
trigger1 = PalNo = [2,12]
trigger1 = alive
time = 2147483647
movetime = 2147483647
ignorehitpause = 1

[State -2,対現実用試合終了後時止め]
type = superpause
trigger1 = !ishelper && name ="G-tenko"
trigger1 = enemy,name = "genjitsu"
triggerall = roundstate >= 2
trigger1 = PalNo = [2,12]
trigger1 = alive
anim = -1
time = 2147483647
movetime = 2147483647
darken = 0
p2defmul = 1
ignorehitpause = 1

[State -2, 常時無敵付加]
type = NotHitBy
trigger1 = PalNo = [2,12]
value = SAC
time = -1
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = LifeAdd
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = PalNo = [2,5]
trigger1 = Helper(150), Var(40) <30 && Helper(150), Var(40) >=0
value = -Helper(150), Var(40)
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = LifeAdd
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = PalNo = [2,5]
trigger1 = Helper(150), Var(40) >=30
value = -5
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = LifeAdd
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = PalNo = [2,5]
trigger1 = Helper(150), Var(40) < 0
value = -1
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = varAdd
triggerall = PalNo = [6,12]
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = Helper(150), Var(40) <30 && Helper(150), Var(40) >=0
sysvar(3) = -Helper(150), Var(40)
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = varAdd
triggerall = PalNo = [6,12]
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = Helper(150), Var(40) >=30
sysvar(3) = -5
ignorehitpause = 1

[State -2, HA用ヘルパー被弾時]
type = varAdd
triggerall = PalNo = [6,12]
triggerall = numhelper(150)
triggerall = !ishelper
trigger1 = Helper(150), Var(40) < 0
sysvar(3) = -1
ignorehitpause = 1

[state -2,真ライフ一定以下で60フレーム毎に真ライフ回復]
type = varadd
triggerall = !ishelper
trigger1 = sysvar(3) <= 400
trigger1 = var(44)
trigger1 = gametime%60 = 0
sysvar(3) = 15
ignorehitpause = 1

[state -2]
type = LifeAdd
triggerall = !ishelper
trigger1 = PalNo = [6,11]
trigger1 = sysvar(3) > 0
value = 10
time = -1
ignorehitpause = 1

[state -2]
type = Lifeset
triggerall = !ishelper
trigger1 = PalNo = 12
trigger1 = roundstate = 0
trigger1 = sysvar(3) > 0
value = 1000
time = -1
ignorehitpause = 1

[state -2]
type = Lifeset
triggerall = !ishelper
trigger1 = PalNo = 12
trigger1 = roundstate = 1
trigger1 = sysvar(3) > 0
value = 1000
time = -1
ignorehitpause = 1

[state -2]
type = Lifeset
triggerall = !ishelper
trigger1 = PalNo = 12
trigger1 = roundstate = 2
trigger1 = sysvar(3) > 0
value = sysvar(4)
time = -1
ignorehitpause = 1

[state -2]
type = Lifeset
triggerall = !ishelper
trigger1 = PalNo = 12
trigger1 = roundstate = 3
value = 1000
time = -1
ignorehitpause = 1

[state -2]
type = Lifeset
triggerall = !ishelper
trigger1 = PalNo = 12
trigger1 = roundstate = 4
value = 1000
time = -1
ignorehitpause = 1

[state -2]
type = LifeSet
triggerall = !ishelper
triggerall = PalNo = [6,12]
triggerall = PalNo != 11
trigger1 = sysvar(3) <= 0
trigger1 = roundstate = 2
value = 0
time = -1
ignorehitpause = 1

[state -2]
type = LifeSet
triggerall = ishelper
trigger1 = root,PalNo = [11,12]
value = 0
time = -1
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = [5,7]
trigger1 = time <= 0
trigger1 = life > lifemax / 3
value = 200
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = [5,7]
trigger1 = time <= 0
trigger1 = life < lifemax / 3
value = 1000
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = [8,11]
trigger1 = time <= 0
trigger1 = life > lifemax / 3
value = 1000
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = [8,11]
trigger1 = time <= 0
trigger1 = life < lifemax / 3
value = 3000
ignorehitpause = 1

[State -2]
type = PowerAdd
trigger1 = PalNo = 12
trigger1 = time <= 0
value = 3000
ignorehitpause = 1

[state -2]
type=parentvarset
triggerall = ishelper(20121)
triggerall = stateno != 20121
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(13) = 0
var(13) = stateno
ignorehitpause=0

[state -2]
type=parentvarset
triggerall = ishelper(20120)
triggerall = stateno != 20120
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(13) = 0
var(13) = stateno
ignorehitpause=0

[state -2]
type=parentvarset
triggerall = ishelper(20120)
triggerall = stateno != 20120
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(14) = 0
trigger1 = stateno != parent,var(13)
var(14) = stateno
ignorehitpause=0

[state -2]
type=parentvarset
triggerall = ishelper(20120)
triggerall = stateno != 20120
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(15) = 0
trigger1 = stateno != parent,var(13)
trigger1 = stateno != parent,var(14)
var(15) = stateno
ignorehitpause=0

[state -2]
type=parentvarset
triggerall = ishelper(20120)
triggerall = stateno != 20120
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(16) = 0
trigger1 = stateno != parent,var(13)
trigger1 = stateno != parent,var(14)
trigger1 = stateno != parent,var(15)
var(16) = stateno
ignorehitpause=0

[state -2]
type=parentvarset
triggerall = ishelper(20120)
triggerall = stateno != 20120
triggerall = sysvar(2) != gametime
trigger1 = movereversed
trigger1 = parent,var(17) = 0
trigger1 = stateno != parent,var(13)
trigger1 = stateno != parent,var(14)
trigger1 = stateno != parent,var(15)
trigger1 = stateno != parent,var(16)
var(17) = stateno
ignorehitpause=0

[state -2]
type=SelfState
trigger1 = !ishelper
trigger1 = palno = [3,12]
trigger1 = hitpausetime > 3
value=10000000000
ignorehitpause=1

[state -2,movereversed式ステ抜け]
type = SelfState
trigger1 = !ishelper
trigger1 = movereversed
value = 40
ignorehitpause = 1

[state -2, gametime式ステ抜け]
type = Selfstate
trigger1 = !ishelper
trigger1 = PalNo = [3,12]
trigger1 = sysvar(2) != gametime
value = 40
ignorehitpause = 1

[State -2, アニメ監視]
type = selfstate
triggerall = PalNo = [2,12]
triggerall = !ishelper
triggerall = alive
trigger1 = anim = 200
trigger2 = anim = 300
trigger3 = anim = 400
trigger4 = anim = 210
trigger5 = anim = 310
trigger6 = anim = 410
trigger7 = anim = 220
trigger8 = anim = 230
trigger9 = anim = 320
trigger10 = anim = 420
trigger11 = anim = 1300
trigger12 = anim = 1310
trigger13 = anim = 1320
trigger14 = anim = 1321
trigger15 = anim = 10
trigger16 = anim = 11
trigger17 = anim = 12
trigger18 = anim = 40
trigger19 = anim = 100
trigger20 = anim = 101
trigger21 = anim = 105
trigger22 = anim = 106
trigger23 = anim = 110
trigger24 = anim = 115
trigger25 = anim = 170
trigger26 = anim = 175
trigger27 = anim = 181
trigger28 = anim = 900
trigger29 = anim = 910
trigger30 = anim = 920
value = anim
ignorehitpause = 1

[State -2, アニメ監視]
type = selfstate
triggerall = PalNo = [2,12]
triggerall = !ishelper
triggerall = alive
trigger1 = anim = 800
trigger2 = anim = 810
trigger3 = anim = 820
trigger4 = anim = 30000
trigger5 = anim = 40000
trigger6 = anim = 500000
value = anim
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = PalNo = [2,12]
triggerall = alive
trigger1 = roundstate = 2
trigger1 = anim = 0
;trigger2 = roundstate = 3
;trigger2 = statetype != A
value = 0
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = PalNo = [2,12]
triggerall = alive
trigger1 = anim = [20, 21]
value = 20
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = PalNo = [2,12]
triggerall = alive
trigger1 = anim = [41, 43]
value = 50
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = PalNo = [2,12]
triggerall = alive
trigger1 = anim = [44, 46]
trigger2 = anim = 51
value = 51
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = PalNo = [2,12]
triggerall = alive
trigger1 = anim = 47
value = 52
ignorehitpause = 1

[state -2, アーマー用ステ固定]
type = Selfstate
triggerall = numhelper(150)
trigger1 = ishelper(150)
value = 150 
movetype = I
ignorehitpause = 1

[state -2]
type = Selfstate
triggerall = numhelper(151)
trigger1 = ishelper(151)
value = 151
movetype = I
ignorehitpause = 1

[state ]
type=selfstate
trigger1=ishelper(201)
value=201
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(301)
value=301
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(401)
value=401
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(901)
value=901
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(1301)
value=1301
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(211)
value=211
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(311)
value=311
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(911)
value=911
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(1311)
value=1311
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(221)
value=221
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(231)
value=231
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(321)
value=321
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(421)
value=421
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(921)
value=921
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(1328)
value=1328
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(1329)
value=1329
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20010)
value=20010
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20020)
value=20020
ignorehitpause=1

[state ]
type=selfstate ;これでヘルパーが仕事をするステートへ飛ばす（常時で良い）
trigger1=ishelper(20030)
value=20030
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20040)
value=20040
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20050)
value=20050
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20054)
value=20054
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20056)
value=20056
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20060)
value=20060
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20080)
value=20080
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20090)||ishelper(20091)||ishelper(20092)||ishelper(20093)||ishelper(20094)||ishelper(20095)||ishelper(20096)||ishelper(20097)||ishelper(20098)||ishelper(20099)
value=20090
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(200900)||ishelper(200901)||ishelper(200902)||ishelper(200903)||ishelper(200904)||ishelper(200905)||ishelper(200906)||ishelper(200907)||ishelper(200908)||ishelper(200909)
value=20090
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(2009000)||ishelper(2009001)||ishelper(2009002)||ishelper(2009003)||ishelper(2009004)||ishelper(2009005)
value=20090
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(20100)||ishelper(20101)||ishelper(20102)||ishelper(20103)||ishelper(20104)||ishelper(20105)||ishelper(20106)||ishelper(20107)||ishelper(20108)||ishelper(20109)
value=20100
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(201000)||ishelper(201001)||ishelper(201002)||ishelper(201003)||ishelper(201004)||ishelper(201005)||ishelper(201006)||ishelper(201007)||ishelper(201008)||ishelper(201009)
value=20100
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(2010000)||ishelper(2010001)||ishelper(2010002)||ishelper(2010003)||ishelper(2010004)||ishelper(2010005)||ishelper(2010006)
value=20100
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20120)
value=20120
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20121)
value=20121
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20130)
value=20130
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20140)
value=20140
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20150)
value=20150
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20160)||ishelper(20161)||ishelper(20162)||ishelper(20163)
value=20160
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20170)
value=20170
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20171)
value=20171
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(20180)
value=20170
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(50000)
value=50000
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(60000)
value=60000
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(70000)
value=70000
ignorehitpause=1

[state ]
type = selfstate
trigger1=ishelper(80000)
value=80000
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(1000000)
value=1000000
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(2000000)
value=2000000
ignorehitpause=1

[state -2]
type=null
triggerall=!ishelper&&numenemy
triggerall=1||fvar(0):=facing*(enemynear,pos x-(pos x+facing*ifelse(statetype!=a,const(size.ground.front),const(size.air.front))))
trigger1=facing!=enemynear,facing&&fvar(0)>=0||facing=enemynear,facing&&fvar(0)<0
trigger1=fvar(0):=fvar(0)-(1-2*(fvar(0)<0))*ifelse(enemynear,statetype!=a,enemynear,const(size.ground.front),enemynear,const(size.air.front))||1
trigger2=fvar(0):=fvar(0)-(1-2*(fvar(0)<0))*ifelse(enemynear,statetype!=a,enemynear,const(size.ground.back),enemynear,const(size.air.back))

[Statedef -3]

[State -3,デバック]
type = DisplayToClipboard
trigger1 = !ishelper
text = "E-anim = %d,E-Life = %d,,E-Stateno = %d,E-Alive = %d"
params = enemy,anim,enemy,Life,enemy,stateno,enemy,alive
ignorehitpause=1

[State -3,デバック]
type = AppendToClipBoard
trigger1 = !ishelper
text = "\nvar(8) = %d,var(9) = %d,var(13) = %d,NH = %d"
params = var(8),var(9),var(13),numhelper
ignorehitpause = 1

;-|オプションスイッチ|-------------------------------------------------------------------

[state -3,準論外化スイッチ]
type = varset
trigger1 = !ishelper
var(44) = 0 ;0でoff、1でon、デフォルトは0
ignorehitpause = 1

[state -3,試合後無条件時止めスイッチ]
type = varset
triggerall = !ishelper
trigger1 = 0
var(45) = 0 ;0でoff、1でon、デフォルトは0
ignorehitpause = 1

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

[State -3, 経過時間計測用変数]
type = Varadd
trigger1 = !ishelper
var(0) = 1
ignorehitpause = 1

[State -3, ステ抜け用変数]
type = Varset
trigger1 = !ishelper
sysvar(2) = gametime
ignorehitpause = 1

[state -3, 真ライフセット]
type = Varset
trigger1 = RoundState = 0
trigger1 = PalNo = [6,7]
trigger1 = !ishelper
sysvar(3) = 800
ignorehitpause = 1

[state -3, 真ライフセット]
type = Varset
trigger1 = RoundState = 0
trigger1 = PalNo = [8,11]
trigger1 = !ishelper
sysvar(3) = 1000
ignorehitpause = 1

[state -3, 真ライフセット]
type = Varset
trigger1 = RoundState = 0
trigger1 = PalNo = 12
trigger1 = !ishelper
sysvar(3) = 1200
ignorehitpause = 1

[state -3,ライフバー用変数]
type = Varset
trigger1 = roundstate = 0
trigger1 = !ishelper
sysvar(4) = 1000
ignorehitpause = 1

[state -3,ライフバー自動減少]
type = varadd
triggerall = enemy,name != "Phantom Mizuchi JP"
trigger1 = (sysvar(2))%300 = 0
trigger1 = sysvar(4) >= 100
trigger1 = !ishelper
sysvar(4) = -30
ignorehitpause = 1

[state -3,ライフバー自動減少]
type = varadd
triggerall = enemy,name != "Phantom Mizuchi JP"
trigger1 = (sysvar(2))%300 = 0
trigger1 = sysvar(4) < 100
trigger1 = sysvar(4) > 5
trigger1 = !ishelper
sysvar(4) = -1
ignorehitpause = 1

[state -3,ライフバー自動減少]
type = varadd
triggerall = enemy,name = "Phantom Mizuchi JP"
trigger1 = (sysvar(2))%300 = 0
trigger1 = sysvar(4) >= 100
trigger1 = !ishelper
sysvar(4) = -333
ignorehitpause = 1

[State -3, ヘルパー上限数記憶]
type = Varset
trigger1 = !ishelper
var(30) = 56
ignorehitpause = 1

[State -3, 試合凍結回避用変数]
type = Varset
trigger1 = !ishelper
var(31) = numhelper
ignorehitpause = 1

[State -3, 試合凍結回避用変数]
type = Varset
trigger1 = !ishelper
var(32) = enemy(0),numhelper
ignorehitpause = 1

[State -3, 試合凍結回避用変数]
type = Varset
trigger1 = !ishelper
var(33) = enemy(1),numhelper
ignorehitpause = 1

[State -3, 試合凍結回避用変数]
type = Varset
trigger1 = !ishelper
var(34) = partner,numhelper
ignorehitpause = 1

[State -3, Life<=900なら200フレーム毎にvar(8)リセット]
type = Varset
trigger1 = !ishelper
trigger1=Life<=900
trigger1 = gametime%200 = 0
var(8) = 0
ignorehitpause = 1

[State -3, Life<=900なら200フレーム毎にvar(9)リセット]
type = Varset
trigger1 = !ishelper
trigger1=Life<=900
trigger1 = gametime%200 = 0
var(9) = 0
ignorehitpause = 1

[State -3, ストーリーヘルパーから受け取ったIDをvar(8)に格納]
type = Varset
trigger1 = !ishelper
trigger1 = !var(8)
var(8) = var(9)
ignorehitpause = 1

[State -3, var(8)=va(9)ならvar(9)をリセット]
type = Varset
trigger1 = !ishelper
trigger1 = var(8) = var(9)
var(9) = 0
ignorehitpause = 1

[state -3,roundstate = 0でvar(6)をリセット]
type = varset
trigger1 = !ishelper
trigger1 = roundstate = 0
var(6) = 0
ignorehitpause = 1

[state -3]
type = varset
trigger1 = !ishelper
var(41) = 0
ignorehitpause = 1

[State -3, ストーリーヘルパーから受け取った敵hitdefのstatenoをvar(43)に格納]
type = Varset
trigger1 = !ishelper
trigger1 = !var(43)
var(43) = var(42)
ignorehitpause = 1

[State -3, var(42)=va(43)ならvar(42)をリセット]
type = Varset
trigger1 = !ishelper
trigger1 = var(43) = var(42)
var(42) = 0
ignorehitpause = 1

[State -3, 200フレーム毎にvar(42)リセット]
type = Varset
trigger1 = !ishelper
trigger1 = gametime%200 = 0
var(42) = 0
ignorehitpause = 1

[State -3, 200フレーム毎にvar(43)リセット]
type = Varset
trigger1 = !ishelper
trigger1 = gametime%200 = 0
var(43) = 0
ignorehitpause = 1

