[statedef -2]

[state -2]
type = superpause
triggerall = palno >= 9
trigger1 = roundstate != 2
time = 2147483647
anim = -1
movetime = 2147483647
p2defmul = 1
darken = 0
ignorehitpause = 1
[state -2]
type = Pause
triggerall = palno >= 9
trigger1 = roundstate != 2
time = 2147483647
movetime = 2147483647
ignorehitpause = 1

;-----------------------------コンフィング的なもの-------------------------------

[state -2];意味のない分身スイッチ 数字分だけ分身が増える
type = varset
triggerall = !ishelper
trigger1 = 1
v = 58
value = 0


;--------------------------------------------------------------------------
[State -2, 1]
type = VarRandom
trigger1 = 1
v = 6
range = 0,2

[State -2, 1]
type = Varset
trigger1 = roundstate = 4
trigger1 = win
v = 1
value = 1

[State -2, 1]
type = Varset
trigger1 = roundstate = 4
trigger1 = loseko
v = 1
value = 2

[State -2]
type = AssertSpecial
triggerall = !ishelper&&palno >= 9
trigger1 = roundstate <= 1
trigger1 = stateno != 0
trigger1 = stateno != 190
trigger1 = stateno != 192
trigger1 = stateno != 189
trigger1 = stateno != 193
trigger1 = stateno != 194
trigger1 = stateno != 195
trigger1 = stateno != 196
trigger1 = stateno != 197
trigger1 = stateno != 198
trigger1 = stateno != 199
trigger1 = stateno != 5900
flag = roundnotover
ignorehitpause = 1

[State -2]
type = ReversalDef
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 30000
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = -1
p2stateno = 5150
ignorehitpause = 1

[state -2]
type = targetstate
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = numtarget
trigger1 = stateno = 30000
value = 55556
ignorehitpause = 1

[State -3]
type = null;ReversalDef
triggerall = !ishelper
triggerall = palno >= 9
triggerall = stateno = 48754
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,9999
hitsound = -1
p2stateno = 5150
ignorehitpause = 1

[state -3]
type = null;targetstate
triggerall = !ishelper
triggerall = palno >= 9
triggerall = stateno = 48754
trigger1 = 1
value = 48756
ignorehitpause = 1

[state -3]
type = targetstate
trigger1 = ishelper(48757)
trigger1 = root,palno >= 9
trigger1 = root,stateno = 48754
value = 48756
ignorehitpause = 1

[State -3]
type = null;ReversalDef
trigger1= ishelper(48757)
trigger1 = root,palno >= 9
trigger1 = root,stateno = 48754
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,9999
hitsound = -1
p2stateno = 5150
ignorehitpause = 1

[state -2]
type = SprPriority
trigger1 = p2name="generanai"||p4name="generanai"
value = 5
ignorehitpause = 1

[state -2]
type = PlayerPush
trigger1=p2name="Hades"||p4name="Hades"
value = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;デバック;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[State -2, クリップボード]
type = DisplayToClipboard
trigger1 = !ishelper
trigger1 = numhelper(19177972)>=1
text = "numtarget=%d,helper=%d,hitpausetime=%d,Body-Distance X=%d,Y=%d  \n"
params = numtarget,numhelper(7546),hitpausetime,floor(P2BodyDist X),floor(P2BodyDist Y)
ignorehitpause = 1
[State -2, クリップボード（追加専用）]
type = AppendToClipboard
trigger1 = !ishelper
text = "Position X=%d,Y=%d, Velocity X=%f,Y=%f, p2state=%d \n"
params = floor(Pos X),floor(Pos Y),(Vel X),(Vel Y),(p2stateno)
ignorehitpause = 1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -2]
type = AssertSpecial
trigger1 = life != 0
trigger2 = ishelper
flag = nokosnd
ignorehitpause = 1

;---------------------------------------------------------------------------------------------------------------
[state -2]
type = Explod
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 0
trigger1 = !numexplod(3)
anim = 3
ID = 3
pos = -6,-82
postype = p1
bindtime = -1
removetime = -1
sprpriority = -1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999

