[statedef -2]

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

[State 幍惎僎乕僕愝掕]
type = varset
trigger1 = 1
;var(34) = 0 ; 僆僽
var(34) = 1 ;僆儞



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

[state -2,僠乕僩僗僀僢僠]
type=varset
trigger1=1
var(0)=0
;+1:慡峌寕拞姰慡柍揋
;+2:旕峌寕拞僎乕僕夞暅
;+4:旕嬺傜偄拞懱椡夞暅
;+8:慡峌寕僈乕晄
;+16:峌寕偺僸僢僩悢偑戝暆偵傾僢僾
;+32:忢帪MAX敪摦忬懺
;+64:儃僗儌乕僪(僎乕僕夞廂棪戝暆岦忋+柍揋帪娫捛壛+敀梾柵惛偺敪惗崅懍壔)
;+128:僗僩儔僀僇乕偺摦嶌偑崅懍壔(02UM斉)
;+256:僗僩儔僀僇乕偑柍悢偵暘恎
ignorehitpause=1

;===========================================================================
;僠乕僩僗僀僢僠
[state -2,慡峌寕拞柍揋]
type=nothitby
trigger1=var(0)&1
trigger1=movetype=a
value=sca
ignorehitpause=1

[state -2,僎乕僕夞暅]
type=poweradd
trigger1=var(0)&2
trigger1=roundstate=2
trigger1=movetype!=a
value=1
ignorehitpause=1

[state -2,懱椡夞暅]
type=lifeadd
trigger1=var(0)&4
trigger1=roundstate=2
trigger1=movetype!=h
value=1
ignorehitpause=1

[state -2,僈乕晄]
type=assertspecial
trigger1=var(0)&8
flag=unguardable
ignorehitpause=1

[state -2,忢帪MAX]
type=varset
trigger1=var(0)&32
var(1)=900
ignorehitpause=1


;僷儚乕忋徃
[State -2]
type = Poweradd
triggerall = var(0)&64
triggerall = roundstate = 2
triggerall = GetHitVar(Damage) > 1
triggerall = GetHitVar(Damage) < 20
triggerall  = var(59) >=7
trigger1 = RoundState >= 0
value = 10*50*var(59)


;僷儚乕忋徃
[State -2]
type = Poweradd
triggerall = var(0)&64
triggerall = roundstate = 2
triggerall = GetHitVar(Damage) < 70
triggerall = GetHitVar(Damage) > 21
triggerall  = var(59) >=7 
trigger1 = RoundState >= 0
value = 20*50*var(59)


;僷儚乕忋徃
[State -2]
type = Poweradd
triggerall = var(0)&64
triggerall = roundstate = 2
triggerall = GetHitVar(Damage) > 200
triggerall  = var(59) >= 7
trigger1 = RoundState >= 0
value = 35*50*var(59)

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

;===========================================================================
[State -3]
type = helper
triggerall = Numpartner > 0
triggerall = partner,Name = "shiki_tohno"
triggerall = NumHelper(1400) = 0
trigger1 = partner,AuthorName = "僠儐儕"
trigger2 = partner,authorname = "僠儐儕&&僄僗" 
name = "shiki_tohno"
id = 1400
pos = -30,0
postype = p1
stateno = 66378
helpertype = Normal
keyctrl = 1
size.xscale = 1
size.yscale = 1
sprpriority = -2
ownpal = 1
;supermovetime = 999999999999999999
;pausemovetime = 999999999999999999

;===========================================================================
[State -3]
type = helper
triggerall = p2Name = "shiki_tohno"
triggerall = NumHelper(1400) = 0
trigger1 = enemynear,AuthorName = "僠儐儕"
trigger2 = enemynear,authorname = "僠儐儕&&僄僗" 
name = "shiki_tohno"
id = 1400
pos = -30,0
postype = p1
stateno = 66378
helpertype = Normal
keyctrl = 1
size.xscale = 1
size.yscale = 1
sprpriority = -2
ownpal = 1
;supermovetime = 999999999999999999
;pausemovetime = 999999999999999999

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

[state 1100,僌儖僈儞]
type=helper
triggerALL = palno = [7,12]
trigger1=!numhelper(1300)
name="Striker_Glugan"
id=1300
stateno=30000
ownpal=1
pos=-20,0
postype=p1
size.xscale=1 
size.yscale=1
size.ground.back=60
size.ground.front=50
;size.air.back
;size.air.front
;size.height
;size.head
;size.mid.pos
;size.shadowoffset

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





