
;===============================================================================
;===============================================================================
;===============================================================================
; 중요 기술
;===============================================================================
;===============================================================================
;===============================================================================

[StateDef -2, 중요 기술]

;-------------------------------------------------------------------------------
; 정보 표시
;-------------------------------------------------------------------------------

[State -2, 정보 표시]
type = DisplayToClipboard
trigger1 = !ishelper && palno != 12
text = "Life = %d  Power = %d"
params = Life, Power
ignorehitpause = 1

[State -2, 정보 표시]
type = DisplayToClipboard
trigger1 = !ishelper && palno = 12
text = "Life = %d  Power = %d"
params = var(46), var(45)
ignorehitpause = 1

;-------------------------------------------------------------------------------
; 기초 대사
;-------------------------------------------------------------------------------

[State -2, 자동 인공지능 설정]
type = varset
triggerall = !ishelper
triggerall = alive
trigger1 = palno = 12 && var(1) = 1
v = 30
value = 1+(-1*!alive)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 일반／흉악 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 1
trigger2 = palno = 2
trigger3 = palno = 3
trigger4 = palno = 4
trigger5 = palno = 5
trigger6 = palno = 6
trigger7 = palno = 7
trigger8 = palno = 8
trigger9 = palno = 9
trigger10 = palno = 10
trigger11 = palno = 11
v = 1
value = 0

[State -2, 천성 흉악 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
v = 1
value = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 상대 시스템 초기화 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 37
value = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 흉악 정도 설정]
type = varset
trigger1 = palno = 12
fv = 38
value = 2
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 게임 시간 경과 설정]
type = varadd
triggerall = palno = 12
trigger1 = roundstate = 2
v = 54
value = 1
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 게임 시간 리셋 설정]
type = varset
triggerall = palno = 12
trigger1 = roundstate != 2
trigger2 = roundstate = 2 && fvar(32) != 1
trigger3 = roundstate = 2 && fvar(32)!= 0 && var(54)>=6700
v = 54
value = ((roundstate=2&&fvar(32)!=1)*5800)
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험도 측정]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = roundno = 1 && roundstate < 2
trigger2 = roundstate >= 2 && var(3) != gametime
fv = 32
value = 1-(roundstate>=2&& var(3)!=gametime)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 위험도 측정]
type = varset
triggerall = !ishelper && palno = 12
trigger1 = numexplod(2211325)
fv = 32
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 강제 살상능력 제거]
type = varset
trigger1 = palno=12&&fvar(38)=2&&stateno!=2701
fv = 18
value = 0
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 강제 살상능력 부여]
type = varset
triggerall = stateno = 2701
trigger1 = palno=12&&fvar(38)=2
trigger1 = time<150&&enemy,movereversed
fv = 18
value = 1
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 마력 설정]
type = varadd
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = var(57) = 2
v = 45
value = random*999-random%999
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = var(29) <= 1 && var(45) >= 9000
v = 45
value = 9000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = var(44) <= 1 && var(45) >= 16000
v = 45
value = 16000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = var(44) >= 1 && var(45) >= 24000
v = 45
value = 24000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = roundstate = 2 && var(1)=1
trigger1 = ((gametime%4) = 1)||(time%4 = 1)
v = 45
value =16+((life<lifemax/4)*(powermax/2000))+(var(29)>=1)*16+(var(44)>=1)*32
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = roundstate = 2 && var(1) = 1
v = 45
value = ((life<100)=1)*random%7+((life<300)*(enemy,life>enemy,lifemax*0.6))*random%24+((life>=300)*(enemy,life<enemy,lifemax*0.01))*-1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
triggerall = enemy,life>enemy,lifemax*0.5
trigger1 = roundstate = 2 && var(1) = 1
v = 45
value = (50+((palno!=12)*30))+((life<=lifemax*0.2)*(50+((palno!=12)*30)))+((var(29)>=1)*200)+((var(30)!=0&&fvar(28)=0)*150)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = varset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)=1
trigger1 = roundstate >= 3
trigger2 = !win
trigger2 = !lose
trigger2 = !winko
trigger2 = !loseko
trigger2 = alive && var(46) <= 0 || var(46) > LifeMax
trigger3 = drawgame
v = 45
value = Const(Data.Power)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = VarSet
triggerall = !ishelper
triggerall = palno = 12 && var(1) = 1
trigger1 = roundstate < 2
trigger2 = roundstate != 2
trigger4 = roundstate >= 3
trigger2 = !win
trigger2 = !lose
trigger2 = !winko
trigger2 = !loseko
trigger2 = alive && var(46) <= 0 || var(46) > LifeMax
trigger3 = drawgame
v = 46
value = Const(Data.Life)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = (var(30)=0||var(30)!=0&&palno!=12)
v = 46
value = -(lifemax*(((life>=0)*0.0005)+((life>=lifemax*0.02)*0.004)+((life>=lifemax*0.1)*0.01)+((life>=lifemax*0.2)*0.065)))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = var(30)!=0&&palno=12&&(fvar(28)=[0,2])
v = 46
value=-(lifemax*((life>=0)*(0.00025+(0.001*fvar(28)))+((life>=lifemax*0.02)*(0.002+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.005+(0.004*fvar(28))))+((life>=lifemax*0.2)*(0.01+(0.045*fvar(28))))))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = var(30)!=0&&palno=12&&(fvar(28)=[1,2])&&enemy,life<enemy,lifemax*0.95
v = 46
value = -(lifemax*(((life>=0)*(0.0005+(0.001*fvar(28))))+((life>=lifemax*0.02)*(0.003+(0.001*fvar(28))))+((life>=lifemax*0.1)*(0.004+(0.001*fvar(28))))))
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = varAdd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = var(1) = 1 && palno = 12
v = 46
value = ((life>100)=1)*random%2+((life<300)*(enemy,life>enemy,lifemax*0.6))*random%72-((life>=300)*(enemy,life<enemy,lifemax*0.01))-((life<20)*(enemy,life<life))+random%1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = varAdd
triggerall = !ishelper
triggerall = palno = 12
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 = var(1) = 1 && palno = 12
trigger1 = life <= 10 && var(42) = 1000
v = 46
value = lifemax*1/2 + random%72
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 상대 체력 측정]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = var(1) = 1
trigger1 = 1
v = 41
value = Enemy, Life
ignorehitpause = 1

[State -2, 상대 체력 측정]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
trigger2 = var(30) != 1
v = 42
value = 0
ignorehitpause = 1

[State -2, 상대 체력 측정]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = var(1) = 1
triggerall = roundstate != 0
trigger1 = var(42) > 1000 || var(42) < 0
v = 42
value = 1000
ignorehitpause = 1

[State -2, 상대 체력 측정]
type = varset
triggerall = !ishelper
triggerall = palno = 12
triggerall = var(1) = 1
trigger1 = var(41) - enemy,life >= 1
trigger1 = projhit = 1 ,< 5
v = 42
value = 0
ignorehitpause = 1

[State -2, 상대 체력 측정]
type = varadd
triggerall = !ishelper
triggerall = palno = 12
triggerall = var(1) = 1
triggerall = var(42) != 1000
trigger1 = roundstate = 2
v = 42
value = 1+((var(29)>=1)*random%10)+((var(44)>=1)*random%20)
ignorehitpause = 1

[State -2, 목표／판정 검사]
type = varset
trigger1 = palno=12&&(stateno=2702||enemy,numprojid(96968484321)>=1||RoundState!=2)
fv = 19
value = (stateno!=2702)*RoundState=2
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 목표／판정 검사]
type = varset
trigger1 = palno=12&&numtarget&&target,ishelper=0
fv = 20
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 목표／판정 검사]
type = varset
triggerall = palno = 12
trigger1 = RoundState = 2 && (GameTime%50) = 1
trigger2 = RoundState != 2
fv = 22
value = 0+((RoundState = 2)*enemy,life)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 목표／판정 검사]
type = varset
triggerall = palno = 12 && var(54) < 5700
trigger1 = RoundState = 2 && (GameTime%55) = 1
trigger1 = fvar(22) != 0 && enemy,life >= fvar(22)
trigger2 = fvar(22) != 0 && enemy,life < fvar(22)
trigger3 = RoundState != 2
fv = 23
value = IfElse((RoundState = 2),IfElse((fvar(22) != 0 && enemy,life < fvar(22)),0,1),0)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 목표／판정 검사]
type = varadd
trigger1 = palno = 12 && roundstate = 2 && fvar(23) = 1 && var(54) < 5700
fv = 24
value = 1+((enemy,life>=enemy,lifemax&&enemy,power>=enemy,powermax)*80)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 목표／판정 검사]
type = varset
triggerall = palno = 12
trigger1 = roundstate != 2 || fvar(23) = 0 || numtarget || var(54) >= 5700
fv = 24
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 목표／판정 검사]
type = varset
trigger1 = palno = 12 && RoundState <= 2 && anim = 0 && ctrl = 0 && var(54) <= 40
trigger1 =  enemynear,movetype=A&&(enemynear,numproj>=1||enemynear,numhelper>=1)||enemynear,anim!=0&&p2bodydist X <= 60||enemynear,vel x != 0
trigger2 = palno = 12 && RoundState>=3
fv = 25
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2, 목표／판정 검사]
type = varset
triggerall =palno=12
trigger1 = var(29) >= 1
trigger2 = roundstate != 2
trigger3 = life>=lifemax
fv = 26
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 목표／판정 검사]
type = varadd
triggerall = Helper(21474836),GetHitVar(Damage)
trigger1 =palno=12&&time=0
fv = 26
value = 1