[state -2]
type = Explod
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 0
trigger1 = !numexplod(10777)
anim = 10777
ID = 10777
pos = -6,-82
postype = p1
bindtime = -1
removetime = -1
sprpriority = -1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999

[state -2]
type = Explod
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 0
trigger1 = !numexplod(4)
anim = 4
ID = 4
pos = 0,-10
postype = p1
bindtime = -1
removetime = -1
sprpriority = -1
supermovetime = 999999999999999999
pausemovetime = 999999999999999999

[state -2]
type = removeexplod
trigger1 = !ishelper||ishelper(12345678)
trigger1 = stateno != 0
id = 3
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = !ishelper||ishelper(12345678)
trigger1 = stateno != 0
id = 10777
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = !ishelper||ishelper(12345678)
trigger1 = stateno != 0
id = 4
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = !ishelper||ishelper(12345678)
trigger1 = stateno != 48754
id = 20000
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = stateno != 1400
id = 1401
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = !ishelper
trigger1 = stateno != 1402
id = 1403
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = stateno != 30000
id = 30000
ignorehitpause = 1

[state -2]
type = removeexplod
trigger1 = stateno != 12838
id = 12838
ignorehitpause = 1

[state -3]
type = RemoveExplod
trigger1 = stateno != 6020
ID = 6020
ignorehitpause = 1

[state -3]
type = RemoveExplod
trigger1 = stateno != 22001
ID = 22000
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = stateno = 50
trigger1 = pos Y = 0
value = 0

[state -2]
type = PowerSet
trigger1 = !ishelper
value = var(13)
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(13) > 5000
trigger2 = var(12) = 1
trigger3 = p2name="Vairocana"||p4name="Vairocana"
v = 13
value = 5000
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(13) < 0
v = 13
value = 0
ignorehitpause = 1

[state -2]
type = varadd
triggerall = numhelper(19802)
triggerall = palno >= 9
trigger1 = !ishelper
trigger1 = helper(19802),gethitvar(damage)
v = 13
value = abs(ceil(helper(19802),gethitvar(damage)))
ignorehitpause = 1

[state -2]
type = varadd
triggerall =numhelper(19177972)
triggerall = palno >= 9
trigger1 = !ishelper
trigger1 = helper(19177972),var(46) < 3600
v = 13
value = 2
ignorehitpause = 1

[state -2]
type = varadd
triggerall =numhelper(19177972)
triggerall = palno >= 9
triggerall = !ishelper
trigger1 = helper(19177972),var(46) >= 3600
trigger2 = helper(19177972),var(3) >= 850
v = 13
value = 6
ignorehitpause = 1

[state -2]
type = parentvaradd
triggerall = numhelper(19177972)>0
triggerall = ishelper
trigger1 = MoveReversed != 0
v = 13
value = 500
ignorehitpause = 1

[state -2]
type = nothitby
triggerall = !ishelper
trigger1 = roundstate != 2
trigger2 = palno >= 9
value = SCA
time = 1

[state -2]
type = AttackMulSet
trigger1 = palno >= 7
value = (enemy,Const(data.defence)/100)*(enemy,Const(data.life)/1000)

;ライフ回復
[State -2,la]
type = null;LifeAdd
triggerall = palno >= 9
trigger1 = !ISHELPER
value = 1

[state -2]
type = lifeset
triggerall = numhelper(19177972) > 0
triggerall = roundstate = 2
trigger1 = palno >= 9
trigger1 = !ishelper
value = 1000-(helper(19177972),var(3))

[state -2]
type = lifeset
triggerall = var(12) = 1
triggerall = roundstate = 2
trigger1 = palno < 9
trigger1 = !ishelper
value = 150

[state -2]
type = null;lifeset
triggerall = numhelper(19177972) > 0
triggerall = roundstate = 2
trigger1 = ishelper
value = lifemax

[state -2];覚醒
type = varset
triggerall = !ishelper
trigger1 = palno <= 8
trigger1 = life <= 150
trigger2 = palno >= 10
trigger2 = life <= 500
v = 11
value = 1

[state -2];ありえん
type = VarRandom
triggerall = !ishelper
trigger1 = time >= 0
v = 0
range = 1,10

