;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;僗僥乕僩夞暅
;--------------------------------------------------
[statedef 890106]
movetype = I
ctrl = 1

[state -1]
type = NotHitBy
trigger1 = 1
value = SCA
time = -1

[state -1];僇僂儞僩儕僙僢僩
type = varset
trigger1 = 1
var(56) = 2*gametime

[state -1]
type = lifeadd
trigger1 = 1
value = 1
kill = 0
ignorehitpause = 1

[state -1]
type = destroyself
trigger1 = 1

[state -1]
type = SelfState
trigger1 = !ishelper
trigger1 = time >= 0
trigger1 = pos Y >= 0
value = 0
ctrl = 1

[state -1]
type = SelfState
trigger1 = !ishelper
trigger1 = time >= 0
trigger1 = alive
trigger1 = pos Y < 0
value = 50
ctrl = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;傾乕儅乕
;--------------------------------------------------
;var(32)丂揤抧曵夡侾俀俹僟儊乕僕忦審
;var(33)丂揤抧曵夡侾俀俹埲奜峌寕僉儍儞僙儖忦審
;var(34)丂柌憐晻報丒婼侾俀俹埲奜峌寕僉儍儞僙儖忦審
;var(35)丂巰嫸偄侾俀俹埲奜峌寕嫋壜
[StateDef 890]
Type    = A
Movetype= I
Physics = N
anim = 10000

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = ishelper
trigger1 = root,life = [1,1000]
value = root,life
ignorehitpause = 1

[State -26]
type = Changestate
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[State 0]
type = statetypeset
trigger1 = 1
movetype = I
ignorehitpause = 1

[State 0]
type = lifeadd
trigger1 = 1
value = 1000
kill = 0
ignorehitpause = 1

[State 20000]
type = NotHitBy
trigger1 = time < 60
trigger2 = roundstate != 2
trigger3 = root,palno = 12
trigger3 = numhelper(6900)
trigger3 = helper(6900),var(41) = 0
trigger4 = numhelper(6900)
trigger4 = helper(6900),var(41) != 0
trigger4 = root,stateno != 89017;        僗僩乕儕乕拞怘傜偄敾掕偁傞僗僥乕僩偩偗懌偟偰偄偔
trigger4 = root,stateno != 89020
trigger4 = root,stateno != [89027,89028]
trigger4 = root,stateno != 89034
trigger4 = root,stateno != 8910
trigger5 = numhelper(6900) = 0
value = SCA
ignorehitpause = 1

[State -23]
type = HitOverride
triggerall = roundstate = 2
triggerall = time >= 60
trigger1 = root,palno != 12
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(41) = 0
time = 1
attr = SCA, AA, AT, AP
slot = 0
stateno = 890
ignorehitpause = 1

[State -23]
type = HitOverride
triggerall = roundstate = 2
triggerall = time >= 60
triggerall = numhelper(6900)
triggerall = helper(6900),var(41) != 0
trigger1 = root,stateno = 89017;        僗僩乕儕乕拞怘傜偄敾掕偁傞僗僥乕僩偩偗懌偟偰偄偔
trigger2 = root,stateno = 89020
trigger3 = root,stateno = [89027,89028]
trigger4 = root,stateno = 89034
trigger5 = root,stateno = 8910
time = 1
attr = SCA, AA, AT, AP
slot = 1
stateno = 890
ignorehitpause = 1

[State reversal];傾儅僥儔僗儃乕僫僗
type = ReversalDef 
triggerall = roundstate = 2
triggerall = time >= 60
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(41) = 3
trigger1 = root,stateno = 89017
reversal.attr = SCA,AA,AT,AP
attr = C,SP
priority = 7, Hit
pausetime = 0,90
HitSound = S892, 2
p1stateno = 891
ignorehitpause = 1

[State reversal]
type = ReversalDef
triggerall = !ishelper
triggerall = root,palno != 6 && (root,palno != [10,12])
triggerall = numhelper(6900)
triggerall = helper(6900),var(41) != 3
trigger1 = helper(6900),var(41) < 3
trigger2 = root,palno = 1 || root,palno = 7
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,5
HitSound = S902, 0
p2stateno = 3567
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10
ignorehitpause = 1

[state 23000]
type = targetdrop
triggerall = numtarget > 0
trigger1 = target,ishelper
ignorehitpause = 1

[state 23000]
type = targetlifeadd
triggerall = numtarget > 0
trigger1 = root,palno != 12 && root,palno != 6
trigger1 = root,palno != 1 && root,palno != 7
trigger2 = gametime%6 < 3
value = -1
ignorehitpause = 1
absolute = 1

[state 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = roundstate=2
trigger1 = root,palno != 12 && root,palno != 6
trigger1 = !random%5 && enemynear,time = 1
trigger1 = enemynear,stateno < 89023
value = 3567
ignorehitpause = 1

[State -24]
type = AssertSpecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State 1000, 0]
Type = BindToRoot
Trigger1 = 1
Facing = 1
ignorehitpause = 1

[State -26]
type = ChangeAnim
trigger1 = time < 60
value = 10000
ignorehitpause = 1

