;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;                        常時監視ステート
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[statedef -2]

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

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

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

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

[state -2]
type = targetstate
triggerall = !ishelper
triggerall = palno = 9
trigger1 = numtarget
value = 779
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

[state -2]
type = Helper
triggerall =!ishelper
triggerall =palno = 9
trigger1 = 1
helpertype = player
name = "huzakero"
ID = 7878
pos = 0, 10000
postype = p1
facing = 1
stateno = 7878
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[state 7878]
type = Projectile
trigger1 = ishelper(7878)
trigger1 = roundstate = 2
projid = 2112
projanim = 2112
projremove = 0
projscale = 1,1
projremovetime = 4
projhits = 1
projmisstime = 1
projpriority = 4
postype = p1
velmul = 0, 0
attr = C,NP
hitflag = MAFD
guardflag = 
p2stateno = 779
sparkno = -1
affectteam = F
ignorehitpause = 1

[state -2]
type = null;SuperPause
trigger1 = !ishelper
trigger1 = palno = 9
trigger1 = !numhelper(7878)
time = 600
anim = -1
sound = -1
movetime = 600
darken = 0
p2defmul = 0
unhittable = 0

[state -2]
type = null;SuperPause
trigger1 = ishelper(7878)
trigger1 = root,palno = 9
trigger1 = !numtarget
time = 30
anim = -1
sound = -1
movetime = 30
darken = 0
p2defmul = 0
unhittable = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;デバック;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[State -2, クリップボード]
type = DisplayToClipboard
trigger1 = !ishelper
trigger1 = numhelper(19177972)>=1
text = "gametime=%d,numhelper(9999)=%d, Body-Distance X=%d,Y=%d  \n"
params = (enemy,numhelper),numhelper(9999),floor(P2BodyDist X),floor(P2BodyDist Y)
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999
[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
supermovetime = 999999
pausemovetime = 999999

[state -2]
type = AssertSpecial
trigger1 = life != 0
flag = nokosnd
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

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

[state -2]
type = removeexplod
trigger1 = !ishelper
trigger1 = numexplod(2500) = 1
trigger1 = stateno != 2501
id = 2500

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

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

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

[state -2]
type = varset
trigger1 = !ishelper
trigger1 = var(13) > 5000
trigger2 = var(12) = 1
v = 13
value = 5000
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

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

[state -2];補助ヘルパー
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 = 999999
pausemovetime = 999999

[state -2]
type = null;Helper
triggerall = !ishelper
trigger1 = time >= 0
trigger1 = numhelper(6000) <= 0
helpertype = player
name = "or20"
ID = 6000
pos = 0, 0
postype = p1
facing = 1
stateno = 6100
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

[state -2]
type = null;Helper
triggerall = !ishelper
trigger1 = time >= 0
trigger1 = numhelper(7000) <= 0
helpertype = player
name = "or21"
ID = 7000
pos = 0, 0
postype = p1
facing = 1
stateno = 7000
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

[state -2]
type = null;Helper
triggerall = !ishelper
trigger1 = time >= 0
trigger1 = numhelper(6102) <= 0
helpertype = player
name = "or23"
ID = 6102
pos = 0, 0
postype = p1
facing = 1
stateno = 6102
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

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

[state -2]
type = nothitby
triggerall = !ishelper
trigger1 = roundstate != 2
trigger2 = palno >= 10
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 >= 10
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 < 10
trigger1 = !ishelper
value = 150

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

[state -2];覚醒
type = varset
triggerall = !ishelper
trigger1 = life <= 150
v = 11
value = 1

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

[state -2]
type = selfstate
triggerall = palno = 9
triggerall = roundstate = 2
triggerall = !ishelper
trigger1 = var(50) = 0
value = 777
ctrl = 0
ignorehitpause = 1
pausemovetime = 999999999999999999999999999999999999999999999999999999999999999999
supermovetime = 999999999999999999999999999999999999999999999999999999999999999999

[state -2]
type = selfstate
triggerall = palno = 9
triggerall = !ishelper
trigger1 = var(50) = 1
trigger1 = !win
value = 778
ctrl = 0
ignorehitpause = 1
pausemovetime = 999999999999999999999999999999999999999999999999999999999999999999
supermovetime = 999999999999999999999999999999999999999999999999999999999999999999

[state -2]
type = 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
pausemovetime = 999999999999999999999999999999999999999999999999999999999999999999
supermovetime = 999999999999999999999999999999999999999999999999999999999999999999

[state -2]
type = selfstate
triggerall = palno >= 10
triggerall = roundstate = 0
triggerall = !ishelper
trigger1 = stateno != 190&&stateno !=192&&stateno != 0
value = 190
ctrl = 0
ignorehitpause = 1
pausemovetime = 999999999999999999999999999999999999999999999999999999999999999999
supermovetime = 999999999999999999999999999999999999999999999999999999999999999999

[state -2]
type = selfstate
triggerall = palno = [10,11]
triggerall = roundstate = 2
trigger1 = stateno = 201
trigger2 = stateno = 211
trigger3 = stateno = 231
trigger4 = stateno = 241
value = 151
ctrl = 0
ignorehitpause = 1
pausemovetime = 999999999999999999999999999999999999999999999999999999999999999999
supermovetime = 999999999999999999999999999999999999999999999999999999999999999999

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
triggerall = !ishelper
triggerall = palno >=10
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
pausemovetime = 9999999
supermovetime = 9999999

[state -2];アニメ取得1
type = parentvarset
triggerall = numhelper(19177972) > 0
triggerall = ishelper
triggerall = root,palno >= 10
trigger1 = var(20) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
trigger1 = root,stateno=1000||root,stateno=1100
v = 21
value = enemy,anim
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state -2,uuu];アニメ取得2
type = varset
triggerall = numhelper(19177972) > 0
triggerall = palno >= 10
triggerall = !ishelper
trigger1 = 1
v = 22
value = enemy,anim
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state -2];ステート取得
type = parentvarset
triggerall = ishelper
triggerall = numhelper(19177972) > 0
triggerall = root,palno >= 10
trigger1 = var(20) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
trigger1 = root,stateno=1000||root,stateno=1100
v = 20
value = stateno
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

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

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

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[state -2];ステート取得
type = parentvarset
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1001)
trigger1 = root,palno >= 10
trigger1 = stateno != 1001||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
v = 20
value = stateno
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1011)
trigger1 = ((var(43)=0)*1011&&stateno != 1011)||((var(43)=1)*1012&&stateno != 1012)||var(20)=!helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
value = (var(43)=1)*1012+(var(43)=0)*1011
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[state -2];ステート取得
type = parentvarset
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(1101)
trigger1 = root,palno >= 10
trigger1 = stateno != 1101||var(21) != helper(19177972),var(58)||MoveReversed != 0||var(14) != 0
v = 20
value = stateno
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[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
pausemovetime = 9999999
supermovetime = 9999999

[state -2]
type = selfstate
triggerall = numhelper(19177972) > 0
trigger1 = ishelper(9999)
trigger1 = stateno = 9999
trigger1 = movecontact != 0
value = 5151
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

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

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

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

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

[state -2]
type = SuperPause
triggerall = !ishelper
triggerall = palno >=10 
trigger1 = roundstate != 2 && roundstate != 1 && roundstate != 0 
trigger1 = alive
trigger1 = !win
trigger1 = stateno != 130
time = 1
anim = -1
sound = -1
movetime = 1
darken = 0
p2defmul = 1
unhittable = 1
IgnoreHitPause = 1
supermovetime = 999999

[state -2]
type = selfstate
triggerall = !ishelper
triggerall = palno = [10,11]
trigger1 = roundstate != 2 && roundstate != 1 && roundstate != 0 
trigger1 = alive
trigger1 = !win
trigger1 = stateno != 130
value = 130
supermovetime = 999999
pausemovetime = 999999

[state -2];AI
type = varset
triggerall = !ishelper
TriggerAll = ((Var(59) != 1) && (RoundState != 3))
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
supermovetime = 999999
pausemovetime = 999999

[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 = selfstate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = stateno = 30000
value = 0
ctrl = 1

[state -2]
type = turn
triggerall = !ishelper
triggerall = p2dist X < 0
trigger1 = stateno = 0
;trigger1 = stateno !=260
;trigger1 = stateno !=265
supermovetime = 999999
pausemovetime = 999999
ignorehitpause = 1

[statedef -3]

[State -3]
type = Helper
triggerall = numhelper(19801) <= 1
trigger1 = enemy,numprojid(171871872837) > 0&&ishelper(19177972)
trigger2 = numprojid(171871872838) > 0&&ishelper(19177972)
stateno = 19801
id = 19801
helpertype = player
ignorehitpause = 1

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

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

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

[state -3];当身回避
type = Helper
trigger1= roundstate = 2
trigger1 = ishelper(19177972)
trigger1 = root,palno = [10,11]
trigger1 = root,movetype = A
helpertype = player
name = "sss"
ID = 9999
pos = 0, 0
postype = p1
facing = 1
stateno = 9999
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


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

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X >= 180
trigger1 = var(13) >= 2000
trigger1 = var(55) = [950,999]
value = 16365

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = palno >= 10
trigger1 = p2bodydist X >= 100
trigger1 = var(13) >= 5000
trigger1 = var(55) = [800,949]
value = 22000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = palno >= 10
trigger1 = p2bodydist X >= 100
trigger1 = var(13) >= 3000
trigger1 = var(55) = [700,749]
value = 11111

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = var(13) >= 2000
trigger1 = var(55) = [900,949]
value = 19287

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[0,50]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [0,333]
value = 210

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[0,50]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [334,666]
value = 240

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[0,50]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [667,999]
value = 265

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [0,199]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [200,399]
value = 1500

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [400,499]
value = 265

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [400,499]
value = 260

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [500,699]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X =[51,180]
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [700,899]
value = 1200

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

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X >= 181
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [0,199]
value = 1100

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X >= 181
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [200,399]
value = 1000

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = p2bodydist X >= 181
triggerall = p2bodydist Y >= -120
trigger1 = var(55) = [400,499]
value = 1010

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = p2bodydist X >= 181
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [500,599]
value = 1300

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = p2bodydist X >= 181
triggerall = p2bodydist Y >= -120
trigger1 = numhelper(1020) = 1
trigger1 = var(55) = [600,799]
value = 1350

[state -3]
type = changestate
triggerall = var(59) = 1
triggerall = !ishelper
triggerall = ctrl
triggerall = statetype != A
triggerall = roundstate = 2
trigger1 = numhelper(1020) = 0
trigger1 = p2bodydist X >= 181
trigger1 = p2bodydist Y >= -120
trigger1 = var(55) = [600,799]
value = 1020

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