[state a];幍惎僎乕僕
type = Helper
trigger1 = teammode = single || teammode = turns 
trigger1 = var(34) = 1

;triggerALL = palno = [1,6]
triggerall = numhelper(64000) = 0
id = 64000
name = "sichisei"
sprpriority = 10
pos = -50,-160
postype = front
stateno = 64000
helpertype = normal
pausemovetime = 0
bindtime = -1
keyctrl = 0 
ownpal = 1



[state a]
type = varset
triggerall = var(34) = 1
trigger1 = var(38) <= 0
trigger2 = var(38) >= 70
trigger2 = var(27) = 1 
trigger2 = roundno >= 2
trigger2 = roundstate=0
v = 38
value = 0


[state a]
type = varset
triggerall = var(34) = 1
trigger1 = var(38) <= 0
trigger1 = var(27) = 1 
v = 27
value = 0



[state a]
type = varset
triggerall = var(34) = 1
trigger1 = var(38) >= 70
v = 38
value = 70


[state a]
type = varset
triggerall = var(34) = 1
triggerall = Numpartner > 0
triggerall = partner,Name = "shiki_tohno"
trigger1 = partner,AuthorName = "僠儐儕"
trigger2 = partner,authorname = "僠儐儕&&僄僗" 
v = 38
value = 70


[state a]
type = varadd
triggerall = var(34) = 1
trigger1 = stateno = [200,3500]
trigger1 = movehit=1
v = 38
value = 1



;===========================================================================
[State 180, Randomizer]
type = VarRandom
trigger1 = stateno != [3999,4020]
v = 17
range = 0,6


[state a]
type = removeexplod
trigger1 = stateno != [3999,4300]
ID = 1430


[state a]
type = removeexplod
trigger1 = stateno != 290
ID = 290

[state a]
type = removeexplod
trigger1 = stateno != [1900,1930]
ID = 1905



[state a]
type = stopSnd
;trigger1 = stateno = [5000,5300]
;trigger2 = movetype=H
trigger1 = stateno != [3000,3200]
trigger1 = stateno != 290
triggerall = time = 1
channel = 10



[State -3]
type = PlaySnd
triggerall = movetype=A
triggerall = time = 3
trigger1 = stateno = [200,700]
trigger2 = stateno = 900
trigger3 = stateno = 910
trigger4 = stateno = 810
persistent = 0
value = s200,var(17)

[State -3]
type = PlaySnd
triggerall = movetype=A
triggerall = time = 17
trigger1 = stateno = 1200
trigger2 = stateno = 1210
persistent = 0
value =s200,var(17)

[State -3]
type = PlaySnd
triggerall = movetype=H
triggerall = time = 1
triggerall = stateno = 5000
trigger1 = anim = 5000 || anim = 5001 || anim = 5010
trigger2 = anim = 5011 || anim = 5020 || anim = 5021
persistent = 0
value = s5000,0+(random%1)


[State -3]
type = PlaySnd
trigger1 = movetype=H
triggerall = time = 1
triggerall = stateno = 5000
trigger1 = anim = 5002 || anim = 5012 || anim = 5022
persistent = 0
value = s5000,1+(random%2)



[State -3]
type = PlaySnd
triggerall = time = 1
triggerall = stateno = 5120
trigger1 = anim = 5120
trigger2 = anim = 5121
persistent = 0
value = s5120,1+(random%2)


[state -2,僼儔僀儞僌懳嶔]
type=lifeset
triggerall=roundstate<2
triggerall=numenemy
trigger1=(teammode=turns)||(enemy,teammode=turns)
trigger1=roundsexisted=0
trigger2=!(teammode=turns)
trigger2=!(enemy,teammode=turns)
value=lifemax

;旐僟儊偺僎乕僕丠偁傝偑偨偔傕傜偭偰偍偔傛

[state -2,僼儔僀儞僌偡傞晄撏偒幰傊偺儁僫儖僥傿]
type=poweradd
triggerall=roundstate<2
trigger1=movetype=h
value=gethitvar(damage)*100

;===========================================================================
;僇僂儞僞乕僸僢僩張棟
[state -2,僇僂儞僞乕僸僢僩偡傞僼儔僌]
type=varset
triggerall=numenemy
trigger1=p2movetype=a
var(3)=1
ignorehitpause=1

