
;-----------------------------------------------------------------------------
[Statedef -2];忢帪娔帇僗僥乕僩(憡庤偵峴摦傪惂屼偝傟偰傕娭學柍偔忢偵幚峴偝傟傞)
;-----------------------------------------------------------------------------
;偙偪傜偼奺庬愝掕偺曄峏偑壜擻側僐儞僼傿僌晹暘偲側偭偰偍傝傑偡丅
;奆條偺偍岲傒偱愝掕偟偰偔偩偝偄丅

[State -2,AI偺儗儀儖(尰嵼枹搵嵹丅曄峏偟側偄傛偆偵!)]
type = varset
trigger1 = 1
v = 5
value = 1;偙偙偺悢帤傪曄偊偰偔偩偝偄丅
ignorehitpause = 1

;偙傟偼CPU偺嫮偝傪寛傔傞愝掕偱偡丅
;
;0 - AI柍偟
;1 - 偪傚偭偲嫮偄
;2 - 寢峔嫮偄乮尰嵼枹搵嵹乯
;僨僼僅儖僩偼1偱偡丅
;偪側傒偵忋婰埲奜偺悢抣偵偡傞偲AI柍偟偺忬懺偵側傝傑偡乮0偵偟偨帪偲摨偠偱偡偹


[State -2,僔僗僥儉儊僢僙乕僕昞帵]
type = varset
trigger1 = 1
v = 6
value = 1;偙偙偺悢帤傪曄偊偰偔偩偝偄丅
ignorehitpause = 1
;偙傟偼僔僗僥儉儊僢僙乕僕偺昞帵傪寛傔傞愝掕偱偡丅
;
;0 - 昞帵偟側偄
;1 - 昞帵偡傞乮Doubles = 0悇彠丅僨僼僅儖僩乯
;2 - 昞帵偡傞乮Doubles = 4悇彠乯
;僨僼僅儖僩偼1偱偡丅
;偪側傒偵忋婰埲奜偺悢抣偵偡傞偲0偵偟偨帪偲摨偠偵側傝傑偡丅


[State -2,僔僗僥儉僄僼僃僋僩愗傝懼偊(枹搵嵹)]
type = varset
trigger1 = 1
v = 7
value = 1;偙偙偺悢帤傪曄偊偰偔偩偝偄丅
ignorehitpause = 1
;偙傟偼僔僗僥儉僄僼僃僋僩昞帵傪寛傔傞愝掕偱偡丅
;
;0 - 寉検斉
;1 - 捠忢斉
;僨僼僅儖僩偼1偱偡丅
;偪側傒偵忋婰埲奜偺悢抣偵偡傞偲0偵偟偨帪偲摨偠偵側傝傑偡丅


[State -2,LA墘弌愗傝懼偊]
type = varset
trigger1 = 1
v = 33
value = 0;偙偙偺悢帤傪曄偊偰偔偩偝偄丅
ignorehitpause = 1
;偙傟偼LA偺墘弌傪寛傔傞愝掕偱偡丅
;
;0 - 儘儞僌僶乕僕儑儞
;1 - 儈僪儖僶乕僕儑儞
;2 - 僔儑乕僩僶乕僕儑儞
;僨僼僅儖僩偼0偱偡丅
;偪側傒偵忋婰埲奜偺悢抣偵偡傞偲0偵偟偨帪偲摨偠偵側傝傑偡丅
;-----------------------------------------------------------------------------

;僟儊乕僕儃僀僗暘婒
[State -2]
type = varrandom
triggerall = alive
triggerall = time = 0
trigger1 = stateno = 5000
trigger2 = stateno = 5010
trigger3 = stateno = 5020
trigger4 = stateno = 5070
v = 9
range = 0,4


[State -2,僟儊乕僕儃僀僗庛乽偁偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = stateno = 5000
trigger1 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
value = s4, 0
channel = 0


[State -2,僟儊乕僕儃僀僗庛乽偆偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = stateno = 5000
trigger1 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
value = s4, 1
channel = 0


[State -2,僟儊乕僕儃僀僗庛乽側乧両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 2
trigger1 = stateno = 5000
trigger1 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5000 + var(15)) || (anim = 5010 + var(15)) || (anim = 5020 + var(15))
value = s4, 2
channel = 0


;---------------------------------------------------------------------------
[State -2,僟儊乕僕儃僀僗拞乽偮偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = stateno = 5000
trigger1 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
value = s4, 4
channel = 0


[State -2,僟儊乕僕儃僀僗拞乽偁偀偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = stateno = 5000
trigger1 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
value = s4, 5
channel = 0


[State -2,僟儊乕僕儃僀僗拞乽偆偆偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 2
trigger1 = stateno = 5000
trigger1 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5001 + var(15)) || (anim = 5011 + var(15)) || (anim = 5021 + var(15))
value = s4, 6
channel = 0
;---------------------------------------------------------------------------
[State -2,僟儊乕僕儃僀僗嫮乽偁偀偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = stateno = 5000
trigger1 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
value = s4, 5
channel = 0


[State -2,僟儊乕僕儃僀僗嫮乽偆偆偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = stateno = 5000
trigger1 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
value = s4, 6
channel = 0


[State -2,僟儊乕僕儃僀僗嫮乽懯栚偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 2
trigger1 = stateno = 5000
trigger1 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
trigger2 = stateno = 5010
trigger2 = (anim = 5002 + var(15)) || (anim = 5012 + var(15)) || (anim = 5022 + var(15))
value = s4, 7
channel = 0
;---------------------------------------------------------------------------
[State -2,僟儊乕僕儃僀僗嬻拞&揮搢乽側乧両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = stateno = 5020
trigger2 = stateno = 5070
value = s4, 3
channel = 0


[State -2,僟儊乕僕儃僀僗嬻拞&揮搢乽偆偆偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = stateno = 5020
trigger2 = stateno = 5070
value = s4, 6
channel = 0


[State -2,僟儊乕僕儃僀僗嬻拞&揮搢乽懯栚偭両乿]
type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(9) = 2
trigger1 = stateno = 5020
trigger2 = stateno = 5070
value = s4, 7
channel = 0

;---------------------------------------------------------------------------
;僈乕僪儃僀僗
[State -2]
type = varrandom
triggerall = alive
triggerall = time = 0
trigger1 = stateno = 150
trigger2 = stateno = 152
trigger3 = stateno = 154
v = 9
range = 0,3


[State -2,僈乕僪乽偖偭乧乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = stateno = 150
trigger2 = stateno = 152
trigger3 = stateno = 154
value = s8, 0
channel = 0


[State -2,僈乕僪乽柍懯両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = stateno = 150
trigger2 = stateno = 152
trigger3 = stateno = 154
value = s8, 1
channel = 0
;----------------------------------------------------------------------------------------------------
;庴恎儃僀僗
[State -2]
type = varrandom
triggerall = alive = 1
triggerall = time = 0
trigger1 = anim = 5200
trigger2 = anim = 5210
v = 9
range = 0,2


[State -2,庴恎乽憺偄乧両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 1
triggerall = var(9) = 0
trigger1 = anim = 5200
trigger2 = anim = 5210
value = s6, 0
channel = 0


[State -2,庴恎乽偖偭両両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 1
triggerall = var(9) = 1
trigger1 = anim = 5200
trigger2 = anim = 5210
value = s6, 3
channel = 0


[State -2,庴恎乽傑偩両両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 1
triggerall = var(9) = 2
trigger1 = anim = 5200
trigger2 = anim = 5210
value = s6, 4
channel = 0
;----------------------------------------------------------------------------------------------------
;婲偒忋偑傝儃僀僗
[State -2]
type = varrandom
triggerall = alive = 1
triggerall = time = 1
triggerall = stateno = 5120
trigger1 = anim = 5120
trigger2 = anim = 5121
v = 9
range = 0,1


[State -2,庴恎乽偙偺掱搙偱偼乧両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 2
triggerall = var(9) = 0
triggerall = stateno = 5120
trigger1 = anim = 5120
trigger2 = anim = 5121
value = s6, 1
channel = 0


[State -2,庴恎乽傑偩偩両乿]
type = PlaySnd
triggerall = alive = 1
triggerall = time = 2
triggerall = var(9) = 1
triggerall = stateno = 5120
trigger1 = anim = 5120
trigger2 = anim = 5121
value = s6, 2
channel = 0
;----------------------------------------------------------------------------
[State -2,峌寕椡乮捠忢帪乯]
type = varset
trigger1 = var(21) = 0
fvar(0) = 1.00 - (0.03125 * var(18)) * fvar(4) * fvar(5); * fvar(6)
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,峌寕椡乮帪娫掆巭拞乯]
type = varset
trigger1 = var(21) = 1
fvar(0) = (1.10 - (0.03125 * var(18))); * 1.10 * fvar(2) * fvar(6)
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


;[State -2,楢懪梡曗惓(杮懱棫偪A)]
;type = VarAdd
;triggerall = PrevStateno = 200
;trigger1 = movehit
;var(18) = 2
;persistent = 0
;ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱棫偪A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.78
trigger1 = stateno = 200
fvar(4) = 0.78
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僼儔儚乕僉僢僋)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.75
trigger1 = stateno = 220
fvar(4) = 0.75
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(寉夁偓傞)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.80
trigger1 = stateno = 230
fvar(4) = 0.80
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱棫偪C)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
triggerall = fvar(4) < 0.80
trigger1 = stateno = 240
trigger1 = stateno = 250
fvar(4) = 0.80
ignorehitpause = 1


[State -2,楢懪梡曗惓(杮懱偟傖偑傒A)]
type = VarAdd
triggerall = var(18) <= 30
triggerall = PrevStateno = 300
trigger1 = movehit
var(18) = 2
persistent = 0
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱偟傖偑傒A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 300
trigger1 = fvar(4) < 0.75
fvar(4) = 0.75
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱偟傖偑傒C)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 320
trigger1 = fvar(4) < 0.55
fvar(4) = 0.55
ignorehitpause = 1


[State -2,楢懪梡曗惓(杮懱嬻拞A)]
type = VarAdd
triggerall = var(18) <= 30
triggerall = PrevStateno = 400
trigger1 = movehit
var(18) = 2
persistent = 0
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱嬻拞A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 400
trigger1 = fvar(4) < 0.78
fvar(4) = 0.78
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱嬻拞6A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 401
trigger1 = fvar(4) < 0.76
fvar(4) = 0.76
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱嬻拞2B)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 415
trigger1 = fvar(4) < 0.70
fvar(4) = 0.70
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(杮懱嬻拞C)]
type = VarSet
trigger1 = movehit
trigger1 = stateno = 420
fvar(5) = fvar(5) *  0.9
ignorehitpause = 1


[State -2,楢懪梡曗惓(僗僞儞僪棫偪A)]
type = VarAdd
triggerall = var(18) <= 30
triggerall = PrevStateno = 20200
trigger1 = movehit
var(18) = 2
persistent = 0
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪棫偪A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 20200
trigger1 = fvar(4) < 0.82
fvar(4) = 0.82
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪棫偪B捛寕)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 20211
trigger1 = fvar(4) < 0.78
fvar(4) = 0.78
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪棫偪C)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = stateno = 20220
trigger1 = fvar(4) < 0.80
fvar(4) = 0.80
ignorehitpause = 1


[State -2,楢懪梡曗惓(僗僞儞僪偟傖偑傒A)]
type = VarAdd
triggerall = var(18) <= 30
triggerall = PrevStateno = 20300
triggerall = Stateno = 20300
trigger1 = movehit
var(18) = 2
persistent = 0
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪偟傖偑傒A)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
triggerall = Stateno = 20300
trigger1 = fvar(4) < 0.80
fvar(4) = 0.80
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪偟傖偑傒C)]
type = VarSet
triggerall = movehit
triggerall = fvar(4) >= 0.45
triggerall = Stateno = 20320
trigger1 = fvar(4) < 0.75
fvar(4) = 0.75
ignorehitpause = 1


[State -2,楢懪梡曗惓(僗僞儞僪嬻拞A)]
type = VarAdd
triggerall = var(18) <= 30
triggerall = PrevStateno = 20400
trigger1 = movehit
var(18) = 2
persistent = 0
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪嬻拞B)]
type = VarSet
triggerall = movehit
triggerall = Stateno = 20410
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.85
fvar(4) = 0.85
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪嬻拞C)]
type = VarSet
triggerall = Stateno = 20420
trigger1 = movehit
fvar(5) = fvar(5) * 0.92
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪慚忊丒敧揰徴A)]
type = VarSet
triggerall = Stateno = 21000
trigger1 = movehit
fvar(5) = fvar(5) * 0.98
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪慚忊丒敧揰徴B)]
type = VarSet
triggerall = Stateno = 21010
trigger1 = movehit
fvar(5) = fvar(5) * 0.98
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪慚忊丒敧揰徴EX)]
type = VarSet
triggerall = Stateno = 21020
trigger1 = movehit
fvar(5) = fvar(5) * 0.99
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪愗傝嶥偦偺偄偪乮戝愗傝乯B)]
type = VarSet
triggerall = Stateno = 21210
triggerall = movehit
trigger1 = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.85
fvar(4) = 0.85
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪帺暘偱傕傛偔傢偐傜側偄廟傝A)]
type = VarSet
triggerall = Stateno = 21400
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.85
fvar(4) = 0.85
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪帺暘偱傕傛偔傢偐傜側偄廟傝B)]
type = VarSet
triggerall = Stateno = 21410
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.85
fvar(4) = 0.85
ignorehitpause = 1