[State -2, 목표／판정 검사]
type = varset
trigger1 =palno=12&&(fvar(28)!=[0,2])
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 목표／판정 검사]
type = varset
trigger1 =palno=12&&fvar(28)!=0&&(fvar(24)>=2150&&var(54)>=2150||fvar(25)=1||fvar(29)!=0&&RoundState<=2&&var(54)<=40&&random<=100)
fv = 28
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 목표／판정 검사]
type = varset
trigger1 =palno=12&&roundstate>=3&&(drawgame||lose||win)
fv = 29
value = (!win)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 목표／판정 검사]
type = varset
trigger1 = 1
fv = 33
value = (projhit22183=1)

[State -2, 목표／판정 검사]
type = varset
triggerall = !ishelper
trigger1 = palno = 12 && (GameTime%20) = 1
fv = 35
value = power
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 목표／판정 검사]
type = varset
triggerall = !ishelper
trigger1 = helper(21474836),var(52) = 1
trigger1 = palno=12&&(helper(21474836),stateno=21474836)&&enemy,numhelper>=2&&enemy,movetype=A
fv = 36
value = enemy,stateno
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2, 도우미 설정]
type = VarSet
triggerall = var(1) != 1
triggerall = var(29) <= 1
trigger1 = numhelper(1150) >= 1
trigger2 = numhelper(1305) >= 1
trigger3 = numhelper(1306) >= 1
trigger4 = numhelper(1307) >= 1
trigger5 = numhelper(1355) >= 1
trigger6 = numhelper(1501) >= 1
trigger7 = numhelper(1502) >= 1
trigger8 = numhelper(1503) >= 1
trigger9 = numhelper(1601) >= 1
trigger10 = numhelper(1602) >= 1
trigger11 = numhelper(1603) >= 1
v = 8
value = 1

[State -2, 도우미 설정]
type = VarSet
triggerall = var(1) != 1
trigger2 = var(29) >= 1
trigger1 = numhelper(1150) <= 0
trigger1 = numhelper(1305) <= 0
trigger1 = numhelper(1306) <= 0
trigger1 = numhelper(1307) <= 0
trigger1 = numhelper(1355) <= 0
trigger1 = numhelper(1501) <= 0
trigger1 = numhelper(1502) <= 0
trigger1 = numhelper(1503) <= 0
trigger1 = numhelper(1601) <= 0
trigger1 = numhelper(1602) <= 0
trigger1 = numhelper(1603) <= 0
v = 8
value = 0

[State -2, 공격력 가중 설정]
type = varset
trigger1 = var(29) >= 1
var(39) = 3-((var(1)!=1)||(var(1)=1&&palno=12))

[State -2, 공격력 평상 설정]
type = varset
trigger1 = var(29) <= 1
var(39) = 1

[State -2, 각성 시간 경과 설정]
type = varadd
triggerall = stateno != 2300 && stateno != 2301 && stateno != 2303
triggerall = stateno != 2400 && stateno != 2401
triggerall = stateno != 2700 && stateno != 2701
triggerall = stateno != 2200 && stateno != 2201 
triggerall = stateno != 2600 && stateno != 2601 
triggerall = stateno != 3200 && stateno != 3201
triggerall = stateno != 2500 && stateno != 2501
triggerall = stateno != 2250 && stateno != 2251
trigger1 = stateno != [1000,2147483647]
trigger2 = stateno = [1000,2147483647]
trigger2 = gametime%8 = 1
v = 44
value = -5-(stateno = [1000,2147483647])*11

[State -2, 각성 시간 리셋 설정]
type = varset
trigger1 = palno != 12 && roundstate != 2
v = 44
value = 0

[State -2, 각성 시간 경과 설정]
type = varadd
triggerall = stateno != 2300 && stateno != 2301 && stateno != 2303
triggerall = stateno != 2400 && stateno != 2401
triggerall = stateno != 2700 && stateno != 2701
triggerall = stateno != 2200 && stateno != 2201
triggerall = stateno != 2600 && stateno != 2601
triggerall = stateno != 3200 && stateno != 3201
triggerall = stateno != 2500 && stateno != 2501
triggerall = stateno != 2250 && stateno != 2251
trigger1 = stateno != [1000,2147483647]
trigger2 = stateno = [1000,2147483647]
trigger2 = gametime%8 = 1
v = 29
value = -1-4*(var(44)>=1)-(stateno = [1000,2147483647])*11

[State -2, 각성 시간 리셋 설정]
type = varset
trigger1 = palno != 12 && roundstate != 2
v = 29
value = 0

[State -2, 무작위 타격효과 재생용]
Type = VarSet
trigger1 = 1
var(35) = 0 + (var(29)>=1)*1000
IgnoreHitPause = 1

[State -2, 무작위 타격효과 재생용]
Type = VarSet
trigger1 = Random <= 300
var(35) = 1 + (var(29)>=1)*1000
IgnoreHitPause = 1

[State -2, 무작위 타격효과 재생용]
Type = VarSet
trigger1 = Random <= 300
var(35) = 2 + (var(29)>=1)*1000
IgnoreHitPause = 1

[State -2, 무작위 타격효과 재생용]
Type = VarSet
trigger1 = Random <= 300
var(35) = 3 + (var(29)>=1)*1000
IgnoreHitPause = 1

[State -2, 무작위 일반효과 재생용]
type = varrandom
trigger1 = 1
range = -55,55
v = 50

[State -2, 무작위 일반효과 재생용]
type = varrandom
trigger1 = 1
range = 0,-60
v = 51

[State -2, 무작위 일반효과 재생용]
type = varrandom
trigger1 = 1
range = -40,-130
v = 53

[State -2, 무작위 일반효과 재생용]
type = varrandom
trigger1 = 1
range = -75,75
v = 52

[State -2, 무작위 타격음 재생용]
type = VarRandom
trigger1 = 1
v = 6
range = 0,2

[State -2, 조작 확인]
type = varset
trigger1 = command = "holdup"
v = 56
value = 2

[State -2, 조작 확인]
type = varset
trigger1 = command = "holddown"
v = 56
value = 3

[State -2, 조작 확인]
type = varset
trigger1 = command != "holddown"
trigger1 = command != "holdup"
v = 56
value = 0

[State -2, 오른쪽 설정]
type = varset
trigger1 = var(10) = 0
trigger1 = facing = 1
v = 10
value = 1

[State -2, 왼쪽 설정]
type = varset
trigger1 = var(10) = 0
trigger1 = facing = -1
v = 10
value = 2

[State -2, 높게 뛰기 처리 설정]
type = varset
trigger1 = stateno = 10
trigger1 = time = 0
trigger2 = stateno = 100
v = 15
value = 20

[State -2, 높게 뛰기 처리 해제]
type = varset
trigger1 = stateno = 52
trigger1 = time = 0
v = 15
value = 0

[State -2, 높게 뛰기 처리 증감]
type = varadd
trigger1 = 1
v = 15
value = -1

[State -2, 낮은 뛰기 처리 설정]
type = varset
trigger1 = stateno = 40
trigger1 = command != "holdup"
v = 16
value = 1

[State -2, 낮은 뛰기 처리 해제]
type = varset
trigger1 = stateno = 40
trigger1 = command = "holdup"
v = 16
value = 0

[State -2, 뛰기 정도 설정]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 42
trigger1 = time = 1
trigger1 = var(15) >= 1
x = 5
;y = -9

[State -2, 뛰기 정도 설정]
type = velset
trigger1 = stateno = 50
trigger1 = anim = 43
trigger1 = time = 1
trigger1 = var(15) >= 1
x = -5
;y = -9

[State -2, 뛰기 정도 설정]
type = veladd
trigger1 = stateno = 50
trigger1 = time = 1
trigger1 = var(16) = 1
y = 3

[State -2, 기술 재설정]
type = varset
trigger1 = movetype = H
v = 13
value = 0

[State -2, 자가 변화도 설정]
type = varset
trigger1 = roundstate = 0
var(21) = 1

[State -2, 자가 변화도 설정]
type = varset
trigger1 = roundstate = 0
var(22) = 1

[State -2, 자가 변화도 설정]
type = varset
trigger1 = var(21) <= 1
var(22) = 3

[State -2, 자가 변화도 설정]
type = varset
trigger1 = var(21) >= 150
var(22) = 2

[State -2, 자가 변화도 설정]
type = varadd
trigger1 = 1
trigger1 = var(22) = 3
var(21) = 5

[State -2, 자가 변화도 설정]
type = varadd
trigger1 = 1
trigger1 = var(22) = 2
var(21) = -5

;-------------------------------------------------------------------------------
; 대리 담당
;-------------------------------------------------------------------------------

[State -2, 신의 심판]
type = helper
triggerall = palno=12&&(stateno=2701&&time<150)&&!ishelper&&fvar(32)!=0&&fvar(38)!=0
trigger1 = numhelper(2710)=0&&enemy,numprojid(169994)>=1
id = 2710
persistent = 0
name = "God's Judgement"
pos = 0,0
postype = P1
stateno = 2710
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2995) < 5
trigger1 = Gametime%5 = 0
helpertype = Player
name = "Enemy Killer"
ID = 2995
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2995) < 5
trigger1 = Gametime%5 = 1
helpertype = Player
name = "Enemy Killer"
ID = 2995
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2995) < 5
trigger1 = Gametime%5 = 2
helpertype = Player
name = "Enemy Killer"
ID = 2995
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2995) < 5
trigger1 = Gametime%5 = 3
helpertype = Player
name = "Enemy Killer"
ID = 2995
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2995) < 5
trigger1 = Gametime%5 = 4
helpertype = Player
name = "Enemy Killer"
ID = 2995
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 상대 사살]
type = Helper
triggerall = !ishelper
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
trigger1 = NumHelper(2996) = 0
helpertype = Player
name = "Enemy Killer"
ID = 2996
stateno = 2995
pos = 0,0
postype = p1
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State -2, 일반 중요 처리업무 대리 담당]
type = helper
triggerall = numhelper(21474836) = 0
triggerall = roundstate = 2
trigger1 = palno != 12 && var(1) != 1
id = 21474836
persistent = 1
name = "Dark Heaven"
pos = 0,0
postype = P1
stateno = 21474836
helpertype = normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 중요 처리업무 대리 담당]
type = helper
triggerall = numhelper(21474836) = 0
trigger1 = var(1) = 1
id = 21474836
persistent = 1
name = "Dark Heaven"
pos = 0,0
postype = P1
stateno = 21474836
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;-------------------------------------------------------------------------------
; 목표 조정
;-------------------------------------------------------------------------------

