[statedef 19800];補助ヘルパー
type    = A
movetype= I
physics = N
velset = 0,0
anim = 20002

[state 0]
type = SuperPause
triggerall = root,palno >= 9
trigger1 = roundstate != 2
trigger1 = !win
p2defmul = 1
time = 0
anim = -1
sound = -1
movetime = 0
darken = 0
ignorehitpause = 1
[state 0]
type = Pause
triggerall = root,palno >= 9
trigger1 = roundstate != 2
trigger1 = !win
time = 0
movetime = 0
ignorehitpause = 1

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time = 0
value = 0
ignorehitpause = 1

[State 19800]
type = BindToRoot
trigger1 = ishelper
ignorehitpause = 1

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

[State 3874]
type = null;Projectile
trigger1 = gametime%4=0&&numhelper&&ishelper
projanim = 2113
projid=171871872837
projremove = 1
projremovetime = -1
projscale=1.0,1.0
velocity =0,0
affectteam = f
postype = p1
numhits=0
offset = 0,0
attr = C,SA
hitflag = MAFPDL
damage=0
sparkno = -1
guard.sparkno = -1
p2stateno=19800
ignorehitpause = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 19800]
type = VarSet
trigger1 = root,stateno = 6001
v = 2
value = 1
ignorehitpause = 1

[State -2]
type = Varset
triggerall = root,palno >= 9
trigger1 = time >= 0
v = 58
value = gametime+var(57)
ignorehitpause = 1

[state -2]
type = VarRandom
trigger1 = root,palno >= 9
trigger1 = time >= 0
v = 57
range = 17,999999
ignorehitpause = 1

;ライフ管理
[State 19800]
type = VarSet
trigger1 = root,palno >= 9
trigger1 = root,var(12) != 1
trigger1 = roundstate = 1
v = 3
value = 0
ignorehitpause = 1

[State 19800,k]
type = Varadd
triggerall = numhelper(19802)
triggerall = root,palno >= 10
triggerall = root,var(12) != 1
triggerall =  var(3) >= 850
triggerall = roundstate = 2
trigger1 = helper(19802),gethitvar(damage) = [1,500]
v = 3
value = ceil((helper(19802),gethitvar(damage))/((var(23)*0.1+var(24)*0.05)*(var(23)*0.05+var(24)*0.1)+1))
ignorehitpause = 1

[State 19800,i]
type = Varadd
triggerall = numhelper(19802)
triggerall = root,palno >= 10
triggerall = root,var(12) != 1
triggerall =  var(3) < 850
triggerall = roundstate = 2
trigger1 = helper(19802),gethitvar(damage) =[1,700]
v = 3
value = ceil((helper(19802),gethitvar(damage))/((var(23)*0.1+var(24)*0.05)+0.95))
ignorehitpause = 1

[State 19800]
type = Varadd
triggerall = root,palno = 9
triggerall = root,var(12) != 1
triggerall =  var(3) >= 850
triggerall = roundstate = 2
trigger1 = helper(19802),gethitvar(damage) = [1,500]
v = 3
value = ceil((helper(19802),gethitvar(damage))/((var(23)*0.07+var(24)*0.035)*(var(23)*0.035+var(24)*0.07)+1.3))
ignorehitpause = 1
[State 19800]
type = Varadd
triggerall = root,palno = 9
triggerall = root,var(12) != 1
triggerall = var(3) < 850
triggerall = roundstate = 2
trigger1 = helper(19802),gethitvar(damage) =[1,700]
v = 3
value = ceil(helper(19802),gethitvar(damage)/(((var(23)*0.07)+(var(24)*0.035))+1.3))
ignorehitpause = 1

[State 19800]
type = VarSet
trigger1 = root,palno >= 9
trigger1 = root,var(12) = 1
v = 3
value = 850
ignorehitpause = 1
supermovetime=99999999999
pausemovetime = 9999999999

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

[State 19800];AI補助
type = VarSet
trigger1 = root,var(57) = 1
v = 59
value = 1
ignorehitpause = 1

[State 19800]
type = Varset
trigger1 = root,stateno != 260&&root,stateno != 265
trigger1 = root,stateno != 0
v = 45
value = 0
ignorehitpause = 1

[State 19800]
type = Varset
trigger1 = root,stateno = 260||root,stateno = 265
v = 45
value = 1
ignorehitpause = 1

[State 19800]
type = Varadd
trigger1 = roundstate = 2
v = 46
value = 1
ignorehitpause = 1

