;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
; 忢帪娔帇僗僥乕僩
;亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
;===========================================================================
[statedef -2]

[state -2, max乛heat乛blood heat僗僀僢僠]
type = varset
trigger1 = 1
ignorehitpause = 1
var(59) = 1		;1 偱僎乕僕娭學偺僔僗僥儉on
				;0 偱僎乕僕娭學偺僔僗僥儉off

[state -2, 娔帇曄悢]
type = displaytoclipboard
trigger1 = 1
text = "%d,%f,%f,,%f,%f"
params = var(4),fvar(1),fvar(2),fvar(4),fvar(5)

;---------------------------------------------------------------------------
;僎乕僕娭學

[state -2, max乛heat乛blood heat儘僑]
type = helper
trigger1 = numhelper(6030) = 0
helpertype = normal
name = "myhelper"
id = 6030
pos = 0, 0
postype = p1
stateno = 6030
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999

;***********************************

[state -1, 奐巒帪僎乕僕]
type = powerset
trigger1 = roundno = 1
trigger1 = roundstate = 0
value = 1000

[state -2, var(31)僎乕僕検寁應乮var(30) = 0乯]
type = varset
trigger1 = roundstate = 2
trigger1 = var(30) = 0
var(31) = power
ignorehitpause = 1

[state -2, var(31)僎乕僕検寁應乮var(30) = [1,2]乯]
type = varset
trigger1 = roundstate = 2
trigger1 = var(30) = [1,2]
trigger1 = power < var(31)
var(31) = power
ignorehitpause = 1

[state -2, var(31)僎乕僕検寁應乮var(30) = 3乯]
type = varset
trigger1 = roundstate = 2
trigger1 = var(30) = 3
trigger1 = power < var(31)
trigger1 = power >= 500
var(31) = ((var(31)-power)/2)+power
ignorehitpause = 1

[state -2, 僷儚乕屌掕]
type = powerset
triggerall = var(59) = 1
trigger1 = roundstate = 2
trigger1 = var(30) = [1,3]
trigger1 = var(31) > 0
value = var(31)
ignorehitpause = 1

[state -2, 僷儚乕屌掕]
type = powerset
triggerall = var(59) = 1
trigger1 = roundstate = 2
trigger1 = var(30) = [1,3]
trigger1 = var(31) <= 0
value = 0
ignorehitpause = 1

[state -2, var(31)max乛heat乛blood heat帪娫惂尷]
type = varadd
triggerall = var(59) = 1
trigger1 = var(30) = [1,3]
var(31) = -5
ignorehitpause = 1

[state -2, var(30)max乛heat乛blood heat廔椆]
type = varset
triggerall = var(59) = 1
trigger1 = roundstate = 3
trigger2 = var(31) <= 0
trigger2 = movetype != h
trigger2 = stateno != 5120
var(30) = 0
ignorehitpause = 1

[state -2, max僗僀僢僠]
type = varset
triggerall = var(59) = 1
trigger1 = power = powermax
trigger1 = var(30) = 0
var(30) = 1
ignorehitpause = 1

;***********************************

[state -2, max廔椆僎乕僕検]
type = powerset
triggerall = var(59) = 1
triggerall = var(30) = 0
triggerall = stateno != [9000,9999]
triggerall = stateno != [7040,7049]
trigger1 = roundstate = 0
trigger1 = var(32) = 1
trigger2 = var(30) = 0
trigger2 = var(32) = 1
value = 2000
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, max廔椆僎乕僕検乮僒乕僉僢僩僗僷乕僋乯]
type = powerset
triggerall = var(59) = 1
triggerall = var(30) = 0
triggerall = stateno = [7040,7049]
trigger1 = var(30) = 0
trigger1 = var(32) = 1
value = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, max廔椆僎乕僕検乮傾乕僋僪儔僀僽乯]
type = powerset
triggerall = var(59) = 1
triggerall = var(30) = 0
triggerall = stateno = [9000,9999]
trigger1 = var(30) = 0
trigger1 = var(32) = 1
value = 1000
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, heat乛blood heat廔椆僎乕僕検]
type = powerset
triggerall = var(59) = 1
trigger1 = roundstate = 0
trigger1 = var(32) = [2,3]
trigger2 = var(30) = 0
trigger2 = var(32) = [2,3]
value = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;***********************************

[state -2, var(33)懱椡寁應乮var(30) = 0乯]
type = varset
trigger1 = roundstate = [0,1]
trigger1 = var(30) = 0
var(33) = life
ignorehitpause = 1

[state -2, var(33)懱椡寁應乮var(30) = 0乯]
type = varadd
trigger1 = 1
var(33) = -gethitvar(damage) *0.65
ignorehitpause = 1

[state -2, heat夞暅]
type = lifeadd
trigger1 = roundstate = 2
trigger1 = movetype != h
trigger1 = stateno != 5120
trigger1 = var(30) = 2
trigger1 = var(33) > life
value = 1