[state -2,僇僂儞僞乕僸僢僩僼儔僌儕僙僢僩(僸僢僩屻)]
type=varset
trigger1=var(3)=2
var(3)=0
ignorehitpause=1

[state -2,僇僂儞僞乕僸僢僩偟偨僼儔僌]
type=varset
triggerall=var(3)=1
trigger1=movehit=1
trigger2=numhelper
trigger2=helper,movehit=1
trigger3=projhittime(0)=0
var(3)=2
ignorehitpause=1

[state -2,僇僂儞僞乕僸僢僩帪偺攚宨僼儔僢僔儏]
type=envcolor
trigger1=var(3)=2
time=1
value=255,255,255
under=1
ignorehitpause=1

[state -2,僇僂儞僞乕僸僢僩僼儔僌儕僙僢僩(捠忢帪)]
type=varset
trigger1=var(3)=1
trigger1=numenemy
trigger1=p2movetype!=a
var(3)=0
ignorehitpause=1

[State 6000];Counter!
type = Explod
trigger1 = teamside = 1
trigger1 = numexplod(7600) = 0
trigger1 = p2movetype = H && movehit = 1 && var(3) = 2
anim = 7600
id = 7600
sprpriority = 9
postype = left
pos = 40,85
ontop = 1
bindtime = -1
removetime = 40
ownpal = 1
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
scale = 0.5,0.5

[State 6000];Counter!
type = Explod
trigger1 = teamside = 2
trigger1 = numexplod(7600) = 0
trigger1 = p2movetype = H && movehit = 1 && var(3) = 2
anim = 7601
id = 7600
sprpriority = 9
postype = right
pos = -40,85
ontop = 1
bindtime = -1
removetime = 40
ownpal = 1
IgnoreHitPause = 1
SuperMoveTime = 9999
PauseMoveTime = 9999
scale = 0.5,0.5


;---------------------------------------------------------------------------
;僐儞儃曗惓旕MAX忬懺偺峌寕椡
[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) = [0, 1]
IgnoreHitPause = 1
Value = 1

[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) = [2, 3]
IgnoreHitPause = 1
Value = .9

[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) = [4, 5]
IgnoreHitPause = 1
Value = .8

[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) = [6, 7]
IgnoreHitPause = 1
Value = .7

[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) = [8, 9]
IgnoreHitPause = 1
Value = .6

[State -3]
Type = AttackMulSet
Trigger1 = !Var(1) 
Trigger1 = Var(20) >= 10
IgnoreHitPause = 1
Value = .5


;僐儞儃曗惓MAX忬懺偺峌寕椡
[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [0, 1]
IgnoreHitPause = 1
Value = 1*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [2, 3]
IgnoreHitPause = 1
Value = .9*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [4, 5]
IgnoreHitPause = 1
Value = .8*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [6, 7]
IgnoreHitPause = 1
Value = .7*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [8, 9]
IgnoreHitPause = 1
Value = .6*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [10,11]
IgnoreHitPause = 1
Value = .5*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [12,13]
IgnoreHitPause = 1
Value = .4*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) = [14,15]
IgnoreHitPause = 1
Value = .3*.8

[State -3]
Type = AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) >= 16;[16,17]
IgnoreHitPause = 1
Value = .2*.8

[State -3]
Type = null;AttackMulSet
Trigger1 = Var(1) 
Trigger1 = Var(20) >=18 
IgnoreHitPause = 1
Value = .1*.8


[State -3]
Type = VarSet
Trigger1 = P2MoveType != H
Trigger2 = stateno=3500
Trigger2 = time=0
Trigger3 = stateno=3100
Trigger3 = time=0
IgnoreHitPause = 1
V = 20
Value = 0

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

[State 200]
Type = VarAdd
Trigger1 = MoveHit != 0
Persistent = 0
IgnoreHitPause = 1
V = 20
Value = 1

;===========================================================================
;MAX敪摦娭學
[state -2,MAX僞僀儅乕]
type=varadd
triggerall=!(var(0)&32)
trigger1=var(1)>0
var(1)=-1
ignorehitpause=1

[state -2,MAX僞僀儅乕偑晧偺抣偵撍偒敳偗偨偲偒]
type=varset
triggerall=!(var(0)&32)
trigger1=var(1)<0
trigger2=lose
var(1)=0
ignorehitpause=1

