;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;忢帪娔帇僗僥乕僩
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

[Statedef -2]

;仸僉儍儔偑偳偺傛偆側忬懺偱偁偭偰傕僩儕僈乕偑枮偨偝傟傟偽敪摦偟傑偡丅
;丂憡庤偵僗僥乕僩傪扗傢傟偰偄偰傕忢偵敪摦偟傑偡偑丄
;丂Pause, SuperPause拞偵movetime傪巜掕偟偰傕敪摦偟傑偣傫丅

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;	僐儞僼傿僌
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;--------------------峌寕椡

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = 1
fvar(0) = 1.00	;1.00偱100%偺峌寕椡偱偡

;--------------------僸僢僩僗僷乕僋慖戰

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = 1
var(8) = 1	;0偱傾僪僆儞偺丄1偱屌桳偺僸僢僩僗僷乕僋傪昞帵偟傑偡

;僿儖僷乕偑懌傝側偄or廳偄応崌偼0偵偟偰偔偩偝偄
;側偍丄僿儖僷乕嵟戝悢偑彮側偄忬懺偱僞僢僌婲摦偡傞偲帺摦偱僆僼偵側傝傑偡

;--------------------擫傾儖僋弌尰忋尷

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = 1
var(18) = 3	;摨帪偵懚嵼壜擻側擫偺悢偱偡乮ICBM傪彍偔乯
		;愝掕抣傪挻偊傞悢傪弌偡偙偲偼偱偒傑偣傫丅

;--------------------僇乕僪愝抲忋尷

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = 1
var(19) = 10	;摨帪偵愝抲偱偒傞僇乕僪偺悢偱偡丅
		;愝掕抣傪挻偊傞悢傪弌偡偙偲偼偱偒傑偣傫丅

;--------------------僇乕僪僎乕僕埵抲挷愡

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = time = 1
var(21) = 0	;X嵗昗乮昗弨0乯

[State -2, 曄悢傪愝掕]
Type = VarSet
trigger1 = time = 1
var(22) = 216	;Y嵗昗乮昗弨236乯

;--------------------AI儗儀儖

[State -2, 曄悢傪愝掕] ;AI婲摦僗僀僢僠
Type = null;VarSet
triggerall = var(59) = 0 
triggerall = roundstate != 3
trigger1 = (command = "cpu1") || (command = "cpu2")
trigger2 = (command = "cpu3") || (command = "cpu4")
trigger3 = (command = "cpu5") || (command = "cpu6")
trigger4 = (command = "cpu7") || (command = "cpu8")
trigger5 = (command = "cpu9") || (command = "cpuA")
trigger6 = (command = "cpuB") || (command = "cpuC")
trigger7 = (command = "cpuD") || (command = "cpuE")
trigger8 = (command = "cpuF"); || (command = "start");僨僶僢僌梡
trigger9 = numhelper(10000)
trigger9 = helper(10000),var(59) = 1
;trigger10 = roundstate = 2;峴摢偺僙儈僐儘儞傪奜偡偲AI忢帪婲摦
var(59) = 10 ;AI儗儀儖

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;	僔僗僥儉娭楢
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;--------------------僇乕僪枃悢僎乕僕乮斈梡僿儖僷乕乯

[State -2, 僿儖僷乕]
Type = Helper
trigger1 = numhelper(8000) = 0
name = "Helper01"
postype = p1
pos = 0, 0
ID = 8000
stateno = 8000
ownpal = 1
pausemovetime = 9999
supermovetime = 9999
ignorehitpause = 1

;--------------------偟傖偑傒帪偺暆

[State -2, 暔棟揑側僉儍儔偺暆]
Type = Width
trigger1 = anim = 10 && animelemtime(3) >= 4
trigger2 = anim = 11
trigger3 = anim = 12 && animelemtime(2) <= 4
player	= 21,-12;憡庤傪墴偡暆傪曄偊傞乮墿椢偺慄乯
edge	= 0, 0	;夋柺抂傪墴偡暆傪曄偊傞乮僆儗儞僕偺慄乯

;--------------------嬻拞僟僢僔儏偺巆傝夞悢

[State -2, 曄悢傪愝掕]
Type = VarSet
triggerall = statetype != A
trigger1 = statetype = S || statetype = C || statetype = L
trigger2 = movetype = H
var(6) = 1	;楢懕偟偰嬻拞僟僢僔儏偱偒傞夞悢
ignorehitpause = 1

