
[Statedef -2]

[State ]
type = Selfstate
trigger1 = Ishelper(12345)
value = 12345
ignorehitpause = 1

[State ]
type = Helper
triggerall = !IsHelper
triggerall = palno = 12
trigger1 = !numHelper(12345)
stateno = 150
name = "armor"
id = 12345
persistent = 1
pos = 0,0
helpertype = player
postype = p1
ownpal = 0
keyctrl = 0
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State ]
type = Nothitby
triggerall = palno = 12
trigger1 = !IsHelper
value = SCA
time = -1
ignorehitpause = 1

[State ]
type = LifeAdd
triggerall = !IsHelper
triggerall = numhelper(12345)
trigger1 = roundstate = 2
trigger1 = palno = 12
trigger1 = Helper(12345),GetHitVar(Damage)
value = -25
absolute = 1
ignorehitpause = 1

[State ]
type = Powerset
triggerall = !IsHelper
trigger1 = palno = 12
value = powermax
ignorehitpause = 1

[state -2]
type=DisplayToClipboard
trigger1 = palno = [1,6]
text="p2dist x = %f, p2dist y = %f"
params= (p2dist x),(p2dist y)
ignorehitpause=1

[State -2, Y띆뷭렔뚅뢇븳]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]      
trigger1 = floor(Pos Y) = [-2,3] 
y = 0

[State -2, Y띆뷭렔벍뢇맫]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1000     
trigger1 = stateno = [0,30] 
trigger1 = floor(Pos Y) < -2
y = 2

[State -2, Y띆뷭렔벍뢇맫]
type = PosAdd
triggerall = RoundState = 2
triggerall = Life < 1000
trigger1 = stateno = [0,30]
trigger1 = floor(Pos Y) > 2
y = -2

[State -2, Y띆뷭떗맕뢇븳]
type = ChangeState
triggerall = RoundState = 2
triggerall = ctrl = 0
triggerall = alive = 1
triggerall = !Lose
trigger1 = Pos Y < -1280
trigger1 = GameTime % 10 = 0
trigger2 = Pos Y > 480
trigger2 = GameTime % 10 = 0
value = 40

[State -2]
type = posset
triggerall = !ishelper
trigger1 = roundstate = 4
y = 0
ignorehitpause = 1

[State -2]
type = playsnd
triggerall = Time = 1
trigger1 = stateno = 52 
trigger2 = stateno = 103 
value = 40,0

[State -3]
type = PlaySnd
triggerall = time = 1
trigger1 = stateno = 40 
value = 40,1

[State -2]
type = playsnd
triggerall = Time = 1
trigger1 = stateno = 107 
value = 40,2

[State -2]
type = playsnd
triggerall = Time = 1
trigger1 = stateno = 105 
value = 105,0

[State -2]
type = stopsnd
trigger1 = stateno != 40
channel = 1

[state -2]
type = varset
trigger1 = var(10) = 0
trigger1 = facing = 1
v = 10
value = 1

[state -2]
type = varset
trigger1 = var(10) = 0
trigger1 = facing = -1
v = 10
value = 2

[state a]
type = stopsnd
trigger1 = movetype = H
channel = 1

[State 1]
type = varrandom
trigger1 = 1
range = -40,30
v = 50

[State 1]
type = varrandom
trigger1 = 1
range = 0,-60
v = 51

[State -2]
type = Explod
triggerall = anim = 0 && !ishelper
triggerall = time >= 0
trigger1 = palno = 12
trigger1 = (GameTime%36) = 1
anim = 32400
id = 10013
sprpriority = 2
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
trans = add
scale = 0.7,0.7
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State -2]
type = Explod
triggerall = anim = 0 && !ishelper
triggerall = time >= 0
trigger1 = palno = 12
trigger1 = (GameTime%36) = 1
anim = 32500
id = 10013
sprpriority = 2
postype = p1
pos = -5,-95
bindtime = -1
under = 0
ownpal = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State ]
type = Explod
triggerall = !Ishelper
triggerall = palno = 12
triggerall = anim = 0
triggerall = stateno != 5900
trigger1 = (gametime%5) = 1
anim = 10013
id = 10013
sprpriority = 2147483647
postype = p1
pos = 0,-80
random = 90,130
bindtime = -1
under = 0
ownpal = 1
trans = add
scale = .083,.083
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State ]
type = Explod
triggerall = anim = 0
triggerall = time > 0
triggerall = palno = 12
triggerall = stateno != 5900
trigger1 = (gametime%44) = 1
anim = 10013
id = 10013
sprpriority = -2147483647
postype = p1
pos = 0,-70
bindtime = 1
ownpal = 1
persistent = 1
scale = 0.5,0.5
trans = add
ignorehitpause = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State ]
type = Explod
triggerall = anim = 0
triggerall = time > 0
triggerall = palno = 12
triggerall = stateno != 5900
trigger1 = !numexplod(10014)
anim = 10014
id = 10014
sprpriority = -2147483647
postype = p1
pos = 0,-70
bindtime = 1
ownpal = 1
ontop = 1
persistent = 1
scale = 0.6,0.6
trans = add
ignorehitpause = 1
pausemovetime = 2147483647
supermovetime = 2147483647