[state -2,MAX忬懺偺揰柵]
type=palfx
trigger1=var(1)
trigger1=gametime%2=0
time=1
add=100,100,0
ignorehitpause=1

[state -2,僎乕僕検屌掕]
type=powerset
triggerall=!(var(0)&32)
trigger1=var(1)
value=var(2)
ignorehitpause=1

[state -2,MAX忬懺偺峌寕椡]
type=null;attackmulset
trigger1=var(1)
value=0.8
ignorehitpause=1

[state -2,旕MAX忬懺偺峌寕椡]
type=null;attackmulset
trigger1=!var(1)
value=1
ignorehitpause=1

[State -2,MAX僎乕僕:榞]
type=explod
triggerall=!(var(0)&32)
trigger1=var(1)
anim=4510
pos=ifelse(teamside=1,10,310),70-10
postype=left
facing=ifelse(teamside=1,1,-1)
bindtime=-1
ontop=1
ownpal=1
ignorehitpause=1

[State -2,MAX僎乕僕:拞恎]
type=explod
triggerall=!(var(0)&32)
trigger1=var(1)
anim=4511
pos=ifelse(teamside=1,10,311-(var(1)/15)),70-10
postype=left
bindtime=-1
scale=var(1)/15
ontop=1
ownpal=1
ignorehitpause=1

[state -2,昞帵:昐偺埵]
type=explod
triggerall=!(var(0)&32)
trigger1=var(1)
anim=4500+(var(1)/100)
pos=ifelse(teamside=1,78,226),69-10
scale=0.5,0.5
postype=left
ontop=1
ownpal=1
ignorehitpause=1

[state -2,昞帵:廫偺埵]
type=explod
triggerall=!(var(0)&32)
trigger1=var(1)
anim=4500+(var(1)%100/10)
pos=ifelse(teamside=1,86,234),69-10
scale=0.5,0.5
postype=left
ontop=1
ownpal=1
ignorehitpause=1

[state -2,昞帵:堦偺埵]
type=explod
triggerall=!(var(0)&32)
trigger1=var(1)
anim=4500+(var(1)%10)
pos=ifelse(teamside=1,94,242),69-10
scale=0.5,0.5
postype=left
ontop=1
ownpal=1
ignorehitpause=1

;===========================================================================
;僗僷僉儍儞揰柵惂屼
[state -2,僗僷僉儍儞揰柵]
type=palfx
trigger1=var(4)
trigger1=gametime%2=0
time=1
add=256,256,256
ignorehitpause=1

[state -2,揰柵僞僀儅乕]
type=varadd
trigger1=var(4)>0
var(4)=-1
ignorehitpause=1

;===========================================================================
;岠壥壒
[state -2,妸傝僟僂儞岠壥壒]
type=playsnd
trigger1=numtarget=1
trigger1=target,stateno=5422
trigger1=target,time=1
trigger2=numtarget=2
trigger2=enemynear,stateno=5422
trigger2=enemynear,time=1
value=5420,0
ignorehitpause=1

[state -2,僈乕僋儔岠壥壒]
type=playsnd
trigger1=numtarget=1
trigger1=target,stateno=5430
trigger1=target,time=1
trigger2=numtarget=2
trigger2=enemynear,stateno=5430
trigger2=enemynear,time=1
value=5430,0
ignorehitpause=1

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

[state -2,捛寕晄壜僼儔僌儕僙僢僩]
type=varset
triggerall=!numtarget
trigger1=numhelper
trigger1=!helper,numtarget
trigger2=!numhelper
var(9)=0



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

[state -2,巆憸徚嫀]
type=afterimagetime
trigger1=movetype=h
time=0

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

[state -2,僴僀僕儍儞僾敾掕]
type=varadd
trigger1=var(5)>0
var(5)=-1

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

[state -2,彑棙/攕杒墘弌]
type=helper
triggerall=roundstate=3
triggerall=!numhelper(9999)
trigger1=winko
helpertype=normal
name="winflash"
id=9999
stateno=9999
keyctrl=0
ownpal=1
ignorehitpause=1

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

[state -2,僨僶僢僌梡昞帵]
type=displaytoclipboard
trigger1=1
text="%d %d %d"
params=var(0),var(9),var(10)
ignorehitpause=1

[state -2,僨僶僢僌梡昞帵2]
type=appendtoclipboard
trigger1=var(59)
text="\n%d %d %d"
params=var(59),var(58),var(57)
ignorehitpause=1