[State 19800]
type = Varset
trigger1 = (enemy,life/enemy,lifemax) < 0.85
v = 47
value = 0
ignorehitpause = 1

[State 19800]
type = Varset
trigger1 = (enemy,life/enemy,lifemax) >= 0.85
v = 47
value = 1
ignorehitpause = 1

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

[State 19800];敵のhelperの最大数の確認
type = VarSet
triggerall = root,palno >= 9
trigger1 = var(23) < enemy,numhelper
v = 23
value = enemy,numhelper
ignorehitpause = 1

[State 19800];敵のprojctileの最大数の確認
type = VarSet
triggerall = root,palno >= 9
trigger1 = var(24) < enemy,numproj
v = 24
value = enemy,numproj
ignorehitpause = 1

[state -2]
type = Helper
triggerall =root,palno > 9
trigger1 = root,stateno=30000
trigger1 = numhelper(55555) < 3
helpertype = player
name = "namename"
ID = 55555
pos = 0, 55555
postype = p1
facing = 1
stateno = 55555
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[state 1]
type = changeanim
triggerall = root,palno >= 9
trigger1 = root,var(13) >= 5000
trigger1 = !numtarget
value = 20000
ignorehitpause = 1

[state 1]
type = changeanim
triggerall = root,palno >= 9
trigger1 = root,var(13) >= 5000
trigger1 = numtarget
value = 20002
ignorehitpause = 1

[state 6100]
type = null;reversaldef
triggerall = root,palno >= 9
trigger1 = root,var(13) >= 5000
;trigger1 = !numtarget
;atter = S,NT
reversal.attr = SCA,AA,AT,AP
pausetime = 0,0
numhits = 0
sparkno = -1
ignorehitpause = 1

[state 6100]
type = AssertSpecial
trigger1 = numtarget
trigger1 = !target,ishelper
trigger1 = roundstate > 2
flag = unguardable
ignorehitpause = 1

[state 1]
type = null;TargetLifeAdd
triggerall = root,palno >= 9
trigger1 = numtarget
trigger1 = !target,ishelper
trigger1 = roundstate > 2
trigger1 = root,alive
value = -9999999999999999999999999999999
ignorehitpause = 1

[state 1]
type = TargetDrop
triggerall = root,palno >= 9
trigger1 = numtarget
trigger1 = target,ishelper
ignorehitpause = 1

[State -3]
type = Helper
triggerall = root,palno >= 9
triggerall = roundstate = 4
triggerall = win
trigger1 = !numhelper(175)
stateno = 180
helpertype = player
id = 175
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -3]
type = Helper
triggerall = root,palno >= 9
triggerall = roundstate = 4
triggerall = losetime||drawgame
trigger1 = !numhelper(175)
stateno = 170
helpertype = player
id = 175
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[statedef 9999]
type = A
movetype = A
anim = 20002

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time = 0
value = 0
ignorehitpause = 1

[state 9999]
type = BindToTarget
trigger1 = 1
time = 1
ID = -1
pos = 0, 0

[state 9999]
type = null;posset
trigger1 = 1
x = 0
y = 99999999
ignorehitpause = 1

[state 9999]
type = changeanim
trigger1 = root,palno >= 9
trigger1 = root,movetype = A
value = 8877
ignorehitpause = 1

[state 9999]
type = changeanim
trigger1 = root,palno >= 9
trigger1 = root,movetype != A
value = 20002
ignorehitpause = 1

[state 9999]
type = null;hitby
trigger1 = 1
value = C,SA
ignorehitpause = 1

[State 3874]
type = Projectile
;trigger1 = numprojid(171871872838)<10
;trigger1 = root,movetype = A
trigger1 = root,hitpausetime >= 4
projanim = 2113
projid=171871872838
projremove = 1
projremovetime = 10
projscale=1.0,1.0
velocity =0,0
affectteam = f
postype = p1
numhits=0
offset = 0,0
attr = C,SA
hitflag = MAFPDL
damage=0
sparkno = -1
guard.sparkno = -1
p1stateno = (root,statetype=S)*301+(root,statetype=C)*303+(root,statetype=A)*305+(root,statetype=L)*301
ignorehitpause = 1
supermovetime = 99999999999999
pausemovetime = 99999999999999

[State 440, 3]
type = HitDef
triggerall = ishelper
trigger1 = root,movetype = A
attr = C, SA
damage    = 0
hitflag = MAFD
pausetime = 0,0
sparkno = -1
getpower = 0
hitsound   = -1
guardsound = -1
guard.sparkno = -1
ground.type = high
fall = 0
animtype = Light
affectteam = F
ignorehitpause = 1