[State -2, 목표 조정]
type = targetstate
trigger1 = enemy,alive = 0 && enemy,statetype = S
value = 6250

[State -2, 목표 조정]
type = targetstate
trigger1 = stateno = 2701 && enemy,alive = 0
value = 6251

[State -2, 목표 조정]
type = targetstate
triggerall = palno = 12
trigger1 = (target,stateno != [6600,6666]) && stateno = 2701 && time >= 150
value = 6600

[State -2, 목표 조정]
type = TargetState
triggerall = palno = 12
trigger1 = fvar(38) > 1
trigger1 = var(57) = 1
value = 2990
ignorehitpause = 1

[State -2, 목표 조정]
type = targetLifeAdd
triggerall = palno = 12
trigger1 = stateno = 2701 || stateno = 2201 && time >= 20
value = -99999999999
absolute = 1

[State -2, 목표 조정]
type = targetlifeadd
trigger1 = projhit22079 >= 1
value = Ceil(-0.003 * enemy,Const(data.life))
absolute = 1

[State -2, 목표 조정]
type = targetlifeadd
trigger1 = projhit35902 >= 1
value = (Ceil(-0.005 * enemy,Const(data.life))) * var(39)
ignorehitpause = 1
absolute = 1

[State -2, 목표 조정]
type = targetLifeAdd
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -99999999999
ignorehitpause = 1
absolute = 1

[State -2, 목표 조정]
type = targetpowerAdd
triggerall = palno = 12
trigger1 = enemy,life <= (Ceil(0.3 * enemy,Const(data.life)))
value = -(Ceil(1 * enemy,Const(data.power)))
ignorehitpause = 1

[State -2, 본체 죽음]
type = ChangeState
triggerall = var(1) = 1
trigger1 = !alive && stateno = [5000,5050]
value = 6250

;-------------------------------------------------------------------------------
; 흉악 담당
;-------------------------------------------------------------------------------

[State -2, 흉악 담당]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = statetype != A
trigger1 = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP, AA, AT, AP
stateno = 1875
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 담당]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = statetype = A
trigger1 = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP, AA, AT, AP
stateno = 1876
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 담당]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) <= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP, AA, AT, AP
stateno = 1877
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 담당]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = stateno = 40 || stateno = 52
trigger1 = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP, AA, AT, AP
stateno = 1800
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 담당]
type = HitOverride
triggerall = alive && var(1) = 1
triggerall = var(29) >= 1
triggerall = statetype = A
trigger1 = 1
attr = SCA, NA, SA, HA, NT,ST,HT, NP, SP, HP, AA, AT, AP
stateno = 1800
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 흉악 담당]
type = NotHitBy
triggerall = var(1) = 1
triggerall = stateno = [40,52]
trigger1 = time = 0
value = SCA,AA,AT,AP
Time = 25

[State -2, 흉악 담당]
type = NotHitBy
triggerall = var(1) = 1
trigger1 = RoundState != 2 || RoundState=2&&var(54)<=100
trigger2 = fvar(32) != 1
value = SCA

[State -2, 흉악 담당]
type = NotHitBy
triggerall = !ishelper
triggerall = palno = 12 && var(1) = 1
trigger1 = var(29)>=1 || var(29)<=1
trigger2 = var(58) != gametime+214748
value = SCA, AA, AT, AP
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -2, 흉악 담당]
type = SelfState
triggerall = palno = 12 && !ishelper && alive
triggerall = var(58) != gametime+214748 && movetype = H
trigger1 = 1
value = 214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -2, 흉악 담당]
type = SelfState
triggerall = !ishelper && palno = 12 && alive
triggerall = var(58) != gametime+214748
trigger1 = movetype = H || (stateno = [5000,5150]) || (anim = [5000,5150]) || stateno = 6251
value = 214748
ctrl = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

;-------------------------------------------------------------------------------
; 효과 삭제
;-------------------------------------------------------------------------------

[State -2, 효과 삭제]
type = stopSnd
trigger1 = stateno != 100
channel = 1

[State -2, 효과 삭제]
type = stopsnd
trigger1 = movetype = H
channel = 3

[State -2, 효과 삭제]
type = stopsnd
trigger1 = stateno != 1055
channel = 5

[State -2, 효과 삭제]
type = stopSnd
trigger1 = MoveType = H
channel = 2

[State -2, 효과 삭제]
type = stopsnd
trigger1 = MoveType = H
channel = 1

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
id = 185

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
ID = 1470

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
ID = 4000

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
id = 4200

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
id = 1655

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
id = 1860

[State -2, 효과 삭제]
type = removeexplod
trigger1 = movetype = H
id = 2200

[State -2, 효과 삭제]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) >= 1
ID = 22138

[State -2, 효과 삭제]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) >= 1
ID = 22139

[State -2, 효과 삭제]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) <= 1
ID = 22140

[State -2, 효과 삭제]
type = RemoveExplod
trigger1 = anim != 0 || stateno = 10051
trigger2 = var(29) <= 1
ID = 22141

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
ID = 2405

[State -2, 효과 삭제]
type = removeexplod
trigger1 = stateno != 0
ID = 22063

[State -2, 효과 삭제]
type = removeexplod
trigger1 = MoveType = H
ID = 1000

[State -2, 효과 삭제]
type = removeexplod
trigger1 = anim != 0
ID = 22123

[State -2, 효과 삭제]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 110004

[State -2, 효과 삭제]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 120004

[State -2, 효과 삭제]
type = removeexplod
trigger1 = anim != 0 || stateno = 10051
ID = 130004

[State -2, 효과 삭제]
type = removeexplod
trigger1 = stateno != 196
ID = 100008

[State -2, 효과 삭제]
type = RemoveExplod
trigger1 = !alive

;-------------------------------------------------------------------------------
; 효과 설정
;-------------------------------------------------------------------------------

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(110004);(gametime%68) = 1
trans = add
anim = 100004
id = 110004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.5,0.5
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(120004);(gametime%68) = 1
trans = add
anim = 100004
id = 120004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.7,0.7
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(130004);(gametime%68) = 1
trans = add
anim = 100004
id = 130004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.3,0.3
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = var(50),var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 0,-3
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22138) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22138
id = 22138
sprpriority = 0
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22139) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22139
id = 22139
sprpriority = -1
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22126
sprpriority = 0
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
;trigger1 = time = 0
anim = 22125;22063
sprpriority = 0
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%20) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = 0,-85
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = 20,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
id = 22123
sprpriority = 99
postype = p1
pos = -20,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) <= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(110004);(gametime%68) = 1
trans = sub
anim = 100004
id = 110004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.5,0.5
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(120004);(gametime%68) = 1
trans = sub
anim = 100004
id = 120004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.7,0.7
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = !numexplod(130004);(gametime%68) = 1
trans = sub
anim = 100004
id = 130004
postype = p1
pos = -5,-90
ownpal = 1
scale = 0.3,0.3
sprpriority = 50
supermove = 1
bindtime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%8) = 1
anim = 22131
trans = sub
sprpriority = 10
postype = p1
pos = var(50),var(51)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 0,-3
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22140) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22138
trans = sub
id = 22140
sprpriority = 0
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
trigger1 = time >= 15
trigger1 = numexplod(22141) <= 0
;trigger1 = (GameTime%15) = 1
anim = 22139
trans = sub
id = 22141
sprpriority = -1
postype = p1
pos = -38,-32
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
removetime = -1

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
anim = 22126
trans = sub
sprpriority = 0
postype = p1
pos = -5,-90
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%5) = 1
;trigger1 = time = 0
anim = 22125;22063
trans = sub
sprpriority = 0
postype = p1
pos = 0,0
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%20) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-85
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%35) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 20,-60
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%30) = 1
anim = 22123
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -20,-40
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%40) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = -10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%49) = 1
anim = 22122
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%46) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%38) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 10,-10
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
triggerall = !ishelper
triggerall = var(29) >= 1
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%42) = 1
anim = 22124
trans = sub
id = 22123
sprpriority = 99
postype = p1
pos = 0,-30
bindtime = -1
under = 0
ownpal = 1
persistent = 0
ignorehitpause = 0
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = Projhit3459 = 1 || Projhit35904 = 1 || Projhit22519 = 1
anim = 22109 + var(35)
sprpriority = 6
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjHit20000 = 1 || projhit22182 = 1 || projhit22183 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjHit22079 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjGuarded22079 = 1
anim = 22113
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = Projhit3459 = 1 || Projhit35904 = 1 || Projhit22519 = 1
anim = 22109 + var(35)
sprpriority = 6
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjHit20000 = 1 || projhit22182 = 1 || projhit22183 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjHit22079 = 1
anim = 22109 + var(35)
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = Explod
trigger1 = ProjGuarded22079 = 1
anim = 22113
sprpriority = 100
postype = p2
pos = 0,-60
bindtime = -1
ignorehitpause =0
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 위험도 측정]
type = Explod
trigger1 = !ishelper&&palno=12&&roundstate>=2
trigger1 = fvar(32)!=1
trigger1 = !numexplod(2211325)
anim = 0
id=2211325
removetime = -1
sprpriority = 100
postype = left
pos = 0,10000
bindtime = 1
ignorehitpause =1
under = 0
ownpal = 1
PauseMoveTime = 9999999

