;===========================================================================
; 忢帪娔帇僗僥乕僩乮亅俀乯
;===========================================================================

[Statedef -2]

;==========================================================
;僸僢僩悢敾掕乮var(1)丄var(2)乯
;==========================================================

[State -2,丂僸僢僩悢弶婜壔]
type = VarRangeSet
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
trigger3 = enemynear,stateno = 0
value = 0
first = 1
last = 3


[State -2,丂抧忋偱偺僸僢僩悢庢摼]
type = varset
triggerall = enemy,statetype != A
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0  || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
v = 1 
value = enemy,gethitvar(hitcount)
persistent = 0

[State -2,丂嬻拞偱偺僸僢僩悢庢摼]
type = varset
triggerall = enemy,statetype = A
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0 || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
v = 2
value = enemy,gethitvar(hitcount)
persistent = 0

[State -2,丂崌寁僸僢僩悢庢摼]
type = varset
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0 || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
var(3) = var(1)+var(2)
persistent = 0

;------------------------------------------------------------
;奺庬僐儞儃曗惓乧乧fvar(0)乣fvar(2)

[State -2, 嵟廔曗惓抣乮捠忢媄乯]
type = varset
trigger1 = 1
fv = 0
value = fvar(3)*fvar(11)

[State -2, 嵟廔曗惓抣乮昁嶦媄乯]
type = varset
trigger1 = 1
fv = 1
value = fvar(4)*fvar(11)

[State -2, 嵟廔曗惓抣乮挻昁嶦媄乯]
type = varset
trigger1 = 1
fv = 2
value = fvar(5)*fvar(11)

[State -2, 僐儞儃悢曗惓儕僙僢僩]
type = VarRangeSet
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
fvalue = 1.0
first = 3
last = 5

;------------------------------------------------------------
;捠忢媄偺曗惓乧乧fvar(3)

[State -2,丂曗惓弶婜壔]
type = null;varset
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
fv = 3
value = 1.0

[State -2, 僐儞儃曗惓]
type = varset
trigger1 = var(3) <= 0
fv = 3
value = 1.0

[State -2]
type = varset
trigger1 = var(3) = 1
fv = 3
value = 0.9

[State -2]
type = varset
trigger1 = var(3) = 2
fv = 3
value = 0.8

[State -2]
type = varset
trigger1 = var(3) = 3
fv = 3
value = 0.7

[State -2]
type = varset
trigger1 = var(3) = 4
fv = 3
value = 0.6

[State -2]
type = varset
trigger1 = var(3) = 5
fv = 3
value = 0.5

[State -2]
type = varset
trigger1 = var(3) = 6
fv = 3
value = 0.4

[State -2]
type = varset
trigger1 = var(3) = 7
fv = 3
value = 0.3

[State -2]
type = varset
trigger1 = var(3) = 8
fv = 3
value = 0.2

[State -2]
type = varset
trigger1 = var(3) = 9
fv = 3
value = 0.1

[State -2]
type = varset
trigger1 = var(3) = 10
fv = 3
value = 0.09

[State -2]
type = varset
trigger1 = var(3) = 11
fv = 3
value = 0.08

[State -2]
type = varset
trigger1 = var(3) = 12
fv = 3
value = 0.07

[State -2]
type = varset
trigger1 = var(3) = 13
fv = 3
value = 0.06

[State -2]
type = varset
trigger1 = var(3) >= 14
fv = 3
value = 0.05

;------------------------------------------------------------
;昁嶦媄偺曗惓乧乧fvar(4)

[State -2,丂曗惓弶婜壔]
type = null;varset
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
fv = 4
value = 1.0

[State -2, 僐儞儃曗惓]
type = varset
trigger1 = var(3) <= 0
fv = 4
value = 1.0

[State -2]
type = varset
trigger1 = var(3) = 1
fv = 4
value = 0.9

[State -2]
type = varset
trigger1 = var(3) = 2
fv = 4
value = 0.8

[State -2]
type = varset
trigger1 = var(3) = 3
fv = 4
value = 0.7

[State -2]
type = varset
trigger1 = var(3) = 4
fv = 4
value = 0.6

[State -2]
type = varset
trigger1 = var(3) = 5
fv = 4
value = 0.5

[State -2]
type = varset
trigger1 = var(3) = 6
fv = 4
value = 0.4

