; 仭弨忢帪娔帇僗僥乕僩乮亅俁乯仭
; 偙偪傜偼捠忢偺怘傜偄忬懺埲奜偺乽P2StateNo乿傗乽TargetState乿摍偱惂屼偝傟偨丄
; 嶌惉幰偑擟堄偵巜掕偟偨憡庤懁偺怘傜偄僗僥乕僩偵尷傝丄
; 搊榐偟偨僗僥乕僩僐儞僩儘乕儔偑桳岠偵偼側傝傑偣傫丅
; 亅侾傗亅俀偲忋庤偔巊偄暘偗偰峴偒傑偟傚偆丅
;===========================================================================

[Statedef -3] ;仼偙偺峴偼愨懳偵徚偝側偄偱偹

;---------------------------------------------------------------------------
[State -3];忢挀僿儖僷傽
type = Helper
trigger1 = numhelper(9393) < 1
trigger1 = (!ishelper)
helpertype = player
name = "hane"
stateno = 9393
pausemovetime = 0
supermovetime = 99999990
pos = 0,0
postype = p1
bindtime = -1
keyctrl = 0
ownpal = 0
size.xscale = 0.5
size.yscale = 0.5
ID = 9393

;++++++++++++++++++++++++++++++++++++++++++++++++++
;峌寕椡傎偣偄
[State -3,]
type = Varset
trigger1 = EnemyNear,GethitVar(hitcount) >=0
var(10) = 0+(EnemyNear,GethitVar(hitcount))

[State -3,]
type = Varset
trigger1 = EnemyNear,movetype != H
var(10) = 0

[State -3,]
type = Varset
trigger1 = EnemyNear,movetype != H
var(11) = 1

[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) <= 2 
value = 1.0
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 3
value = 0.9
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 4
value = 0.8
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 5
value = 0.7
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 6
value = 0.6
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 7
value = 0.5
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 8
value = 0.4
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 9
value = 0.3
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) = 10
value = 0.2
[State -3,]
type = AttackMulSet
trigger1 = (Var(10)+var(11)) >= 11
value = 0.1
;+++++++++++++++++++++++++++++++++++++++
;捈僈
[State -3,];
type = poweradd
triggerall = var(8) > 0
triggerall = time =  0
trigger1 = stateno =  150
trigger2 = stateno =  152
trigger3 = stateno =  154
value = 40
persistent = 0

[state -3]
type = varset
triggerall = hitpausetime = 0
trigger1 = command = "B"
var(8) = 10
persistent = 0

[state -3]
type = varadd
trigger1 = var(8) != 0
var(8) = -1
persistent = 1
ignorehitpause = 1

[state -3]
type = varset
triggerall = var(8) = 0
triggerall = time = 0
trigger1 = stateno =  150
trigger2 = stateno =  152
trigger3 = stateno =  154
var(9) = 0
persistent = 0
ignorehitpause = 1

[state -3]
type = varset
triggerall = var(8) > 0
trigger1 = stateno =  150
trigger2 = stateno =  152
trigger3 = stateno =  154
var(9) = 10
persistent = 0
ignorehitpause = 1
;+++++++++++++++++++++++++++++++++++++++++++++++++++++





;俙俬敪摦梡僼儔僌乮俠俹倀偑亀恖娫偵偼擖椡弌棃側偄僐儅儞僪亁傪擖椡偡傞偲侾偵側傞乯
[State -3, 曄悢]
type = VarSet
triggerall = (var(0) != 1) && (RoundState < 3)
trigger1 = (command = "AI-000") || (command = "AI-011")
trigger2 = (command = "AI-001") || (command = "AI-012")
trigger3 = (command = "AI-002") || (command = "AI-013")
trigger4 = (command = "AI-003") || (command = "AI-014")
trigger5 = (command = "AI-004") || (command = "AI-015")
trigger6 = (command = "AI-005") || (command = "AI-016")
trigger7 = (command = "AI-006") || (command = "AI-017")
trigger8 = (command = "AI-007") || (command = "AI-018")
trigger9 = (command = "AI-008") || (command = "AI-019")
trigger10= (command = "AI-009") || (command = "AI-020")
trigger11= (command = "AI-010") || (command = "AI-021")
v = 0
value = 1
IgnoreHitPause = 1
Persistent = 1