[State -2, 효과 설정]
type = PlaySnd
trigger1 = projhit22182 = 1 || projhit22183 = 1
value = 2300,2

;-------------------------------------------------------------------------------
; 영역 설정
;-------------------------------------------------------------------------------

[State -2, 영역 설정]
type = Projectile
triggerall = anim = 0
triggerall = time >= 15
trigger1 = (GameTime%2) = 1
attr = S, SA
projanim = 3459
projhitanim = -1
projid = 3459
projpriority = 999999999
projsprpriority = 1
;projedgebound = 220
projremove = 1
projremovetime = 4
postype = p1
offset = 0,0
velocity = 0
animtype  = Light
damage    = 0,0
getpower = 0,0
givepower = 0,0
guardflag =
hitflag = MAFD
pausetime = 2,8
sparkno = -1
sparkxy = -15,-77
hitsound   = -1
guard.sparkno = -1;s7011
guardsound = -1
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1

;-------------------------------------------------------------------------------
; 자가 확인
;-------------------------------------------------------------------------------

[State -2, 도우미 기초,일반 기술 영역 제한]
type = destroyself
triggerall = ishelper && root, var(1) = 1
trigger1 = stateno = 0
trigger2 = stateno = [10,12]
trigger3 = stateno = 20
trigger4 = stateno = 40
trigger5 = stateno = 45
trigger6 = stateno = [50,52]
trigger7 = stateno = [100,101]
trigger8 = stateno = [105,107]
trigger9 = stateno = 110
trigger10= stateno = 115
trigger11= stateno = 120
trigger12= stateno = [130,132]
trigger13= stateno = 140
trigger14= stateno = [150,155]
trigger15= stateno = 170
trigger16= stateno = 175
trigger17= stateno = 180
trigger18= stateno = 190
trigger19= stateno = [195,196]
trigger20= stateno = 200
trigger21= stateno = 205
trigger22= stateno = 210
trigger23= stateno = 215
trigger24= stateno = 230
trigger25= stateno = 235
trigger26= stateno = 240
trigger27= stateno = 245
trigger28= stateno = 400
trigger29= stateno = 410
trigger30= stateno = 430
trigger31= stateno = 440
trigger32= stateno = 600
trigger33= stateno = 610
trigger34= stateno = 630
trigger35= stateno = 640
trigger36= stateno = [800,801]
persistent = 1
ignorehitpause = 1

[State -2, 도우미 특수,필살 기술 영역 제한]
type = destroyself
triggerall = ishelper && root, var(1) = 1
trigger1 = stateno = 1000
trigger2 = stateno = [1050,1052]
trigger3 = stateno = 1100
trigger4 = stateno = 1150
trigger5 = stateno = 1200
trigger6 = stateno = 1250
trigger7 = stateno = 1300
trigger8 = stateno = 1350
trigger9 = stateno = 1400
trigger10= stateno = 1450
trigger11= stateno = 1500
trigger12= stateno = 1600
trigger13= stateno = 1800
trigger14= stateno = 1805
trigger15= stateno = [1875,1877]
trigger16= stateno = [2200,2202]
trigger17= stateno = [2250,2251]
trigger18= stateno = [2300,2303]
trigger19= stateno = [2400,2401]
trigger20= stateno = [2500,2501]
trigger21= stateno = [2600,2602]
trigger22= stateno = [2700,2702]
trigger23= stateno = [3200,3201]
persistent = 1
ignorehitpause = 1

[State -2, 복제 의혹 - 체력 장애 명령]
type = lifeset
trigger1 = name != "Dark Heaven"
ignorehitpause = 1
value = 0

[State -2, 복제 의혹 - 마력 장애 명령]
type = powerset
trigger1 = name != "Dark Heaven"
ignorehitpause = 1
value = 0

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarRangeSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
value = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarRangeSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
fvalue = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
sysvar(1) = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
sysvar(2) = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
sysvar(3) = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VarSet
trigger1 = enemynear,name="Dark Heaven"&&enemynear,fvar(37)=1&&!ishelper&&name!="Dark Heaven"
sysvar(4) = 0
IgnoreHitPause = 1

[State -2, 복제 의혹 - 이동 장애 명령]
type = VelSet
trigger1 = name != "Dark Heaven"
x = 0
y = 0

[State -2, 복제 의혹 - 이동 장애 명령]
type = changeanim
triggerall = name != "Dark Heaven"
trigger1 = selfanimexist(anim)
value = anim
elem = animelemno(-1)

[State -2, 복제 의혹 - 상태 장애 명령]
type = statetypeset
trigger1 = name != "Dark Heaven"
value = S
physics = N

[State -2, 복제 의혹 - 상태 장애 명령]
type = CtrlSet
triggerall = name != "Dark Heaven"
trigger1 = alive
value = 0

[State -2, 복제 의혹 - 화면 장애 명령]
type = AssertSpecial
trigger1 = name != "Dark Heaven" && !alive
flag = invisible
flag2 = noshadow
flag3 = nokosnd

[State -2, 복제 의혹 - 상태 장애 명령]
type = ChangeState
triggerall = name != "Dark Heaven"
triggerall = (stateno = [0,800])
trigger1 = alive && time >= 20
value = 6305

[State -2, 복제 의혹 - 상태 장애 명령]
type = ChangeState
triggerall = name != "Dark Heaven"
triggerall = (stateno = [0,800])
trigger1 = !alive
value = 6251

[State -2, 사망 명령]
type = ChangeState
triggerall = name = "Dark Heaven"
triggerall = (stateno = [0,800])
trigger1 = !alive
value = 5050

;-------------------------------------------------------------------------------
; 기타 설정
;-------------------------------------------------------------------------------

[State -2, 자가 변화도 설정]
type = Afterimage
triggerall = stateno != 190
trigger1 = roundstate != 0 && !ishelper
trigger1 = TIME = 0
trans = add
PalContrast =  250, 250 -((var(42)>=1000)*150), 250 -((var(42)>=1000)*250)
PalBright = 0,0,0
time    =  -1
length  = 13
TimeGap = 1
FrameGap = 1

[State -2, 자가 변화도 설정]
type = PalFX
trigger1 = !ishelper
trigger1 = stateno != 190
trigger1 = roundstate != 0
time = 2
add = var(21)+((var(42)>=1000)*50),var(21)+((var(42)>=1000)*50),var(21)+((var(42)>=1000)*50)
ignorehitpause = 1

[State -2, 자가 변화도 설정]
type = PalFX
trigger1 = !ishelper
trigger1 = stateno != 190
trigger1 = roundstate != 0
trigger1 = var(21) <= 40
time = 2
add = var(21)-40-((var(42)>=1000)*50),var(21)-40-((var(42)>=1000)*50),var(21)-40-((var(42)>=1000)*50)
ignorehitpause = 1
color = 0

[State -2, 자가 변화도 설정]
type = palfx
triggerall = var(1) = 1
trigger1 = palno != 12 && var(29) >= 1
time = 1
add = 60,60,60
color = 1
ignorehitpause = 1

[State -2, 자가 변화도 설정]
type = PalFX
triggerall = var(1) = 1 && palno != 12
triggerall = var(54) >= 5700 || fvar(24)>=2150&&var(54)>=2150
trigger1 = (GameTime%2) = 1
time = 1
add = 255-((fvar(24)>=2150)*100),100,100+((fvar(24)>=2150)*100)
ignorehitpause = 1

[State -2, 화면 변화도 설정]
type = EnvColor
trigger1 = projhit1050 = 1
persistent = 0
ignorehitpause = 1
time = 1
value = 255,255,255
under = 1

[State -2, 화면 변화도 설정]
type = Envcolor
trigger1 = projHit22079 = 1
ignorehitpause = 1
value = 255, 255, 255
time = 1
under = 5
supermove = 1

[State -2, 화면 변화도 설정]
type = EnvColor
trigger1 = projhit35900 = 1
persistent = 0
ignorehitpause = 1
time = 2
value = 255,255,255
under = 1
invertall = 1

[State -2, 방어 불능 설정]
type = AssertSpecial
trigger1 = var(1) = 1 || var(1) != 1 && var(29) >= 1
flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoairGuard

[State -2, 시간 정지 설정]
type = assertspecial
trigger1 = palno = 12 && !ishelper && fvar(32) != 1
trigger2 = stateno = [3200,3201]
trigger3 = stateno = 2201
trigger4 = stateno = 2701
flag = timerfreeze
ignorehitpause = 1
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State -2, 장치 오작동을 이용한 재시작 방지]
type = AssertSpecial
triggerall = palno = 12 && var(1) = 1
triggerall = !ishelper
triggerall = !loseko
triggerall = !lose
triggerall = !drawgame
triggerall = roundstate = 4
trigger1 = alive && enemy, alive = 0
trigger1 = stateno != 5150
trigger1 = ctrl = 0
trigger1 = stateno = 0
flag = roundnotover
ignorehitpause = 1