[State -26]
type = ChangeAnim
triggerall = time >= 60
triggerall = root,palno != [10,11]
trigger1 = root,time =1
trigger2 = root,animelem = 1,=1
value = root,anim
ignorehitpause = 1

[State -26]
type = ChangeAnim
triggerall = time >= 60
triggerall = root,palno = [10,11]
triggerall = numhelper(6904)
triggerall = helper(6904),stateno != 8915
trigger1 = helper(6904),time =1
trigger2 = helper(6904),animelem = 1,=1
value = helper(6904),anim
ignorehitpause = 1

[State -26];巰嫸偄丒恄敱儕僙僢僩
type = ChangeAnim
trigger1 = root,anim = 8934
trigger1 = root,time >= 200
trigger2 = root,numexplod(8958)
value = 10000
ignorehitpause = 1

[State -24];巰嫸偄侾俀俹埲奜峌寕嫋壜
type = varset
trigger1 = root,stateno = 89020
trigger1 = root,time <= 3
trigger2 = var(35) != 0
trigger2 = root,stateno != 89020
var(35) = numhelper(89022)
ignorehitpause = 1

[State -24];柌憐晻報丒婼侾俀俹埲奜僟儊乕僕敾掕
type = varset
trigger1 = root,stateno = 89027
trigger1 = time = 0
trigger1 = gethitvar(damage) = [1,20]
trigger2 = root,stateno != 89027
var(34) = 890*(root,stateno = 89027)
ignorehitpause = 1

[State -24];揤抧曵夡侾俀俹埲奜僟儊乕僕敾掕
type = varset
trigger1 = root,stateno = 89034
trigger1 = time = 0
trigger1 = gethitvar(damage) = [100,200]
trigger2 = root,stateno != 89034
var(33) = 890*(root,stateno = 89034)
ignorehitpause = 1

[State -24];揤抧曵夡侾俀俹僟儊乕僕敾掕
type = varset
trigger1 = root,stateno = 89034
trigger1 = time = 0
trigger1 = gethitvar(damage) = [1,200]
trigger2 = root,stateno != 89034
var(32) = (gethitvar(damage))*(root,stateno = 89034)
ignorehitpause = 1

[state -1]
type = destroyself
trigger1 = !ishelper(890)
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;傾乕儅乕 傾儅僥儔僗儃乕僫僗
;--------------------------------------------------
[StateDef 891]
Type    = A
Movetype= I
Physics = N
anim = 10000

[State -26]
type = Changestate
trigger1 = time > 2
value = 890
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;恄敱敾掕梡傾乕儅乕
;--------------------------------------------------
[StateDef 892]
Type    = A
Movetype= I
Physics = N
anim = 8960

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = ishelper
trigger1 = root,life = [1,1000]
value = root,life
ignorehitpause = 1

[State -26]
type = ChangeAnim
trigger1 = root,numexplod(8958)
trigger1 = time > 10
value = 10000
ignorehitpause = 1

[State -23]
type = HitOverride
trigger1 = 1
time = 1
attr = SCA, AA, AT, AP
slot = 0
stateno = 890
ignorehitpause = 1

[State -24]
type = AssertSpecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State 1000, 0]
Type = BindToRoot
Trigger1 = 1
Facing = 1
ignorehitpause = 1

[state -1]
type = destroyself
trigger1 = root,stateno != 89028
trigger2 = root,numexplod(8958)
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;侾俀俹慛寣偺寢枛敾掕梡傾乕儅乕
;--------------------------------------------------
[StateDef 893]
Type    = A
Movetype= I
Physics = N
anim = 8965

[State -2];儔僀僼僶乕偼忺傝
type = Lifeset
triggerall = ishelper
trigger1 = root,life = [1,1000]
value = root,life
ignorehitpause = 1

[State -26]
type = Changestate
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[State -26]
type = Changeanim
trigger1 = root,stateno = 89028
trigger1 = anim != 18965
value = 18965
ignorehitpause = 1

[State -26]
type = Changeanim
trigger1 = root,stateno = 8910
trigger1 = anim != 28965
value = 28965
ignorehitpause = 1

[State -26]
type = Changeanim
trigger1 = root,stateno != 89028
trigger1 = root,stateno != 8910
trigger1 = anim != 8965
value = 8965
ignorehitpause = 1

[State -26]
type = turn
trigger1 = root,pos x > 0
trigger1 = facing = -1
trigger2 = root,pos x <= 0
trigger2 = facing = 1
ignorehitpause = 1

[State -23]
type = HitOverride
triggerall = roundstate = 2
trigger1 = 1
time = 1
attr = SCA, AA, AT, AP
slot = 0
stateno = 890
ignorehitpause = 1

[State 106]
type = hitdef
triggerall = roundstate = 2
Trigger1 = ishelper
Attr = S, NA
HitFlag = P
Priority = 7, Hit
Damage = 0,0
PauseTime = 0, 8901016
HitSound = S-1
Ground.Type = Low
Guard.Dist = 0
getpower = 0, 0
GivePower = 0, -5120
ignorehitpause = 1