;=====================================================================-----------------------------------------------------------------
[State -3, 峀斖埻曄悢];儕僙僢僩
type = VarRangeSet
trigger1 = var(0) = 0
first = 58
last = 59
value = 0
IgnoreHitPause = 1
Persistent = 1

[State -3, 曄悢儔儞僟儉];峴摦妋棪
type = VarRandom
triggerall = (var(0) = 1) && (RoundState = 2)
trigger1 = (GameTime % 5 = 0)
v = 58
range = 1,1400-ceil((PalNo=7)*1260)
IgnoreHitPause = 1
Persistent = 1

[State -3, 曄悢儔儞僟儉];弌偡媄偺僷僞乕儞妋棪
type = VarRandom
trigger1 = (var(0) = 1) && (RoundState = 2)
v = 59
range = 1,999
IgnoreHitPause = 1
Persistent = 1

















;=====================================================================
; 俙俬
;--------------------------------------------------------------------
[State -3, 嬻拞僈乕僪]
type  = ChangeState
value = 132
triggerall = (stateno != [105,106])
triggerall = p2movetype = A
triggerall = statetype = A
triggerall = var(0) = 1
triggerall = ctrl
triggerall = stateno != [600,650]
triggerall = p2statetype = A
triggerall = inguarddist
trigger1   = (P2BodyDist X = [40,80])
trigger1   = Random < 650
trigger2   = (P2BodyDist X = [-20,39]) 
trigger2   = Random < 950

[State -3, 懳抧 棫偪僈乕僪]
type  = ChangeState
value = 130
triggerall = (stateno != [105,106])
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = var(0) = 1
triggerall = (ctrl)||(stateno = [6000,6001])
triggerall = p2statetype = S
triggerall = inguarddist
trigger1   = enemy,hitdefattr = S, NA,SA,HA
trigger1   = Random < 850

[State -3, 懳嬻棫偪僈乕僪]
type  = ChangeState
value = 130
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = var(0) = 1
triggerall = (ctrl)||(stateno = [6000,6001])
triggerall = p2statetype = A
triggerall = inguarddist
trigger1   = enemy,hitdefattr = A, NA,SA,HA
trigger1   = Random < 800

[State -3, 偟傖偑傒僈乕僪]
type  = ChangeState
value = 131
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = var(0) = 1
triggerall = ctrl
triggerall = inguarddist
trigger1   = enemy,hitdefattr = C, NA,SA,HA
trigger1   = Random < 800

;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;偪傚偆傂

[State -3, 恄嬋]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (power > 1999)
trigger1 = (stateno = 5120)    ;仸儕僶僒
trigger1 = (animtime = 0)
trigger1 = (var(59)=[0,200])
trigger2 = (stateno = 420)&&(movehit)   ;仸楢寕
trigger2 = (var(59)=[400,1000])
trigger2 = (animelem = 7,>=0)
trigger2 = (EnemyNear,movetype=H)&&(EnemyNear,stateno!=[120,159])
trigger3 = (ctrl)                       ;仸嶍傝
trigger3 = (var(59)=[400,1000])
trigger3 = (enemynear,life < 251)
trigger4 = (ctrl)                       ;仸埆偁偑偒
trigger4 = (var(59)=[600,1000])
trigger4 = (enemynear,life > enemynear,lifemax/3)
trigger4 = (life < lifemax/3)
trigger5 = (ctrl)    ;仸傇偭傁
trigger5 = (var(59)=[0,100])
value = 3330

[State -3, 儔僀僩僯儞僌]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (power > 999)
trigger1 = (stateno = 5120)    ;仸儕僶僒
trigger1 = (animtime = 0)
trigger1 = (P2bodyDist X = [-50,80])
trigger1 = (var(59)=[0,500])
trigger2 = (stateno = 220)&&(movehit)   ;仸楢寕
trigger2 = (var(59)=[400,1000])
trigger3 = (ctrl)                       ;仸嶍傝
trigger3 = (var(59)=[400,1000])
trigger3 = (enemynear,life < 51)
trigger4 = (ctrl)                       ;仸埆偁偑偒
trigger4 = (var(59)=[600,1000])
trigger4 = (enemynear,life > enemynear,lifemax/3)
trigger4 = (life < lifemax/3)
value = 3000