[state -2]
type = null;selfstate
triggerall = palno = 10
triggerall = roundstate = 2
triggerall = !ishelper
trigger1 = enemy,movehit = 1||enemy,projhit = 1
trigger1 = numhelper(9999) = 0
value = 5000
ctrl = 0
ignorehitpause = 1

[state -2]
type = null;selfstate
triggerall = palno >= 9
triggerall = roundstate = 0
triggerall = !ishelper
triggerall = roundno = 1
trigger1 = stateno != 190&&(stateno!=191||stateno!=192)&&stateno != 0
value = 190
ctrl = 0
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
triggerall = !ishelper
triggerall = roundstate = 2 
triggerall = palno >= 9
trigger1 = var(9) != gametime+helper(19177972),var(58)
trigger2 = MoveReversed != 0
trigger3 = var(14) != 0
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ヘルパー保護;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


[state -2];ステート取得
type = parentvarset
trigger1 = ishelper
trigger1 = root,palno >= 9
trigger1 = life != lifemax&&hitpausetime < 2
v = 20
value = stateno
ignorehitpause = 1

[state -2];ステート取得
type = parentvarset
trigger1 = ishelper
trigger1 = root,palno >= 9
trigger1 = life != lifemax&&hitpausetime < 2
trigger1 = root,var(20) != 0
trigger1 = root,var(24) = 0||root,var(24) = root,var(20)
v = 24
value = stateno
ignorehitpause = 1

[state -2];ステート取得
type = parentvarset
trigger1 = ishelper
trigger1 = root,palno >= 9
trigger1 = life != lifemax&&hitpausetime < 2
trigger1 = root,var(24) != 0&&root,var(24) != root,var(20)
trigger1=root,var(25)=0||root,var(25)=root,var(24)||root,var(25)=root,var(20)
v = 25
value = stateno
ignorehitpause = 1

[state -2];ステート取得
type = parentvarset
trigger1 = ishelper
trigger1 = root,palno >= 9
trigger1 = life != lifemax&&hitpausetime < 2
trigger1 = root,var(25) != 0&&root,var(25)!=root,var(24)
trigger1=root,var(26)=0||root,var(26)=root,var(25)||root,var(26)=root,var(24)||root,var(26)=root,var(20)
v = 26
value = stateno
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(20) = 48756
v = 20
value = 0
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(24) = 48756
v = 24
value = 0
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(25) = 48756
v = 25
value = 0
ignorehitpause = 1

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(26) = 48756
v = 26
value = 0
ignorehitpause = 1
;;;;;;;;;;;;;;;;;;;
[state -2];アニメ取得
type = varset
triggerall = numhelper(19177972) > 0
trigger1 = !ishelper
trigger1 = 1
v = 21
value = gametime%20000
ignorehitpause = 1

[state -2];アニメ取得
type = varset
triggerall = numhelper(19177972) > 0
trigger1 = !ishelper
trigger1 = palno >= 9
trigger1 = enemynear,selfanimexist(var(21))=1
v = 22
value = var(21)
ignorehitpause = 1

[state -2];アニメ取得
type = varset
triggerall = numhelper(19177972) > 0
trigger1 = !ishelper
trigger1 = palno >= 9
trigger1 = enemynear,selfanimexist(var(21)*2)=1
v = 23
value = var(21)*2
ignorehitpause = 1
;---------------------
[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(19177972)
trigger1 = stateno != 19800||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 19800
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(19801)
trigger1 = 1;stateno != 19801||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 19801
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(6100)
trigger1 = stateno != 6100||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 6100
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(17003)
trigger1 = stateno != 17003||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 17003
ignorehitpause = 1

[state -2]
type = destroyself
trigger1 = ishelper(17003)
trigger1 = root,stateno != 17001
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(55555)
trigger1 = stateno != 55555||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(7878)
trigger1 = stateno != 7878||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(19801)
trigger1 = stateno != 19801||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(19802)
trigger1 = stateno != 19802||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 19802
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1001)
trigger1 = stateno != 1001||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1101)
trigger1 = stateno != 1101||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1013)
trigger1 = stateno != 1013||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 1013
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1020)
trigger1 = stateno != 1021||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(102)
trigger1 = stateno != 102||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 102
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(103)
trigger1 = stateno != 103||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 103
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1021)
trigger1 = stateno != 1021||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = 1021
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1=ishelper(1301)
trigger1=var(20)=!helper(19177972),var(58)||MoveReversed!= 0||var(14)!=0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(9999)
value = 9999
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(22222)
value = 22222
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(22223)
value = 22223
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(7546)
value = 22225
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(7547)
value = 22224
ignorehitpause = 1