[State -24]
type = AssertSpecial
trigger1 = 1
flag = invisible
ignorehitpause = 1

[State 1000, 0]
Type = posset
Trigger1 = 1
x = 0
Y = 0
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]攕杒帪墘弌
;--------------------------------------------------
[StateDef 35]
Type = S
MoveType = I
Physics = S
Ctrl = 0
VelSet = 0, 0

[State 170, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim != 8915
Value = 8915

[State 6]
Type = AssertSpecial
Trigger1 = ishelper(6904)
Trigger1 = root,palno = 10
Trigger2 = !ishelper
Trigger2 = palno = 10
Flag = NoShadow

;--------------------慺怳傝壒
[State 1060, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 56
Trigger1 = !ishelper
Trigger1 = palno != 10
Value = S200, 4
Channel = 1

[State -26]
type = Changestate
trigger1 = time = 699
value = 35
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僞僀儉僆乕僶乕晧偗
;--------------------------------------------------
[StateDef 170]
Type = S
MoveType = I
Physics = S
Ctrl = 0
VelSet = 0, 0

[State 170, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim != 0
Value = 0

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僞僀儉僆乕僶乕堷偒暘偗
;--------------------------------------------------
[StateDef 175]
Type = S
MoveType = I
Physics = S
Ctrl = 0
VelSet = 0, 0

[state -1];曐尟
type = lifeadd
triggerall = name ="ONI-MIKO-REIMU"
triggerall = !ishelper
triggerall = life = 0
trigger1 = numhelper(6900) = 1
trigger1 = helper(6900),var(4) != 890106
trigger2 = numhelper(6900) != 1
value = 1
kill = 0
ignorehitpause = 1

[State 175, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim != 0
Value = 0

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]彑棙
;--------------------------------------------------
[StateDef 180]
Type = S
MoveType = I
Physics = S
Ctrl = 0
VelSet = 0, 0

[State turn]
Type = destroyself
Triggerall = ishelper(6904)
Trigger1 = root,stateno = 180

[State turn]
Type = turn
Triggerall = Time = 1
Triggerall = backedgedist < 30
Trigger1 = var(15) = 8910 || var(15) = [89027,89034]
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) > 6

[State 歑傝惡]
Type = PlaySnd
Triggerall = Time = 1
Triggerall = var(15) != 8910
Triggerall = var(15) != [89027,89034]
Trigger1 = !numhelper(6900)
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) < 7
Value = S891,1+random%2

[State 拞偵]
Type = PlaySnd
Triggerall = Time = 1
Trigger1 = var(15) = 8910 || var(15) = [89027,89034]
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) > 6
Value = S903,0

[State turn]
Type = turn
Triggerall = Time = 49
Triggerall = backedgedist < 30
Triggerall = var(15) != 8910
Triggerall = var(15) != [89027,89034]
Trigger1 = !numhelper(6900)
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) < 7

[State 192, pos]
Type = posadd
Triggerall = Time = [49,72]
Triggerall = var(15) != 8910
Triggerall = var(15) != [89027,89034]
Trigger1 = !numhelper(6900)
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) < 7
x = -2
y = -1

[State 192, vel]
Type = velset
Trigger1 = var(15) = 8910 || var(15) = [89027,89034]
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) > 6
x = -0.7

;--------------------慺怳傝壒
[State ChangeAnim]
Type = ChangeAnim
Triggerall = Anim != 10000
Triggerall = time >= 72
Trigger1 = var(15) = 8910 || var(15) = [89027,89034]
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) > 6
Value = 10000

[State 1060, PlaySnd]
Type = PlaySnd
Triggerall = Time = 72
Triggerall = var(15) != 8910
Triggerall = var(15) != [89027,89034]
Trigger1 = !numhelper(6900)
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) < 7
Value = S200, 4
Channel = 1

[State ChangeAnim]
Type = ChangeAnim
Triggerall = Anim != 21
Triggerall = time < 72
Trigger1 = var(15) = 8910 || var(15) = [89027,89034]
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) > 6
Value = 21

[State 180, ChangeAnim]
Type = ChangeAnim
Triggerall = Anim != 8914
Triggerall = var(15) != 8910
Triggerall = var(15) != [89027,89034]
Trigger1 = !numhelper(6900)
Trigger2 = numhelper(6900)
Trigger2 = helper(6900),var(41) < 7
Value = 8914

[state -1];曐尟
type = lifeadd
triggerall = name ="ONI-MIKO-REIMU"
triggerall = !ishelper
triggerall = life = 0
trigger1 = numhelper(6900) = 1
trigger1 = helper(6900),var(4) != 890106
trigger2 = numhelper(6900) != 1
value = 1
kill = 0
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僀儞僩儘侾丂棫偪偺傒
;--------------------------------------------------
[StateDef 191]
Type = S
Ctrl = 0
Anim = 0

[State 192, Helper]
Type = Helper
Trigger1 = palno != 6
Trigger1 = palno != 12
Trigger1 = Time = 0
OwnPal = 1
PosType = P1
Pos = 90, 0
ID = 193
StateNo = 193
Name = "saisen"
helpertype = player
supermovetime = 9990000
pausemovetime = 9990000