[State -2,摿掕峌寕曗惓(僗僞儞僪帺暘偱傕傛偔傢偐傜側偄廟傝C)]
type = VarSet
triggerall = Stateno = 21420
triggerall = movehit
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.85
fvar(4) = 0.85
ignorehitpause = 1


[State 11100,摿掕峌寕曗惓]
type = VarSet
triggerall = NumProjID(11100) > 0
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.70
fvar(4) = 0.70
ignorehitpause = 1


[State 11110,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11110) > 0
fvar(5) = fvar(5) * 0.85
ignorehitpause = 1


[State 11120,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11120) > 0
fvar(5) = fvar(5) * 0.90
ignorehitpause = 1


[State 11220,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11220) > 0
fvar(5) = fvar(5) * 0.90
ignorehitpause = 1


[State 11302,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11300) > 0
fvar(5) = fvar(5) * 0.94
ignorehitpause = 1


[State 11311,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11310) > 0
fvar(5) = fvar(5) * 0.80
ignorehitpause = 1


[State 11322,摿掕峌寕曗惓]
type = VarSet
triggerall = NumProjID(11320) > 0
triggerall = fvar(4) >= 0.45
trigger1 = fvar(4) < 0.80
fvar(4) = 80
ignorehitpause = 1


[State 11400,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11400) > 0
fvar(5) = fvar(5) * 0.90
ignorehitpause = 1


[State 11410,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11410) > 0
fvar(5) = fvar(5) * 0.90
ignorehitpause = 1


[State 11420,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(11420) > 0
fvar(5) = fvar(5) * 0.95
ignorehitpause = 1


[State 31311,摿掕峌寕曗惓]
type = VarSet
trigger1 = NumProjID(31310) > 0
fvar(5) = fvar(5) * 0.90
ignorehitpause = 1


[State -2,摿掕峌寕曗惓廋惓]
type = varset
trigger1 = fvar(4) < 0.45
fvar(4) = 0.45
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,摿掕峌寕曗惓夝彍]
type = varset
trigger1 = Enemy,MoveType != H
fvar(4) = 1
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,摿掕峌寕曗惓夝彍]
type = varset
trigger1 = Enemy,MoveType != H
fvar(5) = 1
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,僐儞儃曗惓夝彍]
type = varset
trigger1 = Enemy,MoveType != H
var(18) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,曗惓梡僸僢僩僇僂儞僩乮杮懱乯]
type = VarAdd
triggerall = var(18) <= 30
trigger1 = movehit
var(18) = 1
ignorehitpause = 1


[State -2,曗惓梡僸僢僩僇僂儞僩乮helper乯]
type = VarAdd
triggerall = var(18) <= 30
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11100) > 0
trigger2 = NumProjID(11110) > 0
trigger3 = NumProjID(11120) > 0
trigger4 = NumProjID(11200) > 0
trigger5 = NumProjID(11210) > 0
trigger6 = NumProjID(11220) > 0
trigger7 = NumProjID(11200) > 0
trigger8 = NumProjID(11300) > 0
trigger9 = NumProjID(11310) > 0
trigger10 = NumProjID(11320) > 0
trigger11 = NumProjID(11400) > 0
trigger12 = NumProjID(11410) > 0
trigger13 = NumProjID(11420) > 0
trigger14 = NumProjID(13010) > 0
trigger15 = NumProjID(13110) > 0
trigger16 = NumProjID(31300) > 0
trigger17 = NumProjID(31303) > 0
trigger18 = NumProjID(31310) > 0
trigger19 = NumProjID(31320) > 0
trigger20 = NumProjID(50103) > 0
trigger21 = NumProjID(50200) > 0
var(18) = 1
ignorehitpause = 1


[State -2,棫偪僠僃乕儞惂尷夝彍]
type = VarSet
trigger1 = ctrl
var(10) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,偟傖偑傒僠僃乕儞惂尷夝彍]
type = VarSet
trigger1 = ctrl
trigger2 = stateno = 0
trigger3 = stateno = 50
trigger4 = stateno = 11
trigger5 = stateno = 103
trigger6 = stateno = 108
var(11) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,嬻拞僠僃乕儞惂尷夝彍]
type = VarSet
trigger1 = statetype!= A
trigger2 = stateno = [45,46]
trigger3 = stateno = 103
trigger4 = stateno = 108
var(12) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1

[State -2,僸僢僩妋擣儕僙僢僩]
type = varset
trigger1 = movetype != A
var(23) = 0
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999
;----------------------------------------------------------------------------
;杊屼椡娭學
[State -2,崻惈抣乮杮懱儌乕僪乯]
type = DefenceMulSet
trigger1 = var(3) = 0;[1,2]
trigger2 = var(3) = 3
value = fvar(1)
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,崻惈抣乮僗僞儞僪儌乕僪乯]
type = DefenceMulSet
trigger1 = var(3) = [1,2]
value = fvar(1) * 0.85
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,弶婜抜奒]
type = varset
trigger1 =  ceil((1000*Life) / const(data.life)) >= 751
fv = 1
value = 1.000
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999



[State -2,75亾埲壓]
type = varset
trigger1 =  ceil((1000*life) / const(data.life)) = [501,750]
fv = 1 
value = 0.968
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999



[State -2,50亾埲壓]
type = varset
trigger1 =  ceil((1000*life) / const(data.life)) = [251,500]
fv = 1 
value = 0.843
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


[State -2,25亾埲壓]
type = varset
trigger1 =  ceil((1000*life) / const(data.life)) <= 250
fv = 1 
value = 0.815
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


;---------------------------------------------------------------------------
;MB-Re.Act-晽HS張棟
;---------------------------------------------------------------------------
[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 200
trigger2 = var(31) = 300
trigger3 = var(31) = 400
trigger4 = var(31) = 401
trigger5 = var(31) = 20200
trigger6 = var(31) = 20300
trigger7 = var(31) = 20400
stateno = 10200
id = 50000
pos = 0,-70 + ((var(31) = 300)*55) + ((var(31) = 400)*5) + ((var(31) = 401)*25) + ((var(31) = 20200 || var(31) = 20300)*45) + ((var(31) = 20400)*-5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 310
trigger2 = var(31) = 410
trigger3 = var(31) = 415
trigger4 = var(31) = 21400
trigger5 = var(31) = 21410
stateno = 10200
id = 50001
pos = 0,-70 + ((var(31) = 310)*50) + ((var(31) = 410||var(31) = 415)*5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 230
trigger2 = var(31) = 240
trigger3 = var(31) = 320
trigger4 = var(31) = 330
trigger5 = var(31) = 420
stateno = 10200
id = 50002
pos = 0,-70 + ((var(31) = 240)*20) + ((var(31) = 320||var(31) = 330)*55) + ((var(31) = 420)*5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 20210
;trigger2 = var(31) = 
stateno = 10200
id = 50003
pos = 0,-70
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 210
;trigger2 = var(31) = 
stateno = 10200
id = 50004
pos = 0,-70
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 220
stateno = 10200
id = 50005
pos = 0,-70
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999



[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 250
trigger2 = var(31) = 251
stateno = 10200
id = 50006
pos = 0,-70 + ((var(31) = 250)*20) + ((var(31) = 251)*50)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 20320
trigger2 = var(31) = 20420
stateno = 10200
id = 50007
pos = 0,-70 + ((var(31) = 20320)*45) + ((var(31) = 20420)*-5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 20211
trigger2 = var(31) = 20310
trigger3 = var(31) = 20410
trigger4 = var(31) = 20450
stateno = 10220
id = 50008
pos = 0,-70 + ((var(31) = 250)*20) + ((var(31) = 20220)*30) + ((var(31) = 20310)*45) + ((var(31) = 20410)*-5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 20220
trigger2 = var(31) = 21000
trigger3 = var(31) = 21010
trigger4 = var(31) = 21020
trigger5 = var(31) = 21200
trigger6 = var(31) = 21210
trigger7 = var(31) = 21220
stateno = 10220
id = 50009
pos = 0,-70 + ((var(31) = 250)*20) + ((var(31) = 20220)*30) + ((var(31) = 20310)*45) + ((var(31) = 20410)*-5)
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋]
type = Helper
triggerall = movehit
trigger1 = var(31) = 21420
stateno = 10200
id = 50010
pos = 0,-70
name = "hitspa"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(愒丒庛)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20200) > 0
trigger2 = NumProjID(20300) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10220
pos = 0,-70 + ((NumProjID(20300) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(愒丒拞)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20210) > 0
trigger2 = NumProjID(21300) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10221
pos = 0,-70 + ((NumProjID(20300) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(愒丒嫮)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20320) > 0
trigger2 = NumProjID(20420) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10222
pos = 0,-70 + ((NumProjID(20300) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(惵丒庛)]
type = null;Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20200) > 0
trigger2 = NumProjID(20300) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10220
pos = 0,-70 + ((NumProjID(20300) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(惵丒拞)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20215) > 0
trigger2 = NumProjID(20310) > 0
trigger3 = NumProjID(20410) > 0
trigger4 = NumProjID(21100) > 0
trigger5 = NumProjID(21110) > 0
trigger6 = NumProjID(21200) > 0
trigger7 = NumProjID(21210) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10220
pos = 0,-70 + ((NumProjID(20310) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩僗僷乕僋(惵丒嫮)]
type = null;Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20220) > 0
trigger2 = NumProjID(20300) > 0
trigger3 = NumProjID(21120) > 0
trigger4 = NumProjID(21220) > 0
;trigger1 = IsHelper(50000)
stateno = 10210
id = 10220
pos = 0,-70 + ((NumProjID(20300) > 0) * 45)
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999



[State -2,Helper梡僸僢僩僗僷乕僋(愒丒庛)]
type = Helper
trigger1 = NumProjID(31320) > 0
stateno = 10210
id = 10200
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,Helper梡僸僢僩僗僷乕僋(愒丒拞)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11300) > 0
trigger2 = NumProjID(11310) > 0
trigger3 = NumProjID(11320) > 0
trigger4 = NumProjID(31300) > 0
trigger5 = NumProjID(31303) > 0
stateno = 10210
id = 10201
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,Helper梡僸僢僩僗僷乕僋(愒丒嫮)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(50103) > 0
trigger2 = NumProjID(50200) > 0
stateno = 10210
id = 10200
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,Helper梡僸僢僩僗僷乕僋(惵丒庛)]
type = null;Helper
trigger1 = time = 0
stateno = 10230
id = 10220
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,Helper梡僸僢僩僗僷乕僋(惵丒拞)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11100) > 0
trigger2 = NumProjID(11110) > 0
trigger3 = NumProjID(11200) > 0
trigger4 = NumProjID(11210) > 0
trigger5 = NumProjID(11400) > 0
trigger6 = NumProjID(11410) > 0
trigger7 = NumProjID(13010) > 0
trigger8 = NumProjID(13110) > 0
trigger9 = NumProjID(31310) > 0
stateno = 10230
id = 10221
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,Helper梡僸僢僩僗僷乕僋(惵丒嫮)]
type = Helper
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11120) > 0
trigger2 = NumProjID(11220) > 0
trigger3 = NumProjID(11420) > 0
stateno = 10230
id = 10222
pos = 0,-70
name = "hit"
postype = p2
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999

;---------------------------------------------------------------------------
;僈乕僪僗僷乕僋
;---------------------------------------------------------------------------
[State -2,僈乕僪僗僷乕僋]
type = Explod
trigger1 = moveguarded
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10)) + ((var(31) = 240||var(31) = 250)*20) + ((var(31) = 251)*50)
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999

[State -2,僈乕僪僗僷乕僋]
type = Explod
triggerall = gametime % 2 = 0
trigger1 = NumProjID(21101) > 0
trigger2 = NumProjID(21111) > 0
trigger3 = NumProjID(21121) > 0
trigger4 = NumProjID(21201) > 0
trigger5 = NumProjID(21211) > 0
trigger6 = NumProjID(21221) > 0
trigger7 = NumProjID(21301) > 0
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10)) + ((var(31) = 240||var(31) = 250)*20) + ((var(31) = 251)*50)
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999