[State -2]
type = varset
trigger1 = var(3) = 7
fv = 4
value = 0.3

[State -2]
type = varset
trigger1 = var(3) >= 8
fv = 4
value = 0.2

;------------------------------------------------------------
;挻昁嶦媄偺曗惓乧乧fvar(5)

[State -2,丂曗惓弶婜壔]
type = null;varset
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
fv = 5
value = 1.0

[State -2, 僐儞儃曗惓]
type = varset
trigger1 = var(3) <= 0
fv = 5
value = 1.0

[State -2]
type = varset
trigger1 = var(3) = 1
fv = 5
value = 0.9

[State -2]
type = varset
trigger1 = var(3) = 2
fv = 5
value = 0.8

[State -2]
type = varset
trigger1 = var(3) = 3
fv = 5
value = 0.7

[State -2]
type = varset
trigger1 = var(3) = 4
fv = 5
value = 0.6

[State -2]
type = varset
trigger1 = var(3) = 5
fv = 5
value = 0.5

[State -2]
type = varset
trigger1 = var(3) >= 6
fv = 5
value = 0.4

;------------------------------------------------------------
;偦偺懠偺曗惓乧乧fvar(6)乣fvar(8)

[State -2,丂僇僂儞僞乕曗惓儕僙僢僩]
type = varset
trigger1 = enemy,MoveType != A
fv = 6
value = 1

[State -2,丂僇僂儞僞乕曗惓]
type = varset
trigger1 = enemy,MoveType = A
fv = 6
value = 1.2

[State -2,丂偟傖偑傒曗惓儕僙僢僩]
type = varset
trigger1 = enemy,StateType != C
fv = 7
value = 1

[State -2,丂偟傖偑傒曗惓]
type = varset
trigger1 = enemy,StateType = C
fv = 7
value = 1.1

[State -2,丂懳嬻拞曗惓儕僙僢僩]
type = varset
trigger1 = enemy,StateType != A || enemy,MoveType = H
fv = 8
value = 1

[State -2,丂懳嬻拞曗惓]
type = varset
trigger1 = enemy,StateType = A && enemy,MoveType != H
fv = 8
value = 1.1

[State -2,丂暻僐儞曗惓儕僙僢僩]
type = varset
trigger1 = enemy,StateNo != 4000 && enemy,StateNo != 4001
trigger1 = var(6) = 0
fv = 9
value = 1

[State -2,丂暻僐儞曗惓]
type = varset
trigger1 = enemy,StateNo = 4000 || enemy,StateNo = 4001
trigger1 = var(6) != 0
fv = 9
value = 0.4

[State -2,丂僄儕傾儖曗惓儕僙僢僩]
type = varset
trigger1 = var(7) = 0
fv = 10
value = 1

[State -2,丂僄儕傾儖曗惓]
type = varset
trigger1 = var(7) != 0
fv = 10
value = 0.4


[State -2,丂僽乕僗僩拞偺曗惓儕僙僢僩]
type = varset
trigger1 = var(23) = 0
fv = 10
value = 1

[State -2,丂僽乕僗僩拞偺曗惓]
type = varset
trigger1 = var(23) != 0
fv = 10
value = 0.8


[State -2,丂偦偺懠偺曗惓傑偲傔]
type = varset
trigger1 = 1
fv = 11
value = fvar(6)*fvar(7)*fvar(8)*fvar(9)*fvar(10)

;==========================================================
;僶僯僔儞僌忬懺敾掕乮var(6)丄var(8)乯
;==========================================================

[State -2, 忋尷]
type = varset
trigger1 = var(6) >= 1
var(6) = 1

[State -2, 壓尷]
type = varset
trigger1 = var(6) <= 0
var(6) = 0

[State -2, 捠忢僶僯敾掕弶婜壔]
type = varset
trigger1 = P2movetype != H
trigger2 = fvar(6) >= 2
;trigger2 = stateno = 52
trigger2 = enemynear,stateno = 5110
var(6) = 0

[State -2, 棴傔僶僯敾掕弶婜壔]
type = varset
trigger1 = P2movetype != H
trigger2 = fvar(6) >= 2
;trigger2 = stateno = 52
trigger2 = enemynear,stateno = 5110
var(8) = 0