[state -2]
type = AssertSpecial
trigger1 = 1
flag = invisible
ignorehitpause = 1
;===========================================================================================================================

[StateDef 55555]
type = U
movetype = U 
physics = U
anim = 20001
velset = 0,0 
sprpriority = 1
ctrl = 0

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time = 0
value = 0
ignorehitpause = 1

[State 50330]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
ignorehitpause = 1

[State 50330]
type = HitBy
trigger1 = 1
value = C,HP
time = 1
ignorehitpause = 1

[State 50340]
type = posset
trigger1 = ishelper
x = 0
y = 55555
ignorehitpause = 1

[State 50330]
type = Projectile
trigger1 = time >= 1
trigger1 = root,stateno = 30000
projid = 2112
projanim = 2112
projremove = 0
projscale = 1,1
projremovetime = 4
projhits = 1
projmisstime = 1
projpriority = 4
postype = p1
velmul = 0, 0
attr = C,HP
hitflag = MAFD
guardflag = 
p2stateno = 5150
sparkno = -1
affectteam = F
;persistent = 1
ignorehitpause = 1

[State 50330]
type = destroyself
triggerall = root,palno >= 9
trigger1 = roundstate != 2
trigger2 = root,stateno != 30000

;---------------------------------------------------------------------------------------------------------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[statedef 19801]
anim = 20001

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 19801]
type = BindToRoot
trigger1 = ishelper
ignorehitpause = 1

[State 19801]
type = SelfState
trigger1 = !ishelper
value = 50
ctrl = 1
ignorehitpause = 1

[state 19801]
type = changeanim
trigger1 = 1
value = 20001
ignorehitpause = 1

[state 19801]
type = posset
trigger1 = 1
y = 5000

[State 19801]
type = HitBy
trigger1 = ishelper
value = C,SA,HT
ignorehitpause = 1

[state 19801]
type = destroyself
triggerall = ishelper
trigger1 = root,stateno != 22001&&root,stateno!=48754&&root,var(3) != 1
ignorehitpause = 1

;アーマー

[Statedef 19802]
physics = N 
sprpriority = -1

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 19800]
type = NotHitBy
trigger1 = roundstate != 2
trigger2 = root,stateno=30000||root,stateno=11111||root,stateno=11112||root,stateno=22001||root,stateno=16366
trigger3 = root,stateno=17000||root,stateno=260||root,stateno=265||root,stateno=270||root,stateno=275
trigger4 = root,stateno=17001||root,stateno=17002||root,stateno=29999||root,stateno=30001||root,stateno=48754
trigger5 = root,stateno=22000||root,stateno=22002
value = SCA
time = 1

[state 19800]
type = varset
trigger1 = root,palno >= 9
trigger1 = gethitvar(damage) > 0
v = 3
value = ceil((gethitvar(damage)*0.05)+(helper(19177972),var(24)+helper(19177972),var(23))*2)

[state 19800]
type = NotHitBy
trigger1 = gethitvar(damage) > 0
value = SCA
time = var(3)

[State 19800]
type = BindToRoot
trigger1 = 1
time = -1
facing = 0
pos = 0,0

[State 19800]
type = ChangeAnim
trigger1 = 1
value = root,Anim
elem = root,AnimElemNo(0)

[State 19800]
type = AssertSpecial
trigger1 = 1
flag = Invisible

[State 19800]
type = Turn
trigger1 = Facing != parent,Facing

[state 19800]
type = null;destroyself
triggerall =root, palno = 10
trigger1 = root,movetype != A
trigger2 = root,stateno != 151&&root,stateno != 153&&root,stateno !=155

[State 19800]
type = HitOverride
trigger1 = 1
time = -1
attr = SCA,AA,AT,AP
slot = 1
stateno = 19802

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



;=============================================================================================================

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

;--------------------------------------珠-------------------------------------------------------------------------------

[statedef 1021]
type = A
movetype = A
anim = 2626

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 0]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 7000, VarSet]
type = VarSet
trigger1 = time = 0
fvar(2) = ifelse((root,fvar(39)=[0,1]),1,ifelse((root,fvar(39)=[-1,0]),-1,root,fvar(39)))

[State 7000, VarSet]
type = VarSet
trigger1 = time = 0
fvar(3) = ifelse((P2dist y=[0,1]),1,ifelse((P2dist y=[-1,0]),-1,P2dist y))-55