[State -2,僈乕僪僗僷乕僋]
type = Explod
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20201) > 0
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10))
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僈乕僪僗僷乕僋]
type = Explod
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20211) > 0
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10))
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僈乕僪僗僷乕僋]
type = Explod
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20216) > 0
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10))
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僈乕僪僗僷乕僋]
type = Explod
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20221) > 0
trigger2 = NumProjID(11101) > 0
trigger3 = NumProjID(11111) > 0
trigger4 = NumProjID(11121) > 0
trigger5 = NumProjID(11201) > 0
trigger6 = NumProjID(11211) > 0
trigger7 = NumProjID(11221) > 0
trigger8 = NumProjID(11201) > 0
trigger9 = NumProjID(11301) > 0
trigger10 = NumProjID(11311) > 0
trigger11 = NumProjID(11321) > 0
trigger12 = NumProjID(11401) > 0
trigger13 = NumProjID(11411) > 0
trigger14 = NumProjID(11421) > 0
trigger15 = NumProjID(13011) > 0
trigger16 = NumProjID(13111) > 0
trigger17 = NumProjID(31301) > 0
trigger18 = NumProjID(31304) > 0
trigger19 = NumProjID(31311) > 0
trigger20 = NumProjID(31321) > 0
trigger21 = NumProjID(50104) > 0
trigger22 = NumProjID(50201) > 0
anim = 40011
id = 50000
postype = p2
pos = -10 + (random % 20),(-70 + (random % 10))
ownpal = 1
sprpriority = 5
bindtime = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


;---------------------------------------------------------------------------
;僸僢僩壒惡嵞惗(杮懱梡)
;---------------------------------------------------------------------------
[State -2,懪寕壒1]
type = PlaySnd
trigger1 = numhelper(50000) > 0
value = s0,0
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒2]
type = PlaySnd
trigger1 = numhelper(50001) > 0
trigger2 = numhelper(50010) > 0
value = s0,1
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State 230,懪寕壒3]
type = PlaySnd
trigger1 = numhelper(50002) > 0
value = s0,2
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒4]
type = PlaySnd
trigger1 = numhelper(50003) > 0
value = s0,3
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒5]
type = PlaySnd
trigger1 = numhelper(50004) > 0
value = s0,4
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒6]
type = PlaySnd
trigger1 = numhelper(50005) > 0
value = s0,5
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒7]
type = PlaySnd
trigger1 = numhelper(50006) > 0
trigger2 = numhelper(50007) > 0
value = s0,6
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒8]
type = null;PlaySnd
trigger1 = numhelper(50007) > 0
value = s0,7
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,巃寕乮React乯]
type = PlaySnd
trigger1 = numhelper(50008) > 0
trigger2 = numhelper(50009) > 0
value = s0,8
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僈乕僪壒]
type = PlaySnd
trigger1 = moveguarded
value = s0,10
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999
;---------------------------------------------------------------------------
;僸僢僩壒惡嵞惗(helper)
;---------------------------------------------------------------------------


[State -2,懪寕壒1乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = NumProjID(20200) > 0
trigger2 = NumProjID(31320) > 0
value = s0,0
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒2乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11310) > 0
trigger2 = NumProjID(11320) > 0
value = s0,1
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State 230,懪寕壒3乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11300) > 0
trigger2 = NumProjID(31300) > 0
trigger3 = NumProjID(31303) > 0
value = s0,2
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒4乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = numhelper(50003) >= 1
value = s0,3
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒5乮helper乯]
type = null;PlaySnd
triggerall = gametime % 2 = 0
trigger1 = numhelper(50004) >= 1
value = s0,4
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒6乮helper乯]
type = null;PlaySnd
triggerall = gametime % 2 = 0
trigger1 = numhelper(50005) >= 1
value = s0,5
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒7乮helper乯]
type = null;PlaySnd
triggerall = gametime % 2 = 0
trigger1 = numhelper(50006) >= 1
trigger2 = numhelper(50007) >= 1
value = s0,6
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,懪寕壒8乮helper乯]
type = null;PlaySnd
triggerall = gametime % 2 = 0
trigger1 = numhelper(50007) >= 1
value = s0,7
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,巃寕乮React乯乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11100) > 0
trigger2 = NumProjID(11110) > 0
trigger3 = NumProjID(11120) > 0
trigger4 = NumProjID(11200) > 0
trigger5 = NumProjID(11210) > 0
trigger6 = NumProjID(11220) > 0
trigger7 = NumProjID(11400) > 0
trigger8 = NumProjID(11410) > 0
trigger9 = NumProjID(11420) > 0
trigger10 = NumProjID(31310) > 0
value = s0,8
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僈乕僪壒乮helper乯]
type = PlaySnd
triggerall = gametime % 2 = 0
trigger1 = NumProjID(11101) > 0
trigger2 = NumProjID(11111) > 0
trigger3 = NumProjID(11121) > 0
trigger4 = NumProjID(11201) > 0
trigger5 = NumProjID(11211) > 0
trigger6 = NumProjID(11221) > 0
trigger7 = NumProjID(11301) > 0
trigger8 = NumProjID(11311) > 0
trigger9 = NumProjID(11321) > 0
trigger10 = NumProjID(11401) > 0
trigger11 = NumProjID(11411) > 0
trigger12 = NumProjID(11421) > 0
trigger13 = NumProjID(13011) > 0
trigger14 = NumProjID(13111) > 0
trigger15 = NumProjID(31301) > 0
trigger16 = NumProjID(31304) > 0
trigger17 = NumProjID(31311) > 0
trigger18 = NumProjID(31321) > 0
trigger19 = NumProjID(50104) > 0
trigger20 = NumProjID(50201) > 0
value = s0,10
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999



[State -2,巃寕乮柍報乯乮helper乯]
type = PlaySnd
trigger1 = NumProjID(13010) > 0
trigger2 = NumProjID(13110) > 0
value = s0,23
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,搶曽懪寕1乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50103) > 0
value = s17,6
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,搶曽懪寕2乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50200) > 0
value = s17,7
channel = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僇僢僩壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(11102) > 0
value = s1,6
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,儗僾儕僇峔抸壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(11302) > 0
trigger2 = NumProjID(31302) > 0
value = s1,8
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,儗僾儕僇偝偭偪傫峌寕壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(11312) > 0
value = s1,17
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,戝峌寕乮helper乯]
type = PlaySnd
trigger1 = NumProjID(11402) > 0
value = s1,5
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,尰悽巃乮helper乯]
type = PlaySnd
trigger1 = NumProjID(13012) > 0
trigger2 = NumProjID(13112) > 0
value = s0,24
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,偟傖偄偵傫傾儘乕岠壥壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(31305) > 0
value = s1,19
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,梼岠壥壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(31312) > 0
value = s1,20
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,攷楈傾儈儏儗僢僩敪幩壒乮helper乯]
type = PlaySnd
trigger1 = NumProjID(31322) > 0
value = s1,18
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,EFZ嬻拞僟僢僔儏乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50000) > 0
value = s17,0
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,偐偔傟傫傏乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50100) > 0
trigger2 = NumProjID(51000) > 0
trigger3 = NumProjID(51010) > 0
trigger4 = NumProjID(51103) > 0
value = s17,2
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,MVC2僴僀僷乕僐儞儃敪摦(1)乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50101) > 0
trigger2 = NumProjID(51103) > 0
value = s17,8
channel = 3
supermovetime = 9999
pausemovetime = 9999


[State -2,晄栭忛儗僢僪乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50102) > 0
value = s17,3
channel = 3
supermovetime = 9999
pausemovetime = 9999


[State -2,儅僗僞乕僗僷乕僋乮helper乯]
type = PlaySnd
trigger1 = NumProjID(50202) > 0
value = s17,4
channel = 3
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999
;---------------------------------------------------------------------------
;僸僢僩妋擣
;---------------------------------------------------------------------------
[State -2,僸僢僩妋擣儕僙僢僩]
type = varset
trigger1 = time = 0
var(23) = 0
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩妋擣(僸僢僩)]
type = varset
trigger1 = movehit
var(23) = 1
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999


[State -2,僸僢僩妋擣(僈乕僪)]
type = varset
trigger1 = moveguarded
var(23) = 2
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999

;---------------------------------------------------------------------------
;僸僢僩夝彍
;---------------------------------------------------------------------------

[State -2,僸僢僩夝彍]
type = MoveHitReset
trigger1 = movecontact
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999
;---------------------------------------------------------------------------
;StateNo 5900偵偮偄偰

[State -2, 擇恖栚偺僀儞僩儘]
type = ChangeState             ;擇恖栚偱傕僀儞僩儘傪嶌傞
value = 190                    ;僀儞僩儘傊
triggerall = RoundsExisted = 0 ;帺暘偑弶嶲愴帪
triggerall = TeamMode = Turns  ;僞乕儞儌乕僪
trigger1 = stateno = 5900      ;5900斣

[State -2, 彑棙僶僌夝徚]
type = ChangeState             ;曕偒僶僌懳嶔
value = 180                    ;彑棙傊
triggerall = RoundState = 4    ;帋崌廔椆帪
trigger1 = stateno = [10,40]   ;忋壓嵍塃擖椡
;----------------------------------------------------------------------------
[State -2,僗僞儞僪儌乕僪梡僿儖僷乕嶌惉乮帪娫掆巭拞偼摦偐側偄乯]
type = helper
trigger1 = numhelper(20000) = 0
;trigger1 = var(21) != 1
name = "sion_dummy"
id = 20000
pos = 0,0
postype = p1
facing = 1
stateno = 1
helpertype = normal
ownpal = 0
keyctrl = 0
persistent = 0
ignorehitpause = 1
supermovetime = 9999999999999999
pausemovetime = 9999999999999999


;[State -2,僗僞儞僪儌乕僪梡僿儖僷乕嶌惉乮帪娫掆巭拞傕摦偔乯]
;type = helper
;trigger1 = numhelper(20001) = 0
;trigger1 = var(21) = 1
;name = "sion_dummy2"
;id = 20001
;pos = 0,0
;postype = p1
;facing = 1
;stateno = 20000
;helpertype = normal
;ownpal = 0
;keyctrl = 0
;persistent = 0
;ignorehitpause = 1
;supermovetime = 0
;pausemovetime = 999999



[State -2,僗僞儞僪嫮惂夝彍]
type = VarSet
trigger1 = movetype = H
trigger1 = time >= 1
trigger1 = stateno != 5000
trigger1 = stateno != 5001
trigger1 = stateno != 5010
trigger1 = stateno != 5011
trigger1 = stateno != 5020
trigger1 = stateno != 5030
trigger1 = stateno != 5035
trigger1 = stateno != 5040
trigger1 = stateno != 5050
trigger1 = stateno != 5070
trigger1 = stateno != 5071
trigger1 = stateno != 5080
trigger1 = stateno != 5081
trigger1 = stateno != 5100
trigger1 = stateno != 5101
trigger1 = stateno != 5110
;trigger1 = stateno != 5120
trigger1 = stateno != 5150
trigger1 = stateno != 5200
trigger1 = stateno != 5201
trigger1 = stateno != 5210
trigger1 = stateno != [150,155]
trigger1 = stateno != 160
;trigger1 = (stateno != 5600 && (anim != 5600 && anim != 5610))
;trigger1 = (stateno != 5601 && (anim != 5007 + (GetHitVar(groundtype)=2)*10))
;trigger1 = stateno != 5630
trigger2 = var(2) <= 0
trigger3 = !alive
trigger3 = time >= 0
var(15) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,僗僞儞僪嫮惂夝彍]
type = VarSet
triggerall = movetype = H
trigger1 = stateno = 5600
trigger1 = (anim != 5600 && anim != 5610)
trigger2 = stateno = 5601
trigger2 = (anim != 5607 && anim != 5617)
trigger3 = stateno = 5630
trigger3 = Prevstateno != 5600
var(15) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1