[State 1000, 攚宨]
type = Explod
triggerall = palno != 6
triggerall = palno != [10,11]
triggerall = palno != 12
trigger1 = Time = 1
trigger1 = var(51) = 1
anim = 8909
id = 8909
sprpriority = -10
postype = back
pos = 0,0
trans = add
BindTime = -1
removetime = -1
supermovetime = 999999999999
pausemovetime = 999999999999
ownpal = 1

[State 1000, 攚宨]
type = Explod
triggerall = palno = 12
trigger1 = Time = 1
trigger2=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))
anim = 8909
id = 8909
sprpriority = -10
postype = back
pos = 0,0
trans = add
BindTime = -1
removetime = -1
supermovetime = 999999999999
pausemovetime = 999999999999
ownpal = 1

[State 1000]
type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && numhelper(8901061) < 5 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
ID = 8901061
name = "batsu"
stateno = 8901061
pos = 0,999999999
postype = p1
facing = 1
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[State 1000]
type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && numhelper(8901061) < 5 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
ID = 8901061
name = "batsu"
stateno = 8901061
pos = 0,999999999
postype = p1
facing = 1
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[State 1000]
type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && numhelper(8901061) < 5 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
ID = 8901061
name = "batsu"
stateno = 8901061
pos = 0,999999999
postype = p1
facing = 1
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[State 1000]
type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && numhelper(8901061) < 5 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
ID = 8901061
name = "batsu"
stateno = 8901061
pos = 0,999999999
postype = p1
facing = 1
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[State 1000]
type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && numhelper(8901061) < 5 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
ID = 8901061
name = "batsu"
stateno = 8901061
pos = 0,999999999
postype = p1
facing = 1
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State -2, Helper]
Type = Helper
triggerall = !ishelper
triggerall = roundstate < 2 && (palno = 12 || palno = 6)
trigger1=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
OwnPal = 1
PosType = P1
Pos = 999, 999
ID = 8901066
StateNo = 8901066
Name = " "
ignorehitpause = 1