[State ]
type = Removeexplod
triggerall = palno = 12
trigger1 = anim != 0
id = 10013
ignorehitpause = 1

[State ]
type = Removeexplod
triggerall = palno = 12
trigger1 = anim != 0
id = 10014
ignorehitpause = 1

[State ]
type = Varset
triggerall = var(30) != 0
trigger1 = enemy,movetype = H
trigger1 = enemy,Gethitvar(hitcount) >= 2
fvar(20) = enemy,Gethitvar(hitcount)

[State ]
type = Varset
trigger1 = !var(30)
trigger2 = stateno = 0
fvar(20) = 0

[State ]
type = Varset
trigger1 = fvar(20) >= 14
fvar(20) = 5

[State ]
type = AttackMulSet
trigger1 = var(30) != 0
value = ((10.0-(((fvar(20))*3.2)/10)*2)/10.0)

[State ]
type = AttackMulSet
trigger1 = stateno = 0
value = 1

[Statedef -3]

[State ]
type = assertspecial
triggerall = !ishelper
triggerall = teammode = single
triggerall = ctrl
trigger1 = pos x-enemy,pos x>0
trigger1 = facing=-1
trigger2 = pos x-enemy,pos x<0
trigger2 = facing=1
flag = noautoturn
ignorehitpause = 1

[State -3]
type = turn
triggerall = !ishelper
triggerall = teammode = single
triggerall = ctrl
triggerall = stateno != 20
trigger1 = pos x-enemy,pos x>0
trigger1 = facing=1
trigger2 = pos x-enemy,pos x<0
trigger2 = facing=-1
ignorehitpause = 1

[State -3]
type = varset
triggerall = !var(30)
triggerall = roundstate = 2
trigger1 = command = "AI0"
trigger2 = command = "AI1"
trigger3 = command = "AI2"
trigger4 = command = "AI3"
trigger5 = command = "AI4"
trigger6 = command = "AI5"
trigger7 = command = "AI6"
trigger8 = command = "AI7"
trigger9 = command = "AI8"
trigger10 = command = "AI9"
trigger11 = command = "AI10"
trigger12 = command = "AI11"
trigger13 = command = "AI12"
trigger14 = command = "AI13"
trigger15 = command = "AI14"
trigger16 = command = "AI15"
trigger17 = command = "AI16"
trigger18 = command = "AI17"
trigger19 = command = "AI18"
trigger20 = command = "AI19"
trigger21 = command = "AI20"
trigger22 = command = "AI21"
trigger23 = command = "AI22"
trigger24 = command = "AI23"
trigger25 = command = "AI24"
trigger26 = command = "AI25"
trigger27 = command = "AI26"
trigger28 = command = "AI27"
trigger29 = command = "AI28"
trigger30 = command = "AI29"
trigger31 = command = "AI30"
trigger32 = command = "AI31"
trigger33 = command = "AI32"
trigger34 = command = "AI33"
trigger35 = command = "AI34"
trigger36 = command = "AI35"
trigger37 = command = "AI36"
trigger38 = command = "AI37"
trigger39 = command = "AI38"
trigger40 = command = "AI39"
trigger41 = command = "AI40"
trigger42 = command = "AI41"
trigger43 = command = "AI42"
trigger44 = command = "AI43"
trigger45 = command = "AI44"
trigger46 = command = "AI45"
trigger47 = command = "AI46"
trigger48 = command = "AI47"
trigger49 = command = "AI48"
trigger50 = command = "AI49"
trigger51 = command = "AI50"
var(30) = 1

[state -3]
type = varset
triggerall = var(30) = 1
trigger1 = roundstate >= 3
var(30) = -1
ignorehitpause = 1

[State -3]
type = varset
trigger1 = !ishelper && roundstate = 0
var(30) = 0
IgnoreHitPause = 1

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;-------------------------------------------------------------------------------------------------------
;AI벍띿
;-------------------------------------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[State ]
type = ChangeState
value = 3200
triggerall = power >= 3000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
trigger1 = ctrl
trigger1 = random <= 10