;--------------------僔乕儖僪僉儍儞僙儖忦審儕僙僢僩

[State 910, 曄悢傪愝掕] ;Ex僔乕儖僪僼儔僌
Type = VarSet
trigger1 = stateno != 910
var(7) = 0
ignorehitpause = 1

;--------------------傗傜傟儃僀僗

[State -2, 儔儞僟儉曄悢]
Type = VarRandom
trigger1 = alive
V = 1
Range = 0,2
ignorehitpause = 1

[State -2 ,壒傪柭傜偡]
Type = PlaySnd
triggerall = alive
triggerall = time = 1
triggerall = var(1) = [0,1]
trigger1 = stateno = 5000
trigger1 = anim = 5000 || anim = 5010 || anim = 5020
trigger2 = stateno = 5010
trigger2 = anim = 5000 || anim = 5010 || anim = 5020
Value = s5000, 0 + var(1)
Channel = 1
ignorehitpause = 1

[State -2 ,壒傪柭傜偡] ;婲偒忋偑傝
Type = PlaySnd
triggerall = alive
triggerall = time = 1
trigger1 = stateno = 5120
trigger1 = anim = 5120 || anim = 5121
trigger2 = stateno = 5121
trigger2 = anim = 5120 || anim = 5121
Value = s5100, 0
Channel = 1
ignorehitpause = 1

;--------------------峌寕椡曗惓

[State -2, 曄悢傪愝掕] ;僐儞儃曗惓
Type = VarSet
triggerall = numenemy
triggerall = alive
trigger1 = enemy,gethitvar(hitcount) > 1
fvar(1) = 1.00 - (enemy,gethitvar(hitcount) - 1)*0.1

[State -2, 曄悢傪愝掕] ;僐儞儃曗惓儕僙僢僩
Type = VarSet
triggerall = numenemy
triggerall = alive
trigger1 = p2movetype != H
trigger2 = enemy,gethitvar(hitcount) = 0
fvar(1) = 1.00

[State -2, 曄悢傪愝掕] ;僐儞儃曗惓嵟彫抣
Type = VarSet
trigger1 = fvar(1) < 0.25
fvar(1) = 0.25

[State -2, 曄悢傪愝掕] ;捛寕曗惓儕僙僢僩
Type = VarSet
trigger1 = pos y = 0
fvar(2) = 1.0

[State -2, 峌寕椡] ;幚峌寕椡乮峌寕椡亊僐儞儃曗惓乯
Type = AttackMulSet
trigger1 = 1
value = fvar(0)*fvar(1)

;--------------------僸僢僩僗僷乕僋

[State -2, 曄悢傪愝掕] ;帺摦僆僼婡擻
Type = VarSet
trigger1 = ID < 32 ;MUGEN杮懱偺HelperMax
trigger1 = teammode = simul
var(8) = 0