[State 191, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = Intro

[State 191, NotHitBy]
Type = NotHitBy
Trigger1 = 1
Value = SCA
Time = 3

[State 20]
type = changestate
trigger1 = palno = 12 || palno = 6
trigger1=(enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1"))
trigger2 = Time = 60
value = 0

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]僀儞僩儘俀丂嶲擖
;--------------------------------------------------
[StateDef 192]
Type = S
Ctrl = 0
VelSet = 0, 0

[State 192, AssertSpecial]
Type = AssertSpecial
Trigger1 = 1
Flag = Intro

[State 192, NotHitBy]
Type = NotHitBy
Trigger1 = 1
Value = SCA
Time = -1

[State 192, pos]
Type = posset
Trigger1 = Time = 0
x = 0
y = -200

[State 192, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time = 0
Value = 8911

[State 192, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 0
Value = S8901,1

[State 192, pos]
Type = posadd
Trigger1 = Time = [2,41]
y = 4

[State 192, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 41
Value = S200,8

[State 192, pos]
Type = posadd
Trigger1 = Time = [51,60]
x = -2
y = -1

[State 192, pos]
Type = posadd
Trigger1 = Time = [61,85]
x = -2
y = 2

[State 192, pos]
Type = posset
Trigger1 = time = 86
y = 0

[State 192, Helper]
Type = Helper
Trigger1 = Time = 0
OwnPal = 1
PosType = P1
Pos = 0, 0
ID = 193
StateNo = 193
Name = "saisen"
helpertype = player
supermovetime = 9990000
pausemovetime = 9990000

[State 192, PlaySnd]
Type = PlaySnd
Trigger1 = Time = 86
Value = S100,19
Channel = 6

[State 192, ChangeAnim]
Type = ChangeAnim
Trigger1 = Time = 86
Value = 47

[State 192, ChangeAnim]
Type = ChangeAnim
Trigger1 = Anim = 47
Trigger1 = AnimTime = 0
Value = 8913

[State 192, PlaySnd]
Type = PlaySnd
Trigger1 = Anim = 8913
Trigger1 = Animelem = 3,=1
Value = S891,0
Channel = 6

[State 192, ChangeState]
Type = ChangeState
Trigger1 = Anim = 8913
Trigger1 = AnimTime = 0
Trigger2 = roundstate = 2
Value = 0
ctrl = (roundstate = 2)

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]僀儞僩儘俀丂嫖慘敔
;--------------------------------------------------
[StateDef 193]
Type = S
MoveType = I
Physics = N
anim = 8912+88*(var(21)=890 || root,palno = 11)

[State 1]
Type = ChangeState
Trigger1 = !ishelper
Value = 0
ctrl = 1

[state a]
type = varset
trigger1 = enemynear,alive
var(55) = 0

[state a]
type = varset
trigger1 = root,stateno = 8903
trigger1 = root,time = 10
trigger2 = var(21) = 890
trigger2 = var(20) = 0
var(20) = (var(20)=0)

[State -2, VarSet]
Type = VarSet
triggerall = numhelper(6900)
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = root,command = "236S"
var(20) = (var(20)=0)

[State 1000, 0]
Type = SprPriority
Trigger1 = parent,stateno = 192
Trigger1 = parent,anim != 8913
Value = 2

[State 193, bind]
Type = bindtoroot
Trigger1 = root,stateno = 192
Trigger1 = root,time < 51

[State 1000, 0]
Type = SprPriority
Trigger1 = parent,stateno = 192
Trigger1 = parent,anim = 8913
Trigger2 = parent,stateno != 192
Value = -3

[State 193, NotHitBy]
Type = NotHitBy
Trigger1 = 1
Value = SCA
Time = -1

[State 192, pos]
Type = turn
Trigger1 = facing = -1

[State 192, pos]
Type = posset
Trigger1 = roundstate != 2
x = 0

[State 192, pos]
Type = posset
Trigger1 = roundstate = 2
Trigger2 = root,palno = [10,11]
x = 0
y = -40

[State 192, trans]
Type = trans
trigger1 = root,palno = 12
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) > 1
Trans = Add

[State 310 , blink]
type = PalFX
trigger1 = root,palno = 6 && root,var(58) = 1
trigger1 = var(20) = 0
trigger1 = !(root,stateno = 89017)
time = 1
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = var(21) = 890
time = 1
add = -80,-80,100
ignorehitpause = 1

[State 310 , blink]
type = PalFX
triggerall = var(21) != 890
trigger1 = root,palno = 12
trigger2 = root,palno = 6 && root,var(58) != 1
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) >= 1
trigger3 = var(20) = 1
trigger4 = roundstate < 2
trigger4 = root,palno != 1
trigger4 = root,palno != 7
trigger5 = root,palno = 6 && root,stateno = 89017
trigger6 = root,palno = 11
trigger6 = numhelper(6900)
trigger6 = helper(6900),var(6) = [28901,33506]
time = 1
add = 100,100,-80
ignorehitpause = 1

[state -1]
type = targetdrop
triggerall = numtarget > 0
trigger1 = target,ishelper
trigger2 = var(21) != 890

[State reversal]
type = ReversalDef
triggerall = !((root,palno = 6||root,palno=11||root,palno=12)&&root,stateno=89017)
trigger1 = root,palno != 1
trigger1 = root,palno != 7
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p1stateno = 311001
p2stateno = 1000045-(root,stateno = [89012,89013])-(root,stateno = [89028,89029])
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
triggerall = root,palno = 6||root,palno=11||root,palno=12
trigger1 = root,stateno = 89017
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p1stateno = 311001
p2stateno = 1000046
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State -2]
Type = SuperPause
Triggerall = root,alive
triggerall = enemynear,alive
trigger1 = roundstate > 3
Trigger1 = root,palno = 11 && root,var(35) != 0
Anim = -1
Time = 300
MoveTime = 300
P2DefMul = 1
Darken = 1
ignorehitpause = 1

[state state]
type = targetstate
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = target,alive = 0
value = 5150
ignorehitpause = 1

[State -2]
Type = AssertSpecial
trigger1 = root,numexplod(8958)
trigger2 = root,numexplod(8970)
trigger3 = root,numexplod(8971)
trigger4 = root,palno = [10,11]
IgnoreHitPause = 1
Flag  = invisible

[State 193, changestate]
Type = changestate
Trigger1 = roundstate > 1
value = 311000

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]嫖慘敔愴摤拞
;--------------------------------------------------
[StateDef 311000]
Type = S
MoveType = I
Physics = N
SprPriority = -3
anim = 8912+88*(var(21)=890 || root,palno = 11)

[State 1]
Type = ChangeState
Trigger1 = !ishelper
Value = 0
ctrl = 1

[state a]
type = varset
trigger1 = root,stateno = 8903
trigger1 = root,time = 10
trigger2 = var(21) = 890
trigger2 = var(20) = 0
var(20) = (var(20)=0)

[State -2, VarSet]
Type = VarSet
triggerall = numhelper(6900)
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = root,command = "236S"
var(20) = (var(20)=0)

[state a]
type = varset
trigger1 = enemynear,alive
var(55) = 0

[State 192, pos]
Type = turn
Trigger1 = facing = -1

[State 192, pos]
Type = posset
Trigger1 = roundstate != 2
x = 0

[State 192, pos]
Type = posset
Trigger1 = roundstate = 2
x = 0
y = -40

[State 192, trans]
Type = trans
trigger1 = root,palno = 12
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) > 1
Trans = Add

[State 310 , blink]
type = PalFX
trigger1 = root,palno = 6 && root,var(58) = 1
trigger1 = var(20) = 0
trigger1 = !(root,stateno = 89017)
time = 1
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = var(21) = 890
time = 1
add = -80,-80,100
ignorehitpause = 1