;===========================================================================
;儘乕僇儖儖乕儖
;-------------------------------------
;撆岠壥乮僪儘僂傿儞傾儖僇僫乯夵
[state -2, 0]
type = poweradd
triggerall = power > 0
trigger1 = numenemy
trigger1 = enemynear(0),authorname = "Drowin arcana"
trigger1 = enemynear(0),fvar(20) > 0
trigger2 = numenemy >= 2
trigger2 = enemynear(1),authorname = "Drowin arcana"
trigger2 = enemynear(1),fvar(20) > 0
value = -1
[state -2, 0]
type = lifeadd
triggerall = gametime % 7 = 0
trigger1 = numenemy
trigger1 = enemynear(0),authorname = "Drowin arcana"
trigger1 = enemynear(0),fvar(20) > 0
trigger2 = numenemy >= 2
trigger2 = enemynear(1),authorname = "Drowin arcana"
trigger2 = enemynear(1),fvar(20) > 0
value = -1
kill = 0
[State -2,0]
type = Palfx
trigger1 = numenemy
trigger1 = enemynear(0),authorname = "Drowin arcana"
trigger1 = enemynear(0),fvar(20) > 0
trigger2 = numenemy >= 2
trigger2 = enemynear(1),authorname = "Drowin arcana"
trigger2 = enemynear(1),fvar(20) > 0
add = 100,0,110
mul = 220,220,220
time = 5
ignorehitpause = 1

;===========================================================================
;亂嘓巵亅愒庡廐梩亃乽廱傪徟偑偡乿
[State -2]
Type = LifeAdd
triggerall = numenemy
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Akiha_Vermilion"
Trigger1 = Enemy,Var(47) = 1
Value = -5
Kill = 0

[State -2]
Type = PowerAdd
triggerall = numenemy
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Akiha_Vermilion"
Trigger1 = Enemy,Var(47) = 1
Value = -26
;===========================================================================
;亂586巵亅恄旜娤楅亃乽晄岾偺夠乿乽娤楅偪傫僺儞僠両乿
[State -2, LifeAdd]
type = LifeAdd
triggerall = NumEnemy
triggerall = (Enemy,TeamMode = Simul) = 0
triggerall = (TeamMode = Simul) = 0
triggerall = Enemy,AuthorName = "586"
triggerall = Enemy,Name = "Misuzu Kamio"
triggerall = Enemy,fvar(11) > 0
trigger1 = Enemy,var(13) = 1
trigger1 = GameTime % 13 = 0
trigger2 = Enemy,var(13) = 2
trigger2 = GameTime % 11 = 0
trigger3 = Enemy,var(13) = 3
trigger3 = GameTime % 8 = 0
trigger4 = Enemy,var(13) = 4
trigger4 = GameTime % 6 = 0
trigger5 = Enemy,var(13) = 5
trigger5 = GameTime % 3 = 0
value = -1
kill = 0
ignorehitpause = 1

[State -2, PalFX]
type = PalFX
triggerall = NumEnemy
triggerall = (Enemy,TeamMode = Simul) = 0
triggerall = (TeamMode = Simul) = 0
triggerall = Enemy,AuthorName = "586"
triggerall = Enemy,Name = "Misuzu Kamio"
trigger1 = Enemy,fvar(11) > 0
add = -50,150,150
time = 1
ignorehitpause = 1
;===========================================================================
;亂憈婱巵乚桯乆巕亃乽澷庻偺柌乿乽澷庻崙傊偺栺懇庤宍乿

[State -2, LifeAdd]
Type       = LifeAdd
TriggerAll = NumEnemy           >= 1
TriggerAll = Enemy,AuthorName    = "Souki" && Enemy,Name   = "Yuyuko Saigyouji"
Trigger1   = Enemy,Var(3)        = 1       || Enemy,Var(3) = 2
Trigger1   = GameTime%6          = 0
Value      = IfElse(Enemy,Var(3) = 1, -2, -3)
Kill       = 0
;===========================================================================
;亂悈塭巵乚彫挰亃乽扙嵃偺媀乿

;怳傝岦偒梷惂
[State pos moving]
type = AssertSpecial
triggerall = numenemy
Triggerall = (Enemynear,Name = "Komachi Onoduka")*(Enemynear,AuthorName = "mikage_th105")*(TeamMode = single)
trigger1 = (enemynear,stateno = 820)*(enemynear,anim = 823)*(enemynear,animelem = 6,13)
trigger2 = (enemynear,stateno = 821)*(enemynear,anim = 823)*(enemynear,animelem = 6,43)
flag = noautoturn