[state -2]
type = null;destroyself
triggerall = numhelper(19177972) > 0
triggerall = ishelper
triggerall = root,palno >= 9
trigger1 =var(20) != helper(19177972),var(58)
trigger2 = MoveReversed != 0
trigger3 = var(14) != 0
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(48755)||ishelper(48756)||ishelper(48757)
value = 48755
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(6031)
value = 6031
ignorehitpause = 1

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(9809)
trigger1 =stateno!=9809||var(20)=!helper(19177972),var(58)||MoveReversed!=0||var(14)!=0
value = 5151
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(12345678)
trigger1 = stateno != root,stateno
value = root,stateno
ignorehitpause = 1

[state -2]
type = changeanim
trigger1 = ishelper(12345678)
value = root,anim
elem = root,animelemno(0)
ignorehitpause = 1

[state -2]
type = velset
trigger1 = ishelper(12345678)
x = root,vel X
y = root,vel Y
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(376)
value = 376
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(194)
value = 194
ignorehitpause = 1

[state -2]
type = selfstate
trigger1 = ishelper(195)
value = 195
ignorehitpause = 1
;----------------------------------

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -2];AI用ランダム変数
type = null;VarRandom
triggerall = !ishelper
trigger1 = time >= 0
v = 58
range = 0,999

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = palno = [9,12]
trigger1 = roundstate > 2
trigger1 = roundstate != 4
trigger1 = stateno != 130
trigger1 = alive&&(!enemy,loseko)
value = 120
IgnoreHitPause = 1

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = palno = [9,12]
trigger1 = roundstate = 4 
trigger1 = alive&&(!enemy,loseko)
value = 120
IgnoreHitPause = 1

[state -2]
type = varset
triggerall = !ishelper
trigger1 = 1
fV = 39
value = abs(ceil(enemy,pos X)-ceil(pos X))
IgnoreHitPause = 1

[state -2];AI
type = varset
triggerall = !ishelper
TriggerAll = Var(59) != 1
Trigger1 = Command = "AI1" || Command = "AI2" || Command = "AI3" || Command = "AI4"
Trigger2 = Command = "AI5" || Command = "AI6" || Command = "AI7" || Command = "AI8" || Command = "AI9"
Trigger3 = Command = "AI10" || Command = "AI11" || Command = "AI12" || Command = "AI13" || Command = "AI14"
Trigger4 = Command = "AI15" || Command = "AI16" || Command = "AI17" || Command = "AI18" || Command = "AI19"
Trigger5 = Command = "AI20" || Command = "AI21" || Command = "AI22" || Command = "AI23" || Command = "AI24"
Trigger6 = Command = "AI25" || Command = "AI26" || Command = "AI27" || Command = "AI28" || Command = "AI29"
Trigger7 = Command = "AI30" || Command = "AI31" || Command = "AI32" || Command = "AI33" || Command = "AI34"
Trigger8 = Command = "AI35" || Command = "AI36" || Command = "AI37" || Command = "AI38" || Command = "AI39"
Trigger9 = Command = "AI40" || Command = "AI41" || Command = "AI42" || Command = "AI43" || Command = "AI44"
Trigger10 = Command = "AI45" || Command = "AI46" || Command = "AI47" || Command = "AI48" || Command = "AI49"
Trigger11 = Command = "AI50"
trigger12 = numhelper(19177972) > 0
trigger12 = helper(19177972),var(59) = 1
V = 59
Value = 1
IgnoreHitPause = 1