[State 7000, VarSet]
type = VarSet
trigger1 = 1
fvar(0) = ((atan(fvar(3)/fvar(2))*180)/pi)-(90*ifelse(P2bodydist Y<0,-1,1))

[state 8000]
type = varset
trigger1 = 1
fvar(1) = atan(fvar(3)/fvar(2))

[state 8000,速度]
type = velset
trigger1 = time >= 60
x = cos(fvar(1))
y = sin(fvar(1))

[State 8000, 2]
type = HitDef
trigger1 = ishelper
attr = S, SP
animtype  = ligth
damage    = 34
getpower = 30,30
guardflag = MA
pausetime = 0,0
sparkno = -1
sparkxy = -10,-77
guardsound = -1
guard.sparkno = -1
ground.type = high
ground.slidetime = 17
ground.hittime  = 17

[State 1000, 5]
type = null;Explod
trigger1 = time >= 0
trigger1 = numexplod(2500) = 0
anim = 16001
id = 2500
sprpriority = 1
postype = p1
pos = 0,0
bindtime = 600
removetime = 200
supermove = 1
ownpal = 1
ignorehitpause = 1
supermovetime=99999999999
pausemovetime = 9999999999
scale = 0.7, 0.7

[state 1001]
type = destroyself
trigger1 = time = 240
trigger2 = movecontact = 1
trigger3 = FrontEdgeDist <= 5
trigger4 = BackEdgeDist = 0

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

[statedef 1101]
type = A
movetype = A
anim = 2112

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 0]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[state 1001]
type = angleadd
trigger1 = 1
value = -9

[state 1001]
type = angledraw
trigger1 = 1

[State 8000, 2]
type = HitDef
trigger1 = ishelper
attr = S, SP
animtype  = ligth
damage    = 18
getpower = 30,30
guardflag = MA
pausetime = 0,0
sparkno = -1
sparkxy = -10,-77
guardsound = -1
guard.sparkno = -1
ground.type = high
ground.slidetime = 17
ground.hittime  = 17

[state 1100]
type = null;AfterImage
trigger1 = time = 0
time = 60
length = 20
palcolor = 256
palinvertall = 0
palbright = 30,30,30
palcontrast = 120,120,220
palpostbright = 0,0,0
paladd = 10,10,25
palmul = .65,.65,.75
timegap = 1
framegap = 4
trans = "non"

[State 7000, VarSet]
type = VarSet
trigger1 = time = 0
fvar(2) = ifelse((P2dist x=[0,1]),1,ifelse((P2dist x=[-1,0]),-1,P2dist x))

[State 7000, VarSet]
type = VarSet
trigger1 = time = 0
fvar(3) = ifelse((P2dist y=[0,1]),1,ifelse((P2dist y=[-1,0]),-1,P2dist y))-55

[State 7000, VarSet]
type = VarSet
trigger1 = 1
fvar(0) = ((atan(fvar(3)/fvar(2))*180)/pi)-(90*ifelse(P2bodydist Y<0,-1,1))

[state 8000]
type = varset
trigger1 = 1
fvar(1) = atan(fvar(3)/fvar(2))

[state 8000,速度]
type = velset
trigger1 = time >= 20
x = 10*cos(fvar(1))
y = 10*sin(fvar(1))

[state 1101]
type = destroyself
trigger1 = time = 100
trigger2 = movecontact = 1
trigger3 = FrontEdgeDist <= 5
trigger4 = BackEdgeDist = 0

[statedef 5151]
type    = A
movetype= I
physics = N

[state 5151]
type = destroyself
trigger1 = ishelper
trigger1 = time >= 0
ignorehitpause = 1

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

[statedef 1001]
type = A
movetype = A
anim = 19000

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[State 440, 3]
type = HitDef
triggerall = ishelper
trigger1 = Time = 0
attr = S, NA
damage    = 55
hitflag = MAF
guardflag = MA
pausetime = 0,0
sparkno = -1
getpower = 70
sparkxy = -15,-18
hitsound   = s1300,1
guardsound = s120,0
guard.sparkno = s7011
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = -3,-2
air.velocity = -3,-3
guard.velocity = -5
fall = 0
animtype = Light

[state 1001]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256, 256

[state 1001]
type = velset
trigger1 = time >= 40
x = 3

[state 1001]
type = PlayerPush
trigger1 = 1
value = 0

[state 1001]
type = PlayerPush
trigger1 = 1
value = 0