[State 310 , blink]
type = PalFX
triggerall = var(21) != 890
trigger1 = root,palno = 12
trigger2 = root,palno = 6 && root,var(58) != 1
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) >= 1
trigger3 = var(20) = 1
trigger4 = root,palno = 6 && root,stateno = 89017
trigger5 = root,palno = 11
trigger5 = numhelper(6900)
trigger5 = helper(6900),var(6) = [28901,33506]
time = 1
add = 100,100,-80
InvertAll = var(21)
ignorehitpause = 1

[state -1]
type = targetdrop
triggerall = numtarget > 0
trigger1 = target,ishelper
trigger2 = var(21) != 890

[State change]
type = varset
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(6) > 35016
trigger2 = numhelper(1603)
trigger3 = root,palno = [11,12]
trigger3 = enemynear,name = "New_Shiki_Nanaya";帪娫愡栺偺偨傔
trigger3 = enemynear,numhelper(3500)&&enemynear,NumHelper(7210)
trigger3 = enemynear,NumHelper(1007)&&enemynear,NumHelper(7220)
trigger3 = enemynear,numpartner = 0&&enemynear,NumHelper(7226)
var(21) = 890

[State 1]
Type = Changeanim
Trigger1 = var(21) != 890 && root,palno != 11
Trigger1 = anim != 8912
Trigger2 = var(21) = 890 || root,palno = 11
Trigger2 = anim != 9000
Value = 8912 +88*(var(21) = 890 || root,palno = 11)

[State 1]
Type = Changeanim
&&enemynear,alive&&palno=12)
Trigger1 = ((enemynear,name = "Kyuketsuki")&&(enemynear,palno = [6,11])&&enemynear,alive&&root,palno=12)
Trigger1 = anim != 9000
Value = 9000

[State change]
type = varset
trigger1 = numhelper(6900) && root,palno = 6
trigger1 = helper(6900),var(36) != 8901 && root,var(58) = 1
var(21) = 0

[State reversal]
type = ReversalDef
triggerall = !((root,palno = 6||root,palno=11||root,palno=12)&&root,stateno=89017)
triggerall = var(21) != 890
trigger1 = root,palno = 12
trigger2 = var(20) = 1
trigger3 = root,palno = 11
trigger3 = numhelper(6900)
trigger3 = helper(6900),var(6) = [28901,33506]
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p1stateno = 311001
p2stateno = 1000045-(root,stateno = [89012,89013])-(root,stateno = [89028,89029])-(root,palno=11)
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
triggerall = root,palno = 6||root,palno=11||root,palno=12
trigger1 = root,stateno = 89017
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p1stateno = 311001
p2stateno = 1000046
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
triggerall = root,palno = 6 || root,palno = 11 || root,palno = 12
trigger1 = var(21) = 890
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,8901016
p1stateno = 311001
p2stateno = 5150
palfx.time = 8901016
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State -2]
Type = SuperPause
Triggerall = root,alive
triggerall = enemynear,alive
trigger1 = roundstate > 3
Trigger1 = root,palno = 11 && root,var(35) != 0
Anim = -1
Time = 300
MoveTime = 300
P2DefMul = 1
Darken = 1
ignorehitpause = 1

[state state]
type = targetstate
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = target,alive = 0
value = 5150
ignorehitpause = 1

[State -2]
Type = AssertSpecial
trigger1 = root,numexplod(8958)
trigger2 = root,numexplod(8970)
trigger3 = root,numexplod(8971)
trigger4 = root,palno = [10,11]
IgnoreHitPause = 1
Flag  = invisible

[State 193, DestroySelf] 
Type = DestroySelf
Triggerall = roundstate > 2
Trigger1 = root,stateno = 180
Trigger1 = root,time >= 72
Trigger2 = root,stateno = 35
Trigger2 = root,time >= 56

[State 193, changestate] 
Type = changestate
Trigger1 = root,stateno = 3564
Trigger1 = root,time > 15
value = 311002

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[僿儖僷乕]嫖慘敔愴摤拞
;--------------------------------------------------
[StateDef 311001]
Type = S
MoveType = I
Physics = N
SprPriority = -3
anim = 8912+88*(var(21)=890 || root,palno = 11)

[State 1]
Type = ChangeState
Trigger1 = !ishelper
Value = 0
ctrl = 1

[state a]
type = varset
trigger1 = root,stateno = 8903
trigger1 = root,time = 10
trigger2 = var(21) = 890
trigger2 = var(20) = 0
var(20) = (var(20)=0)

[State -2, VarSet]
Type = VarSet
triggerall = numhelper(6900)
trigger1 = helper(6900),var(33) = 890
trigger1 = helper(6900),var(32) = 8901
trigger1 = helper(6900),var(31) = 890106
trigger1 = root,command = "236S"
var(20) = (var(20)=0)

[State 192, pos]
Type = turn
Trigger1 = facing = -1

[State 192, pos]
Type = posset
Trigger1 = roundstate != 2
x = 0

[State 192, pos]
Type = posset
Trigger1 = roundstate = 2
x = 0
y = -40

[State 192, trans]
Type = trans
trigger1 = root,palno = 12
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) > 1
Trans = Add