[State -3, 挻搳偘]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (EnemyNear,statetype != A)
triggerall = (EnemyNear,pos Y >= 0)
triggerall = (P2bodyDist X = [-20,45])
triggerall = (power > 999)
triggerall = (EnemyNear,stateno != 5120)
triggerall = (EnemyNear,prevstateno != 5110)
triggerall = (EnemyNear,movetype != H)
trigger1 = (stateno = 5120)    ;仸儕僶僒
trigger1 = (animtime = 0)
trigger1 = (var(59)=[0,300])
trigger2 = (var(59)=[800,1000])   ;仸傇偭傁
trigger2 = (ctrl)
value = 3100

[State -3, 僶僋亯僗僥]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (P2bodyDist X < 100)    ;仸儕僶僒
trigger1 = (var(59) = [0,100])
trigger1 = (stateno = 5120)
trigger1 = (animtime = 0)
trigger2 = (var(59) = [0,180])    ;仸儔儕傾僢僩摝偘
trigger2 = (stateno = 1100 && animtime = 0)
trigger3 = (var(59) = [0,250])    ;仸傛偆偡傒
trigger3 = (P2bodyDist X <= 30)
trigger3 = (backedgebodydist > 20)
trigger3 = (ctrl)||(stateno = [6000,6001])
trigger3 = (EnemyNear,statetype=L)||(EnemyNear,stateno=5120)
value = 105

[State -3, 慜僟僢僔儏]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (numhelper(9601) > 0)    ;儔僀僩僯儞僌捛偄偐偗
trigger1 = (P2bodyDist X >= 70)
trigger1 = (var(59) = [0,250])
trigger1 = (ctrl)||(stateno = 6001)
trigger2 = numhelper(9595) > 0    ;僗僼傿傾捛偄偐偗
trigger2 = (helper(9595),vel X >= 1.5)
trigger2 = (P2bodyDist X >= 110)
trigger2 = (var(59) = [0,250])
trigger2 = (ctrl)||(stateno = [6000,6001])
trigger2 = (P2bodyDist X >= 80)
trigger2 = (var(32) = 0)&&(var(37) = 0)
value = 2999

[State -3, 慜曕偒]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (P2bodyDist X >= 125)
trigger1 = (var(59) = [0,200])
trigger1 = (ctrl)||(stateno = 6001)
trigger2 = (ctrl)||(stateno = 6001)
trigger2 = (backedgebodydist < 10)
value = 6000

[State -3, 屻傠曕偒]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = numhelper(9595) = 0    ;僗僼傿傾拞嬛巭
trigger1 = (helper(9595),vel X < 0.5)
trigger1 = (backedgebodydist > 10)
trigger1 = (P2bodyDist X < 125)
trigger1 = (var(59) = [0,250])
trigger1 = (ctrl)||(stateno = 6000)
trigger2 = (P2bodyDist X < 190)
trigger2 = (var(59) = [0,150])
trigger2 = (ctrl)||(stateno = 6000)
value = 6001

[State -3, 僕儍儞僾]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (stateno = 205)&&(movecontact);仸楢寕
trigger1 = (EnemyNear,movetype=H)&&(EnemyNear,stateno!=[120,159])
trigger2 = (stateno = 420)&&(movecontact);仸楢寕
trigger2 = (animelem = 7,>=0);仸楢寕
trigger2 = (EnemyNear,movetype=H)&&(EnemyNear,stateno!=[120,159])
trigger3 = (var(59) = [0,200])    ;仸傛偆偡傒
trigger3 = (P2bodyDist X <= 30)
trigger3 = (backedgebodydist <= 20)
trigger3 = (ctrl)||(stateno = [6000,6001])
trigger3 = (EnemyNear,statetype=L)||(EnemyNear,stateno=5120)
value = 40

[State -3, 慜儚乕僾侾]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (P2bodyDist X < 100)    ;仸儕僶僒
trigger1 = (var(59) = [0,50])
trigger1 = (stateno = 5120)
trigger1 = (animtime = 0)
trigger2 = (P2bodyDist X < 40)    ;仸棤廃傝
trigger2 = (var(59) = [0,20])
trigger2 = (EnemyNear,movetype = A)
trigger2 = (ctrl)||(stateno = [6000,6001])
trigger3 = (P2bodyDist X > 50)    ;仸proj斀墳?
trigger3 = (var(37) > 0)
trigger3 = (var(59) = [0,100])
trigger3 = (ctrl)||(stateno = [6000,6001])
trigger4 = (P2bodyDist X > 50)    ;仸helper斀墳?
trigger4 = (var(32) > 0)
trigger4 = (var(59) = [0,50])
trigger4 = (ctrl)||(stateno = [6000,6001])
value = 1700