[State -2, 敾掕弶婜壔]
type = varset
trigger1 = P2movetype != H
trigger2 = enemynear,stateno = 5110
;trigger3 = enemynear,stateno = [6204,6205]
fvar(15) = 0

[State -2, 敾掕弶婜壔]
type = varset
trigger1 = P2movetype != H
trigger2 = enemynear,stateno = 5110
trigger3 = enemynear,stateno = [6204,6205]
fvar(16) = 0

[State -2, 暻僐儞忬懺]
type = TargetState
triggerall = stateno != 900
triggerall = stateno != 1930
triggerall = var(42) = 0
triggerall = fvar(16) = 0
triggerall = fvar(15) <= 1
triggerall = var(6) != 0
triggerall = enemynear,stateno != [5080,5120]
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0  || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
value = 4000
ID = -1

[State -2, 暻僐儞偺墴偟栠偟]
type = posadd
triggerall = stateno != 900
triggerall = var(42) = 0
triggerall = var(37) = 0
triggerall = fvar(16) = 0
triggerall = fvar(15) <= 1
triggerall = Var(6) = 1
triggerall = enemynear,stateno != [5080,5120]
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0  || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
x = ceil(enemy,gethitvar(hitcount)*-0.4)
ignorehitpause = 1

;==========================================================
;僌儗僀償敾掕乮var乮7乯乯
;==========================================================

[State -2, 0埲壓偵側傜側偄傛偆偵]
type = varset
trigger1 = var(7) <= 0
var(7) = 0
ignorehitpause = 1

[State -2, 敾掕弶婜壔]
type = varset
trigger1 = enemy,movetype != H
trigger2 = stateno = 52
var(7) = 0
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭
;仭===================嬻拞偱偺峴摦敾掕=====================
;仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;==========================================================
;嬻拞僟僢僔儏娭學
;==========================================================

[State -2,varset];弶婜壔
type = varset
trigger1 = var(50) <= 0
var(50) = 0
;ignorehitpause = 1

[State -2,varset];忋尷愝掕
type = varset
trigger1 = var(50) >= 1
var(50) = 1
;ignorehitpause = 1

;抧柺棫偭偨帪偵尭嶼
[State -2,varset]
type = varadd
trigger1 = Pos Y >= 0
var(50) = -1
;ignorehitpause = 1

;==========================================================
;憡庤偺晜偒丒棊壓懍搙娭學
;==========================================================

[state a]
type = varset
trigger1 = enemy,movetype != H
;trigger2 = helper(6500)
;trigger2 = enemy,movetype = H
v = 51
value = 0

[state a]
type = varset
triggerall = stateno = 650 ;僌儗僀償
;trigger1 = var(8) = 1
;trigger1 = var(17) = 1   ;僽乕僗僩僼儔僌俷俶偺帪
trigger1 = vel X >= 7
v = 51
value = 0

[state a]
type = varadd
trigger1 = movecontact = 1
trigger1 = enemy,statetype = a
v = 51
value = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭
;仭============晹壓僎乕僕娭學乮var(10),(11)傪巊梡乯==============
;仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;
;==========================================================
; 渎崄僎乕僕乮var乮10乯乯
;==========================================================
;
[State -2, 儔僂儞僪奐巒帪偺僎乕僕]
type = varset
trigger1 = roundState = 0 
v = 10
value = 100

[State -2, 渎崄僎乕僕夞暅]
type = varadd
triggerall = numhelper(6000) = 0
triggerall = numhelper(6100) = 0
triggerall = numhelper(6200) = 0
triggerall = numhelper(6500) = 0
triggerall = numhelper(6600) = 0
triggerall = var(10) < 100
trigger1 = GameTime % 5 = 0
v = 10    
value = 1
ignorehitpause = 1

[State -2, 晹壓僎乕僕昞帵丒渎崄]
type = explod
trigger1 = numexplod(8000) = 0
anim = 8000
bindtime = -1
id = 8000
ownpal = 1
pos = ifelse(teamside = 1,8,215),198
postype = left
facing = 1
scale = 1.0, 1.0
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = 8000

[State -2, 椢僎乕僕]
type = explod
triggerall = var(10) >= 100
trigger1 = numexplod(8010) = 0
anim = 8010
id = 8010
pos = ifelse(teamside = 1,34,241),218
postype = left
facing = 1
ontop = 0
sprpriority = 8001
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0
ignorehitpause = 1
scale = 1.0,1.0