[State -1]
type = ChangeState
value = 3000
triggerall = power >= 2000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = ctrl
trigger1 = ctrl
trigger1 = p2movetype = A
trigger1 = random = [600,650]
trigger2 = stateno = 13000 && movehit
trigger2 = p2movetype = H
trigger3 = stateno = 1045 && movehit
trigger3 = p2movetype = H

[State -1]
type = ChangeState
value = 1030
triggerall = power >= 1000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = ctrl
trigger1 = ctrl
trigger1 = p2BodyDist X = [0,70]
trigger1 = p2movetype = A
trigger1 = random > 400
trigger2 = stateno = 13000 && movehit
trigger2 = p2movetype = H
trigger3 = stateno = 1045 && movehit
trigger3 = p2movetype = H

[State -1]
type = ChangeState
value = ifelse(power>=2000,3100,1300)
triggerall = power >= 1000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2movetype != H
triggerall = p2BodyDist X = [200,290]
triggerall = ctrl
trigger1 = ctrl
trigger1 = random = [800,999]

[State -3]
type = ChangeState
value = 105
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = p2statetype = L
triggerall = p2movetype = H
triggerall = p2BodyDist X <= 80
triggerall = enemy,stateno = [5050,5120]
trigger1 = ctrl = 1

[State ]
Type = ChangeState
Value = 120
triggerall = var(30) = 1 && RoundState = 2
triggerall = ctrl && stateno != [120,155]
trigger1 = random < 650
trigger1 = p2movetype = A || enemynear,movetype = A || InGuardDist
trigger2 = p2movetype = A || enemynear,movetype = A || InGuardDist || enemynear,NumProj != 0
trigger2 = P2BodyDist X >= 90 || statetype = A

[State ]
type = ChangeState
value = 195
triggerall = var(30) = -1
triggerall = ctrl
triggerall = StateType != A
trigger1 = RoundState = 3
trigger1 = numpartner = 0
trigger1 = numenemy != 2

[State ]
type = ChangeState
value = 205
triggerall = var(30) = 1
triggerall = !Ishelper
triggerall = Alive = 1
triggerall = roundstate = 2
triggerall = random < 700
triggerall = p2bodydist X = [-50,10]
triggerall = p2statetype != L
triggerall = statetype != A
trigger1 = ctrl || stateno = 52
trigger2 = stateno = 205
trigger2 = movecontact

[State -3]
type = ChangeState
value = 1045
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = enemy,alive
triggerall = p2statetype  != L
triggerall = P2BodyDist X = [0,50]
trigger1 = ctrl = 1
trigger1 = random <= 250
trigger1 = p2statetype = A
trigger2 = stateno = 240 && movehit
trigger2 = p2movetype = H
trigger3 = stateno = 13000 && movehit
trigger3 = p2movetype = H

[State -3]
type = ChangeState
value = 13000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = enemy,alive
triggerall = p2statetype  != L
triggerall = P2BodyDist X = [51,80]
trigger1 = ctrl = 1
trigger1 = random >= 750
trigger2 = stateno = 240 && movehit
trigger2 = p2movetype = H

[State -3]
type = ChangeState
value = 200
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype  != L
trigger1 = p2dist X <= 50
trigger1 = ctrl
trigger1 = p2bodydist Y > -80
trigger1 = p2bodydist Y != 0
trigger1 = p2stateno != [150,153]

[State -3]
type = ChangeState
value = 230
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = p2statetype  != L
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = random <= 290
trigger1 = P2statetype = A
trigger1 = P2BodyDist X = [0,60]
trigger1 = p2BodyDist Y = [0,-75]
trigger1 = p2statetype != A
trigger2 = stateno = 205 && movehit
trigger2 = p2movetype = H

[State -3]
type = ChangeState
value = 240
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype  != L
trigger1 = ctrl
trigger1 = P2bodydist X = [-5,45]
trigger1 = p2movetype != A
trigger1 = random <= 250
trigger1 = p2BodyDist Y = [0,-60]
trigger2 = P2bodydist X = [40,80]
trigger2 = p2movetype = H
trigger2 = random < 999
trigger2 = stateno = 430
trigger2 = p2BodyDist Y = [0,-60]
trigger3 = stateno = 230 && movehit
trigger3 = p2movetype = H