[State -3, 慜儚乕僾俀]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (P2bodyDist X < 100)    ;仸儕僶僒
trigger1 = (var(59) = [0,400])
trigger1 = (stateno = 5120)
trigger1 = (animtime = 0)
trigger1 = (backedgebodydist < 60)
trigger2 = (P2bodyDist X < 100)    ;仸棤廃傝
trigger2 = (var(59) = [0,30])
trigger2 = (EnemyNear,movetype = A)
trigger2 = (ctrl)||(stateno = [6000,6001])
trigger3 = (P2bodyDist X < 120)    ;仸proj斀墳?
trigger3 = (var(37) > 0)
trigger3 = (var(59) = [200,300])
trigger3 = (ctrl)||(stateno = [6000,6001])
trigger4 = (P2bodyDist X < 120)    ;仸helper斀墳?
trigger4 = (var(32) > 0)
trigger4 = (var(59) = [200,250])
trigger4 = (ctrl)||(stateno = [6000,6001])
value = 1701

[State -3,屻傠儚乕僾侾]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
trigger1 = (var(59) = [0,100])    ;仸儕僶僒
trigger1 = (stateno = 5120)
trigger1 = (animtime = 0)
trigger1 = (backedgebodydist > 100)
trigger2 = (P2bodyDist X < 100)    ;仸摝偘
trigger2 = (var(59) = [0,20])
trigger2 = (EnemyNear,movetype = A)
trigger2 = (backedgebodydist > 100)
trigger2 = (ctrl)||(stateno = [6000,6001])
trigger3 = (P2bodyDist X > 50)    ;仸proj斀墳?
trigger3 = (var(37) > 0)
trigger3 = (var(59) = [100,200])
trigger3 = (ctrl)||(stateno = [6000,6001])
trigger4 = (P2bodyDist X > 50)    ;仸helper斀墳?
trigger4 = (var(32) > 0)
trigger4 = (var(59) = [50,100])
trigger4 = (ctrl)||(stateno = [6000,6001])
value = 1702

[State -3,屻傠儚乕僾俀]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerALL = (backedgebodydist > 100)
trigger1 = (var(59) = [0,150])    ;仸儕僶僒
trigger1 = (stateno = 5120)
trigger1 = (animtime = 0)
trigger2 = (P2bodyDist X < 100)    ;仸摝偘
trigger2 = (var(59) = [0,30])
trigger2 = (EnemyNear,movetype = A)
trigger2 = (ctrl)||(stateno = [6000,6001])
trigger3 = (var(59) = [0,60])    ;仸儔儕傾僢僩摝偘
trigger3 = (stateno = 1100 && animtime = 0)
value = 1703

[State -3, 徃棾]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
trigger1 = (StateType != A)
trigger1 = (EnemyNear,statetype != L)
trigger1 = (ctrl)||(stateno = [6000,6001])    ;仸BUPPA
trigger1 = (EnemyNear,Pos Y >= -200)
trigger1 = (P2bodyDist X = [-10,70])
trigger1 = (var(59)=[0,10])
trigger2 = (StateType != A)
trigger2 = (stateno = 5120)    ;仸儕僶僒
trigger2 = (animtime = 0)
trigger2 = (P2bodyDist X = [-10,110])
trigger2 = (var(59)=[0,120])
trigger3 = (ctrl)||(stateno = [6000,6001])    ;仸挻斀墳
trigger3 = (EnemyNear,movetype = A)
trigger3 = (EnemyNear,Pos Y >= -200)
trigger3 = (P2bodyDist X = [-10,90])
trigger3 = (var(59)=[0,30])
trigger4 = (StateType != A)
trigger4 = ((stateno = 255)||(stateno = 220))&&(movecontact);仸楢寕
trigger4 = (P2bodyDist X < 75)
trigger4 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
trigger5 = (StateType != A)
trigger5 = (EnemyNear,statetype != L)
trigger5 = (ctrl)||(stateno = [6000,6001])    ;仸懳嬻
trigger5 = (EnemyNear,Pos Y < 0)
trigger5 = (P2bodyDist X = [-10,110])
trigger5 = (var(59)=[0,30])
trigger6 = (StateType = A)
trigger6 = ((stateno = 620)||(stateno = 650))&&(movehit);仸楢寕
trigger6 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
trigger6 = (pos Y < -20)&&(EnemyNear,pos Y < 0)
trigger7 = (P2dist Y < -10)
trigger7 = (StateType = A)
trigger7 = ((stateno = 610)||(stateno = 640))&&(movehit);仸楢寕
trigger7 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
trigger7 = (pos Y < -20)&&(EnemyNear,pos Y < 0)
trigger8 = (var(32) > 0)||(var(37) > 0)         ;仸唾蔬皃roj斀墳
trigger8 = (P2bodyDist X < 140)
trigger8 = (var(59)=[0,200])
trigger8 = (ctrl)||(stateno = [6000,6001])
value = 1200