[State -2, 장치 오작동을 이용한 재시작 설정]
type = AssertSpecial
triggerall = name = "Dark Heaven"
triggerall = palno = 12 && var(1) = 1
triggerall = enemy,alive
triggerall = roundstate > 2 && roundstate < 4
triggerall = enemy,life > enemy, life*0.01
trigger1 = !Ishelper
trigger1 = palno=12
trigger1 = !win&&!winko
trigger2 = Ishelper
trigger2 = root,palno=12
trigger2 = !root,win&&!root,winko
trigger3 = enemy,life > life
flag = noko
flag2 = nokosnd
flag3 = RoundNotOver
flag4 = TimerFreeze
flag5 = UnGuardable
flag6 = nomusic
ignorehitpause = 1
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State 21474836, 소리없는 죽음]
type = AssertSpecial
triggerall = IsHelper
trigger1 = var(57) = 1
flag = nokosnd
ignorehitpause = 1

[State -2, 상대 통과 능력 설정]
type = PlayerPush
trigger1 = var(29) >= 1
trigger1 = (var(1)!=1)||(var(1)=1)
trigger2 = palno = 12
value = 1-(var(29)>=1)*((var(1)!=1||var(1))&&palno!=12)-1*(palno=12)

[State -2, 움직임 자동 제지]
type = CtrlSet
trigger1 = !ishelper && stateno = (3250 || 3251 || 3252 || 3253 || 3254 || 3255 || 3256) && ctrl = 1
value = 0

[State -2, 움직임 자동 제지]
type = CtrlSet
triggerall = var(57) = 1
trigger1 = !ishelper
value = 0
ignorehitpause = 1
persistent = 1

[State -2, 상태 유형 설정]
type = StateTypeSet
triggerall = var(1) = 1
trigger1 = stateno = [40,52]
MoveType = I

[State -2, 화면 위치 설정]
type = screenbound
trigger1 = ishelper
movecamera = 0

[State -2, 자동 공격력 설정]
type = attackMulSet
trigger1 = 1
value = 1+((var(29)>=1)*(2-(palno=12||var(1)!=1)))
ignorehitpause = 1

[State -2, 자동 방어력 설정]
type = defenceMulSet
trigger1 = var(1) != 1
value = 1.2+(var(29)>=1)*0.4+(var(44)>=1)*0.4
ignorehitpause = 1

[State -2, 폭 설정]
type = Width
trigger1 = 1
edge = 5,0

[State -2, 함수값 위치 설정]
type = PosSet
triggerall = RoundState = 2
trigger1 = stateno = [0,12]
trigger1 = floor(Pos Y) < -20
y = 0

[State -2, 마력 설정]
type = powerset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)!=1
trigger1 = var(44) <= 1 && power >= 9000
value = 9000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = powerset
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)!=1
trigger1 = var(29) <= 1 && power >= 4000
value =4000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = poweradd
triggerall = !ishelper
triggerall = roundstate = 2 && var(1)!=1
trigger1 = (GameTime%4) = 1
value =16+((life<lifemax/3)*(powermax/4000))+(var(29)>=1)*16+(var(44)>=1)*32-(var(1)!=1)*8
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 마력 설정]
type = powerset
triggerall = var(1) = 1
triggerall = palno != 12
trigger1 = var(54) >= 5700 || fvar(24)>=2150&&var(54)>=2150
value = (Const(data.power))
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 마력 설정]
type = powerset
triggerall = !ishelper
triggerall = var(1) = 1
triggerall = palno != 12
trigger1 = palno!=12&&!(stateno=2300||stateno =2400||stateno=2600||stateno=2700||stateno=3200||stateno=3201||stateno=2200)&&fvar(35)-power>=1
value = fvar(35)-power
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
Type = LifeSet
triggerall = var(1) = 1 && alive
triggerall = palno != 12
trigger1 = var(29) >= 1
trigger2 = fvar(32) != 1
trigger3 = roundstate < 2
trigger4 = var(30)=0&&fvar(26)<=36&&life<=1
trigger5 = var(30)!=0&&fvar(26)<=88&&fvar(28)=0&&life<=1
trigger6 = var(30)!=0&&fvar(28)=0&&roundstate>=3
Value = lifemax
IgnoreHitPause = 1

[State -2, 체력 설정]
Type = LifeSet
triggerall = var(1) = 1 && palno != 12 && alive
trigger1 = var(29) >= 1
Value = fvar(39)
IgnoreHitPause = 1

[State -2, 마력 설정]
type = powerset
triggerall = !ishelper
triggerall = palno = 12
trigger1 = 1
value = var(45)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2, 체력 설정]
type = LifeSet
triggerall = palno = 12 && var(1) = 1
triggerall = var(46) != 0
trigger1 = !ishelper
value = var(46)
kill = 0
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -2, 체력 설정]
type = LifeSet
triggerall = palno = 12 && var(1) = 1
triggerall = var(46) = 0
trigger1 = !ishelper
value = var(46)
kill = 1
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

;-------------------------------------------------------------------------------
; 상대 파악
;-------------------------------------------------------------------------------

[State -2, 상대 파악]
type = varset
triggerall = palno = 12 && fvar(38) >= 2
trigger1 = enemynear,Const(data.life) = 999999
trigger1 = enemynear,Const(data.power) >= 3000
trigger1 = enemynear,Const(data.attack) = 10000000
trigger1 = enemynear,Const(data.defence) = 10000000
trigger1 = enemynear,Const(data.fall.defence_mul) > -100000
trigger1 = enemynear,Const(data.liedown.time) = 0
trigger1 = enemynear,Const(data.airjuggle) = 1000000
trigger1 = enemynear,Const(data.sparkno) = 2
trigger1 = enemynear,Const(data.guard.sparkno) = 40
trigger1 = enemynear,Const(data.KO.echo) = 0
trigger1 = enemynear,Const(data.IntPersistIndex) = 60
trigger1 = enemynear,Const(data.FloatPersistIndex) = 40
trigger1 = enemynear,Const(size.xscale) = 1
trigger1 = enemynear,Const(size.yscale) = 1
trigger1 = enemynear,Const(size.ground.back) = 5
trigger1 = enemynear,Const(size.ground.front) = 5
trigger1 = enemynear,Const(size.air.back) = 5
trigger1 = enemynear,Const(size.air.front) = 5
trigger1 = enemynear,Const(size.height) = 16
trigger1 = enemynear,Const(size.attack.dist) = 160
trigger1 = enemynear,Const(size.proj.attack.dist) = 90
trigger1 = enemynear,Const(size.proj.doscale) = 0
trigger1 = enemynear,Const(size.head.pos.x) = -5
trigger1 = enemynear,Const(size.head.pos.y) = -16
trigger1 = enemynear,Const(size.mid.pos.x) = -5
trigger1 = enemynear,Const(size.mid.pos.y) = -16
trigger1 = enemynear,Const(size.shadowoffset) = 0
trigger1 = enemynear,Const(size.draw.offset.x) = 0
trigger1 = enemynear,Const(size.draw.offset.y) = 0
trigger1 = enemynear,Const(velocity.walk.fwd.x) = 0
trigger1 = enemynear,Const(velocity.walk.back.x) = 0
trigger1 = enemynear,Const(velocity.run.fwd.x) = 0
trigger1 = enemynear,Const(velocity.run.fwd.y) = 0
trigger1 = enemynear,Const(velocity.run.back.x) = 0
trigger1 = enemynear,Const(velocity.run.back.y) = 0
trigger1 = enemynear,Const(velocity.jump.y) = 0
trigger1 = enemynear,Const(velocity.jump.neu.x) = 0
trigger1 = enemynear,Const(velocity.jump.back.x) = 0
trigger1 = enemynear,Const(velocity.jump.fwd.x) = 0
trigger1 = enemynear,Const(velocity.runjump.back.x) = 0
trigger1 = enemynear,Const(velocity.runjump.fwd.x) = 0
trigger1 = enemynear,Const(velocity.airjump.y) = 0
trigger1 = enemynear,Const(velocity.airjump.neu.x) = 0
trigger1 = enemynear,Const(velocity.airjump.back.x) = 0
trigger1 = enemynear,Const(velocity.airjump.fwd.x) = 0
trigger1 = enemynear,Const(movement.airjump.num) = 0
trigger1 = enemynear,Const(movement.airjump.height) = 0
trigger1 = enemynear,Const(movement.yaccel) = 1000
trigger1 = enemynear,Const(movement.stand.friction) = .001
trigger1 = enemynear,Const(movement.crouch.friction) = .001
v = 57
value = 1
ignorehitpause = 1