[state -2, blood heat夞暅]
type = lifeadd
trigger1 = roundstate = 2
trigger1 = movetype != h
trigger1 = stateno != 5120
trigger1 = var(30) = 3
trigger1 = var(33) > life
value = 2

;***********************************

[state -2, 僆乕儔梡]
type = helper
triggerall = var(59) = 1
triggerall = numhelper(6050) = 0
triggerall = movetype != h
trigger1 = var(30) = 1
trigger2 = var(30) = 2
helpertype = normal
name = "myhelper"
id = 6050
pos = 0, 0
postype = p1
stateno = 6050
keyctrl = 0
ownpal = 1

[state -2, 僆乕儔梡]
type = helper
triggerall = var(59) = 1
triggerall = numhelper(6055) = 0
triggerall = movetype != h
trigger1 = var(30) = 3
helpertype = normal
name = "myhelper"
id = 6055
pos = 0, 0
postype = p1
stateno = 6055
keyctrl = 0
ownpal = 1

[state -2, var(32)max乛heat乛blood heat婰壇]
type = varset
triggerall = var(59) = 1
trigger1 = roundstate = 2
var(32) = var(30)
ignorehitpause = 1

;---------------------------------------------------------------------------
;曗惓

[state -2, fvar(0)峌寕椡曄壔棪]
type = varset
trigger1 = 1
fvar(0) = floor(fvar(1) * fvar(2) * fvar(3) * fvar(5) *100)*0.01

;***********************************

[state -2, fvar(1)僸僢僩悢曗惓]
type = varset
trigger1 = var(5) < 32
fvar(1) = 1.032-0.032*var(5)
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(1)僸僢僩悢曗惓]
type = varset
trigger1 = var(5) >= 32
fvar(1) = 0.008
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(5)僸僢僩悢僇僂儞僩儕僙僢僩]
type = varset
triggerall = var(5) != 1
trigger1 = p2movetype != h
var(5) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;***********************************

[state -2, fvar(2)忬懺曗惓]
type = varset
trigger1 = 1
fvar(2) = ifelse(var(4) = 1 ,0.42 ,1)
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(4)僟僂儞捛偄懪偪]
type = varset
triggerall = p2movetype = h
trigger1 = p2statetype = l
trigger2 = p2stateno = 5100
var(4) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(4)僟僂儞捛偄懪偪夝彍]
type = varset
triggerall = numenemy > 0
triggerall = var(4) = 1
trigger1 = p2movetype != h
trigger1 = p2statetype != l
var(4) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;***********************************

[state -2, fvar(3)媡崻惈抣曗惓]
type = varset
triggerall = numenemy > 0
trigger1 = enemy,life > enemy,const(data.life) *.75
fvar(3) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(3)媡崻惈抣曗惓]
type = varset
triggerall = numenemy > 0
trigger1 = enemy,life <= enemy,const(data.life) *.75
trigger1 = enemy,life > enemy,const(data.life) *.5
fvar(3) = .96
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(3)媡崻惈抣曗惓]
type = varset
triggerall = numenemy > 0
trigger1 = enemy,life <= enemy,const(data.life) *.5
trigger1 = enemy,life > enemy,const(data.life) *.25
fvar(3) = .84
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(3)媡崻惈抣曗惓]
type = varset
triggerall = numenemy > 0
trigger1 = enemy,life <= enemy,const(data.life) *.25
fvar(3) = .81
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;***********************************

[state -2, fvar(4)曗惓乮= 1乯]
type = varset
trigger1 = roundstate = 0
trigger2 = fvar(4) > 1 
fvar(4) = 1
ignorehitpause = 1

[state -2, fvar(4)僔乕儖僪曗惓]
type = varset
triggerall = movetype != h
triggerall = (prevstateno = [7002,7003]) || (prevstateno = [7012,7013]) || (prevstateno = [7022,7023])
triggerall = time = 1
trigger1 = stateno = [200,2999]
trigger2 = stateno = [7000,9999]
fvar(4) = .6
ignorehitpause = 1

[state -2, var(3)僔乕儖僪曗惓儕僙僢僩帪娫]
type = varset
triggerall = movetype != h
triggerall = (prevstateno = [7002,7003]) || (prevstateno = [7012,7013]) || (prevstateno = [7022,7023])
triggerall = time = 1
trigger1 = stateno = [200,2999]
trigger2 = stateno = [7000,9999]
var(3) = 90
ignorehitpause = 1


[state -2, fvar(4)儕僶乕僗價乕僩曗惓]
type = varadd
triggerall = movetype != h
triggerall = time = 1
trigger1 = var(1) != 0
trigger1 = (stateno = 200) || (stateno = 400) || (stateno = 600)
trigger2 = var(2) != 0
trigger2 = (stateno = [200,210]) || (stateno = 240) || (stateno = [400,410]) || (stateno = [600,610])
fvar(4) = -.23
ignorehitpause = 1