[State -3, 僗僼傿傾]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = numhelper(9595) < 1
trigger1 = (ctrl)||(stateno = [6000,6001])    ;仸愝抲
trigger1 = (EnemyNear,statetype = L)
trigger1 = (EnemyNear,stateno != 5120)
trigger1 = (var(59)=[0,450])
trigger2 = (prevstateno = 1300)    ;仸愝抲
trigger2 = (EnemyNear,movetype = H)
trigger2 = (var(59)=[0,500])
trigger2 = (movetype != H)
trigger2 = (stateno = 52)
value = 1000

[State -3, 拰(敪惗)]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = numhelper(9596) < 1
triggerall = numhelper(9599) < 1
trigger1 = numhelper(9595) >= 1
trigger1 = (ctrl)||(stateno = [6000,6001])    ;仸愝抲
trigger1 = (EnemyNear,statetype = L)
trigger1 = (var(59)=[0,550])
trigger1 = (P2bodyDist X != [-140,140])
trigger2 = numhelper(9595) >= 1
trigger2 = (prevstateno = 1300)    ;仸愝抲
trigger2 = (EnemyNear,movetype = H)
trigger2 = (stateno = 52)
trigger2 = (var(59)=[0,150])
trigger3 = (stateno = 5120)    ;仸儕僶僒
trigger3 = (animtime = 0)
trigger3 = (P2bodyDist X >= 120)
trigger3 = (var(59)=[0,100])
trigger4 = (stateno = 1750)    ;仸愝抲
trigger4 = (EnemyNear,movetype = H)
trigger4 = (var(15)=1)
trigger4 = (animtime = 0)
trigger4 = (var(59)=[0,250])
trigger5 = (stateno = 801)    ;仸愝抲
trigger5 = (EnemyNear,movetype = H)
trigger5 = (animtime = 0)
trigger5 = (P2bodyDist X >= 100)
trigger5 = (var(59)=[0,200])
value = 1001

[State -3, 價乕儉]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (stateno = 5120)    ;仸儕僶僒
trigger1 = (animtime = 0)
trigger1 = (enemynear,pos y >= -10)
trigger1 = (P2bodyDist X >= 120)
trigger1 = (var(59)=[0,200])
trigger2 = (ctrl)||(stateno = [6000,6001])    ;仸尅惂2
trigger2 = (EnemyNear,Pos Y >= 0)
trigger2 = (var(59)=[0,40])
trigger3 = (var(59)=[0,150])
trigger3 = ((stateno = 255)||(stateno = 210))&&(movecontact);仸楢寕
trigger3 = (P2bodyDist X <= 75)
trigger3 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger4 = (var(59)=[0,150])
trigger4 = ((stateno = 220)||(stateno = 250)||(stateno = 420));仸楢寕
trigger4 = (movecontact)
trigger4 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger5 = (var(32) > 0)||(var(37) > 0)         ;仸唾蔬皃roj斀墳
trigger5 = (var(59)=[600,730])
trigger5 = (ctrl)||(stateno = [6000,6001])
value = 1300