[State -2, 상대 파악]
type = varset
triggerall = palno = 12 && fvar(38) >= 2
trigger1 = enemynear,Const(data.life) = 1500
trigger1 = enemynear,Const(data.power) = 5000
trigger1 = enemynear,Const(data.attack) = 150
trigger1 = enemynear,Const(data.defence) = 120
trigger1 = enemynear,Const(data.fall.defence_mul) > -100
trigger1 = enemynear,Const(data.liedown.time) = 60
trigger1 = enemynear,Const(data.airjuggle) = 99
trigger1 = enemynear,Const(data.sparkno) = 2
trigger1 = enemynear,Const(data.guard.sparkno) = 40
trigger1 = enemynear,Const(data.KO.echo) = 0
trigger1 = enemynear,Const(data.IntPersistIndex) = 60
trigger1 = enemynear,Const(data.FloatPersistIndex) = 40
trigger1 = enemynear,Const(size.xscale) = 1
trigger1 = enemynear,Const(size.yscale) = 1
trigger1 = enemynear,Const(size.ground.back) = 15
trigger1 = enemynear,Const(size.ground.front) = 13
trigger1 = enemynear,Const(size.air.back) = 12
trigger1 = enemynear,Const(size.air.front) =12
trigger1 = enemynear,Const(size.height) = 60
trigger1 = enemynear,Const(size.attack.dist) = 160
trigger1 = enemynear,Const(size.proj.attack.dist) = 90
trigger1 = enemynear,Const(size.proj.doscale) = 0
trigger1 = enemynear,Const(size.head.pos.x) = -5
trigger1 = enemynear,Const(size.head.pos.y) = -70
trigger1 = enemynear,Const(size.mid.pos.x) = -5
trigger1 = enemynear,Const(size.mid.pos.y) = -37
trigger1 = enemynear,Const(size.shadowoffset) = 0
trigger1 = enemynear,Const(size.draw.offset.x) = 0
trigger1 = enemynear,Const(size.draw.offset.y) = 0
trigger1 = enemynear,Const(velocity.walk.fwd.x) = 3.4
trigger1 = enemynear,Const(velocity.walk.back.x) = -3.2
trigger1 = enemynear,Const(velocity.run.fwd.x) = 5.6
trigger1 = enemynear,Const(velocity.run.fwd.y) = 0
trigger1 = enemynear,Const(velocity.run.back.x) = -5.5
trigger1 = enemynear,Const(velocity.run.back.y) = -3.8
trigger1 = enemynear,Const(velocity.jump.y) = -9.4
trigger1 = enemynear,Const(velocity.jump.neu.x) = 0
trigger1 = enemynear,Const(velocity.jump.back.x) = -2.55
trigger1 = enemynear,Const(velocity.jump.fwd.x) = 2.5
trigger1 = enemynear,Const(velocity.runjump.back.x) = -2.55
trigger1 = enemynear,Const(velocity.runjump.fwd.x) = 4
trigger1 = enemynear,Const(velocity.airjump.y) = -8.1
trigger1 = enemynear,Const(velocity.airjump.neu.x) = 0
trigger1 = enemynear,Const(velocity.airjump.back.x) = -2.55
trigger1 = enemynear,Const(velocity.airjump.fwd.x) = 2.5
trigger1 = enemynear,Const(movement.airjump.num) = 1
trigger1 = enemynear,Const(movement.airjump.height) = 35
trigger1 = enemynear,Const(movement.yaccel) = .44
trigger1 = enemynear,Const(movement.stand.friction) = .85
trigger1 = enemynear,Const(movement.crouch.friction) = .82
v = 57
value = 2
ignorehitpause = 1

;-------------------------------------------------------------------------------
; 위험 도피
;-------------------------------------------------------------------------------

;[State -2, 위험 도피]
;type = SelfState
;triggerall = ishelper
;trigger1 = ishelper(1005)
;trigger1 = stateno != (1005)
;trigger2 = ishelper(1055)
;trigger2 = stateno != (1055)
;trigger3 = ishelper(1101)
;trigger3 = stateno != (1101)
;trigger4 = ishelper(1110)
;trigger4 = stateno != (1110)
;trigger5 = ishelper(1205)
;trigger5 = stateno != (1205)
;trigger6 = ishelper(1206)
;trigger6 = stateno != (1206)
;trigger7 = ishelper(1305)
;trigger7 = stateno != 1305
;trigger8 = ishelper(1306)
;trigger8 = stateno != (1306)
;trigger9 = ishelper(1307)
;trigger9 = stateno != 1307
;trigger10 = ishelper(1355)
;trigger10 = stateno != 1355
;trigger11 = ishelper(1455)
;trigger11 = stateno != 1455
;trigger12 = ishelper(1501)
;trigger12 = stateno != 1501
;trigger13 = ishelper(1502)
;trigger13 = stateno != 1502
;trigger14 = ishelper(1503)
;trigger14 = stateno != 1503
;trigger15 = ishelper(1601)
;trigger15 = stateno != 1601
;trigger16 = ishelper(1602)
;trigger16 = stateno != 1602
;trigger17 = ishelper(1603)
;trigger17 = stateno != 1603
;trigger18 = ishelper(2050)
;trigger18 = stateno != 2050
;trigger23 = ishelper(2051)
;trigger23 = stateno != 2051
;trigger19 = ishelper(2305)
;trigger19 = stateno != 2305
;trigger20 = ishelper(2405)
;trigger20 = stateno != 2405
;trigger21 = ishelper(2705)
;trigger21 = stateno != 2705
;trigger22 = ishelper(2710)
;trigger22 = stateno != 2710
;value = 214748
;ctrl = !ishelper
;ignorehitpause = 1
;SuperMoveTime = 9999999
;PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1005)
trigger1 = stateno != 1005
trigger2 = var(58) != gametime+214748
value = 1005
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1055)
trigger1 = stateno != 1055
trigger2 = var(58) != gametime+214748
value = 1055
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1101)
trigger1 = stateno != 1101
trigger2 = var(58) != gametime+214748
value = 1101
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1110)
trigger1 = stateno != 1110
trigger2 = var(58) != gametime+214748
value = 1110
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1205)
trigger1 = stateno != 1205
trigger2 = var(58) != gametime+214748
value = 1205
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1206)
trigger1 = stateno != 1206
trigger2 = var(58) != gametime+214748
value = 1206
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1305)
trigger1 = stateno != 1305
trigger2 = var(58) != gametime+214748
value = 1305
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1306)
trigger1 = stateno != 1306
trigger2 = var(58) != gametime+214748
value = 1306
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1307)
trigger1 = stateno != 1307
trigger2 = var(58) != gametime+214748
value = 1307
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1355)
trigger1 = stateno != 1355
trigger2 = var(58) != gametime+214748
value = 1355
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1455)
trigger1 = stateno != 1455
trigger2 = var(58) != gametime+214748
value = 1455
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1501)
trigger1 = stateno != 1501
trigger2 = var(58) != gametime+214748
value = 1501
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1502)
trigger1 = stateno != 1502
trigger2 = var(58) != gametime+214748
value = 1502
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1503)
trigger1 = stateno != 1503
trigger2 = var(58) != gametime+214748
value = 1503
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1601)
trigger1 = stateno != 1601
trigger2 = var(58) != gametime+214748
value = 1601
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1602)
trigger1 = stateno != 1602
trigger2 = var(58) != gametime+214748
value = 1602
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(1603)
trigger1 = stateno != 1603
trigger2 = var(58) != gametime+214748
value = 1603
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2050)
trigger1 = stateno != 2050
trigger2 = var(58) != gametime+214748
value = 2050
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2051)
trigger1 = stateno != 2051
trigger2 = var(58) != gametime+214748
value = 2051
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2305)
trigger1 = stateno != 2305
trigger2 = var(58) != gametime+214748
value = 2305
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2405)
trigger1 = stateno != 2405
trigger2 = var(58) != gametime+214748
value = 2405
ctrl = !ishelper
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2705)
trigger1 = stateno != 2705
trigger2 = var(58) != gametime+214748
value = 2705
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(2710)
trigger1 = stateno != 2710
trigger2 = var(58) != gametime+214748
value = 2710
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = IsHelper(2995)
trigger1 = Stateno != 2995 && Root,NumTarget
trigger2 = var(58) != gametime+214748
value = 2995
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;[State -2, 위험 도피]
;type = SelfState
;triggerall = IsHelper(2996)
;trigger1 = Stateno != 2995; && Root,NumTarget
;trigger2 = var(58) != gametime+214748
;value = 214749
;ignorehitpause = 1
;pausemovetime = 9999999
;supermovetime = 9999999

[State -2, 위험 도피]
type = SelfState
triggerall = ishelper
triggerall = ishelper(21474836)
trigger1 = stateno != 21474836
trigger2 = var(58) != gametime+214748
value = 21474836
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;===============================================================================
;===============================================================================
;===============================================================================
; 핵심 기술
;===============================================================================
;===============================================================================
;===============================================================================

[StateDef -3, 핵심 기술]

;-------------------------------------------------------------------------------
; 위험 정도
;-------------------------------------------------------------------------------

[State -3, 위험도 측정]
type = varset
trigger1 = 1
var(3) = gametime

[State -3, 위험도 측정]
type = varset
trigger1 = 1
var(58) = gametime+214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -3, 위험도 측정]
type = varset
trigger1 = 1
v = 58
value = gametime+214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State -3, 위험 대응]
type = DestroySelf
triggerall = ishelper
trigger1 = var(58) != gametime+214748
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

;===============================================================================
;===============================================================================
;===============================================================================
; 신의 영역
;===============================================================================
;===============================================================================
;===============================================================================

[StateDef 21474836, 신의 영역]
type    = S
movetype= I
physics = S
juggle  = 0
velset = 0,0
sprpriority = -99999999999999999999999999999999999999999999999999999999999999999

;-------------------------------------------------------------------------------
; 기초 설정
;-------------------------------------------------------------------------------

[State 21474836, 신의 영역]
type = SelfState
triggerall = !ishelper(21474836)
trigger1 = time >= 0
trigger2 = var(58) != gametime+214748
value = 214748
ctrl = 1
ignorehitpause = 1
SuperMoveTime = 9999999999999999999999999999999999999999999999999999999999999999
PauseMoveTime = 9999999999999999999999999999999999999999999999999999999999999999

[State 21474836, 신의 영역]
type = ChangeState
trigger1 = !IsHelper
trigger1 = name = "Dark Heaven"
value = 214748
ctrl = 1
ignorehitpause = 1

[State 21474836, 신의 영역]
type = PlayerPush
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper
value = 0
ignorehitpause = 1

[State 21474836, 신의 영역]
type = SprPriority
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper
sprpriority = -99999999999999999999999999999999999999999999999999999999999999999+(9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)*anim=65528
ignorehitpause = 1