[State 310 , blink]
type = PalFX
trigger1 = root,palno = 6 && root,var(58) = 1
trigger1 = var(20) = 0
trigger1 = !(root,stateno = 89017)
time = 1
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = var(21) = 890
time = 1
add = -80,-80,100
ignorehitpause = 1

[State 310 , blink]
type = PalFX
triggerall = var(21) != 890
trigger1 = root,palno = 12
trigger2 = root,palno = 6 && root,var(58) != 1
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) >= 7
trigger3 = var(20) = 1
trigger4 = root,palno = 6 && root,stateno = 89017
trigger5 = root,palno = 11
trigger5 = numhelper(6900)
trigger5 = helper(6900),var(6) = [28901,33506]
time = 1
add = 100,100,-80
InvertAll = var(21)
ignorehitpause = 1

[state -1]
type = varset
trigger1 = root,palno = 11
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(6) = [28901,33506]
trigger1 = numtarget > 0 && var(16) != 890
trigger1 = target,ishelper
var(16) = 890
ignorehitpause = 1

[state -1]
type = targetdrop
trigger1 = numtarget > 0
trigger1 = target,ishelper

[State change]
type = changestate
trigger1 = var(21) != 890
trigger1 = var(55) = 100
trigger2 = numtarget = 0
trigger3 = var(55) = 100
trigger3 = numtarget
trigger3 = target,ishelper != 1
trigger3 = target,hitpausetime < 901016
value = 193

[state power]
type = targetpoweradd
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
value = -2147483648
ignorehitpause = 1

[State 6300];僄僼僃僋僩
Type = Explod
trigger1 = numtarget > 0
trigger1 = numexplod(8910) < 1 || gametime%30 < 1
trigger1 = target,ishelper != 1
trigger1 = var(55) != 100
Anim = 8910
ID = 8910
Pos = ceil(frontedgedist-ifelse((facing=enemynear,facing),(enemynear,frontedgedist),(enemynear,backedgedist))),ceil((enemynear,pos y)-pos y)-50
PosType = p1
Scale = 1,1
Facing = 1
SprPriority = 3
Trans = Add
Ownpal = 1
SuperMoveTime = 99
PauseMoveTime = 99

[State 2000, 6];僺僠儏乕儞
type = PlaySnd
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
trigger1 = var(54) != 100
trigger1 = var(55) != 100
value = s890,2

[State 2000, 6];億乕僘
type = Pause
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
trigger1 = var(54) != 100
trigger1 = var(55) != 100
time = 31
movetime = 31

[State -2]
type = SuperPause
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
trigger1 = var(55) != 100
time = 3
movetime = 0
anim = -1
darken = 0
ignorehitpause = 1

[state a];堦搙偩偗
type = varset
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
var(54) = 100

[state a];堦搙偩偗
type = varset
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
var(55) = 100

[State change]
type = varset
trigger1 = numhelper(6900)
trigger1 = helper(6900),var(6) > 35016
trigger2 = numhelper(1603)
var(21) = 890

[State 1]
Type = Changeanim
Trigger1 = var(21) != 890 && root,palno != 11
Trigger1 = anim != 8912
Trigger2 = var(21) = 890 || root,palno = 11
Trigger2 = anim != 9000
Value = 8912 +88*(var(21) = 890 || root,palno = 11)

[State reversal]
type = ReversalDef 
triggerall = !((root,palno = 6||root,palno=11||root,palno=12)&&root,stateno=89017)
triggerall = var(21) != 890
trigger1 = root,palno = 12
trigger2 = var(20) = 1
trigger3 = root,palno = 11
trigger3 = numhelper(6900)
trigger3 = helper(6900),var(6) = [28901,33506]
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p2stateno = 1000045-(root,stateno = [89012,89013])-(root,stateno = [89028,89029])-(root,palno=11)
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
triggerall = root,palno = 6||root,palno=11||root,palno=12
trigger1 = root,stateno = 89017
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p2stateno = 1000046
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef
triggerall = root,palno = 6 || root,palno = 11 || root,palno = 12
trigger1 = var(21) = 890
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,8901016
p2stateno = 5150
palfx.time = 8901016
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State -2]
Type = SuperPause
Triggerall = root,alive
triggerall = enemynear,alive
trigger1 = roundstate > 3
Trigger1 = root,palno = 11 && root,var(35) != 0
Anim = -1
Time = 300
MoveTime = 300
P2DefMul = 1
Darken = 1
ignorehitpause = 1

[State -2]
Type = SuperPause
Triggerall = root,alive
Triggerall = enemynear,alive
trigger1 = var(21) = 890
Trigger1 = numtarget
Trigger1 = !target,ishelper
Trigger1 = roundstate > 2
trigger2 = roundstate > 3
Trigger2 = root,palno = 11 && root,var(35) != 0
Anim = -1
Time = 300
MoveTime = 300
P2DefMul = 1
Darken = 1
ignorehitpause = 1

[state state]
type = targetstate
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = target,alive = 0
trigger2 = roundstate > 2
trigger3 = var(21) = 890
trigger3 = time < 200
trigger3 = target,stateno != 5150
trigger3 = target,stateno != 1000045
value = 5150
ignorehitpause = 1