[State -3, 僗儅僢僔儏]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (ctrl)||(stateno = [6000,6001])    ;仸尅惂
trigger1 = (EnemyNear,Pos Y >= 0)
trigger1 = (P2bodyDist X = [121,185])
trigger1 = (var(59)=[150,300])
trigger1 = ((EnemyNear,ctrl=1)||(EnemyNear,movetype=I))
trigger2 = (ctrl)||(stateno = [6000,6001])    ;仸尅惂2
trigger2 = (EnemyNear,Pos Y >= 0)
trigger2 = (P2bodyDist X = [125,185])
trigger2 = (var(59)=[0,70])
trigger3 = ((stateno = 220)||(stateno = 250)||(stateno = 420));仸楢寕
trigger3 = (movecontact)
trigger3 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger3 = (P2bodyDist X > 100)
trigger3 = (var(59)=[0,100])
value = 1750

[State -3, 儔儕傾僢僩]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = ((stateno = 255)||(stateno = 210))&&(movecontact);仸楢寕
trigger1 = (P2bodyDist X >75)
trigger2 = ((stateno = 255)||(stateno = 210))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 75)
trigger2 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger3 = ((stateno = 220)||(stateno = 250)||(stateno = 420));仸楢寕
trigger3 = (movecontact)
trigger3 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger4 = (stateno = 440)&&(movecontact);仸楢寕
trigger4 = (P2bodyDist X >85)
value = 1100

[State -3, 孅嫮俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (EnemyNear,Pos Y >= 0)
trigger1 = (stateno = 440)&&(movecontact);仸楢寕
trigger1 = (P2bodyDist X <= 80)
trigger1 = (var(59) = [0,300])
trigger1 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
value = 450

[State -3, 孅嫮俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = ((stateno = 230)||(stateno = 410)||(stateno = 440));仸楢寕
trigger1 = (movecontact)
trigger1 = (P2bodyDist X <= 10)
trigger1 = (var(59) = [0,150])
trigger2 = (stateno = 250)&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 60)
trigger2 = (var(59) = [0,250])
value = 420

[State -3, 慜廟傝]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [120,130])
trigger1 = (var(59) = [0,240])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 240)||(stateno = 410))&&(movecontact);仸楢寕
trigger2 = (var(59) = [0,550])
trigger2 = (P2bodyDist X >= 70)
trigger3 = (stateno = 210)&&(movecontact)    ;仸楢寕拞俹
trigger3 = (P2bodyDist X > 60)
trigger3 = (var(59) = [0,250])
trigger3 = (EnemyNear,Pos Y >= -40)
value = 255

[State -3, 嫮俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (movecontact)               ;仸慜廟傝偐傜楢寕
trigger1 = (stateno = 210)||(stateno = 410)||(stateno = 440)
trigger1 = (P2bodyDist X <= 70)
trigger1 = (EnemyNear,movetype = H)&&(EnemyNear,stateno = [120,159])
trigger1 = (var(59) = [0,150])
trigger2 = (movecontact)               ;仸僇僂儞僞乕楢寕
trigger2 = (stateno = 210)||(stateno = 410)||(stateno = 440)
trigger2 = (P2bodyDist X <= 70)
trigger2 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
trigger2 = (EnemyNear,pos Y > -50)
trigger2 = (var(15)=1)
value = 250

[State -3, 拞俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [80,95])
trigger1 = (var(59) = [0,180])
trigger1 = (ctrl)||(stateno = [6000,6001])
value = 240

[State -3, 嫮俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [75,90])
trigger1 = (EnemyNear,movetype != A)
trigger1 = (var(59) = [0,60])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 210)||(stateno = 440)||(stateno = 410));仸楢寕
trigger2 = (movecontact)
trigger2 = (P2bodyDist X <= 55)
trigger2 = (var(59) = [0,250])
value = 220

[State -3, 孅拞俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,statetype != A)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [85,95])
trigger1 = (var(59) = [0,60])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400)||(stateno = 230));仸楢寕
trigger2 = (movecontact)
trigger2 = (P2bodyDist X <= 90)
trigger2 = (EnemyNear,Pos Y >= -20)
trigger2 = (var(59) = [0,250])
trigger3 = (stateno = 430);仸楢寕
trigger3 = (movecontact)
trigger3 = (P2bodyDist X <= 90)
trigger3 = (EnemyNear,Pos Y >= -20)
trigger3 = (var(59) = [0,150])
value = 410