;堏摦
[State pos moving]
type = Posadd
triggerall = numenemy
Triggerall = (Enemynear,Name = "Komachi Onoduka")*(Enemynear,AuthorName = "mikage_th105")*(TeamMode = single)
trigger1 = (enemynear,stateno = 820)*(enemynear,anim = 823)*(enemynear,animelem = 6,13)
trigger2 = (enemynear,stateno = 821)*(enemynear,anim = 823)*(enemynear,animelem = 6,43)
x = -ceil(enemynear,fVar(24))*facing*enemynear,facing
y = -ceil(enemynear,fVar(25))*(statetype!=L)

;statetype!=A+statetype!=L偺応崌嫮惂棊壓state傊
[State pos moving]
type = Changestate
triggerall = numenemy
Triggerall = (Enemynear,Name = "Komachi Onoduka")*(Enemynear,AuthorName = "mikage_th105")*(TeamMode = single)
Triggerall = (statetype != A)*(pos y!=0)*(statetype!=L)
trigger1 = (enemynear,stateno = 820)*(enemynear,anim = 823)*(enemynear,animelem = 6,13)
trigger2 = (enemynear,stateno = 821)*(enemynear,anim = 823)*(enemynear,animelem = 6,43)
value = 50
;===========================================================================
;亂悈塭巵乚桪撥壺亃乽姠巣怐暔偺嬍乿

[State lifeadd]
type = lifeadd
Trigger1 = numEnemy = 1
Trigger1 = Pos y > -240
Trigger1 = (Enemy(0),Name = "Reisen Udongein Inaba")*(Enemy(0),AuthorName = "mikage_th105")*(Enemy(0),fvar(21))
value = -floor(Enemy(0),fvar(21))*2
ignorehitpause = 1
absolute = 1
kill = 0

[State lifeadd]
type = lifeadd
Triggerall = numEnemy = 2
Triggerall = Pos y > -240
Trigger1 = (Enemy(0),Name = "Reisen Udongein Inaba")*(Enemy(0),AuthorName = "mikage_th105")*(Enemy(0),fvar(21))
Trigger2 = (Enemy(1),Name = "Reisen Udongein Inaba")*(Enemy(1),AuthorName = "mikage_th105")*(Enemy(1),fvar(21))
value = -floor(Enemy(0),fvar(21))*2-floor(Enemy(1),fvar(21))*2
ignorehitpause = 1
absolute = 1
kill = 0
;===========================================================================
;亂jin巵亅傾僢僔儏亃乽僕僃儖儈僫乕儖乿