[state state]
type = targetlifeadd
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = roundstate > 2
value = -1000*enemynear,life
absolute = 1
ignorehitpause = 1

[State -2]
Type = AssertSpecial
trigger1 = root,numexplod(8958)
trigger2 = root,numexplod(8970)
trigger3 = root,numexplod(8971)
trigger4 = root,palno = [10,11]
IgnoreHitPause = 1
Flag  = invisible

[State 193, DestroySelf] 
Type = DestroySelf
Triggerall = roundstate > 2
Trigger1 = root,stateno = 180
Trigger1 = root,time >= 72
Trigger2 = root,stateno = 35
Trigger2 = root,time >= 56

[State 193, changestate] 
Type = changestate
Trigger1 = root,stateno = 3564
Trigger1 = root,time > 15
value = 311002

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	嫖慘敔偩僢
;--------------------------------------------------
[StateDef 311002]
Type = S
MoveType = I
Physics = N
anim = 8912

[State 1]
Type = ChangeState
Trigger1 = !ishelper
Value = 0
ctrl = 1

[state a]
type = varset
trigger1 = enemynear,alive
var(55) = 0

[state a]
type = varset
trigger1 = root,stateno = 8903
trigger1 = root,time = 10
var(20) = (var(20)=0)

[State 193, bind]
Type = assertspecial
Trigger1 = root,stateno = 3564
Trigger1 = root,time < 61
flag = invisible

[State 1000, 0]
Type = SprPriority
Trigger1 = root,stateno = 3564
Trigger1 = root,time = [61,104]
Value = 2

[State 193, bind]
Type = bindtoroot
Trigger1 = root,stateno = 3564
Trigger1 = root,time = [61,104]

[State 1000, 0]
Type = SprPriority
Trigger1 = root,stateno = 3564
Trigger1 = root,time > 104
Value = 3

[State 193, NotHitBy]
Type = NotHitBy
Trigger1 = 1
Value = SCA
Time = -1

[State 192, pos]
Type = turn
Trigger1 = facing = -1

[State 310 , blink]
type = PalFX
trigger1 = root,palno = 6 && root,var(58) = 1
trigger1 = var(20) = 0
trigger1 = !(root,stateno = 89017)
time = 1
ignorehitpause = 1

[State 310 , blink]
type = PalFX
trigger1 = root,palno = 12
trigger2 = root,palno = 6 && root,var(58) != 1
trigger2 = numhelper(6900)
trigger2 = helper(6900),var(41) >= 1
trigger3 = var(20) = 1
trigger4 = roundstate < 2
trigger4 = root,palno != 1
trigger4 = root,palno != 7
trigger5 = root,palno = 6 && root,stateno = 89017
time = 1
add = 100,100,-80
ignorehitpause = 1

[state -1]
type = targetdrop
trigger1 = numtarget > 0
trigger1 = target,ishelper

[state power]
type = targetpoweradd
trigger1 = numtarget > 0
trigger1 = target,ishelper != 1
value = -2147483648
ignorehitpause = 1

[state power]
type = targetlifeadd
trigger1 = numtarget > 0
trigger1 = var(20) = 1
trigger1 = target,ishelper != 1
value = -2147483648
Absolute = 1
ignorehitpause = 1

[State reversal]
type = ReversalDef 
trigger1 = var(20) = 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,2
p2stateno = 1000045
palfx.time = 60
palfx.add = 100,-180,-180
palfx.sinadd = -80,-80,-80,10

[State reversal]
type = ReversalDef 
trigger1 = var(20) != 1
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
p2stateno = 3567

[state power]
type = targetlifeadd
trigger1 = numtarget > 0
trigger1 = var(20) != 1
trigger1 = target,ishelper != 1
value = -5
Absolute = 1
ignorehitpause = 1

[state state]
type = targetstate
triggerall = numtarget > 0
triggerall = target,ishelper != 1
trigger1 = var(20) = 1
trigger1 = target,alive = 0
value = 5150
ignorehitpause = 1

[State 193, changestate] 
Type = changestate
Trigger1 = root,stateno != 3564
value = 311000

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;	[杮懱]儔僂儞僪奐巒慜
;--------------------------------------------------
[StateDef 5900]
Type = S

[State 5900, VarRangeSet]
Type = VarRangeSet
Trigger1 = RoundsExisted = 0
Value = 0

[State 5900, VarRangeSet]
Type = VarRangeSet
Trigger1 = RoundsExisted = 0
fValue = 0

[State 5900, ChangeState]
Type = ChangeState
Trigger1 = palno = 12
trigger2=((enemy,name ="F1")&&(enemy,numpartner=0||(p2name="F1"&&p4name="F1")))||(p2name="kaioh"||p4name="kaioh")
trigger2 = palno = 6
Trigger3 = palno = [10,11]
trigger4 = palno != 6
Trigger4 = roundno > 1 && (teammode = single ||teammode = simul)
Value = 191

[State 5900, ChangeState]
Type = ChangeState
Trigger1 = palno != 12
Value = 192