[state 0]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[state 0]
type = explod
trigger1 = movehit
anim = 8200
facing = 1
pos = 0,0
id = 1001
ignorehitpause = 1

[state 0]
type = explod
trigger1 = movehit
anim = 8200
facing = -1
pos = -1,-1
id = 1001
ignorehitpause = 1

[state 1001]
type = destroyself
trigger1 = movecontact > 0
trigger2 = FrontEdgeDist <= 5
trigger3 = BackEdgeDist = 0

[statedef 1301]
type = A
movetype = I
anim = 1160

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 1010]
type = varset
trigger1 = 1
v = 43
value = 1

[state 1301]
type = changestate
trigger1 = root,stateno = 1300
trigger1 = root,animelem = 5
value = 1302

[state 1001]
type = destroyself
trigger1 = root,stateno != 1300

[statedef 1302]
type = A
movetype = I
anim = 1210

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 1010]
type = varset
trigger1 = 1
v = 43
value = 0

[state 1302]
type = PlaySnd
trigger1 = animelem = 6
value = 1150, 0

[state 1302]
type = projectile
trigger1 = animelem = 6
projID = 1300
projanim = 1306
projscale = 1, 1
projremove = 1
projremovetime = -1
velocity = 4, 0
remvelocity = 0, 0
accel = 0, 0
velmul = 1, 1
projhits = 1
projmisstime = 0
projpriority = 4
projsprpriority = 2
projedgebound = 20
projstagebound = 20
projheightbound = -240, 1
offset = 60, -75
postype = p1
projshadow = 0, 0, 0
supermovetime = 999999
pausemovetime = 999999
attr = S,SP
hitflag = MAF
guardflag = MA
affectteam = E
animtype = Light
air.animtype = light
fall.animtype = DiagUp
priority = 7,Hit
damage = 10
pausetime = 8, 8
guard.pausetime = 2, 2
sparkno = -1
guard.sparkno = -1
sparkxy = -600000000, 20
hitsound = S3000,2
guardsound = S20, 0
ground.type = High
air.type = High
ground.velocity = -0, 0
guard.velocity = -0
air.velocity = -0, -9
airguard.velocity = -0,-0
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
down.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
airguard.ctrltime = 20
air.juggle = 0
sprpriority = 1
forcestand = 0
down.velocity = -0, -0
down.hittime = 10
down.bounce = 1
numhits = 1
p2stateno = 1303

[state 1001]
type = destroyself
trigger1 = animtime = 0

[statedef 22222]
type = A
movetype = A
anim = 20000

[state 22223]
type = changeanim
trigger1 = 1
value = 20000
ignorehitpause = 1

[State 17003, 3]
type = HitDef
triggerall = ishelper
trigger1 = root,stateno = 22001
attr = S,HA
ground.type = non
sparkno = -1
ignorehitpause = 1

[state 17003]
type = destroyself
trigger1 = root,stateno != 22001
ignorehitpause = 1

[statedef 22223]
type = A
movetype = A
anim = 20000

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 22223]
type = changeanim
trigger1 = 1
value = 20000
ignorehitpause = 1

[State 17003, 3]
type = HitDef
triggerall = ishelper
trigger1 = root,stateno = 39821
attr = S,HA
ground.type = non
sparkno = -1
ignorehitpause = 1

[state 17003]
type = destroyself
trigger1 = root,stateno != 39821
ignorehitpause = 1
;-------------------------------------
[statedef 6031]
type = S
movetype = I

[state 1301]
type = changeanim
trigger1 = 1
value = 6503

[state 1001]
type = destroyself
trigger1 = root,stateno != 6030

[statedef 22224]
type = A

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 22223]
type = changeanim
trigger1 = ishelper(7546)
value = 20000
ignorehitpause = 1

[state 22223]
type = changeanim
trigger1 = ishelper(7547)
value = 20001
ignorehitpause = 1

[State 48756]
type = HitBy
trigger1 = ishelper(7547)
value = C,HP,HT
time = 1
ignorehitpause = 1

[state 22223]
type = posset
trigger1 = ishelper(7547)
y = 10000
x = 0

[state 22224]
type = statetypeset
trigger1 = ishelper(7546)
movetype = A

[state 22224]
type = statetypeset
trigger1 = ishelper(7547)
movetype = I

[State 17003, 3]
type = HitDef
trigger1 = ishelper(7546)
attr = S,HA
ground.type = non
sparkno = -1
ignorehitpause = 1