[State -3, 孅拞俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (EnemyNear,Pos Y >= 0)
trigger1 = (EnemyNear,statetype != A)    ;仸尅惂
trigger1 = (P2bodyDist X = [85,95])
trigger1 = (var(59) = [0,60])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400)||(stateno = 230));仸楢寕
trigger2 = (movecontact)
trigger2 = (P2bodyDist X <= 85)
trigger2 = (var(59) = [0,150])
trigger3 = (stateno = 430)&&(movecontact);仸楢寕
trigger3 = (P2bodyDist X <= 85)
trigger3 = (var(59) = [0,150])
trigger4 = (stateno = 52);仸楢寕
trigger4 = (P2bodyDist X<=90)||((P2bodyDist X<=80)&(EnemyNear,vel Y < 0))
trigger4 = (var(59) = [0,500])
trigger4 = (EnemyNear,movetype = H)
value = 440

[State -3, 拞俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,Pos Y >= -20)    ;仸尅惂
trigger1 = (P2bodyDist X = [50,65])
trigger1 = (EnemyNear,movetype != A)||(EnemyNear,time > 15)
trigger1 = (var(59) = [0,100])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 230))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 60)
trigger2 = (var(59) = [0,250])
trigger2 = (EnemyNear,statetype != C)
value = 210

[State -3, 孅彫俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (EnemyNear,Pos Y >= 0)
trigger1 = (EnemyNear,statetype != A)    ;仸尅惂
trigger1 = (P2bodyDist X = [50,90])
trigger1 = (var(59) = [0,100])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 80)
trigger2 = (var(59) = [0,150])
trigger3 = (stateno = 52);仸楢寕
trigger3 = (P2bodyDist X<=80)||((P2bodyDist X<=70)&(EnemyNear,vel Y < 0))
trigger3 = (var(59) = [0,500])
trigger3 = (EnemyNear,movetype = H)
value = 430

[State -3, 彫俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,statetype != A)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [-30,50])
trigger1 = (var(59) = [0,120])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 45)
trigger2 = (var(59) = [0,150])
value = 230

[State -3, 俇俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,statetype = A)
trigger1 = (EnemyNear,Pos Y > -110)    ;仸懳嬻
trigger1 = (P2bodyDist X = [-30,55])
trigger1 = (P2bodyDist Y > -130)
trigger1 = (var(59) = [0,330])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 50)
trigger2 = (var(59) = [0,100])
value = 205

[State -3, 彫僷儞]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,statetype != C)
trigger1 = (EnemyNear,Pos Y >= -20)    ;仸尅惂
trigger1 = (P2bodyDist X = [-30,60])
trigger1 = (var(59) = [0,200])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 55)
trigger2 = (var(59) = [0,250])
value = 200

[State -3, 孅彫僷儞]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (EnemyNear,statetype != A)
trigger1 = (EnemyNear,Pos Y >= 0)    ;仸尅惂
trigger1 = (P2bodyDist X = [-30,60])
trigger1 = (var(59) = [0,250])
trigger1 = (ctrl)||(stateno = [6000,6001])
trigger2 = ((stateno = 200)||(stateno = 400))&&(movecontact);仸楢寕
trigger2 = (P2bodyDist X <= 55)
trigger2 = (var(59) = [0,250])
trigger3 = (stateno = 52);仸楢寕
trigger3 = (P2bodyDist X <= 55)
trigger3 = (var(59) = [0,500])
trigger3 = (EnemyNear,movetype = H)
value = 400

[State -3, 搳偘]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType != A)
triggerall = (EnemyNear,statetype != L)
triggerall = (EnemyNear,statetype != A)
triggerall = (EnemyNear,pos Y >= 0)
triggerall = (P2bodyDist X = [-30,30])
triggerall = (EnemyNear,stateno != 5120)
triggerall = (EnemyNear,prevstateno != 5110)
triggerall = (EnemyNear,movetype != H)
trigger1 = (stateno = 5120)    ;仸儕僶僒
trigger1 = (animtime = 0)
trigger1 = (var(59)=[0,100])
trigger1 = (EnemyNear,movetype != A)
trigger2 = (var(59)=[700,1000])   ;仸傇偭傁
trigger2 = (ctrl)||(stateno = [6000,6001])
value = 800
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
;嬻拞峌寕