[State -2, 愒僎乕僕]
type = explod
triggerall = var(10) < 100
trigger1 = numexplod(8011) = 0
anim = 8011
id = 8011
pos = ifelse(teamside = 1,34,241),218
postype = left
facing = 1
ontop = 0
sprpriority = 8002
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0
ignorehitpause = 1
scale = 1.0,1.0

[State -2, 椢嶍彍]
type = removeexplod
trigger1 = var(10) < 100
id = 8010
ignorehitpause = 1

[State -2, 愒嶍彍]
type = removeexplod
trigger1 = var(10) >= 100
id = 8011
ignorehitpause = 1

[State -2, 愒憹尭]
type = Modifyexplod
triggerall = var(10) <= 100
trigger1 = 1
ID = 8011
scale = var(10)*0.01,1.0

;==========================================================
; 揤巕僎乕僕乮var乮11乯乯
;==========================================================

[State -2, 儔僂儞僪奐巒帪偺僎乕僕]
type = varset
trigger1 = roundState = 0 
v = 11
value = 100

[State -2, 僒儞僟乕僜乕僪僼儔僌戙擖]
type = null;varset
triggerall = NumHelper(7016) > 0
trigger1 = helper(7016),var(45) != 0
v = 45
value = 1

[State -2, 僒儞僟乕僜乕僪僼儔僌儕僙僢僩]
type = varset
trigger1 = roundState = 0 
v = 45
value = 0

[State -2, 揤巕僎乕僕夞暅]
type = varadd
triggerall = numhelper(7000) = 0
triggerall = numhelper(7012) = 0
triggerall = numhelper(7100) = 0
triggerall = numhelper(7200) = 0
triggerall = numhelper(7600) = 0
triggerall = var(45) = 0
triggerall = var(11) < 100
trigger1 = GameTime % 5 = 0
v = 11    
value = 1
ignorehitpause = 1

[State -2, 晹壓僎乕僕昞帵丒揤巕]
type = explod
trigger1 = numexplod(8001) = 0
anim = 8001
bindtime = -1
id = 8001
ownpal = 1
pos = ifelse(teamside = 1,56,263),198
postype = left
facing = 1
scale = 1.0, 1.0
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = 8000

[State -2, 椢僎乕僕]
type = explod
triggerall = var(11) >= 100
trigger1 = numexplod(8012) = 0
anim = 8010
id = 8012
pos = ifelse(teamside = 1,82,289),218
postype = left
facing = 1
ontop = 0
sprpriority = 8001
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0
ignorehitpause = 1
scale = 1.0,1.0

[State -2, 愒僎乕僕]
type = explod
triggerall = var(11) < 100
trigger1 = numexplod(8013) = 0
anim = 8011
id = 8013
pos = ifelse(teamside = 1,82,289),218
postype = left
facing = 1
ontop = 0
sprpriority = 8002
bindtime = -1
ownpal = 1
removetime = -1
persistent = 0
ignorehitpause = 1
scale = 1.0,1.0

[State -2, 椢嶍彍]
type = removeexplod
trigger1 = var(11) < 100
id = 8012
ignorehitpause = 1

[State -2, 愒嶍彍]
type = removeexplod
trigger1 = var(11) >= 100
id = 8013
ignorehitpause = 1

[State -2, 愒憹尭]
type = modifyexplod
triggerall = var(11) <= 100
trigger1 = 1
ID = 8013
scale = var(11)*0.01,1.0
;
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭
;仭=======幍惎僎乕僕仌巰挍惎乮var乮20乯乮21乯乯=========
;仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

;==========================================================
;惎庢傝娭學乮var(20)乯
;==========================================================

[State -2, 忋尷]
type = varset
trigger1 = var(20) >= 7
var(20) = 7
;ignorehitpause = 1

[State -2, 壓尷]
type = varset
trigger1 = var(20) <= 0
var(20) = 0
ignorehitpause = 1

[State -2, 儔僂儞僪偛偲偵惎夞暅]
type = Varadd 
trigger1 = RoundNo != 1 
trigger1 = RoundState = 0 
trigger1 = time = 0
v = 20
value = -1
persistent = 0

[state -2,丂抧棆僇僂儞僞乕帪偺惎庢傝]
type = varadd
trigger1 = NumHelper(6102) != 0
trigger1 = helper(6102),var(20) = 1
v = 20
value = 1
persistent = 0