[state 17003]
type = destroyself
trigger1 = root,stateno != 48754
ignorehitpause = 1
;-----------------------------

[statedef 48755]

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 48755]
type = null;hitby
trigger1 = ishelper(48755)
value = C,HP
ignorehitpause = 1

[state 48755]
type = statetypeset
trigger1 = ishelper(48755)
movetype = H
ignorehitpause = 1

[state 48755]
type = changeanim
trigger1 = ishelper(48755)||ishelper(48756)
value = 20004
ignorehitpause = 1

[state 48755]
type = changeanim
trigger1 = ishelper(48757)
value = 20003
ignorehitpause = 1

[state 48755]
type = posset
trigger1 = 1
x = 0
y = 10000
ignorehitpause = 1

[state 48755]
type = statetypeset
trigger1 = ishelper(48757)
movetype = A
ignorehitpause = 1

[state 48755]
type = null;Projectile
trigger1 = ishelper(48757)
trigger1 = !numprojid(48755)
projid = 48755
projanim = 20003
projremovetime = 1
projmisstime = 1
projpriority = 4
postype = p1
attr = C,HP
hitflag = MAFDLP
guardflag = 
p2stateno = 48756
sparkno = -1
numhits = 0
affectteam = F
ignorehitpause = 1

[State 240, 2]
type = HitDef
trigger1 = ishelper(48757)
attr = ,HP
hitflag = MAFDLP
guardflag = 
p2stateno = 48756
sparkno = -1
numhits = 0
affectteam = F
ignorehitpause = 1

[state 48755]
type = TargetLifeAdd
trigger1 = ishelper(48757)
value = -9999999999999
absolute = 1

[state 48755]
type = null;targetstate
trigger1 = ishelper(48757)
value = 5150
ignorehitpause = 1

[state 48755]
type = null;ReversalDef
trigger1 = ishelper(48757)
trigger1 = !numtarget
reversal.attr = SA,NA,SA
pausetime = 0,9999
p2stateno = 1000044
ignorehitpause = 1

[State 48755]
type = null;targetdrop
triggerall = isHelper(48757)
trigger1 = numtarget
trigger1 = target,IsHelper
ignorehitpause = 1

[state 48755]
type = destroyself
trigger1 = ishelper(48755)
trigger1 = name = "kouryou"
trigger1 = helper(48757),numtarget
trigger2 = root,var(3) != 1
trigger2 = root,stateno != 48754
ignorehitpause = 1

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

[statedef 9809]
type = A

[state 9809]
type = selfstate
trigger1 = !Ishelper
value = 0
ignorehitpause = 1

[state 22223]
type = changeanim
trigger1 = ishelper(9809)
value = 20000
ignorehitpause = 1

[state 22224]
type = statetypeset
trigger1 = 1
movetype = A

[State 17003, 3]
type = HitDef
trigger1 = ishelper(9809)
attr = S,HA
ground.type = non
sparkno = -1
ignorehitpause = 1

[state 17003]
type = destroyself
trigger1 = roundstate >= 3
ignorehitpause = 1

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

[statedef 22225]
type = A
movetype = A
anim = 20000

[state 6101]
type = selfState
triggerall = !ishelper
triggerall = name = "Kouryou"
trigger1 = time >= 0
value = 0
ignorehitpause = 1

[state 22223]
type = changeanim
trigger1 = 1
value = 20000
ignorehitpause = 1

[State 17003, 3]
type = HitDef
triggerall = ishelper
trigger1 = 1
attr = S,HT
hitflag = MAF
guardflag = 
affectteam = E
damage = 99999999999999999999,9999999999999999999999
;fall.damage = 99999999999999999999
p2stateno = 5150
sparkno = -1
ignorehitpause = 1

[State 17003, 3]
type = null;HitDef
triggerall = ishelper
trigger1 = 1
hitflag = MAF
guardflag = MA
affectteam = E
attr = ,HT
damage = 99999999999999999999,9999999999999999999999
fall.damage = 99999999999999999999
p2stateno = 5150
sparkno = -1
ignorehitpause = 1

[state 22001]
type = targetstate
triggerall = palno >= 9
trigger1 = 1
value = 5150
ignorehitpause = 1

[state 22001]
type = targetlifeadd
triggerall = palno >= 9
trigger1 = 1
value = -99999999999999999
ignorehitpause = 1

[state 17003]
type = destroyself
trigger1 = root,stateno != 48754
ignorehitpause = 1