[state -2,僗僞儞僪嫮惂夝彍]
type = VarSet
trigger1 = movetype = H
trigger1 = time >= 1
trigger1 = stateno != 5000
trigger1 = stateno != 5001
trigger1 = stateno != 5010
trigger1 = stateno != 5011
trigger1 = stateno != 5020
trigger1 = stateno != 5030
trigger1 = stateno != 5035
trigger1 = stateno != 5040
trigger1 = stateno != 5050
trigger1 = stateno != 5070
trigger1 = stateno != 5071
trigger1 = stateno != 5080
trigger1 = stateno != 5081
trigger1 = stateno != 5100
trigger1 = stateno != 5101
trigger1 = stateno != 5110
;trigger1 = stateno != 5120
trigger1 = stateno != 5150
trigger1 = stateno != 5200
trigger1 = stateno != 5201
trigger1 = stateno != 5210
trigger1 = stateno != [150,155]
trigger1 = stateno != 160
trigger2 = var(2) <= 0
trigger3 = !alive
trigger3 = anim <= 19999
trigger3 = time >= 6
trigger3 = var(3) != 0
var(3) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,僗僞儞僪嫮惂夝彍]
type = VarSet
triggerall = movetype = H
trigger1 = stateno = 5600
trigger1 = (anim != 5600 && anim != 5610)
trigger2 = stateno = 5601
trigger2 = (anim != 5607 && anim != 5617)
trigger3 = stateno = 5630
trigger3 = Prevstateno != 5600
var(3) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2, 僿儖僷乕惗惉乮墘弌梡乯]
type = Helper
triggerall = !alive
triggerall = numhelper(5700) = 0
triggerall = var(17) = 0
trigger1 = var(3) = [1,2]
trigger1 = anim <= 19999
stateno = 5700
ID = 5700
pos = 15,0
name = "ensyutu"
postype = p1
helpertype = normal
keyctrl = 0
ownpal = 1
size.xscale = 1.0
size.yscale = 1.0
supermovetime = 999999
pausemovetime = 999999
ignorehitpause = 1
persistent = 0


[State -2,屻戅]
type = PosAdd
triggerall = !alive
triggerall = var(17) = 0
trigger1 = var(3) = [1,2]
trigger1 = anim <= 19999
x = -15
ignorehitpause = 1
pausemovetime = -1
supermovetime = -1
persistent = 0


[state -2,僗僞儞僪夝彍嫋壜]
type = VarSet
triggerall = !alive
trigger1 = var(3) = [1,2]
trigger1 = anim <= 19999
var(17) = 1
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[state -2,僗僞儞僪夝彍嫋壜]
type = VarSet
trigger1 = var(3) = 1
trigger1 = time >= 30
var(3) = 2
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


;----------------------------------------------------------------------------
;僗僞儞僪僎乕僕
[State -2,愴摤奐巒慜僗僞儞僪僎乕僕僙僢僩]
type = VarSet
trigger1 = RoundState = 0
trigger2 = Stateno = 190
trigger3 = Stateno = 5900
var(2) = 150
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -2,僗僞儞僪僎乕僕柍棟栴棟堷偒栠偟]
type = VarSet
trigger1 = var(2) <= -1
var(2) = 0
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
supermovetime = 999999
pausemovetime = 999999



[State -2,僗僞儞僪僎乕僕柍棟栴棟堷偒栠偟]
type = VarSet
trigger1 = var(2) >= 151
var(2) = 150
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1
supermovetime = 999999
pausemovetime = 999999



[State -2,僗僞儞僪僎乕僕夞暅]
type = VarAdd
triggerall = var(2) <= 149
triggerall = alive
triggerall = gametime % 2 = 0
trigger1 = var(3) = 0
trigger2 = var(3) = 3
var(2) = 1
ignorehitpause = 1


[state -2,儔僀僼婰壇]
type = VarSet
;triggerall = time = 0
;triggerall = var(3) = [1,2]
trigger1 = stateno != [150,155]
var(16) = Life
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


[state -2,嶍傝杊巭]
type = LifeSet
triggerall = var(3) = [1,2]
trigger1 = stateno = [150,155]
value = var(16)
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


[state -2,僗僞儞僪僎乕僕尭彮]
type = VarAdd
;triggerall = time = 1
triggerall = var(3) = [1,2]
;triggerall = Hitshakeover = 0
trigger1 = stateno = 5000
trigger2 = stateno = 5010
trigger3 = stateno = 5020
trigger4 = stateno = 5070
trigger5 = stateno = 150
trigger6 = stateno = 152
trigger7 = stateno = 154
var(2) = ceil(-gethitvar(damage) * 0.65);-1 * (var(16) - Life)
ignorehitpause = 1
;Persistent = 0
supermovetime = 999999
pausemovetime = 999999



;----------------------------------------------------------------------------
;僗僞儞僪僎乕僕昞帵
[State -2,僗僞儞僪僎乕僕榞乮1P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50000) = 0
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50000
id = 50000
bindtime = -1
removetime = -1
pos = 10,55
postype = left
sprpriority = -5
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕榞乮3P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50000) = 0
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50000
id = 50000
bindtime = -1
removetime = -1
pos = 10,70
postype = left
sprpriority = -5
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕榞乮2P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50000) = 0
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50001
id = 50000
bindtime = -1
removetime = -1
pos = -10,55
postype = right
sprpriority = -5
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕榞乮4P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50000) = 0
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50001
id = 50000
bindtime = -1
removetime = -1
pos = -10,70
postype = right
sprpriority = -5
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮捠忢乯乮1P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50010) = 0
triggerall = var(2) >= 76 
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50010
id = 50010
bindtime = -1
removetime = -1
pos = 10,55
postype = left
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮捠忢乯乮3P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50010) = 0
triggerall = var(2) >= 76 
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50010
id = 50010
bindtime = -1
removetime = -1
pos = 10,70
postype = left
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮捠忢乯乮2P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50010) = 0
triggerall = var(2) >= 76 
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50011
id = 50010
bindtime = -1
removetime = -1
pos = -10,55
postype = right
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮捠忢乯乮4P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50010) = 0
triggerall = var(2) >= 76 
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50011
id = 50010
bindtime = -1
removetime = -1
pos = -10,70
postype = right
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999



[State -2,僗僞儞僪僎乕僕乮婋尟乯乮1P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50020) = 0
triggerall = var(2) = [1,75]
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50020
id = 50020
bindtime = -1
removetime = -1
pos = 10,55
postype = left
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮婋尟乯乮3P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 1 && numexplod(50020) = 0
triggerall = var(2) = [1,75]
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50020
id = 50020
bindtime = -1
removetime = -1
pos = 10,70
postype = left
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮婋尟乯乮2P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50020) = 0
triggerall = var(2) = [1,75]
triggerall = var(25) = 0
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50021
id = 50020
bindtime = -1
removetime = -1
pos = -10,55
postype = right
sprpriority = -4
ownpal = 1
scale = 1,1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僗僞儞僪僎乕僕乮婋尟乯乮4P乯]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = teamside = 2 && numexplod(50020) = 0
triggerall = var(2) = [1,75]
triggerall = var(25) = 0
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50021
id = 50020
bindtime = -1
removetime = -1
pos = -10,70
postype = right
sprpriority = -4
ownpal = 1
scale = 1, 1
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,僎乕僕怢弅乮捠忢乯] 
type= modifyExplod 
triggerall = var(25) = 0
trigger1 = var(2) <= 150 
ID = 50010 
scale = (0.1+Var(2))/150.1,1
supermovetime = 999999
pausemovetime = 999999


[State -2,僎乕僕怢弅乮婋尟乯] 
type= modifyExplod 
triggerall = var(25) = 0
trigger1 = var(2) <= 150
ID = 50020
scale = (0.1+Var(2))/150.1,1
supermovetime = 999999
pausemovetime = 999999




[state -2,僎乕僕榞徚嫀]
type = removeExplod
triggerall = numexplod(50000) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 1
ID = 50000
supermovetime = 999999
pausemovetime = 999999



[state -2,僎乕僕徚嫀乮捠忢乯]
type = removeExplod
triggerall = numexplod(50010) >= 1
trigger1 =  RoundState != 2
trigger2 = var(2) <= 75
trigger3 = !alive
trigger4 = var(25) = 1
ID = 50010
supermovetime = 999999
pausemovetime = 999999



[state -2,僎乕僕徚嫀乮婋尟乯]
type = removeExplod
triggerall = numexplod(50020) >= 1
trigger1 =  RoundState != 2
trigger2 = var(2) >= 76
trigger3 = var(2) <= 0
trigger4 = !alive
trigger5 = var(25) = 1
ID = 50020
supermovetime = 999999
pausemovetime = 999999
;----------------------------------------------------------------------------
[State -2,偁備ST榞昞帵(1P or 2P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50050) = 0
triggerall = var(25) = 1
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50050
id = 50050
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,10,310),75
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偁備ST榞昞帵(3P or 4P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50050) = 0
triggerall = var(25) = 1
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50050
id = 50050
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,10,310),95
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偪傃傒偢偐ST榞昞帵(1P or 2P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50051) = 0
triggerall = var(25) = 1
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50050
id = 50051
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,25,295),75
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偪傃傒偢偐ST榞昞帵(3P or 4P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50051) = 0
triggerall = var(25) = 1
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50050
id = 50051
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,25,295),95
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999



[State -2,偁備億僩儗昞帵(1P or 2P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50060) = 0
triggerall = var(25) = 1
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50051
id = 50060
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,10,310),75
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
facing = ifelse(TeamSide = 1,1,-1)
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偁備億僩儗昞帵(3P or 4P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50060) = 0
triggerall = var(25) = 1
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50051
id = 50060
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,10,310),95
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
facing = ifelse(TeamSide = 1,1,-1)
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偪傃傒偢偐億僩儗昞帵(1P or 2P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50061) = 0
triggerall = var(25) = 1
trigger1 = NumPartner = 0
trigger2 = NumPartner > 0
trigger2 = Partner,ID > ID
anim = 50052
id = 50061
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,25,295),75
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
facing = ifelse(TeamSide = 1,1,-1)
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[State -2,偪傃傒偢偐億僩儗昞帵(3P or 4P)]
type = explod
triggerall = RoundState = 2
triggerall = alive
triggerall = numexplod(50061) = 0
triggerall = var(25) = 1
trigger1 = NumPartner > 0
trigger1 = Partner,ID < ID
anim = 50052
id = 50061
bindtime = -1
removetime = -1
pos = ifelse(TeamSide = 1,25,295),95
postype = left
sprpriority = -5
ownpal = 1
scale = 0.5,0.5;1,1;2
facing = ifelse(TeamSide = 1,1,-1)
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 0
supermovetime = 999999
pausemovetime = 999999


[state -2,偁備ST榞徚嫀]
type = removeExplod
triggerall = numexplod(50050) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 0
ID = 50050
supermovetime = 999999
pausemovetime = 999999


[state -2,偁備ST榞徚嫀]
type = removeExplod
triggerall = numexplod(50050) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 0
ID = 50050
supermovetime = 999999
pausemovetime = 999999


[state -2,偪傃傒偢偐ST榞徚嫀]
type = removeExplod
triggerall = numexplod(50051) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 0
ID = 50051
supermovetime = 999999
pausemovetime = 999999


[state -2,偁備億僩儗徚嫀]
type = removeExplod
triggerall = numexplod(50060) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 0
ID = 50060
supermovetime = 999999
pausemovetime = 999999