[State 21474836, 신의 영역]
type = ScreenBound
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper(21474836)
value = 1
movecamera = 0,0
ignorehitpause = 1

[State 21474836, 신의 영역]
type = ChangeAnim
triggerall = root,name = "Dark Heaven"
triggerall = root,var(57) <= 0
triggerall = ((root,stateno != [2200,2202])&&(roundstate<2))
trigger1 = root, stateno != 2701
value = parent,Anim
elem = parent,AnimElemNo(0)
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 영역]
type = BindToRoot
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper
ignorehitpause = 1

[State 21474836, 신의 영역]
type = AssertSpecial
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper
flag = Invisible
flag2 = noshadow
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 영역]
type = HitOverride
triggerall = root,name = "Dark Heaven"
trigger1 = ishelper
attr = SCA,AA,AT,AP
stateno = 21474836
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 영역]
type = Turn
triggerall = root,name = "Dark Heaven"
trigger1 = Facing != parent,Facing
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 영역]
type = NotHitBy
triggerall = root,name = "Dark Heaven"
triggerall = root, var(1) = 1
trigger1 = root, stateno =  195
trigger2 = root, stateno = 1450
trigger3 = root, stateno = 1800
trigger4 = root, stateno = 1805
trigger5 = root, stateno = 2200
trigger6 = root, stateno = 2201
trigger7 = root, stateno = 2250
trigger8 = root, stateno = 2251
trigger9 = root, stateno = 2400
trigger10= root, stateno = 2401
trigger11= root, stateno = 2500
trigger12= root, stateno = 2501
trigger13= root, stateno = 2600
trigger14= root, stateno = 2601
trigger15= root, stateno = 2700
trigger16= root, stateno = 2701
trigger17= root, stateno = 3200
trigger18= root, stateno = 3201
value = SCA, NA, SA, HA, AA, NT, ST, HT, AT, NP, SP, HP, AP
ignorehitpause = 1

[State 21474836, 신의 영역]
type = NotHitBy
triggerall = root,name = "Dark Heaven"
triggerall = ishelper
trigger1 = roundstate >= 3
trigger2 = root,var(1) != 1
trigger3 = root,var(57) > 0
value = SCA,AA,AT,AP
time = 21474836

[State 21474836, 신의 영역]
type = NotHitBy
triggerall = ishelper
trigger1 = GetHitVar(Damage)
trigger2 = roundstate >= 3
trigger3 = root,var(1) != 1
trigger4 = root,var(57) > 0
value = SCA,AA,AT,AP
time=30+((root,palno=12)*126)+((root,life<const(data.life)/2)=1)*50+((root,life<const(data.life)/10)=1)*160+random%50+((root,life<300)=1)*100+(root,var(29)>=1)*random%50+(root,var(44)>=1)*random%50+(root,var(42)=1000)*200
ignorehitpause = 1

[State 21474836, 신의 영역]
type = destroyself
trigger1 = root, name != "Dark Heaven"
trigger2 = root, var(1) = 0
trigger2 = roundstate >= 3
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

;[State 21474836, 신의 영역]
;type = ReversalDef
;triggerall = root,stateno!=[2000,3999]
;triggerall = root,name = "Dark Heaven"
;trigger1 = root, var(1) = 1
r;eversal.attr = SCA,AA,AT,AP
;hitflag = M-
;priority = 7
;pausetime = 0,0
;numhits = 0
;sparkno = s22133
;hitsound = s2562,31
;p1stateno = 21474836-(power>=powermax*0.5&&(root,var(30)!=1||root,var(30)!=0&&root,fvar(28)=0))
;getpower = (Const(data.power))/24

[State 21474836, 신의 영역]
type = targetdrop
triggerall = root,stateno!=[2000,3999]
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,alive=0||roundstate>=3&&enemy,alive=0

[State 21474836, 신의 영역]
type = VarSet
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = (power>=powermax*0.5&&(root,var(30)!=1||root,var(30)!=0&&root,fvar(28)=0))
v = 52
value = 1
ignorehitpause = 1

[State 21474836, 신의 영역]
type = VarSet
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = !(power>=powermax*0.5&&(root,var(30)!=1||root,var(30)!=0&&root,fvar(28)=0))
v = 52
value = 0
ignorehitpause = 1

;-------------------------------------------------------------------------------
; 효과 설정
;-------------------------------------------------------------------------------

[State 21474836, 신의 영역]
type = varset
;triggerall = root, time = 0
trigger1 = root,palno = 12&&root,var(1) = 1
trigger1 = roundstate = 0 && time = 0
trigger2 = root,palno != 12
trigger3 = root, stateno != 2700 && root, stateno != 2701 && root, stateno != 2702
trigger3 = root, stateno != 2200 && root, stateno != 2201 && root, stateno != 2202
trigger3 = root, stateno != 2600 && root, stateno != 2601 && root, stateno != 2602
trigger3 = root, stateno != 3200 && root, stateno != 3201
trigger3 = root, stateno != 2500 && root, stateno != 2501 && root, stateno != 2202
trigger3 = root, stateno != 2250 && root, stateno != 2251 && root, stateno != 2202
v = 34
value = 2147483647
ignorehitpause = 1

[State 21474836, 신의 영역]
type = varset
triggerall = root,palno = 12&&root,var(1) = 1
;triggerall = root, time = 0
triggerall = var(34) >= 2147483647
trigger1 = root, stateno = 2700
trigger2 = root, stateno = 2200
trigger3 = root, stateno = 2600
trigger4 = root, stateno = 3200
trigger5 = root, stateno = 2500
trigger6 = root, stateno = 2250
trigger7 = root, stateno = 3201
v = 34
value = 0
ignorehitpause = 1

[State 21474836, 신의 영역]
type = varset
triggerall = root,palno = 12&&root,var(1) = 1
;triggerall = root, time = 0
triggerall = roundstate < 2
trigger1 = root, stateno = 2200
v = 34
value = 0
persistent = 0
ignorehitpause = 1

[State 21474836, 신의 영역]
type = varset
triggerall = root,palno = 12&&root,var(1) = 1
;triggerall = root, time = 0
triggerall = roundstate < 2
trigger1 = root, stateno = 3201
v = 34
value = 0
persistent = 0
ignorehitpause = 1

[State 21474836, 신의 영역]
type = varadd
triggerall = var(34) < 2147483647
triggerall = root,palno = 12&&root,var(1) = 1
;triggerall = root, time = 0
trigger1 = root, stateno = 2700 || root, stateno = 2701 || root, stateno = 2702
trigger2 = root, stateno = 2200 || root, stateno = 2201 || root, stateno = 2202
trigger3 = root, stateno = 2600 || root, stateno = 2601 || root, stateno = 2602
trigger4 = root, stateno = 3200
trigger5 = root, stateno = 2500 || root, stateno = 2501 || root, stateno = 2202
trigger6 = root, stateno = 2250 || root, stateno = 2251 || root, stateno = 2202
trigger7 = root, stateno = 3201
v = 34
value = 1
ignorehitpause = 1

[State 21474836, 신의 영역]
type = PalFx
;trigger1 = var(34) <= 2147483647
trigger1 = var(34) = 30
sinadd = -256,-256,-256,200
time = 50
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 신의 영역]
type = Explod
triggerall = var(34) <= 80
trigger1 = root,var(29) <= 1
trigger1 = root, stateno != 3201
trigger2 = root, stateno = 3200
anim = 65532
id = 65536
pos = 0,-120
scale = abs(0.05*(var(34)-30)),abs(0.05*(var(34)-30))
removetime = 16
;bindtime = -1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 신의 영역]
type = Explod
triggerall = var(34) <= 80
trigger1 = root,var(29) <= 1
trigger1 = root, stateno != 3201
trigger2 = root, stateno = 3200
anim = 65533
id = 65536
pos = 0,-120
scale = abs(0.085*(var(34)+2)),abs(0.085*(var(34)+2))
removetime = 16
;bindtime = -1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 신의 영역]
type = Explod
triggerall = var(34) <= 80
trigger1 = root,var(29) >= 1
trigger1 = root, stateno != 3200
trigger2 = root, stateno = 3201
anim = 65562
id = 65536
pos = 0,-120
scale = abs(0.05*(var(34)-30)),abs(0.05*(var(34)-30))
removetime = 40
;bindtime = -1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 신의 영역]
type = Explod
triggerall = var(34) <= 80
trigger1 = root,var(29) >= 1
trigger1 = root, stateno != 3200
trigger2 = root, stateno = 3201
anim = 65563
id = 65536
pos = 0,-120
scale = abs(0.085*(var(34)+2)),abs(0.085*(var(34)+2))
removetime = 40
;bindtime = -1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 신의 영역]
type = RemoveExplod
trigger1 = var(34) >= 80
trigger2 = root, stateno = [2600,2602]
trigger2 = var(34) >= 40
trigger3 = root, stateno = [2500,2501]
trigger3 = var(34) >= 40
id = 65536
supermovetime = 99999
pausemovetime = 99999

;-------------------------------------------------------------------------------
; 상대 사살
;-------------------------------------------------------------------------------

[State 21474836, 상대 사살]
type = ChangeAnim
trigger1 = root, fvar(38) > 1
trigger1 = root, var(57) = 1
value = 96657
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 상대 사살]
type = TargetState
trigger1 = root, fvar(38) > 1
trigger1 = root, var(57) = 1
value = 2990
ignorehitpause = 1

;-------------------------------------------------------------------------------
; 파멸의 빛
;-------------------------------------------------------------------------------