[State -2, 僿儖僷乕] ;棫偪庛
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 200
trigger2 = stateno = 200
trigger2 = numtarget(200)
trigger2 = (target(200),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -45 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;棫偪拞
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 210
trigger2 = stateno = 210
trigger2 = numtarget(210)
trigger2 = (target(210),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -65 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;棫偪嫮
Type = Helper
triggerall = var(8) = 1
triggerall = projhit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 220
trigger2 = stateno = 220
trigger2 = numtarget(220)
trigger2 = (target(220),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 20), -55 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;棫偪摿庩
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 230
trigger2 = stateno = 230
trigger2 = numtarget(230)
trigger2 = (target(230),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -65 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;偟傖偑傒庛
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 400
trigger2 = stateno = 400
trigger2 = numtarget(400)
trigger2 = (target(400),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -40 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;偟傖偑傒拞
Type = Helper
triggerall = var(8) = 1
triggerall = projhit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 410
trigger2 = stateno = 410
trigger2 = numtarget(410)
trigger2 = (target(410),time = 0)
trigger3 = stateno = 410
trigger3 = numtarget(411)
trigger3 = (target(411),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -15 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;偟傖偑傒嫮
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 420
trigger2 = stateno = 420
trigger2 = numtarget(420)
trigger2 = (target(420),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -10 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;嬻拞
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = [600, 630]
trigger2 = stateno = 600
trigger2 = numtarget(600)
trigger2 = (target(600),time = 0)
trigger3 = stateno = 610
trigger3 = numtarget(610)
trigger3 = (target(610),time = 0)
trigger4 = stateno = 620
trigger4 = numtarget(620)
trigger4 = (target(620),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -40 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;僔乕儖僪僶儞僇乕
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = [931, 932]
trigger2 = stateno = [931, 932]
trigger2 = numtarget(930)
trigger2 = (target(930),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -55 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;僾儘儈僱儞僗
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = (prevstateno = 1100 || prevstateno = 1150)
trigger2 = stateno = 1100
trigger2 = numtarget(1100)
trigger2 = (target(1100),time = 0)
trigger3 = stateno = 1150
trigger3 = numtarget(1150)
trigger3 = (target(1150),time = 0)
trigger4 = stateno = 3000
trigger4 = numtarget(3000)
trigger4 = (target(3000),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -65 - ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

[State -2, 僿儖僷乕] ;僗僺僉儏乕儖
Type = Helper
triggerall = var(8) = 1
triggerall = movehit = 1
triggerall = p2movetype = H
triggerall = numhelper < 14
trigger1 = time = 0
trigger1 = movetype = H
trigger1 = numhelper(8100) = 0
trigger1 = prevstateno = 1300 || prevstateno = 3300 
trigger2 = stateno = 1300
trigger2 = numtarget(1300)
trigger2 = (target(1300),time = 0)
trigger3 = stateno = 1300
trigger3 = numtarget(1310)
trigger3 = (target(1310),time = 0)
trigger4 = stateno = 3300
trigger4 = numtarget(3300)
trigger4 = (target(3300),time = 0)
name = "HitSpark01"
postype = P2
pos = ifelse(movetype = H, ceil(p2dist x/2), 0), -ceil(p2bodydist y)
ID = 8100
stateno = 8100
ownpal = 1
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1

;--------------------僿儖僷乕暘恎杊巭

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(1000) && stateno != [1080, 1090]
value = 1089
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(1100) && stateno != [1150, 1160]
value = 1160
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(1200) && stateno != [1201, 1209]
value = 1209
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(1250) && stateno != [1211, 1219]
value = 1219
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(3200) && stateno != [3211, 3219]
value = 3219
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(3450) && stateno != 3450
value = 3250
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(8000) && stateno != 8000
value = 8000
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(8100) && stateno != 8100
value = 8100
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(8101) && stateno != 8101
value = 8101
ignorehitpause = 1

[State -2, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(9000) && stateno != 9000
value = 9000
ignorehitpause = 1

[State -3, 僗僥乕僩傪栠偡]
Type = SelfState
trigger1 = ishelper(10000) && stateno != 10000
value = 10000
ignorehitpause = 1

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;	僨僶僢僌梡婰弎
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

;仸偙偺堦楢偺婰弎偼丄僉儍儔偑姰惉偟偨傜徚偡偐";"傪晅偗偰柍岠壔偟傑偟傚偆丅
;丂偦偺傑傑偩偲嬐偐偵偱偡偑張棟偑廳偔側傝傑偡丅乮偪側傒偵Null偱偼柍堄枴偱偡乯


;僨僶僢僌儌乕僪偵敀偄暥帤偺昞帵傪壛偊傞
[State -2, 僨僶僢僌昞帵]
Type = DisplayToClipboard
trigger1 = 1
text = "V5-V=%d, V8=%d, V9=%d, V59-AI=%d, POW=%d"
params = var(5), var(8), var(9), var(59), power
ignorehitpause = 1

;昞帵傪墶偵壛偊傞
[State -2, 僨僶僢僌昞帵偦偺2]
Type = AppendToClipboard
trigger1 = 1
text = " combo=%0.2f, Add=%0.2f, Pos X=%d, Y=%d"
params = fvar(1), fvar(2), 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

;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒
;	憡庤偺峌寕偵懳墳偡傞婰弎
;劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

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

;廱傪徟偑偡丂憡庤梡
[State -2]
Type = LifeAdd
TriggerAll = Enemy,AuthorName = "嘓" && Enemy,Name = "Akiha_Vermilion"
Trigger1 = Enemy,Var(47) = 1
Value = -5
Kill = 0

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