[State -2, 幍惎僎乕僕昞帵丒惎7屄]
type = explod
trigger1 = var(20) = 0
trigger1 = numexplod(30000) = 0
anim = 30000
bindtime = -1
id = 30000
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎6屄]
type = explod
trigger1 = var(20) = 1
trigger1 = numexplod(30001) = 0
anim = 30001
bindtime = -1
id = 30001
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎5屄]
type = explod
trigger1 = var(20) = 2
trigger1 = numexplod(30002) = 0
anim = 30002
bindtime = -1
id = 30002
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎4屄]
type = explod
trigger1 = var(20) = 3
trigger1 = numexplod(30003) = 0
anim = 30003
bindtime = -1
id = 30003
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎3屄]
type = explod
trigger1 = var(20) = 4
trigger1 = numexplod(30004) = 0
anim = 30004
bindtime = -1
id = 30004
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎2屄]
type = explod
trigger1 = var(20) = 5
trigger1 = numexplod(30005) = 0
anim = 30005
bindtime = -1
id = 30005
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎1屄]
type = explod
trigger1 = var(20) = 6
trigger1 = numexplod(30006) = 0
anim = 30006
bindtime = -1
id = 30006
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒惎0屄]
type = explod
trigger1 = var(20) = 7
trigger1 = numexplod(30007) = 0
anim = 30007
bindtime = -1
id = 30007
ownpal = 1
pos = ifelse(teamside = 1,235,35),33
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -3

[State -2, 幍惎僎乕僕昞帵丒巰挍惎]
type = explod
trigger1 = var(20) = 7
trigger1 = numexplod(30008) = 0
anim = 30008
bindtime = -1
id = 30008
ownpal = 1
pos = ifelse(teamside = 1,220,80), 19
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = -2

;==========================================================
;幍惎僎乕僕徚嫀
;==========================================================

[State -2, 埲壓丄僎乕僕徚嫀]
type = removeexplod
trigger1 = var(20) != 0
id = 30000
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 1
id = 30001
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 2
id = 30002
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 3
id = 30003
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 4
id = 30004
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 5
id = 30005
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 6
id = 30006
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 7
id = 30007
ignorehitpause = 1

[State -2]
type = removeexplod
trigger1 = var(20) != 7
id = 30008
ignorehitpause = 1

;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;仭
;仭=======僽乕僗僩僎乕僕仌僽乕僗僩忬懺敾掕乮var乮22乯乮23乯乯=========
;仭
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭

[State -2, 忋尷]
type = varset
trigger1 = var(22) >= 300
var(22) = 300
ignorehitpause = 1

[State -2, 壓尷]
type = varset
trigger1 = var(22) <= 0
var(22) = 0
ignorehitpause = 1

[state -2,丂儕儀儞僕寕戅帪偺夞暅]
type = varset
trigger1 = NumHelper(7016) != 0
trigger1 = helper(7016),var(22) = 300
v = 22
value = 300

[State -2, 僽乕僗僩僼儔僌儕僙僢僩]
type = varset
trigger1 = var(22) = 300
trigger2 = var(22) = 200
trigger3 = var(22) = 100
trigger4 = var(22) = 0
v = 23
value = 0

[State -2, 嬻拞幬傔忋岦偒僽乕僗僩僼儔僌]
type = varset
trigger1 = stateno = 50 && animelem = 4,>= 0
trigger2 = stateno = 3005 && time >= 1
v = 24
value = 1
ignorehitpause = 1

[State -2, 嬻拞幬傔忋岦偒僽乕僗僩僼儔僌儕僙僢僩]
type = varset
trigger1 = statetype != A
v = 24
value = 0
ignorehitpause = 1

[State -2, 帺慠尭彮]
type = varadd
triggerall = gametime%2
triggerall = var(23) != 0
trigger1 = var(22) < 300 && var(22) >= 201
trigger2 = var(22) < 200 && var(22) >= 101
trigger3 = var(22) < 100 && var(22) >= 1
v = 22
value = -1
ignorehitpause = 1

[State -2, 彫媄崗傒僐儞儃杊巭]
type = posadd
trigger1 = enemy,stateno = [12000,12500]
trigger1 = var(23) = 1 
trigger1 = movehit = 1
trigger1 = P2movetype = H
trigger1 = P2statetype != A
x = ceil(enemy,gethitvar(hitcount)*-0.1)
ignorehitpause = 1