[state -2,偪傃傒偢偐億僩儗徚嫀]
type = removeExplod
triggerall = numexplod(50061) >= 1
trigger1 =  RoundState != 2
trigger2 = !alive
trigger3 = var(25) = 0
ID = 50061
supermovetime = 999999
pausemovetime = 999999
;----------------------------------------------------------------------------
[State -2, HEAT昞帵(1P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 1
triggerall = numexplod(50300) = 0
trigger1 = var(4) = 1 
anim = 50300
id = 50300
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, HEAT昞帵(1P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 1
triggerall = numexplod(50300) = 0
trigger1 = var(4) = 1 
anim = 50300
id = 50300
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, MAX昞帵(1P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 1
triggerall = numexplod(50310) = 0
trigger1 = var(4) = 2 
anim = 50310
id = 50310
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, MAX昞帵(1P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 1
triggerall = numexplod(50310) = 0
trigger1 = var(4) = 2 
anim = 50310
id = 50310
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, BLOOD HEAT昞帵(1P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 1
triggerall = numexplod(50320) = 0
trigger1 = var(4) = 3 
anim = 50320
id = 50320
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, BLOOD HEAT昞帵(1P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 1
triggerall = numexplod(50320) = 0
trigger1 = var(4) = 3 
anim = 50320
id = 50320
bindtime = -1
removetime = -1
pos = 0,75
postype = left
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, HEAT昞帵(2P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 2
triggerall = numexplod(50300) = 0
trigger1 = var(4) = 1 
anim = 50301
id = 50300
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, HEAT昞帵(2P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 2
triggerall = numexplod(50300) = 0
trigger1 = var(4) = 1 
anim = 50301
id = 50300
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, MAX昞帵(2P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 2
triggerall = numexplod(50310) = 0
trigger1 = var(4) = 2 
anim = 50311
id = 50310
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, MAX昞帵(2P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 2
triggerall = numexplod(50310) = 0
trigger1 = var(4) = 2 
anim = 50311
id = 50310
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, BLOOD HEAT昞帵(2P懁)TYPE1]
type = explod
triggerall = var(6) = 1
triggerall = teamside = 2
triggerall = numexplod(50320) = 0
trigger1 = var(4) = 3 
anim = 50321
id = 50320
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.7,0.7
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2, BLOOD HEAT昞帵(2P懁)TYPE2]
type = explod
triggerall = var(6) = 2
triggerall = teamside = 2
triggerall = numexplod(50320) = 0
trigger1 = var(4) = 3 
anim = 50321
id = 50320
bindtime = -1
removetime = -1
pos = 0,75
postype = right
sprpriority = 1
ownpal = 1
scale = 0.5,0.5
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
ontop = 1


[State -2,HEAT徚嫀]
type = removeexplod
triggerall = numexplod(50300) >= 1
trigger1 = var(4) != 1
id = 50300
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1


[State -2,MAX徚嫀]
type = removeexplod
triggerall = numexplod(50310) >= 1
trigger1 = var(4) != 2
id = 50310
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1


[State -2,BLOOD HEAT徚嫀]
type = removeexplod
triggerall = numexplod(50320) >= 1
trigger1 = var(4) != 3
id = 50320
supermovetime = -1
pausemovetime = -1
ignorehitpause = 1
;----------------------------------------------------------------------------
[State -2,巆憸僿儖僷乕惗惉乮MAX or HEAT乯]
type = helper
triggerall = NumHelper(40000) = 0
triggerall = NumHelper(40010) = 0
triggerall = var(4) = [1,2]
triggerall = var(7) = 1
trigger1 = movetype != H
trigger2 = (stateno = [5000,5150]) || (stateno = [120,155])
trigger2 = movetype = H
trigger3 = stateno = 4011
stateno = 40000
pos = 0,0
name = "zanzou000"
id = 40000
facing = 1
postype = p1
helpertype = normal
keyctrl = 0
ownpal = 1
size.xscale = 1.03
size.yscale = 1.03
pausemovetime = 999999
supermovetime = 999999


[State -2,巆憸僿儖僷乕惗惉乮BLOOD HEAT乯]
type = helper
triggerall = NumHelper(40000) = 0
triggerall = NumHelper(40010) = 0
triggerall = var(4) = 3
triggerall = var(7) = 1
trigger1 = movetype != H
trigger2 = (stateno = [5000,5150]) || (stateno = [120,155])
trigger2 = movetype = H
trigger3 = stateno = 4011
stateno = 40010
pos = 0,0
name = "zanzou001"
id = 40010
facing = 1
postype = p1
helpertype = normal
keyctrl = 0
ownpal = 1
size.xscale = 1.03
size.yscale = 1.03
pausemovetime = 999999
supermovetime = 999999

;----------------------------------------------------------------------------
;僸乕僩娭學娗棟晹暘
[State -2,儅僢僋僗敪摦]
type = varset
triggerall = stateno != [190,199]
trigger1 = power = 3000
trigger1 = var(4) = 0
var(4) = 2
ignorehitpause = 1


[State -2,僷儚乕僙僢僩僼儔僌]
type = varset
trigger1 = power = 0
trigger1 = var(4) = 2
trigger1 = stateno != [190,199]
trigger1 = roundstate = 2
var(24) = 1
ignorehitpause = 1


[State -2,奺庬僸乕僩忬懺夝彍]
type = varset
trigger1 = power = 0
trigger2 = stateno = [190,199]
trigger3 = roundstate != 2
var(4) = 0
ignorehitpause = 1


[State -2,儅僢僋僗夝彍帪僷儚乕夞暅]
type = powerset
trigger1 = var(24) = 1
value = 2000
;ignorehitpause = 1


[State -2,僷儚乕僙僢僩僼儔僌夝彍]
type = varset
trigger1 = var(24) = 1
trigger1 = stateno != [190,199]
trigger1 = roundstate = 2
var(24) = 0
ignorehitpause = 1


[State -2,僸乕僩仌儅僢僋僗偺僷儚乕尭彮]
type = poweradd
triggerall = roundstate = 2
trigger1 = var(4) = [1,2]
value = -2
;ignorehitpause = 1


[State -2,僽儔僢僪僸乕僩忬懺偺僷儚乕尭彮]
type = poweradd
triggerall = roundstate = 2
trigger1 = var(4) = 3
value = -5
;ignorehitpause = 1


[State -2,僸乕僩忬懺偺嵞惗]
type = lifeadd
triggerall = roundstate = 2
trigger1 = var(4) = 1
trigger1 = gametime % 2 = 0
trigger1 = movetype != H
trigger1 = alive
value = 1
;ignorehitpause = 1


[State -2,僽儔僢僪僸乕僩忬懺偺嵞惗]
type = lifeadd
triggerall = roundstate = 2
trigger1 = var(4) = 3
trigger1 = movetype != H
trigger1 = alive
value = 2
;ignorehitpause = 1


[State -2,儅僢僋僗偺巆憸]
type = AfterImage
triggerall = var(7) = 0
trigger1 = power = 3000
trigger1 = var(4) != 3
Time = -1
trans = add
timegap = 1
framegap = 1
length = 20
palbright = 0,0,10
palcontrast = 0,0,255
;palpostbright = 0,0,5
paladd = 0,0,5
palmul = 0.85,0.85,0.85
;ignorehitpause = 1
;Peresistent = 1


[State -2,巆憸徚嫀]
type = AfterImageTime
triggerall = var(4) = 0
trigger1 = movetype = A
trigger1 = stateno !=22000
trigger1 = stateno !=22100 
time = 0
;----------------------------------------------------------------------------
;儔僂儞僪偺僷儚乕帩偪墇偟
[State -2,忬懺敾掕]
type = varset
trigger1 = roundstate = 3
v = 20
value = var(4)
supermovetime = 999999
pausemovetime = 999999



[State -2,曄悢儕僙僢僩]
type = varset
trigger1 = roundstate = 2
v = 20
value = 0


[State -2,僸乕僩&僽儔僢僪僸乕僩忬懺偐傜]
type = powerset
triggerall = roundsexisted >= 1
triggerall = roundstate = 0
trigger1 = var(20) = 1
trigger2 = var(20) = 3
value = 0


[State -2,儅僢僋僗忬懺偐傜]
type = powerset
trigger1 = roundsexisted >= 1
trigger1 = roundstate = 0
trigger1 = var(20) = 2
value = 2000
;----------------------------------------------------------------------------
[state -2,夋柺奜傾僀僐儞昞帵乮捠忢乯]
type = helper
triggerall = numhelper(10100) = 0
triggerall = (screenpos Y > 360) || (screenpos y < -5)
trigger1 = movetype != H
helpertype = normal
name = "gamengai"
ID = 10100
stateno = 10100
keyctrl = 0
size.xscale = 0.35
size.yscale = 0.35
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999


[state -2,夋柺奜傾僀僐儞昞帵乮傗傜傟乯]
type = helper
triggerall = numhelper(10100) = 0
triggerall = (screenpos Y > 360) || (screenpos y < -5)
triggerall = movetype = H
trigger1 = stateno = 5000
trigger2 = stateno = 5001
trigger3 = stateno = 5010
trigger4 = stateno = 5011
trigger5 = stateno = 5020
trigger6 = stateno = 5030
trigger7 = stateno = 5035
trigger8 = stateno = 5040
trigger9 = stateno = 5050
trigger10 = stateno = 5070
trigger11 = stateno = 5071
trigger12 = stateno = 5080
trigger13 = stateno = 5081
trigger14 = stateno = 5100
trigger15 = stateno = 5101
trigger16 = stateno = 5110
trigger17 = stateno = 5120
trigger18 = stateno = 5150
trigger19 = stateno = 5200
trigger20 = stateno = 5201
trigger21 = stateno = 5210
trigger22 = stateno = [0,155]
trigger23 = stateno = [5600,5630]
helpertype = normal
name = "gamengai"
ID = 10100
stateno = 10100
keyctrl = 0
size.xscale = 0.35
size.yscale = 0.35
ignorehitpause = 1
supermovetime = 999999
pausemovetime = 999999
;----------------------------------------------------------------------------
[State -2,嬻拞C偺僄僼僃僋僩嫮惂徚嫀]
type = removeexplod
triggerall = numexplod(425) >= 1
trigger1 = statetype != A 
id = 425
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -2,僗僥乕僩斣崋婰壇]
type = VarSet
triggerall = movetype != H
trigger1 = stateno != 520
trigger1 = stateno != 531
var(31) = Stateno
ignorehitpause = 1
supermovetime = 0
pausemovetime = -1
;---------------------------------------------------------------------------
[State -2,暻寖撍岠壥壒]
type = PlaySnd
trigger1 = P2StateType = A
trigger1 = P2MoveType = H
trigger1 = P2Stateno = 711
value = s0,12
channel = 4
Persistent = 0
;----------------------------------------------------------------------------
[State -2,婾杮懱摦嶌嫋壜夝彍]
type = VarSet
trigger1 = time >= 30
trigger1 = var(19) = 1
var(19) = 0
persistent = 0
ignorehitpause = 1
supermovetime = 0
pausemovetime = -1
;----------------------------------------------------------------------------
[State -2,帪巭傔敾掕儕僙僢僩]
type = VarSet
trigger1 = NumHelper(23000) = 0
trigger1 = NumHelper(23100) = 0
trigger1 = var(21) = 1
var(21) = 0
supermovetime = -1
pausemovetime = -1


[State -2,帪傛巭傑傟]
type = Pause
trigger1 = var(21) = 1
time = 2
movetime = 2
ignorehitpause = 1
persistent = 0
supermovetime = 0
pausemovetime = -1


[State -2,帪巭傔拞偼juggle柍帇]
type = assertspecial
trigger1 = var(21) = 1
flag = nojugglecheck
supermovetime = 0
pausemovetime = -1


[State -2,婾杮懱摦嶌嫋壜]
type = VarSet
trigger1 = 1
var(22) = 0
ignorehitpause = 1


[State -2,帪娫掆巭拞偼柍揋]
type = NotHitBy
trigger1 = var(21) = 1
value = SCA,AA,AT,AP
time = 1
supermovetime = -1
pausemovetime = -1


[State -2,帪巭傔廔椆傊乮嬻拞乯]
type = ChangeState
triggerall = StateType = A
triggerall = movetype = I
triggerall = stateno != [23005,23010]
trigger1 = NumHelper(23000) >= 1
trigger1 = helper(23000),Stateno = 33005 
trigger2 = NumHelper(23100) >= 1 
trigger2 = helper(23100),Stateno = 33005
value = 50
ctrl = 0
supermovetime = -1
pausemovetime = -1


[State -2,帪巭傔廔椆傊乮抧忋乯]
type = ChangeState
triggerall = StateType != A
;triggerall = movetype = I
triggerall = stateno != [23005,23010]
trigger1 = NumHelper(23000) >= 1
trigger1 = helper(23000),Stateno = 33005 
trigger2 = NumHelper(23100) >= 1 
trigger2 = helper(23100),Stateno = 33005
value = 23005
ctrl = 0
supermovetime = -1
pausemovetime = -1
;----------------------------------------------------------------------------
;LA愱梡僼傿僯僢僔儏
[State -2,LA僼傿僯僢僔儏僿儖僷乕]
type = Helper
trigger1 = Stateno = 4202
trigger1 = WinKO
trigger1 = RoundState = 3
trigger1 = numhelper(10013) = 0
stateno = 10013
pos = 0,0
ID = 10013
name = "LA_Finish"
postype = back
helpertype = normal
keyctrl = 0
ownpal = 1
size.xscale = 0.5
size.yscale = 0.5
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1


[State -2,傾僯儊曄峏(LA僩僪儊)]
type = changeanim
;triggerall = time >= 44
trigger1 = Stateno = 4202
trigger1 = WinKO
trigger1 = RoundState = 3
trigger1 = numhelper(10013) >= 1
trigger1 = anim != 2220
value = 2220


;[State -2,僐儞僩儘乕儖]
;type = changestate 
;trigger1 = numhelper(10013) >= 1
;trigger1 = stateno != [180,189]
;trigger1 = stateno != 0
;trigger1 = stateno != 4202
;value = 0
;ctrl = 0

;----------------------------------------------------------------------------
;嘓偝傫偺愒廐梩偺乽廱傪徟偑偡乿偵懳墳
;---------------------------------------------------------------------------
;廱傪徟偑偡丂憡庤梡
[State -2]
Type = LifeAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Akiha_Vermilion"
Trigger1 = Enemy,Var(47) = 1
Value = -5
Kill = 0
ignorehitpause = 1

[State -2]
Type = PowerAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Akiha_Vermilion"
Trigger1 = Enemy,Var(47) = 1
Value = -26
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -2,僗僞儞僪儌乕僪僈乕僪帪僷儚乕憹壛]
type = PowerAdd
triggerall = alive
triggerall = time = 0
triggerall = var(15) = 20000
triggerall = var(4) != [1,3]
trigger1 = stateno = 150
trigger2 = stateno = 152
trigger3 = stateno = 154
value = 50
ignorehitpause = 1
;---------------------------------------------------------------------------

;僨僶僢僌巟墖婰弎廤

;僨僶僢僌儌乕僪偵敀偄暥帤偺昞帵傪壛偊傞
[State -2, 僨僶僢僌昞帵]
type = DisplayToClipboard
trigger1 = 1
text = "S1:%d,S2:%d,S3:%d,AI=%d,Defence=%f"
params = var(15),var(2),var(3),var(0),fvar(1);*0.85
ignorehitpause = 1

;昞帵傪墶偵壛偊傞
[State -2, 僨僶僢僌昞帵偦偺2]
type = AppendToClipboard
trigger1 = 1
text = "var(18)=%d,time=%d,Pos X=%d,Y=%d"
params = var(18),var(21),ceil(Pos X),floor(Pos Y)
ignorehitpause = 1

;昞帵傪壓偵壛偊傞
[State -2, 僨僶僢僌昞帵偦偺3]
type = AppendToClipboard
trigger1 = 1
text = "\nDist X=%d,Y=%d, Vel X=%d/10,Y=%d/10 : Power=%d"
params = floor(P2BodyDist X),ceil(P2BodyDist Y),ceil(Vel X*10),floor(Vel Y*10),Power
ignorehitpause = 1


;---------------------------------------------------------------------------
;AI偺峴摦寛掕梡
[state -2,AI偺峴摦寛掕梡]
type = varrandom
trigger1 = time = 1
trigger2 = movetype = I
trigger2 = GameTime % 60= 1
v = 1
range =0,99
ignorehitpause = 1


;---------------------------------------------------------------------------------
[Statedef -3];忢帪娔帇僗僥乕僩(p2stateno側偳偱憡庤偵峴摦傪惂屼偝傟偨帪偼幚峴偟側偄)
;---------------------------------------------------------------------------------

[State -3,AI敪摦]
type = VarSet
triggerall = (var(0) = 0 && var(5) = [0,1])
triggerall = RoundState != 3
trigger1 = command = "AI0"
trigger2 = command = "AI1"
trigger3 = command = "AI2"
trigger4 = command = "AI3"
trigger5 = command = "AI4"
trigger6 = command = "AI5"
trigger7 = command = "AI6"
trigger8 = command = "AI7"
trigger9 = command = "AI8"
trigger10 = command = "AI9"
trigger11 = command = "AI10"
trigger12 = command = "AI11"
trigger13 = command = "AI12"
trigger14 = command = "AI13"
trigger15 = command = "AI14"
trigger16 = command = "AI15"
trigger17 = command = "AI16"
trigger18 = command = "AI17"
trigger19 = command = "AI18"
trigger20 = command = "AI19"
trigger21 = command = "AI20"
trigger22 = command = "AI21"
trigger23 = command = "AI22"
trigger24 = command = "AI23"
trigger25 = command = "AI24"
trigger26 = command = "AI25"
trigger27 = command = "AI26"
trigger28 = command = "AI27"
trigger29 = command = "AI28"
trigger30 = command = "AI29"
trigger31 = command = "AI30"
trigger32 = command = "AI31"
trigger33 = command = "AI32"
trigger34 = command = "AI33"
trigger35 = command = "AI34"
trigger36 = command = "AI35"
trigger37 = command = "AI36"
trigger38 = command = "AI37"
trigger39 = command = "AI38"
trigger40 = command = "AI39"
trigger41 = command = "AI40"
trigger42 = command = "AI41"
trigger43 = command = "AI42"
trigger44 = command = "AI43"
trigger45 = command = "AI44"
trigger46 = command = "AI45"
trigger47 = command = "AI46"
trigger48 = command = "AI47"
trigger49 = command = "AI48"
trigger50 = command = "AI49"
trigger51 = command = "AI50"
trigger52 = command = "AI51"
trigger53 = command = "AI52"
trigger54 = command = "AI53"
trigger55 = command = "AI54"
trigger56 = command = "AI55"
trigger57 = command = "AI56"
trigger58 = command = "AI57"
trigger59 = command = "AI58"
trigger60 = command = "AI59"
trigger61 = command = "AI60"
var(0) = var(5)
ignorehitpause = 1



[State -3,儌乕僪愗懼]
type = null;varset
triggerall = var(15) = 0
triggerall = numhelper(1600) = 0
triggerall = numhelper(1610) = 0
triggerall = command = "start"
trigger1 = ctrl
v = 25
value = 1 - (var(25)=1)


;偙傟偼僕儍儞僾屻偲僶僢僋僗僥僢僾屻偵拝抧壒傪柭傜偡僐儞僩儘乕儔偱偡丅
;[State -3, 壒傪柭傜偡]
;type = PlaySnd
;triggerall = Time = 1
;trigger1 = stateno = 52
;trigger2 = stateno = 106
;value = S0,20

[State -3, 嬻拞僕儍儞僾夞悢儕僙僢僩]
type = VarSet
trigger1 = statetype != A
trigger1 = var(3) = 0
v = 13
value = 1


[State -3, 嬻拞僕儍儞僾夞悢儕僙僢僩]
type = VarSet
trigger1 = statetype != A
trigger1 = var(3) != 0
v = 13
value = 2


[State -3, 嬻拞僟僢僔儏夞悢儕僙僢僩]
type = VarSet
trigger1 = statetype != A
trigger1 = var(3) = 0
v = 14
value = 1


[State -3, 嬻拞僟僢僔儏夞悢儕僙僢僩]
type = VarSet
trigger1 = statetype != A
trigger1 = var(3) != 0
v = 14
value = 2


[State -3,僗僞儞僪僋儔僢僔儏]
type = ChangeState
triggerall = alive
triggerall = var(2) <= 0
triggerall = var(3) = [1,2]
trigger1 = stateno = [5000,5150]
trigger2 = stateno = [120,155]
Value = 5600
ignorehitpause = 1
supermovetime = -1
pausemovetime = -1


[State -3, 僋儔僢僔儏偟偨傜堦帪揑偵僗僞儞僪巊梡晄壜擻]
type = VarSet
triggerall = alive
trigger1 = stateno = 5600
var(3) = 3


[State -3, 僗僞儞僪傪巊梡嫋壜]
type = VarSet
triggerall = alive
triggerall = var(3) = 3
trigger1 = stateno = 0
var(3) = 0
;--------------------------------------------------------------------------------------
;--------------
;AILv.1(嬞媫)
;--------------

[State -3, 嬻拞庴恎]
type = ChangeState
value = 5210
triggerall = var(0) != 0
triggerall = var(5) != 0
triggerall = roundstate = 2
trigger1 = stateno = 5050 || stateno = 5060
trigger1 = var(3) = 0
trigger1 = var(15) = 0
trigger1 = CanRecover
trigger1 = alive
trigger1 = var(5) != 0


[State -3, 嫮惂奐曻(僗僞儞僪)]
type = ChangeState
value = 20550
triggerall = alive
triggerall = statetype != A
triggerall = ctrl
triggerall = roundstate = 2
triggerall = var(0) != 0
triggerall = var(5) != 0
triggerall = var(15) = 20000
triggerall = ceil((100*life) / const(data.life)) = [0,35]
trigger1 = var(4) = 0
trigger1 = power >= 1000
trigger2 = var(4) = 2


[State -3, 嫮惂奐曻(杮懱)]
type = ChangeState
value = 550
triggerall = alive
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = ctrl
triggerall = var(0) != 0
triggerall = var(5) != 0
triggerall = var(15) = 0
triggerall = ceil((100*life) / const(data.life)) = [0,35]
trigger1 = var(4) = 0
trigger1 = power >= 1000
trigger2 = var(4) = 2


;--------------------------------------------------------------------------------------
;--------------
;AILv.1
;抧忋
;嬤嫍棧
;峌寕儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------
;棫偪A
[State -3,棫偪A]
type = changestate
value = 200
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = ctrl
trigger1 = var(1) = [0,40]
trigger2 = stateno = 200
trigger2 = var(23) = 2
trigger2 = var(1) = [0,20]
trigger2 = time >= 4


;棫偪B
[State -3,棫偪B]
type = changestate
value = 210
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = (var(10) != 1) && (var(10) != 3) && (var(10) != 5) && (var(10) != 7) && (var(10) != 9)
triggerall = (var(10) != 11) && (var(10) != 13) && (var(10) != 15)
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 200
trigger1 = var(23) = 1


;棫偪C
[State -3,棫偪C]
type = changestate
value = 240
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = (var(10) != 8) && (var(10) != 9) && (var(10) != [11,15])
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 210
trigger1 = var(23) != 0
trigger2 = stateno = 320
trigger2 = var(23) != 0
trigger2 = var(1) = [0,4]


;偟傖偑傒A
[State -3,偟傖偑傒A]
type = changestate
value = 300
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = ctrl
trigger1 = var(1) = [41,80]
trigger2 = stateno = 300
trigger2 = var(23) = 2 
trigger2 = var(1) = [0,70]
trigger2 = time >= 4
trigger3 = stateno = 200 || stateno = 210
trigger3 = var(23) = 2 
trigger3 = var(1) = [21,70]


;偟傖偑傒B
[State -3,偟傖偑傒B]
type = changestate
value = 310
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = (var(11) != 1) && (var(11) != 3)
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 300
trigger1 = var(23) != 0


;偟傖偑傒C
[State -3,偟傖偑傒C]
type = changestate
value = 320
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = (var(11) != 2) && (var(11) != 3)
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 310
trigger1 = var(23) != 0


;寉偡偓傞両
[State -1,寉偡偓傞両]
type = ChangeState
value = 230
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = var(10) != [4,7]
triggerall = var(10) != [12,15]
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 320
trigger1 = var(23) = 1
trigger1 = var(1) = [41,100]


;僕儍儞僾僉儍儞僙儖
[State -3,僕儍儞僾僉儍儞僙儖]
type = ChangeState
value = 41
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 230
trigger1 = var(23) = 1


;僥儔乕僯儏乕僗乮儔僀乯B
[State -3,僥儔乕僯儏乕僗乮儔僀乯B]
type = ChangeState
value = 1210
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = power >= 1000 || var(4) != 0
trigger1 = stateno = 240
trigger1 = var(23) = 2
trigger1 = var(1) = [0,70]
trigger2 = power < 1000 && var(4) = 0
trigger2 = stateno = 240
trigger2 = var(23) = 2
trigger2 = var(1) = [0,95]


;AD僋儖乕僄儖丒僽儔僢僪
[State -3,AD僋儖乕僄儖僽儔僢僪]
type = ChangeState
value = 2000
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 30
triggerall = p2bodydist y >= -100
triggerall = var(4) = 1
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 240
trigger1 = HitCount >= 3 || var(23) = 2  >= 3
trigger1 = var(1) = [71,99]


;AAD僋儖乕僄儖丒僽儔僢僪
[State -1,AAD僋儖乕僄儖僽儔僢僪]
type = ChangeState
value = 2100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(4) = 3
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 240
trigger1 = HitCount >= 3 || var(23) = 2  >= 3
trigger1 = var(1) = [71,99]


;僥儔乕僯儏乕僗乮儔僀乯EX
[State -3,僥儔乕僯儏乕僗乮儔僀乯EX]
type = ChangeState
value = 1220
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = (power >= 1000 && var(4) = 0) || var(4) = 2
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 240
trigger1 = HitCount >= 3 || var(23) = 2
trigger1 = var(1) = [71,99]


;抧忋搳偘
[State -3,抧忋搳偘]
type = changestate
value = 260
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 30
triggerall = p2bodydist y >= -100
triggerall = power >= 1000 || var(4) != 0
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = ctrl
trigger1 = var(1) = [51,80]
trigger1 = enemynear,statetype = C


[State -3,僗僞儞僪儌乕僪ON]
type = ChangeState
value = 2 
triggerall = var(0) = 1
triggerall = var(2) >= 50
triggerall = var(3) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = alive
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = alive
triggerall = Ctrl
trigger1 = var(1) = [0,29]
trigger1 = p2statetype = L


;--------------
;AILv.1
;抧忋
;拞嫍棧
;峌寕儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------


;棫偪C
[State -3,棫偪C]
type = changestate
value = 240
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = (var(10) != 8) && (var(10) != 9) && (var(10) != [11,15])
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 210
trigger1 = var(23) != 0
trigger2 = stateno = 320
trigger2 = var(23) != 0


;偟傖偑傒僄乕僥儔僀僩
[State -1, 僄乕僥儔僀僩]
type = ChangeState
value = 330
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = enemynear,statetype != A
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [0,9]
trigger1 = stateno != 100
trigger2 = Ctrl
trigger2 = var(1) = [0,5]
trigger2 = stateno = 100



;僥儔乕僯儏乕僗乮儔僀乯B
[State -3,僥儔乕僯儏乕僗乮儔僀乯B]
type = ChangeState
value = 1210
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 240
trigger1 = var(23) = 2
trigger1 = var(1) = [0,69]
trigger2 = Ctrl
trigger2 = var(1) = [10,29]
trigger2 = stateno != 100
trigger3 = Ctrl
trigger3 = var(1) = [6,15]
trigger3 = stateno = 100


;僥儔乕僯儏乕僗乮儔僀乯EX
[State -3,僥儔乕僯儏乕僗乮儔僀乯EX]
type = ChangeState
value = 1220
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = (power >= 1000 && var(4) = 0) || var(4) = 2
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = stateno = 240
trigger1 = (AnimElemTime(6) = 0 && var(23) = 1) || var(23) = 2
trigger1 = var(1) = [70,99]


;儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯A
[State -3,儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯A]
type = ChangeState
value = 1300
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = numhelper(1300) = 0
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [30,49]
trigger1 = stateno != 100
trigger2 = Ctrl
trigger2 = var(1) = [16,30]
trigger2 = stateno = 100
trigger3 = stateno = 1310
trigger3 = AnimTime = 0


;儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B
[State -3,儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B]
type = ChangeState
value = 1310
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = numhelper(1310) = 0
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [50,59]
trigger1 = stateno != 100
trigger2 = Ctrl
trigger2 = var(1) = [31,36]
trigger2 = stateno = 100


;儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅
[State -3,儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅]
type = ChangeState
value = 1340
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = numhelper(21110) = 0
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = Ctrl
trigger1 = var(1) = [60,69]
trigger1 = stateno != 100
trigger2 = var(1) = [31,36]
trigger2 = stateno = 100


;僟僢僔儏
[State -3,僟僢僔儏]
type = ChangeState
value = 100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [70,79]
trigger1 = stateno != [100,101]


[State -3,僗僞儞僪儌乕僪ON]
type = ChangeState
value = 2 
triggerall = var(0) = 1
triggerall = var(2) >= 50
triggerall = var(3) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = alive
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = alive
triggerall = Ctrl
trigger1 = var(1) = [80,85]
trigger1 = stateno != 100
trigger1 = p2statetype != L
trigger2 = var(1) = [0,29]
trigger2 = stateno != 100
trigger2 = p2statetype = L


;--------------
;AILv.1
;抧忋
;墦嫍棧
;峌寕儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------


;儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅
[State -3,儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅]
type = ChangeState
value = 1340
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = numhelper(21110) = 0
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [0,20]


;僟僢僔儏
[State -3,僟僢僔儏]
type = ChangeState
value = 100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = stateno != [100,101]
triggerall = Ctrl
trigger1 = numhelper(21110) = 0
trigger1 = var(1) = [21,40]
trigger2 = numhelper(21110) > 0
trigger2 = var(1) = [0,10]


[State -3,僗僞儞僪儌乕僪ON]
type = ChangeState
value = 2 
triggerall = var(0) = 1
triggerall = var(2) >= 50
triggerall = var(3) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = alive
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(1) = [41,60]
trigger1 = p2statetype != L
trigger1 = numhelper(21110) = 0
trigger2 = var(1) = [11,20]
trigger2 = p2statetype != L
trigger2 = numhelper(21110) > 0
trigger3 = var(1) = [0,40]
trigger3 = p2statetype = L



;僇僢僥傿儞僌僔儞僋B
[State -3,僇僢僥傿儞僌僔儞僋B]
type = changestate
value = 1410
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = ctrl
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = var(1) = [61,80]
trigger1 = numhelper(21110) = 0
trigger2 = var(1) = [41,70]
trigger2 = numhelper(21110) > 0


;僶僢僋僗僥僢僾
[State -3, 僶僢僋僗僥僢僾]
type = changestate
value = 105
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [105,107]
triggerall = enemynear,movetype != A
triggerall = statetype != A
triggerall = ctrl
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
trigger1 = var(1) = [81,99]
trigger1 = numhelper(21110) > 0
trigger2 = var(1) = [71,80]
trigger2 = numhelper(21110) > 0



;--------------
;AILv.1
;抧忋
;挻墦嫍棧
;峌寕儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------


[State -1,僗乕僷乕僕儍儞僾]
type = ChangeState
value = 119
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = ctrl
trigger1 = var(1) = [0,20]


;僇僢僥傿儞僌僔儞僋B
[State -3,僇僢僥傿儞僌僔儞僋B]
type = changestate
value = 1420
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = ctrl
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = var(1) = [21,30]


;僇僢僥傿儞僌僔儞僋C
[State -3,僇僢僥傿儞僌僔儞僋C]
type = changestate
value = 1420
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = ctrl
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = var(1) = [31,50]


[State -3,僗僞儞僪儌乕僪ON]
type = ChangeState
value = 2 
triggerall = var(0) = 1
triggerall = var(2) >= 50
triggerall = var(3) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = alive
triggerall = enemynear,movetype != A
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(1) = [51,80]


;儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌
[State -3,儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌]
type = ChangeState
value = 1350
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = numhelper(21120) = 0
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = Ctrl
trigger1 = var(1) = [81,90]


;--------------
;AILv.1
;嬻拞
;嬤嫍棧
;峌寕儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------
;嬻拞A
[State -3,嬻拞A]
type = changestate
value = 400
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = Prevstateno != 41 && Prevstateno != 46
trigger1 = ctrl
trigger1 = var(1) = [0,20]
trigger1 = p2statetype = A
trigger2 = ctrl
trigger2 = var(1) = [0,20]
trigger2 = p2statetype != A


;嬻拞B
[State -3,嬻拞B]
type = changestate
value = 410
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = (var(12) != 2) && (var(12) != 3) && (var(12) != 5) && (var(12) != 6) && (var(12) != 7)
triggerall = (var(12) != 10) && (var(12) != 11) && (var(12) != 14) && (var(12) != 15) 
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = Prevstateno != 41 && Prevstateno != 46
trigger1 = ctrl
trigger1 = var(1) = [21,30]
trigger1 = p2statetype != A



;嬻拞C
[State -3,嬻拞C]
type = changestate
value = 420
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = (var(12) != 2) && (var(12) != 3) && (var(12) != 5) && (var(12) != 6) && (var(12) != 7)
triggerall = (var(12) != 10) && (var(12) != 11) && (var(12) != 14) && (var(12) != 15) 
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = ctrl
trigger1 = var(1) = [31,40]
trigger1 = p2statetype != A
trigger2 = Prevstateno != 41 && Prevstateno != 46
trigger2 = var(1) = [20,50]
trigger2 = p2statetype = A
trigger2 = time >= 3
trigger3 = Prevstateno = 41 || Prevstateno = 46
trigger3 = p2statetype = A
trigger3 =  enemynear,movetype = H
trigger3 = time >= 3


;僼儕乕僋僗僠儍儞僱儖乮僲僀僪乯B
[State -3,僼儕乕僋僗僠儍儞僱儖乮僲僀僪乯B]
type = ChangeState
value = 1510
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
;triggerall = Power < 1000 && var(4) != [1,3]
trigger1 = stateno = 400
trigger1 = var(23) != 0
trigger1 = p2statetype != A
trigger2 = stateno = 410
trigger2 = var(23) != 0
trigger2 = p2statetype != A
trigger3 = stateno = 420
trigger3 = var(23) != 0
trigger3 = Power < 1000 && var(4) != [1,3]
trigger3 = var(13) = 0
trigger4 = stateno = 420
trigger4 = var(23) = 2
trigger4 = Power >= 1000 || var(4) = [1,3]
trigger4 = var(13) = 0



;僼儕乕僋僗僠儍儞僱儖乮僲僀僪乯EX
[State -3,僼儕乕僋僗僠儍儞僱儖乮僲僀僪乯EX]
type = ChangeState
value = 1520
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = Power >= 1000 || var(4) = [1,3]
trigger1 = stateno = 420
trigger1 = var(23) = 1
trigger1 = var(13) = 0


;嬻拞僕儍儞僾僉儍儞僙儖
[State -3,嬻拞僕儍儞僾僉儍儞僙儖]
type = ChangeState
value = 46
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype = A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y = [-50,50]
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = var(13) >= 1
trigger1 = stateno = 420
trigger1 = var(23) != 0


;--------------
;AILv.1
;抧忋
;嬤嫍棧
;杊屼儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = enemynear,movetype = A
triggerall = ctrl
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = p2bodydist X <= 50
trigger1 = p2bodydist y >= -100
trigger1 = var(1) = [0,80]
trigger1 = enemynear,hitdefattr = SCA,AA
trigger2 = var(1) = [0,80]
trigger2 = enemy,numhelper > 0 || enemy,numproj > 0 || inguarddist
trigger2 = enemynear,hitdefattr = SCA,AP


;僶僢僋僗僥僢僾
[State -3, 僶僢僋僗僥僢僾]
type = changestate
value = 105
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [105,107]
triggerall = enemynear,movetype = A
triggerall = statetype != A
triggerall = ctrl
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = p2bodydist X <= 50
triggerall = p2bodydist y >= -100
trigger1 = var(1) = [81,99]
trigger1 = enemynear,hitdefattr = SCA,AA
trigger2 = var(1) = [46,90]
trigger2 = enemynear,hitdefattr = SCA,AT


;僇僢僥傿儞僌僔儞僋A
[State -3,僇僢僥傿儞僌僔儞僋A]
type = changestate
value = 1400
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = ctrl
triggerall = p2bodydist X = [0,50]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
trigger1 = var(1) = [0,45]
trigger1 = enemynear,hitdefattr = SCA,AT


;--------------
;AILv.1
;抧忋
;拞乣墦嫍棧
;杊屼儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = enemynear,movetype = A
triggerall = ctrl
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = inguarddist
trigger1 = p2bodydist X >= 51
trigger1 = p2bodydist y >= -100
trigger1 = var(1) = [0,80]
trigger1 = enemynear,hitdefattr = SCA,AA,AP,AT


;僇僢僥傿儞僌僔儞僋C
[State -3,僇僢僥傿儞僌僔儞僋C]
type = changestate
value = 1420
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = ctrl
triggerall = p2bodydist X >= 51
triggerall = p2bodydist y >= -100
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = inguarddist
trigger1 = var(1) = [81,99]
trigger1 = enemynear,hitdefattr = SCA,AA,AP,AT


;--------------
;AILv.1
;嬻拞
;慡嫍棧
;杊屼儌乕僪
;杮懱儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = statetype = A
triggerall = enemynear,movetype = A
triggerall = ctrl
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = inguarddist
triggerall = enemynear,hitdefattr = SCA,AA,AP,AT
trigger1 = var(1) = [0,83]


;--------------
;AILv.1
;抧忋
;嬤嫍棧
;峌寕儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------


;僗僞儞僪棫偪A
[State -3,僗僞儞僪棫偪A]
type = changestate
value = 20200
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = ctrl
trigger1 = var(1) = [0,20]
trigger2 = stateno = 20200
trigger2 = var(23) = 2 
trigger2 = var(1) = [0,10]


;僗僞儞僪棫偪B
[State -3, 僗僞儞僪棫偪B]
type = ChangeState
value = 20210
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = (var(10) != 1) && (var(10) != 3) && (var(10) != 5) && (var(10) != 7) && (var(10) != 9)
triggerall = (var(10) != 11) && (var(10) != 13) && (var(10) != 15)
trigger1 = stateno = 20200
trigger1 = var(23) != 0
trigger1 = var(1) = [11,40]


;僗僞儞僪棫偪B捛寕
[State -3, 僗僞儞僪棫偪B捛寕]
type = null;ChangeState
value = 20211
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = stateno = 20210
trigger1 = var(23) != 0
trigger1 = var(1) = [0,50]


;僗僞儞僪棫偪C
[State -3, 僗僞儞僪棫偪C]
type = ChangeState
value = 20220
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = (var(10) != 2) && (var(10) != 3) && (var(10) != 5) && (var(10) != 7) && (var(10) != 9)
triggerall = (var(10) != 11) && (var(10) != 13) && (var(10) != 15)
trigger1 = enemynear,movetype != A
trigger1 = stateno = 20210
trigger1 = var(23) != 0
trigger1 = var(1) = [0,100]
trigger2 = PrevStateno = 21301


;僗僞儞僪偟傖偑傒A
[State -3,僗僞儞僪偟傖偑傒A]
type = changestate
value = 20300
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = ctrl
trigger1 = var(1) = [20,60]
trigger2 = stateno = 20200
trigger2 = var(23) != 0
trigger2 = var(1) = [41,90]


;僗僞儞僪偟傖偑傒B
[State -3,僗僞儞僪偟傖偑傒B]
type = changestate
value = 20310
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = stateno = 20300
trigger1 = var(23) != 0
trigger1 = var(1) = [0,80]


;僗僞儞僪偟傖偑傒C
[State -3,僗僞儞僪偟傖偑傒C]
type = changestate
value = 20320
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = ctrl
trigger1 = var(1) = [61,100]
trigger1 = var(2) >= 50
trigger2 = stateno = 20310
trigger2 = var(23) != 0
trigger2 = AnimElemTime(9) >= 0


;僗僞儞僪儌乕僪OFF
[State -3,僗僞儞僪儌乕僪OFF]
type = ChangeState
value = 610
triggerall = var(0) = 1
triggerall = var(3) = 2
triggerall = var(15) = 20000
triggerall = var(21) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(1) = [61,100]
trigger1 = var(2) < 50


;僕儍儞僾僉儍儞僙儖
[State -3,僕儍儞僾僉儍儞僙儖]
type = ChangeState
value = 41
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = stateno = 20211
trigger1 = var(23) = 1


;慚忊丒敧揰徴B
[State -3,慚忊丒敧揰徴B]
type = ChangeState
value = 21010
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = Power < 1000 && var(4) != [1,3]
trigger1 = stateno = 20230
trigger1 = var(23) != 0
trigger1 = var(1) = [0,80]
trigger2 = Power >= 1000 || var(4) = [1,3]
trigger2 = stateno = 20230
trigger2 = var(23) = 2
trigger2 = var(1) = [0,70]


;慚忊丒敧揰徴EX
[State -3,慚忊丒敧揰徴EX]
type = ChangeState
value = 21020
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = Power >= 1000 || var(4) = [1,3]
trigger1 = stateno = 20230
trigger1 = var(23) != 0
trigger1 = var(1) = [0,40]
trigger2 = stateno = 20320
trigger2 = var(23) = 1
trigger2 = var(1) = [0,40]


;愗傝嶥偦偺偄偪乮戝愗傝乯EX
[State -3,愗傝嶥偦偺偄偪乮戝愗傝乯EX]
type = ChangeState
value = 21220
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X <= 40
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = Power >= 1000 || var(4) = [1,3]
trigger1 = stateno = 20230
trigger1 = var(23) = 1
trigger1 = var(1) = [41,100]
;--------------
;AILv.1
;抧忋
;拞嫍棧
;峌寕儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------


;僗僞儞僪棫偪C
[State -3, 僗僞儞僪棫偪C]
type = ChangeState
value = 20220
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = (var(10) != 2) && (var(10) != 3) && (var(10) != 5) && (var(10) != 7) && (var(10) != 9)
triggerall = (var(10) != 11) && (var(10) != 13) && (var(10) != 15)
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = stateno = 20320
trigger1 = var(23) != 0
trigger2 = PrevStateno = 21301


[State -3,僗僞儞僪偟傖偑傒C]
type = changestate
value = 20320
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = var(2) >= 50
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = var(2) >= 50
trigger1 = enemynear,movetype != A
trigger1 = ctrl
trigger1 = var(1) = [0,60]
;trigger2 = PrevStateno = 21301


[State -3,慚忊丒敧揰徴B]
type = ChangeState
value = 21010
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
trigger1 = Power < 1000 && var(4) != [1,3]
trigger1 = stateno = 20230
trigger1 = var(23) != 0
trigger2 = Power >= 1000 || var(4) = [1,3]
trigger2 = stateno = 20230
trigger2 = var(23) = 2
trigger2 = var(1) = [0,50]


;慚忊丒敧揰徴EX
[State -3,慚忊丒敧揰徴EX]
type = ChangeState
value = 21020
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = Power >= 1000 || var(4) = [1,3]
trigger1 = stateno = 20230
trigger1 = var(23) = 1


;僟僢僔儏
[State -3,僟僢僔儏]
type = ChangeState
value = 100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = var(2) >= 50
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = Ctrl
trigger1 = var(1) = [61,80]
trigger1 = var(2) >= 50


;僶僢僋僗僥僢僾
[State -3, 僶僢僋僗僥僢僾]
type = changestate
value = 105
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [105,107]
triggerall = enemynear,movetype != A
triggerall = statetype != A
triggerall = var(2) >= 50
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = ctrl
trigger1 = ctrl
trigger1 = var(1) = [81,90]
trigger1 = var(2) >= 50


;僗僞儞僪儌乕僪OFF
[State -3,僗僞儞僪儌乕僪OFF]
type = ChangeState
value = 610
triggerall = var(0) = 1
triggerall = var(3) = 2
triggerall = var(15) = 20000
triggerall = var(21) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [41,100]
triggerall = p2bodydist y >= -100
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(2) < 50



;--------------
;AILv.1
;抧忋
;墦嫍棧
;峌寕儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------


;僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅
[State -3,僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯B丒娤楅]
type = ChangeState
value = 21140
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = ctrl
triggerall = var(2) >= 50
triggerall = numhelper(21110) = 0
triggerall = (numhelper(21120) + numhelper(1320)) < 1
trigger1 = var(1) = [0,20]


;僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C
[State -3,僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C]
type = ChangeState
value = 21120
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = ctrl
triggerall = var(2) >= 50
triggerall = numhelper(1320) = 0
triggerall = (numhelper(21110) + numhelper(21120)) < 1
trigger1 = var(1) = [21,40]


;僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌
[State -3,僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌]
type = ChangeState
value = 21150
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = ctrl
triggerall = var(2) >= 50
triggerall = numhelper(21120) = 0
triggerall = (numhelper(1320) + numhelper(21110)) < 1
trigger1 = var(1) = [41,60]


;AD17暘妱
[State -1,AD17暘妱]
type = ChangeState
value = 22000
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = var(4) = 2
triggerall = stateno != [100,101]
triggerall = ctrl
triggerall = var(2) >= 50
trigger1 = var(1) = [0,10]



;僟僢僔儏
[State -3,僟僢僔儏]
type = ChangeState
value = 100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(2) >= 50
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = Ctrl
trigger1 = (numhelper(1300) + numhelper(21110) + numhelper(21120)) < 1
trigger1 = var(1) = [61,90]
trigger2 = (numhelper(1300) + numhelper(21110) + numhelper(21120)) >= 1
trigger2 = var(1) = [11,50]


;僶僢僋僗僥僢僾
[State -3, 僶僢僋僗僥僢僾]
type = changestate
value = 105
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [105,107]
triggerall = enemynear,movetype != A
triggerall = statetype != A
triggerall = var(2) >= 50
triggerall = var(15) = 0
triggerall = var(3) = 0
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = ctrl
trigger1 = (numhelper(1300) + numhelper(21110) + numhelper(21120)) < 1
trigger1 = var(1) = [91,95]
trigger2 = (numhelper(1300) + numhelper(21110) + numhelper(21120)) >= 1
trigger2 = var(1) = [51,70]


;僗僞儞僪儌乕僪OFF
[State -3,僗僞儞僪儌乕僪OFF]
type = ChangeState
value = 610
triggerall = var(0) = 1
triggerall = var(3) = 2
triggerall = var(15) = 20000
triggerall = var(21) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(2) < 50


;--------------
;AILv.1
;抧忋
;挻墦嫍棧
;峌寕儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------
;僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌
[State -3,僗僞儞僪儗僾儕僇儞僩僐儞僟僋僞乕乮僆僔儕僗乯C丒楈柌]
type = ChangeState
value = 21150
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = ctrl
triggerall = var(2) >= 50
triggerall = numhelper(21120) = 0
trigger1 = var(1) = [0,20]


;僟僢僔儏
[State -3,僟僢僔儏]
type = ChangeState
value = 100
triggerall = roundstate = 2
triggerall = var(0) = 1
triggerall = statetype != A
triggerall = alive
triggerall = p2statetype != L
triggerall = enemynear,movetype != A
triggerall = p2bodydist X = [101,160]
triggerall = p2bodydist y >= -100
triggerall = var(2) >= 50
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = stateno != [100,101]
triggerall = Ctrl
trigger1 = numhelper(21120) = 0
trigger1 = var(1) = [21,70]
trigger2 = numhelper(21120) > 0
trigger2 = var(1) = [0,60]


;僗僞儞僪儌乕僪OFF
[State -3,僗僞儞僪儌乕僪OFF]
type = ChangeState
value = 610
triggerall = var(0) = 1
triggerall = var(3) = 2
triggerall = var(15) = 20000
triggerall = var(21) = 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,movetype != A
triggerall = p2bodydist X >= 161
triggerall = p2bodydist y >= -100
triggerall = alive
triggerall = stateno != 100
triggerall = Ctrl
trigger1 = var(2) < 50





;--------------
;AILv.1
;抧忋
;嬤嫍棧
;杊屼儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = enemynear,movetype = A
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = PrevStateno != 21301
triggerall = ctrl
trigger1 = p2bodydist X <= 50
trigger1 = p2bodydist y >= -100
trigger1 = var(1) = [0,60]
trigger1 = enemynear,hitdefattr = SCA,AA
trigger1 = inguarddist
trigger2 = var(1) = [0,60]
trigger2 = enemy,numhelper > 0 || enemy,numproj > 0 || inguarddist
trigger2 = enemynear,hitdefattr = SCA,AP


;僶僢僋僗僥僢僾
[State -3, 僶僢僋僗僥僢僾]
type = changestate
value = 105
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [105,107]
triggerall = enemynear,movetype = A
triggerall = statetype != A
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = p2bodydist X <= 50
triggerall = p2bodydist y >= -100
triggerall = PrevStateno != 21301
triggerall = ctrl
trigger1 = var(1) = [81,99]
trigger1 = enemynear,hitdefattr = SCA,AA
trigger2 = var(1) = [46,90]
trigger2 = enemynear,hitdefattr = SCA,AT


;嫲晐偺曅椮
[State -3,嫲晐偺曅椮]
type = changestate
value = 21300
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = PrevStateno != 21301
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = ctrl
trigger1 = p2bodydist X <= 50
trigger1 = p2bodydist y >= -100
trigger1 = var(1) = [0,45]
trigger1 = enemynear,hitdefattr = SCA,AT
trigger2 = p2bodydist X <= 50
trigger2 = p2bodydist y >= -100
trigger2 = var(1) = [61,80]
trigger2 = enemynear,hitdefattr = SCA,AA
trigger3 = var(1) = [61,80]
trigger3 = enemy,numhelper > 0 || enemy,numproj > 0 || inguarddist
trigger3 = enemynear,hitdefattr = SCA,AP


;傾僪僶儞僔儞僌僈乕僪
[State -3,傾僪僶儞僔儞僌僈乕僪]
type = ChangeState
value = 160
triggerall = var(0) = 1
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = var(21) = 0
triggerall = alive
triggerall = RoundState = 2
triggerall = p2bodydist X <= 50
triggerall = p2bodydist y >= -100
trigger1 = stateno = [150,155]
;trigger1 = 
trigger1 = var(1) = [0,45]


;--------------
;AILv.1
;抧忋
;拞乣墦嫍棧
;杊屼儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = PrevStateno != 21301
triggerall = inguarddist
triggerall = p2bodydist X >= 51
triggerall = p2bodydist y >= -100
triggerall = enemynear,hitdefattr = SCA,AA,AP,AT
triggerall = ctrl
trigger1 = var(1) = [0,60]


;嫲晐偺曅椮
[State -3,嫲晐偺曅椮]
type = changestate
value = 21300
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = PrevStateno != 21301
triggerall = inguarddist
triggerall = p2bodydist X >= 51
triggerall = p2bodydist y >= -100
triggerall = enemynear,hitdefattr = SCA,AA,AP,AT
triggerall = ctrl
trigger1 = var(1) = [61,80]


;--------------
;AILv.1
;嬻拞
;慡嫍棧
;杊屼儌乕僪
;僗僞儞僪儌乕僪
;僎乕僕柍娭學
;--------------

;僈乕僪
[State -3,僈乕僪]
type = changestate
value = 120
triggerall = var(0) = 1
triggerall = roundstate = 2
triggerall = alive
triggerall = stateno != [120,159]
triggerall = statetype = A
triggerall = enemynear,movetype = A
triggerall = var(15) = 20000
triggerall = var(3) = [1,2]
triggerall = inguarddist
triggerall = enemynear,hitdefattr = SCA,AA,AP,AT
triggerall = PrevStateno != 21301
triggerall = ctrl
trigger1 = var(1) = [0,80]