[state -2]
type = selfstate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = statetype != A
trigger1 = stateno = 250
value = 0
ctrl = 1

[state -2]
type = selfstate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = stateno = 40
value = 0
ctrl = 1

[state -2]
type = AssertSpecial
triggerall = !ishelper
triggerall = ctrl
trigger1 = pos X > enemynear,pos X 
trigger1 = facing = -1
trigger2 = pos X < enemynear,pos X
trigger2 = facing = 1
flag = noautoturn
ignorehitpause = 1

[state -2]
type = AssertSpecial
trigger1 = ishelper(12345678)
trigger1 = facing = root,facing
flag = noautoturn
ignorehitpause = 1

[state -2]
type = AssertSpecial
trigger1 = ishelper(175)
trigger1 = facing = root,facing
flag = noautoturn
ignorehitpause = 1

[state -2]
type = turn
triggerall = !ishelper
triggerall = ctrl
trigger1 = pos X > enemynear,pos X 
trigger1 = facing = 1
trigger2 = pos X < enemynear,pos X
trigger2 = facing = -1
ignorehitpause = 1

[state -2]
type = turn
trigger1 = ishelper(12345678)
trigger1 = facing != root,facing
ignorehitpause = 1

[state -2]
type = turn
trigger1 = ishelper(175)
trigger1 = facing != root,facing
ignorehitpause = 1

[state -2]
type = PalFX
trigger1 = palno = 9
time = 2
add = 0,0,0
mul = 256,1,1
invertall = 0
color = 256
ignorehitpause = 1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[statedef -3]

[state -3]
type = selfstate
trigger1 = ishelper(48756)||ishelper(48755)||ishelper(48757)
trigger1 = !time
value = stateno
ignorehitpause = 1

[State -3]
type = Helper
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = roundstate = 4
trigger1 = !numhelper(120)
trigger1 = win
stateno = 180
helpertype = player
pos = 0,0
id = 120
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state -3]
type = selfstate
triggerall = !ishelper
triggerall = palno = [10,12]
trigger1 = roundstate = 4 
trigger1 = alive
value = 120
ignorehitpause = 1

[state -3]
type = Helper
triggerall = !ishelper
triggerall = time >= 0
triggerall = !numhelper(9809)
trigger1 = palno >= 9
trigger1 = p2name="F1"||P4name="F1"
trigger1 = var(26) = 0
helpertype = player
name = "F1"
ID = 9809
pos = 0, 0
postype = p1
facing = 1
stateno = 9809
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[state -3];補助ヘルパー
type = Helper
triggerall = !ishelper
trigger1 = numhelper(19177972) = 0
trigger1 = time >= 0
helpertype = player
name = "ora"
ID = 19177972
pos = 0, 0
postype = p1
facing = 1
stateno = 19800
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999999999
pausemovetime = 9999999999999999

[state -3];当身回避
type = Helper
trigger1=!numhelper(9999)
trigger1=palno = [9,11] 
helpertype = player
name = "sss"
ID = 9999
pos = 0, 0
postype = p1
facing = 1
stateno = 9999
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999999999999999
pausemovetime = 9999999999999999

[state -3]
type = Helper
triggerall = !ishelper
triggerall = time >= 0
triggerall = numhelper(19802) = 0
trigger1 = palno >= 9
helpertype = player
name = "armor"
ID = 19802
pos = 0, 0
postype = p1
facing = 1
stateno = 19802
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -3]
type = AssertSpecial
triggerall = !ishelper&&palno >= 9
trigger1 = roundstate <= 1
trigger1 = stateno != 0
trigger1 = stateno != 190
trigger1 = stateno != 192
trigger1 = stateno != 189
trigger1 = stateno != 193
trigger1 = stateno != 194
trigger1 = stateno != 195
trigger1 = stateno != 196
trigger1 = stateno != 197
trigger1 = stateno != 198
trigger1 = stateno != 199
trigger1 = stateno != 5900
flag = roundnotover
ignorehitpause = 1

[state -2]
type = AssertSpecial
triggerall = !ishelper
trigger1 = helper(19177972),numtarget
trigger1 = roundstate > 2
flag = unguardable
ignorehitpause = 1