[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,Teammode = single || enemy,Teammode = turns
triggerall = enemy,AuthorName = "jin" && Enemy,Name = "Ash"
trigger1 = enemy,var(40) != 0
trigger1 = stateno = 3120
trigger2 = enemy,NumHelper(3200) > 0
trigger2 = enemy,var(40)
var(8) = enemy,var(40)
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;晻報帪娫夝彍
[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,AuthorName = "jin" && Enemy,Name = "Ash"
trigger1 = enemy,var(40) = 0
trigger2 = enemy,NumHelper(3200) = 0
var(8) = 0
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;===========================================================================
;亂Sander71113巵亅偪偢傞亃乽楇媄偺慴乿

[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,Teammode = single || enemy,Teammode = turns
triggerall = enemy,AuthorName = "Sander71113" && Enemy,Name = "Chizuru Kagura"
trigger1 = enemy,stateno = 2000 && enemy,movehit = 1
trigger2 = enemy,stateno = 2010 && enemy,movehit = 1
var(8) = ifelse(enemynear(var(52)),stateno = 2010,850,550)
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;晻報帪娫夝彍
[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,AuthorName = "Sander71113" && Enemy,Name = "Chizuru Kagura"
trigger1 = enemy,NumHelper(2001) = 0 && enemy,NumHelper(2011) = 0
var(8) = 0
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;===========================================================================
;亂MDK巵亅偪偢傞_儅僉亃乽楇媄偺慴乛嶰恄媄擵嶲乛棇悈偺恄婽乛旚掗擵楃晳乿

[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,Teammode = single || enemy,Teammode = turns
triggerall = enemy,AuthorName = "MDK" && Enemy,Name = "chizuru_maki"
trigger1 = enemy,stateno = 2100 && enemy,movehit
trigger2 = enemy,NumHelper(4700) > 0
trigger2 = enemy,var(32)
var(8) = enemy,var(32)
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;晻報帪娫夝彍
[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,AuthorName = "MDK" && Enemy,Name = "chizuru_maki"
trigger1 = enemy,NumHelper(4700) = 0
var(8) = 0
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999
;===========================================================================
;亂暿晎巵亅儅僉亃乽棇悈偺恄婽乛楇媄偺慴乿

[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,Teammode = single || enemy,Teammode = turns
triggerall = enemy,AuthorName = "beppu" && Enemy,Name = "MakiXI"
trigger1 = enemy,var(16) != 0
trigger1 = stateno = 5030
trigger2 = enemy,NumHelper(1360) > 0
trigger2 = enemy,var(16)
var(8) = enemy,var(16)
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

;晻報帪娫夝彍
[State -2]
type = varset
triggerall = numenemy
triggerall = enemy,AuthorName = "beppu" && Enemy,Name = "MakiXI"
trigger1 = enemy,var(16) = 0
trigger2 = enemy,NumHelper(1360) = 0
var(8) = 0
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999
;------------------------------------------
;晻報帪娫夝彍梊旛
[State -2]
type = varadd
trigger1 = var(8) > 0
var(8) = -1
persistent = 0
ignorehitpause = 1

[State -2]
type = Palfx
triggerall = var(8)
triggerall = numenemy
trigger1 = enemy,AuthorName = "MDK" && Enemy,Name = "chizuru_maki"
trigger2 = enemy,AuthorName = "Sander71113" && Enemy,Name = "Chizuru Kagura"
add = 50,50,170
mul = 165,165,165
sinadd = 95,95,95,17
time = 1
color = 0
invertall = 0
ignorehitpause = 1

[State -2]
type = varset
trigger1 = var(8) != 0
var(7) = 1
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999

[State -2]
type = varset
trigger1 = var(8) = 0
trigger2 = Teammode = simul || enemy,Teammode = simul
var(7) = 0
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999



;---------------------------------------------------------------------------
;僷僂僟乕僗僲僂丂憡庤梡
[State -2]
Type = LifeAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Len"
Trigger1 = Enemy,Var(47) = 1 || Enemy,Var(48) = 1
Value = -Enemy,Var(47)*4-Enemy,Var(48)*4
Kill = 0
;---------------------------------------------------------------------------
;偠傚偆傠丂憡庤梡
[State -2]
Type = LifeAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Hisui"
Trigger1 = Enemy,Var(47) = 1
Value = -10
Kill = 0

[State -2]
Type = PowerAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Hisui"
Trigger1 = Enemy,Var(47) = 1
Value = -150
;---------------------------------------------------------------------------



[State 1201,end]
type = poweradd
trigger1=numhelper(1400)
trigger1=helper(1400),stateno=14800
Value = -18
supermovetime = 999
pausemovetime = 999

[State 1201,end]
type = poweradd
trigger1=numhelper(1400)
trigger1=helper(1400),stateno=14500
trigger2=numhelper(1300)
trigger2=helper(1300),stateno=31312
Value = -180
supermovetime = 999
pausemovetime = 999

[State 1201,end]
type = poweradd
trigger1=numhelper(1500)
trigger1=helper(1500),stateno=23000
trigger2=numhelper(1300)
trigger2=helper(1300),stateno=31311
Value = -9
supermovetime = 999
pausemovetime = 999


;----僉儍儔擣幆--------------------------------
[State 191, 0]
type = Varset
trigger1 = p2name = "Nameless" || p4name = "Nameless"
v = 42
value = 3

[State 191, 0]
type = Varset
trigger1 = P2Name = "dio" || P4Name = "dio"
trigger2 = P2Name = "Shadow DIO" || P4Name = "Shadow DIO"
trigger3 = P2Name = "Dio Brendo" || P4Name = "Dio Brendo"
trigger4 = P2Name = "final dio" || P4Name = "final dio"
trigger5 = P2Name = "MURAKUMO"||  P4Name = "MURAKUMO"
trigger6 = P2Name = "Kotiya-Sanae"||  P4Name = "Kotiya-Sanae"
trigger7 = P2Name = "Kaigen Ishima" ||  P4Name = "Kaigen Ishima"
v = 42
value = 4

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