[State 21474836, 파멸의 빛]
type = AllPalfx
trigger1 = root,stateno = 2201 && root,time = 210
trigger1 = (root,var(29) >= 1)||(root,var(44)<=1)
trigger2 = root,stateno = 2501 && root,time = 180
trigger2 = root,var(29) <= 1
trigger3 = root,stateno = 2203 && root,time = 100
trigger3 = (root,var(29) >= 1)||(root,var(44)<=1)
sinadd = 255, 255, 255, 100
time = 40
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 파멸의 빛]
type = AllPalfx
trigger1 = root,stateno = 2201 && root,time = 210
trigger1 = (root,var(29) >= 1)&&(root,var(44)<=1)
trigger2 = root,stateno = 2501 && root,time = 180
trigger2 = root,var(29) >= 1
sinadd = -256, -256, -256, 100
time = 40
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 파멸의 빛]
type = AssertSpecial
trigger1 = ishelper
triggerall = anim = 65528
flag = noshadow

[State 21474836, 파멸의 빛]
type = ChangeAnim
triggerall = root,name = "Dark Heaven"
triggerall = roundstate < 2
triggerall = root, var(1) = 1
trigger1 = root, stateno = 2200
trigger2 = root, stateno = 2201
trigger3 = root, stateno = 2202
triggerall = anim = 65528
value = 65528
ignorehitpause = 1
persistent = 0

[State 21474836, 파멸의 빛]
type = varset
triggerall = root,name = "Dark Heaven"
triggerall = roundstate < 2
triggerall = root, var(1) = 1
trigger1 = root, stateno = 2200
trigger2 = root, stateno = 2201
trigger3 = root, stateno = 2202
triggerall = time = 0
triggerall = anim = 65528
v = 11
value = 0
persistent = 0

[State 21474836, 파멸의 빛]
type = VarAdd
triggerall = root,name = "Dark Heaven"
triggerall = roundstate < 2
triggerall = root, var(1) = 1
trigger1 = root, stateno = 2200
trigger2 = root, stateno = 2201
trigger3 = root, stateno = 2202
triggerall = Var(11) <= 40
triggerall = anim = 65528
var(11) = 1

[State 21474836, 파멸의 빛]
Type = AngleDraw
triggerall = root,name = "Dark Heaven"
triggerall = roundstate < 2
triggerall = root, var(1) = 1
trigger1 = root, stateno = 2200
trigger2 = root, stateno = 2201
trigger3 = root, stateno = 2202
Triggerall = Time >= 0
triggerall = anim = 65528
scale = 0.2 + Var(11)/10.0+(anim=65528)*0.2 , 0.2 + Var(11)/10.0+(anim=65528)*0.2

[State 21474836, 파멸의 빛]
Type = AngleAdd
triggerall = root,name = "Dark Heaven"
triggerall = roundstate < 2
triggerall = root, var(1) = 1
trigger1 = root, stateno = 2200
trigger2 = root, stateno = 2201
trigger3 = root, stateno = 2202
Triggerall = Time >= 0
triggerall = anim = 65528
Value = -3

[State 21474836, 파멸의 빛]
type = ReversalDef
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2201
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s22133
hitsound = s2562,31
p2stateno = 2212

[State 21474836, 파멸의 빛]
type = AttackDist
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2201
value = 0

[State 21474836, 파멸의 빛]
type = targetpowerAdd
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2201
value = -(enemy,Const(data.power))
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 파멸의 빛]
type = targetLifeAdd
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,stateno=2201&&(root,time=[20,220])
value = -9999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 파멸의 빛]
type = targetstate
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,stateno=2201&&(root,time=[20,220])&&(GameTime%3) = 1
value = 2212
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

;-------------------------------------------------------------------------------
; 섬광 흡수
;-------------------------------------------------------------------------------

[State 21474836, 섬광 흡수]
type = VarSet
trigger1 = root, stateno != 2251
var(55) = 0

[State 21474836, 섬광 흡수]
type = VarRandom
trigger1 = root, stateno = 2251
v = 55
range = 0,200

[State 21474836, 섬광 흡수]
type = Explod
triggerall = root,var(29) <= 1
trigger1 = root, stateno = 2251
trigger1 = root, time <= 120
anim = 100018
trans = add
id = 100018
pos = 6,-154
random = 25,25
removetime = 40
;bindtime = -1
ownpal = 1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 섬광 흡수]
type = Explod
triggerall = root,var(29) <= 1
trigger1 = root, stateno = 2251
trigger1 = root, time <= 120
anim = 100019
trans = add
id = 100019
pos = 6+Ceil(200*cos(pi*var(55)/180)),-156+Ceil(200*sin(pi*var(55)/180))
vel = -10*cos(pi*var(55)/180),-10*sin(pi*var(55)/180)
removetime = 20
;bindtime = -1
ownpal = 1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 섬광 흡수]
type = Explod
triggerall = root,var(29) >= 1
trigger1 = root, stateno = 2251
trigger1 = root, time <= 120
anim = 100018
trans = sub
id = 100018
pos = 6,-154
random = 25,25
removetime = 40
;bindtime = -1
ownpal = 1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

[State 21474836, 섬광 흡수]
type = Explod
triggerall = root,var(29) >= 1
trigger1 = root, stateno = 2251
trigger1 = root, time <= 120
anim = 100019
trans = sub
id = 100019
pos = 6+Ceil(200*cos(pi*var(55)/180)),-156+Ceil(200*sin(pi*var(55)/180))
vel = -10*cos(pi*var(55)/180),-10*sin(pi*var(55)/180)
removetime = 20
;bindtime = -1
ownpal = 1
ontop = 1
supermovetime = 99999
pausemovetime = 99999

;-------------------------------------------------------------------------------
; 신의 혹살
;-------------------------------------------------------------------------------

[State 21474836, 신의 혹살]
type = varset
trigger1 = root,stateno != 2501
trigger1 = var(5) != 0
v = 5
value = 0
ignorehitpause = 1

[State 21474836, 신의 혹살]
type = varadd
trigger1 = root,stateno = 2501
v = 5
value = 1
ignorehitpause = 1

[State 21474836, 신의 혹살]
type = Explod
triggerall = root,var(29) <= 1
trigger1 = numexplod(65509) = 0
trigger1 = root,stateno = 2501
trigger1 = root,time < 200
anim = 65509
trans = add
id = 65509
sprpriority = 2147483647
removetime = 210
bindtime = -1
pos = -2,-100
scale = 1,1
ontop = 1
ownpal = 1

[State 21474836, 신의 혹살]
type = Explod
triggerall = root,var(29) >= 1
trigger1 = numexplod(65509) = 0
trigger1 = root,stateno = 2501
trigger1 = root,time < 200
anim = 65509
trans = sub
id = 65509
sprpriority = 2147483647
removetime = 210
bindtime = -1
pos = -2,-100
scale = 1,1
ontop = 1
ownpal = 1

[State 21474836, 신의 혹살]
type = ModifyExplod
trigger1 = root,stateno = 2501
trigger1 = var(5) < 30
scale = 0.02*var(5),0.02*var(5)
id = 65509

[State 21474836, 신의 혹살]
type = ModifyExplod
trigger1 = root,stateno = 2501
trigger1 = var(5) > 29
scale = 0.02*var(5),0.02*var(5)
id = 65509

[State 21474836, 신의 혹살]
type = RemoveExplod
trigger1 = root,stateno != 2501
trigger2 = root, name != "Dark Heaven"
id = 65509

;-------------------------------------------------------------------------------
; 신의 심판
;-------------------------------------------------------------------------------

[State 21474836, 신의 심판]
type = varset
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = numtarget&&target,ishelper=0||root,fvar(20)!=0
v = 10
value = (RoundState<=2)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 21474836, 신의 심판]
type = varset
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,fvar(38)=2
trigger1 = root,time<150&&enemy,movereversed
trigger2 = root,time>=150
v = 11
value = (root,time<150)
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 21474836, 신의 심판]
type = ChangeAnim
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
value = 22000+100+77
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 심판]
type = ReversalDef
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
numhits = 0
sparkno = s22133
hitsound = s2562,31
p2stateno = 100000+69995

[State 21474836, 신의 심판]
type = AttackDist
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
value = 0

[State 21474836, 신의 심판]
type = targetpowerAdd
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
value = -(enemy,Const(data.power))
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 심판]
type = targetLifeAdd
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
trigger1 = (gametime%(1+((root,time<150)*3)))=1
value = -9999999999
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 심판]
type = targetstate
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,stateno=2701&&root,time>=150
value = 2750
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 심판]
type = targetstate
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root, stateno = 2701
trigger1 = var(11)!=0&&root,fvar(38)=2
trigger1 = enemy,alive&&root,time<150
value = 2750
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 21474836, 신의 심판]
type = Projectile
triggerall = root,name = "Dark Heaven"
trigger1 = root, var(1) = 1
trigger1 = root,palno=12&&root,stateno=2701&&(root,time=[30,170])&&var(10)!=0
trigger1 = (GameTime%6)=1
attr = S, NA
projanim = 22177
projhitanim = -1
projid = 22177
projpriority = 9999999999
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = p1
offset = 0,0
velocity = 0
animtype  = hard
numhits = 0
damage    = 21474836
getpower = 0,0
givepower = -(enemy,Const(data.power))
hitflag = MAFD
guardflag =
pausetime = 2,1
guard.pausetime = 2,1
sparkno = -1
sparkxy = 40,-74
hitsound   = -1
guard.sparkno = -1
guardsound = -1
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -0.2,-0.5
air.velocity = -0.2,-0.5
fall = 1
fall.recover = 0
yaccel = .7
p2stateno = 6600
ignorehitpause = 1