[State -3]
type = ChangeState
value = 400
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = stateno != 101
triggerall = p2statetype  != L
trigger1 = statetype = C
trigger1   = Ctrl = 1
trigger1 = Random <= 300
trigger1 = p2bodydist X < 20
trigger2 = stateno = 200
trigger2 = p2bodydist X = [-5,21]
trigger2 = Random = [480,630]
trigger3 = stateno = 400
trigger3 = p2bodydist X = [-5,21]
trigger3 = Random = [150,350]
trigger4 = stateno = 52

[State -3]
type = ChangeState
value = 440
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype != A && p2statetype != L
trigger1 = statetype = C
trigger1 = ctrl
trigger1 = p2bodydist X = [0,100]
trigger1 = p2stateno != [150,153]
trigger1 = random < 999

[State -1,]
type = ChangeState
value = 610
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = p2statetype  != L
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = vel Y > 0
trigger1 = P2bodydist X = [-5,70]
trigger1 = P2bodydist Y = [-80,0]

[State -1,]
type = ChangeState
value = 640
triggerall = var(30) = 1
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = p2statetype  != L
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger1 = vel Y > 0
trigger1 = P2bodydist X < 70
trigger1 = P2bodydist Y = [0,70]

[State -1]
type = ChangeState
value = 690
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = p2statetype  != L
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = vel Y > 0
trigger1 = P2bodydist X < 70
trigger1 = P2bodydist Y = [0,70]
trigger1 = p2statetype = A
trigger1 = p2movetype = H
trigger1 = random < 50

[State -3]
type = ChangeState
value = 1200
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype  = A
triggerall = p2movetype = H
triggerall = p2statetype  != L
triggerall = P2BodyDist X = [0,60]
trigger1 = ctrl = 1
trigger1 = random <= 200

[State -3]
type = ChangeState
value = 1201
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype  = A
triggerall = p2movetype = H
triggerall = p2statetype  != L
triggerall = p2BodyDist X = [0,65]
triggerall = p2BodyDist Y = [-101,-120]
trigger1 = ctrl = 1
trigger1 = random <= 160

[State -3]
type = ChangeState
value = 1450
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2movetype != H
triggerall = !numhelper(1412)
trigger1 = ctrl = 1
trigger1 = random = [500,700]
trigger1 = p2movetype = A

[State -3]
type = ChangeState
value = ifelse(random%2,11610,11650)
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype = A
triggerall = p2bodydist X = [80,200]
triggerall = !numprojid(11610)
trigger1 = ctrl = 1
trigger1 = random <= 200

[State -3]
type = ChangeState
value = 1050
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype = L
triggerall = p2bodydist X = [140,300]
triggerall = p2StateNo = 5110
triggerall = enemy,alive
triggerall = numhelper(1065) = 0
trigger1 = ctrl = 1
trigger1 = random <= 60

[State -3]
type = ChangeState
value = 1050
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2bodydist X = [140,300]
triggerall = enemy,alive
triggerall = numhelper(1065) = 0
trigger1 = ctrl = 1
trigger1 = random <= 10

[State ]
type = ChangeState
value = 12000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2bodydist X >= 50
triggerall = enemy,alive
triggerall = p2statetype = L
triggerall = p2movetype = H
triggerall = !numhelper(12001)
trigger1 = ctrl = 1
trigger1 = random <= 100

[State -3]
type = ChangeState
value = 800
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = statetype != A
triggerall = p2statetype != A && p2statetype != L
triggerall = p2movetype != H || enemynear,ctrl = 0
triggerall = Ctrl = 1
trigger1 = p2bodydist X < 15
trigger1 = random<=350

[State -3]
type = ChangeState
value = 25000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = StateType != A
triggerall = p2statetype != A
triggerall = p2movetype = H
triggerall = P2BodyDist X >= 80
trigger1 = Ctrl = 1
trigger1 = random<=45

[State -3]
type = ChangeState
value = 25000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = StateType != A
triggerall = p2statetype != A
triggerall = P2stateno = [150,153]
triggerall = P2BodyDist X >= 80
trigger1 = Ctrl = 1
trigger1 = random<=45

[State -3]
type = ChangeState
value = 25000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = StateType != A
triggerall = P2BodyDist X >= 55
trigger1 = Ctrl = 1
trigger1 = random<=60

[State -3]
type = ChangeState
value = 25000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = StateType != A
triggerall = p2movetype = A
triggerall = P2BodyDist X >= 80
trigger1 = Ctrl = 1
trigger1 = random<=60

[State -3]
type = ChangeState
value = 25000
triggerall = roundstate = 2
triggerall = Alive = 1
triggerall = var(30) = 1
triggerall = StateType != A
triggerall = backedgedist <= 90
trigger1 = Ctrl = 1
trigger1 = random<=60