[state -2, var(3)儕僶乕僗價乕僩曗惓儕僙僢僩帪娫]
type = varset
triggerall = movetype != h
triggerall = time = 1
trigger1 = var(1) != 0
trigger1 = (stateno = 200) || (stateno = 400) || (stateno = 600)
trigger2 = var(2) != 0
trigger2 = (stateno = [200,210]) || (stateno = 240) || (stateno = [400,410]) || (stateno = [600,610])
var(3) = 60
ignorehitpause = 1


[state -2, fvar(4)a楢懪曗惓]
type = varadd
triggerall = movetype != h
triggerall = time = 1
trigger1 = prevstateno = 200
trigger1 = stateno = 200
trigger2 = prevstateno = 400
trigger2 = stateno = 400
trigger3 = prevstateno = 600
trigger3 = stateno = 600
fvar(4) = -.01
ignorehitpause = 1

[state -2, var(3)a楢懪曗惓儕僙僢僩帪娫]
type = varadd
triggerall = movetype != h
triggerall = time = 1
trigger1 = prevstateno = 200
trigger1 = stateno = 200
trigger2 = prevstateno = 400
trigger2 = stateno = 400
trigger3 = prevstateno = 600
trigger3 = stateno = 600
var(3) = 8
ignorehitpause = 1


[state -1, var(3)曗惓儕僙僢僩帪娫僇僂儞僩]
type = varadd
trigger1 = var(3) > 0
var(3) = -1

[state -2, var(3)曗惓儕僙僢僩帪娫乮僶僌懳嶔乯]
type = varset
trigger1 = var(3) < 0
var(3) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(4)曗惓儕僙僢僩]
type = varadd
trigger1 = var(3) = 0
trigger1 = fvar(4) < 1 
fvar(4) = .01
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(4)曗惓壓尷乮= 1乯]
type = varset
trigger1 = fvar(4) < .45
fvar(4) = .45
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;***********************************

[state -2, fvar(5)ex僉儍儞僙儖曗惓]
type = varset
triggerall = movetype != h
triggerall = prevstateno = [200,1999]
triggerall = p2movetype = h
triggerall = time = 1
trigger1 = stateno = [2000,2999]
fvar(5) = .65
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, fvar(5)ex僉儍儞僙儖曗惓儕僙僢僩]
type = varset
trigger1 = p2movetype != h
fvar(5) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

;---------------------------------------------------------------------------
;偦偺懠曄悢娭學
[state -2, var(1)拞價乕僩僄僢僕儕僙僢僩]
type = varset
trigger1 = ctrl
var(1) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(2)嫮價乕僩僄僢僕儕僙僢僩]
type = varset
triggerall = movetype != h
trigger1 = ctrl
var(2) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(6)峌寕晄壜忬懺]
type = varset
triggerall = p2movetype = h
trigger1 = var(7) >= 3
var(6) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(6)峌寕晄壜忬懺夝彍]
type = varset
triggerall = var(6) != 0
trigger1 = p2movetype != h
trigger2 = var(4) != 0
var(6) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -1, var(7)暻乛抧柺扏偒晅偗]
type = varadd
triggerall  = p2movetype = h
trigger1  = p2stateno = 920
trigger2  = p2stateno = 970
var(7) = 1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state 1027, 壒傪柭傜偡]
type = playsnd
triggerall  = p2movetype = h
trigger1 = p2stateno = 920
trigger2 = p2stateno = 970
value = 15,1
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(7)暻扏偒晅偗乛昁嶦媄夞悢惂尷儕僙僢僩]
type = varset
triggerall = var(7) != 0
trigger1 = p2movetype != h
trigger2 = var(4) != 0
var(7) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(10)嬻拞僕儍儞僾夞悢儕僙僢僩]
type = varset
trigger1 = statetype = s
trigger2 = statetype = c
var(10) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(11)嬻拞僕儍儞僾夞悢儕僙僢僩]
type = varset
trigger1 = statetype = s
trigger2 = statetype = c
var(11) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(12)嬻拞僟僢僔儏夞悢儕僙僢僩]
type = varset
trigger1 = statetype = s
trigger2 = statetype = c
var(12) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -1, var(13)儕僶乕僒儖傾僞僢僋梡]
type = varset
triggerall = movetype != h
triggerall = var(13) != 0
triggerall = time = 1
trigger1 = stateno = 5120
trigger2 = stateno = 7000
trigger3 = stateno = 7010
trigger4 = stateno = 7020
var(13) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999

[state -2, var(21)僂傿儞僞乕僄儗儊儞僩愝抲乛敪摦儕僙僢僩]
type = varset
trigger1 = roundstate = [0,1]
var(21) = 0
ignorehitpause = 1
supermovetime = 99999
pausemovetime = 99999