[State -2, 僽乕僗僩僎乕僕昞帵]
type = explod
trigger1 = numexplod(8100) = 0
anim = 8100
bindtime = -1
id = 8100
ownpal = 1
pos = ifelse(teamside = 1,6,192),225
postype = left
facing = 1
scale = 0.5,0.5
ignorehitpause = 1
removetime = -1
persistent = 0
sprpriority = 100

[State -2, 僎乕僕拞恎]
type = explod
triggerall = var(22) >= 0
trigger1 = numexplod(8101) = 0
anim = 8101
id = 8101
pos = ifelse(teamside = 1,6,192),225
postype = left
facing = 1
ontop = 0
sprpriority = 100
bindtime = -1
ownpal = 1
removetime = -1
scale = 1.0,0.5
ignorehitpause = 1
persistent = 0

[State -2, 僎乕僕憹尭]
type = modifyexplod
triggerall = var(22) <= 300
trigger1 = 1
ID = 8101
scale = var(22)*0.002535,0.5
ignorehitpause = 1
;
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;============昁嶦媄娭學==============
;仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭仭
;
[State -2, 惎庢傝惂尷儕僙僢僩]
type = VarRangeSet
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
value = 0
first = 31
last = 36

[State -2, 惎庢傝惂尷儕僙僢僩]
type = VarRangeSet
trigger1 = enemy,gethitvar(hitcount) = 0
trigger2 = enemynear,movetype != H
value = 0
first = 37
last = 41

[State -2, 僀僠僐儘]
type = VarSet
;trigger1 = helper(6200),stateno = 6207 
trigger1 = P2movetype != H
trigger2 = stateno = 1002 ;偗偭偟傚偆偟
v = 37   
value = 0

[State -2, 1]
type = TargetState
triggerall = var(37) != 0 
triggerall = movehit = 1 
trigger1 = P2MoveType = H
value = 6206
ID = -1
ignorehitpause = 1
;
;寣徬歿乮偗偭偟傚偆偟乯僗僀僢僠
;
[state -2]
type = varset
trigger1 = enemynear,movetype != H
var(42) = 0

;僶僗働敾掕======================================================

[State -2, 僶僗働梡丒憡庤偺崅偝庢摼]
type = varset
trigger1 = movecontact = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0  || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
fv = 35
value = abs(enemy,Pos Y)
ignorehitpause = 1
persistent = 0

[State -2,丂昐楏忬懺傊堏峴]
type = null;targetstate
triggerall = stateno != [1000,1100]
triggerall = enemynear,stateno != [12000,12500]
triggerall = var(6) = 0
triggerall = enemy,gethitvar(hitcount) >= 31 && enemy,gethitvar(hitcount) < 75
triggerall = enemy ,statetype = A
triggerall = enemy,movetype = H
trigger1 = movehit = 1
trigger2 = helper,movehit = 1
value = 12000
ctrl = 0

[State -2,丂僶僗働忬懺傊堏峴]
type = null;targetstate
triggerall = stateno != [1000,1100]
triggerall = enemynear,stateno != [12200,12500]
triggerall = var(6) = 0
triggerall = enemy,gethitvar(hitcount) >= 75
triggerall = enemy ,statetype = A
triggerall = enemy,movetype = H
trigger1 = movehit = 1
trigger2 = helper,movehit = 1
value = 12200
ctrl = 0

[State -2,丂怴宆僶僗働忬懺傊堏峴]
type = targetstate
triggerall = stateno != [1000,1100]
;triggerall = enemynear,stateno != [29000,29500]
triggerall = var(6) = 0
triggerall = enemy,gethitvar(hitcount) >= 31
triggerall = enemy,statetype = A
triggerall = enemy,movetype = H
trigger1 = movehit = 1
trigger2 = (NumHelper(6000)) != 0 || (NumHelper(6100)) != 0 || (NumHelper(6102)) != 0  || (NumHelper(6200)) != 0 || (NumHelper(7000)) != 0 || (NumHelper(7016)) != 0  || (NumHelper(7100)) != 0  || (NumHelper(7200)) != 0
trigger2 = helper,movehit = 1
value = 29000
ctrl = 0