[State -3]
type = Helper
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = numhelper(12345678) < var(58)
stateno = 5900
helpertype = player
pos = random
id = 12345678
ignorehitpause = 1
supermovetime = 9999999999999999999999
pausemovetime =99999999999999999999999

[State -3]
type = Helper
triggerall = !ishelper
triggerall = palno >= 9
triggerall = !numhelper(48756)
trigger1 = stateno = 48754
trigger2 = var(3) = 1
stateno = 48755
helpertype = player
id = 48756
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -3]
type = Helper
triggerall = !ishelper
triggerall = palno >= 9
triggerall = !numhelper(48757)
trigger1 = stateno = 48754
trigger2 = var(3) = 1
stateno = 48755
helpertype = player
id = 48757
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -3]
type = Helper
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 48754
trigger1 = numhelper(48757)
trigger1 = !helper(48757),numtarget
trigger2 = var(3) = 1
stateno = 48755
helpertype = player
id = 48755
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -3]
type = null;ReversalDef
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 48754
trigger2 = var(3) = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,9999
hitsound = -1
p2stateno = 5150
ignorehitpause = 1

[state -3]
type = null;targetstate
triggerall = !ishelper
triggerall = palno >= 9
trigger1 = stateno = 48754
trigger2 = var(3) = 1
trigger2 = numtarget
trigger2 = target,anim!=0
trigger2 = target,stateno!=48756
value = 48756
ignorehitpause = 1

[State -2]
type = AssertSpecial
triggerall = !ishelper&&palno >= 9
trigger1 = roundstate >= 4
flag = invisible
ignorehitpause = 1

[state -3];ステヌケ
type = varset
triggerall = numhelper(19177972) > 0
triggerall = !ishelper
trigger1 = palno >= 9
v = 9
value = gametime+helper(19177972),var(58)
IgnoreHitPause = 1

[state -3];ステヌケ
type = varset
trigger1 = palno >= 9 && (!ishelper||ishelper)
v = 14
value = 0
IgnoreHitPause = 1

[state -3]
type = varset
triggerall = numhelper(19177972) > 0
trigger1 = ishelper
v = 20
value = helper(19177972),var(58)
IgnoreHitPause = 1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                        AI
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;-------------------------------------------9P以上用----------------------------------------------------------------------

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = var(13) >= 4000
trigger1 = random=[100,169]
trigger2 = random=[600,669]
value = 22000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = var(13) >= 5000
trigger1 = random=[0,49]
trigger2 = random=[200,259]
trigger3 = random=[400,459]
value = 48754

[state -3]
type = null;changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = helper(19177972),var(47) = 0
trigger1 = fvar(39) <= 70
trigger1 = var(13) >= 3000
trigger1 = random = [300,379]
value = 11111

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = helper(19177972),var(47) = 0
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [500,579]
value = 17000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = helper(19177972),var(47) = 0
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [700,779]
value = 16365

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = helper(19177972),var(47) = 0
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [800,879]
value = 39821

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = helper(19177972),var(47) = 0
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [900,979]
value = 12837

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3];AI暴発防ぎ
type = selfstate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = p2bodydist Y >= -120
trigger1=stateno=19287
value = 0
ctrl = 1

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [0,149]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [0,199]
value = 210

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [150,299]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [200,399]
value = 6015

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [300,449]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [400,599]
value = 240

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [500,586]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [600,699]
value = 6020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [587,666]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [700,799]
value = 6030

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [667,699]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [800,949]
value = 370

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [700,749]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [950,999]
value = 6030

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = helper(19177972),var(45) = 0
trigger1 = fvar(39) =[0,50]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [750,999]
value = 265

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [0,49]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [50,149]
value = 6020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [150,249]
value = 370

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [250,249]
value = 1500

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [300,399]
value = 6025

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = helper(19177972),var(45) = 0
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [400,499]
value = 265

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = helper(19177972),var(45) = 0
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [400,499]
value = 260

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = helper(19177972),var(45) = 0
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [500,599]
value = 6015

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = helper(19177972),var(45) = 1
trigger1 = random = [400,499]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = helper(19177972),var(45) = 1
trigger1 = random = [500,599]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [700,899]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [600,799]
value = 1200

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = var(55) = [900,999]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [800,999]
value = 6010

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = var(24) = 0
triggerall = p2bodydist Y >= -120
trigger1 = random = [0,99]
value = 1100

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = var(24) != 0
triggerall = p2bodydist Y >= -120
trigger1 = random = [100,199]
value = 6010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = random = [200,299]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = random = [300,399]
value = 6015

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = random = [200,299]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = random = [300,399]
value = 6015

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [400,499]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [400,599]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [500,599]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [600,699]
value = 6020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [600,699]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [700,749]
value = 1350

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [700,799]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [750,799]
value = 6025

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [600,799]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [800,899]
value = 370

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(1020) = 0
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = helper(19177972),var(45) = 0
trigger1 = random = [600,799]
trigger2 = helper(19177972),var(45) = 1
trigger2 = random = [900,999]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno >= 9
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) >= 181
trigger1 = p2bodydist Y >= -120
trigger1 = random = [800,999]
value = 260

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

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = palno >= 9
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist Y < -120
trigger1 = random = [00,499]
value = 1200

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = palno >= 9
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist Y < -120
trigger1 = random = [500,999]
value = 1020
;----------------------------------------------8P以下-------------------------------------------------------------------

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 4000
trigger1 = random = [0,249]
value = 22000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [250,299]
value = 16365

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) >= 100
trigger1 = var(13) >= 2000
trigger1 = random = [500,549]
value = 17000