[State -3, 嫮俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [0,85])    ;仸旘傃崬傒
trigger1 = (P2bodyDist X = [0,110])
trigger1 = (var(59) = [0,900])
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (vel Y = [3,3.8])
trigger1 = (ctrl)
trigger2 = (P2dist Y = [-10,50]);仸楢寕
trigger2 = ((stateno = 610)||(stateno = [630,640]))&&(movecontact)
trigger2 = (var(59) = [0,550])
trigger3 = ((stateno = 600)||(stateno = 630))&&(movecontact);仸楢寕
trigger3 = (var(59) = [0,400])
trigger3 = (P2dist Y >= 10)
value = 650

[State -3, 嫮俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [-40,30])    ;仸尅惂
trigger1 = (P2bodyDist X = [60,100])
trigger1 = (var(59) = [0,150])
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (vel Y > 4)
trigger1 = (ctrl)
trigger2 = (P2dist Y = [-10,50]);仸楢寕
trigger2 = ((stateno = 610)||(stateno = [630,640]))&&(movecontact)
trigger2 = (var(59) = [0,550])
value = 620

[State -3, 拞k]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [-20,20])    ;仸尅惂
trigger1 = (P2bodyDist X = [70,120])
trigger1 = (var(59) = [0,150])
trigger1 = (vel Y > 5)
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (ctrl)
trigger2 = ((stateno = 600)||(stateno = 630))&&(movecontact);仸楢寕
trigger2 = (var(59) = [0,550])
trigger2 = (P2dist Y = [-50,10])
trigger3 = (P2dist Y = [-20,20])    ;仸懳嬻尅惂
trigger3 = (P2bodyDist X = [50,80])
trigger3 = (var(59) = [0,200])
trigger3 = (enemynear,pos Y < 0)
trigger3 = (ctrl)
trigger3 = (P2dist Y = [-50,10])
value = 640

[State -3, 拞俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [-20,20])    ;仸尅惂
trigger1 = (P2bodyDist X = [50,80])
trigger1 = (var(59) = [0,150])
trigger1 = (vel Y > 5)
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (ctrl)
trigger2 = ((stateno = 600)||(stateno = 630))&&(movecontact);仸楢寕
trigger2 = (var(59) = [0,550])
trigger2 = (P2dist Y = [-50,10])
trigger3 = (P2dist Y = [-20,20])    ;仸懳嬻尅惂
trigger3 = (P2bodyDist X = [30,80])
trigger3 = (var(59) = [0,200])
trigger3 = (enemynear,pos Y < 0)
trigger3 = (ctrl)
trigger3 = (P2dist Y = [-50,10])
value = 610

[State -3, 彫俲]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [-10,35])    ;仸懳抧尅惂
trigger1 = (P2bodyDist X = [-30,50])
trigger1 = (var(59) = [0,150])
trigger1 = (vel Y > 5)
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (ctrl)
trigger2 = (stateno = 600)&&(movehit);仸楢寕
trigger2 = (P2bodyDist X <= 60)
trigger2 = (var(59) = [0,50])
trigger3 = (P2dist Y = [-20,35])    ;仸懳嬻尅惂
trigger3 = (P2bodyDist X = [0,50])
trigger3 = (var(59) = [0,210])
trigger3 = (enemynear,pos Y < 0)
trigger3 = (ctrl)
value = 630

[State -3, 彫俹]
type = ChangeState
triggerall = (var(0) = 1)&&(hitpausetime = 0)
triggerall = (Alive)&&(NumEnemy)&&(RoundState = 2)
triggerall = (StateType = A)
triggerall = (EnemyNear,statetype != L)
trigger1 = (P2dist Y = [0,50])    ;仸抧忋尅惂
trigger1 = (P2bodyDist X = [-10,50])
trigger1 = (enemynear,pos Y >= 0)
trigger1 = (var(59) = [0,250])
trigger1 = (ctrl)
trigger2 = (P2dist Y = [-80,0])    ;仸僄儕傾儖
trigger2 = (P2bodyDist X = [0,50])
trigger2 = (EnemyNear,movetype = H)&&(EnemyNear,stateno != [120,159])
trigger2 = (ctrl)
value = 600
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