;--------------------------
[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = enemy,stateno=130||enemy,stateno=120||enemy,stateno=131||enemy,stateno=132
trigger1 = enemy,stateno=140||enemy,stateno=150||enemy,stateno=151||enemy,stateno=153
trigger1 = enemy,stateno=152||enemy,stateno=154||enemy,stateno=155
value = 800


[state -3];回避用
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) = [0,50]
triggerall = p2bodydist Y >= -120
triggerall = ctrl
trigger1 = stateno!=370&&stateno!=263&&stateno!=260&&stateno!=265
trigger1 = random >= 500
value = 265

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[0,50]
triggerall = p2bodydist Y >= -120
trigger1 = enemy,stateno!=130&&enemy,stateno!=120&&enemy,stateno!=131&&enemy,stateno!=132
trigger1 = enemy,stateno!=140&&enemy,stateno!=150&&enemy,stateno!=151&&enemy,stateno!=153
trigger1 = enemy,stateno!=152&&enemy,stateno!=154&&enemy,stateno!=155
trigger1 = random <= 499
value = 370

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [0,49]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [50,149]
value = 6020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [150,249]
value = 370

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [250,349]
value = 1500

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [350,449]
value = 6025

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = random = [550,649]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = fvar(39) =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = random = [650,749]
value = 6015

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = random = [750,849]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = random = [850,899]
value = 1200

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) =[51,180]
triggerall = p2bodydist Y >= -120
trigger1 = var(55) = [900,999]
value = 6010

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = var(24) = 0
triggerall = p2bodydist Y >= -120
trigger1 = random = [0,99]
value = 1100

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = var(24) != 0
triggerall = p2bodydist Y >= -120
trigger1 = random = [100,199]
value = 6010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = random = [200,299]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = random = [300,399]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) = 0
trigger1 = random = [400,499]
value = 6015


[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = random = [500,599]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = random = [600,699]
value = 6020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = random = [700,749]
value = 1350

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = random = [750,799]
value = 1300

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = fvar(39) >= 181
trigger1 = random = [800,899]
value = 6025

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(1020) = 0
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
trigger1 = random = [900,999]
value = 1020

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = palno <= 8
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = numhelper(1020) = 0
triggerall = fvar(39) >= 181
triggerall = p2bodydist Y >= -120
triggerall = numhelper(1020) != 0
trigger1 = random = [900,999]
value = 370

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

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = palno <= 8
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist Y < -120
trigger1 = random = [0,499]
value = 1200

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = palno <= 8
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist Y < -120
trigger1 = random = [500,999]
value = 1020