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

[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 = "GameTime = %d         ,%d"
params = var(53),gametime
ignorehitpause = 1

;-------------------------------------------------------------------------------
; 체제 설정
;-------------------------------------------------------------------------------

[State 자동 인공지능 설정]
type = varset
triggerall = !ishelper
triggerall = alive
trigger1 = palno = 12 && var(1) = 1
;trigger1 = 0 ;('자동 인공지능 설정'을 영구히 발동 정지시킴)
v = 30
value = 0+(-1*!alive)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 상대방 체계 초기화 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 26
value = 1

[State 일반 설정]
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
v = 1
value = 0

[State 흉악 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 11
trigger2 = palno = 12
v = 1
value = 1

[State 흉악 강화 설정]
type = varset
triggerall = !ishelper
trigger1 = palno = 12
fv = 19
value = 1

[State 천성 흉악 설정]
type = varset
triggerall = !ishelper
trigger1 = 1; palno = 12
v = 59
value = (palno=12); 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

;-------------------------------------------------------------------------------
; 변수 설정 (기초 대사)
;-------------------------------------------------------------------------------

[State 효과음 체제 설정]
type = VarRandom
trigger1 = 1
v = 6
range = 0,2

[State 효과음 체제 설정]
type = varadd
trigger1 = 1
v = 15
value = -1

[State 조작에 따른 뛰기 능력 설정]
type = varset
trigger1 = stateno = 40
trigger1 = command != "holdup"
v = 16
value = 1

[State 조작에 따른 뛰기 능력 설정]
type = varset
trigger1 = stateno = 40
trigger1 = command = "holdup"
v = 16
value = 0

[State 행동하는 것에 대한 봉인값 시간 설정]
type = varadd
trigger1 = 1
v = 28
value = -1

[State 행동하는 것에 대한 봉인값 초기화]
type = varset
trigger1 = roundstate != 2
v = 28
value = 0

[State 행동하는 것에 대한 봉인값 설정]
type = varset
triggerall = var(54) != [1,600]
trigger1 = numhelper(4000) = 1
v = 28
value = 800

[State 걷거나 뛰는 것에 대한 봉인값 시간 설정]
type = varadd
trigger1 = 1
v = 29
value = -1

[State 걷거나 뛰는 것에 대한 봉인값 설정]
type = varset
triggerall = var(54) != [1,600]
trigger1 = numhelper(4008) = 1
v = 29
value = 500

[State 걷거나 뛰는 것에 대한 봉인값 초기화]
type = varset
trigger1 = roundstate != 2
v = 29
value = 0

[State 체력에 따른 소리 음량 증감]
type = varset
trigger1 = life >= 500
var(41) = 1 + (var(1)*2)

[State 체력에 따른 소리 음량 증감]
type = varset
trigger1 = life <= 499
var(41) = 2 + (var(1)*3)

[State 체력에 따른 소리 음량 증감]
type = varset
trigger1 = life <= 250
var(41) = 3 + (var(1)*4)

[State 효과사진 체제 설정]
type = varrandom
trigger1 = 1
range = -110,110
v = 43

[State 효과사진 체제 설정]
type = varrandom
trigger1 = 1
range = 0,-170
v = 44

[State 효과사진 체제 설정]
type = varrandom
trigger1 = 1
range = -40,30
v = 50

[State 효과사진 체제 설정]
type = varrandom
trigger1 = 1
range = 0,-60
v = 51

[State 던지는 시간 설정]
type = varadd
trigger1 = 1
v = 54
value = -1

[State 던지는 시간 초기화]
type = varset
trigger1 = roundstate != 2
v = 54
value = 0

[State 소멸 시간 초기화]
type = varset
trigger1 = roundstate != 2
v = 55
value = 0

[State 소멸 시간 설정]
type = varadd
trigger1 = var(55) >= 0
v = 55
value = -1

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

;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;됷븳똭
;---------------------------------------------------------------------------

;긬깗?렔벍됷븳
[State -2]
type = poweradd
triggerall = roundstate = 2
trigger1 = (GameTime%8) = 1
value =1+(var(1)*3)+((palno=12)*(8+((fvar(24)>=1000)*(powermax/60))))+((var(55)>=2&&palno=12&&(life<=(lifemax/2)))*(powermax/200))+(palno=12&&numenemy>=2)*10
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

;긬깗?긜긞긣
[state -2]
type = powerset
trigger1 = palno=12&&!(stateno=1950||stateno =2000||stateno=2200||stateno=2215||stateno=2300||(stateno=[170000,170002]))&&fvar(27)-power>=1
value = ifelse((EnemyNear,HitDefAttr=SCA,NA),0,fvar(27)-power)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

;뫬쀍렔벍됷븳
;[State -2]
;type = lifeadd
;triggerall = roundstate = 2 && palno != 12 && alive
;trigger1 = (GameTime%(16-((palno=11)*14)))=0
;value = var(41)
;ignorehitpause = 1

;[State -2]
;type = lifeadd
;triggerall = roundstate = 2 && palno = 11 && alive
;trigger1 = var(58)!=gametime&&fvar(20)-life>=1
;value = -((fvar(20)-life)*2)
;absolute = 1
;kill = var(58)=gametime
;ignorehitpause = 1

[State 대전 외에는 변수값 초기화시킴]
type = varset
trigger1 = roundstate != 2
v = 48
value = 0
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state -2]
type = varset
trigger1 = alive && ((stateno=[170000,170002])||roundstate<2) && palno = 12
trigger1 = var(57)=[0,(lifemax)]
v = 57
value = life
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[state -2]
type = varset
trigger1 = alive&&((stateno!=[170000,170002])||roundstate<2) && palno = 12
trigger1 = var(52)=[0,(lifemax)]
v = 52
value = life
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2]
type = varset
triggerall = time=0
trigger1 = stateno=200||stateno=205||stateno=210||stateno=215||stateno=230||stateno=235
trigger2 = stateno=240||stateno=245||stateno=290||stateno=400||stateno=410||stateno=430
trigger3 = stateno=440||stateno=245||stateno=600||stateno=610||stateno=630||stateno=640||stateno=690
fv = 11
value = stateno
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2]
type = varset
trigger1 = palno=12&&stateno=fvar(11)&&time=1
fv = 12
value = enemynear,life
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2]
type = varset
trigger1 = palno=12&&roundstate!=2
fv = 13
value = 0
ignorehitpause = 1

[State -2]
type = varset
triggerall = palno=12
trigger1 = roundstate=2&&alive&&life<=0&&enemy,life>=enemy,lifemax*0.9
trigger2 = roundstate!=2||!alive
fv = 14
value =(fvar(14)+1)*(roundstate=2&&alive&&fvar(14)<=5)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno=12&&stateno!=23000
fv = 15
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno=12&&(roundstate!=2||enemy,numprojid(97857373211)>=1||stateno=23001)
fv = 16
value = (roundstate=2)*(stateno!=23001)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno=12&&stateno!=23000
fv = 17
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno = 12
fv = 18
value = (projcontact(320000)>=1)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno = 11 && (stateno!=[19000,19050])
fv = 20
value = life
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 시간대비에 따른 상대방 체력값 설정]
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 시간대비와 상대 체력에 따른 변수값 설정]
type = varset
triggerall = palno = 12
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 상대방 상태에 따른 변수값 설정]
type = varadd
trigger1 = palno = 12 && roundstate = 2 && fvar(23) = 1
fv = 24
value = 1+((enemy,life>=enemy,lifemax&&enemy,power>=enemy,powermax)*50)
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 상대방 상태에 따른 변수값 설정]
type = varset
triggerall = palno = 12
trigger1 = roundstate != 2 || fvar(23) = 0 || numtarget
fv = 24
value = 0
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = varset
trigger1 = palno = 12 && (GameTime%20) = 1
fv = 27
value = !(EnemyNear,HitDefAttr=SCA,NA)*power
ignorehitpause = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 시간 경과 설정]
type = varset
trigger1 = palno = 12
fv = 28
value = ((roundstate=2)*(fvar(28)+1))
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = varset
triggerall = fvar(29)=[0,(lifemax)]
trigger1 = palno=12&&roundstate<2
trigger2 = palno=12&&enemy,life<enemy,lifemax*0.9&&roundstate>=2
fv = 29
value = life*(roundstate<2)
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = varset
triggerall = fvar(30)=[0,(lifemax)]
trigger1 = palno=12&&enemy,life<enemy,lifemax*0.9
fv = 30
value = (roundstate<=2)*life
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = varset
triggerall = fvar(31)=[0,(lifemax)]
trigger1 = palno=12&&roundstate=2
fv = 31
value = life
IgnoreHitPause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
trigger1 = palno=12&&numhelper(190000)=0&&alive&&roundstate>=3&&enemy,alive
id = 190000
persistent = 1
name = "G Mizuchi"
pos = 0,0
postype = P1
stateno = 190000+statetype=A
helpertype = player
keyctrl = 0
ownpal = 0
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;[state -2]
;type = null;lifeset
;trigger1 = alive&&palno=12&&roundstate<=2&&enemy,life>=enemy,lifemax*0.9
;trigger1 = numhelper(1031)>=1&&(helper(1031),stateno!=[1031,1040])||helper(1031),movetype=H
;value=lifemax
;ignorehitpause = 1
;supermovetime = 99999999
;pausemovetime = 99999999

;[state -2]
;type = lifeset
;trigger1 = alive&&palno=12&&roundstate<=2&&enemy,life>=enemy,lifemax*0.9
;trigger2 = alive&&palno=12&&roundstate<2
;trigger3 = alive&&palno=12&&roundstate>=3
;trigger4 = fvar(14)>=3&&enemy,life>=enemy,lifemax*0.9
;value=ifelse(roundstate<=2,fvar(30)+fvar(29)+((roundstate<2)*lifemax),(fvar(31)+((enemy,life>=enemy,lifemax*0.9&&enemy,alive&&roundstate>=3)*lifemax)))+((fvar(14)>=3)*lifemax)
;ignorehitpause = 1
;supermovetime = 99999999
;pausemovetime = 99999999

;[state -2]
;type = lifeadd
;triggerall = alive&&palno=12&&enemy,life<enemy,lifemax*0.9
;trigger1 = (stateno!=[170000,170002])&&var(57)-life>=1||(stateno=[170000,170002])&&var(52)-life>=(lifemax/9)
;value = ((roundstate<=2)*(ifelse(((stateno!=[170000,170002])&&var(57)-life>=1),var(57)-life,(ifelse(((stateno=[170000,170002])&&var(52)-life>=(lifemax/9)),var(52)-life,lifemax)))))
;ignorehitpause = 1
;supermovetime = 99999999
;pausemovetime = 99999999

[State -2]
type = null;SelfState
triggerall = palno=12&&alive&&!ishelper&&enemy,life>=enemy,lifemax*0.9
trigger1 = (statetype=S||statetype=C||statetype=A)&&alive&&(movetype=H||var(58)!=gametime)
trigger2 = roundstate>=3&&enemy,alive
value=IfElse((palno=12),IfElse((statetype=S),(ifelse(roundstate>=3,150,140)),IfElse((statetype=C),(ifelse(roundstate>=3,150,140)),IfElse((statetype=A),(ifelse(roundstate>=3,150,140)),140))),140)
ctrl = 0
pausemovetime = 9999999
supermovetime = 9999999

[State -2]
type = SelfState
triggerall = palno=12&&alive&&!ishelper;&&enemy,life<enemy,lifemax*0.9
trigger1 = (statetype=S||statetype=C||statetype=A)&&alive&&(movetype=H||var(58)!=gametime)
trigger2 = roundstate>=3&&enemy,alive
value=IfElse((palno=12),IfElse((statetype=S),(ifelse(roundstate>=3,150,170001)),IfElse((statetype=C),(ifelse(roundstate>=3,150,170002)),IfElse((statetype=A),(ifelse(roundstate>=3,150,170000)),170000))),170000)
ctrl = 0
pausemovetime = 9999999
supermovetime = 9999999

[State -2]
type = ChangeState
triggerall = palno = [11,12]
trigger1 = !alive && stateno = [5000,5080]
value = 169996
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State -2]
type = null;PalFX
triggerall = palno = 12 && fvar(28)>=6500
trigger1 = (GameTime%2) = 1
time = 1
add = 255,100,100
ignorehitpause = 1

[State -2]
type = ChangeState
triggerall = alive&&palno=11
trigger1 = StateNo = 5000
trigger2 = StateNo = 5010
trigger3 = StateNo = 5020
trigger4 = StateNo = 5070
trigger5 = movetype=H&&StateNo=40
value = 19000
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

;---------------------------------------------------------------------------
;륉뫴댶륂듫똚
;---------------------------------------------------------------------------

[State -2]
type = NotHitBy
trigger1 = var(28) >= 1
value = SCA,AT
ignorehitpause = 1

[State -2]
type = HitBy
trigger1 = var(28) >= 1
value = SCA,AA,AP
ignorehitpause = 1

;[State -2]
;type = NotHitBy
;triggerall = palno =12
;trigger1 = var(55)>=1||enemy,life>=enemy,lifemax*0.9||roundstate!=2
;value = SCA,AA,AP,AT
;ignorehitpause = 1
;SuperMoveTime = 999999
;PauseMoveTime = 999999

[State -2]
type = AllPalfx
trigger1 = stateno = 23000 && time = 200
sinadd = 255, 255, 255, -200
time = 100
supermove = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = helper
triggerall = roundstate = 2
triggerall = var(28) >= 4
trigger1 = numhelper(3000)=0
id = 3000
persistent = 1
name = "da"
pos = 0,0
postype = p2
stateno = 3100
helpertype = normal
keyctrl = 1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = helper
triggerall = roundstate = 2
triggerall = var(28) = [1,3]
trigger1 = (GameTime%2) = 1
id = 3000
persistent = 1
name = "da"
pos = 0,0
postype = p2
stateno = 3107
helpertype = normal
keyctrl = 1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = helper
triggerall = roundstate = 2
triggerall = var(29) >= 0
trigger1 = (GameTime%3) = 1
id = 4009
persistent = 1
name = "da"
pos = 0,0
postype = p2
stateno = 4009
helpertype = normal
keyctrl = 1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = helper
trigger1 = palno = 12 && numhelper(169993) = 0 && var(55) >= 1
id = 169993
persistent = 1
name = "G Mizuchi"
pos = 0,0
postype = P1
stateno = 169993
helpertype = normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

;[State -2]
;type = helper
;trigger1 = numhelper(195000)=0&&stateno=23000&&time=200
;id = 195000
;persistent = 1
;name = "black"
;pos = 0,0
;postype = P1
;stateno = 195000
;helpertype = normal
;keyctrl = 0
;ownpal = 1
;SuperMoveTime = 9999999
;PauseMoveTime = 9999999

[State -2]
type = helper
triggerall = palno=12&&(stateno=23000&&time<160)&&!ishelper&&fvar(19)!=0
trigger1 = numhelper(2636020)=0&&enemy,numprojid(26360100)>=1
id = 2636020
persistent = 0
name = "G Mizuchi"
pos = 0,0
postype = P1
stateno = 2636020
helpertype = player
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
trigger1 = palno=12&&numhelper(195020)=0&&enemy,life>=enemy,lifemax*0.9&&var(55)<=1&&(stateno!=[2000,2005])
id = 195020
persistent = 1
name = "bari"
pos = 0,0
postype = P1
stateno = 195020+(EnemyNear,HitDefAttr=SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT)
helpertype = normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = helper
trigger1 = palno=12&&!(numhelper(195010)||numhelper(195011))&&helper(195020),stateno=195022
id = 195011-statetype=S
persistent = 0
name = "baef"
pos = 20,-(40+((statetype=A)*50)+((statetype=S)*45))
postype = P1
stateno = 195010
helpertype = normal
keyctrl = 0
ownpal = 1
pausemovetime = 999
supermovetime = 999

[State -2]
type = SelfState
triggerall = ishelper(2636020)
trigger1 = var(58) != gametime
trigger2 = stateno != 2636020
trigger3 = movetype = H
trigger4 = anim = [5000,5150]
trigger5 = stateno = [5000,5150]
value = 0
ignorehitpause = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

[State -2]
type = Explod
triggerall = palno!=12||palno=12&&!numhelper(200000)
triggerall = roundstate = 2
triggerall = enemy,statetype != L
triggerall = var(54) >= 1
trigger1 = (GameTime%18) = 1
anim = 3025
id = 3025
sprpriority = 11
postype = p2
pos = -40+(random%80),-90+(random%20)
vel = 0,4
trans = add
;bindtime = -1
removetime = 15
supermove = 1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = Explod
triggerall = roundstate = 2
triggerall = var(28) >= 4 || var(29) >= 0
trigger1 = (GameTime%18) = 1
anim = 3024
id = 3024
sprpriority = 11
postype = p2
pos = -50+(random%100),0-(random%50)
vel = -1+(random%3),-3
trans = add
;bindtime = -1
removetime = 20
supermove = 1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State -2]
type = Explod
triggerall = palno = 12
trigger1 = enemy,numprojid(21511198241)||enemy,numprojid(21511198242)
anim = IfElse((enemy,numprojid(21511198242)),9914+var(35),9918)
sprpriority = 120
postype = p2
pos = (enemy,const(size.mid.pos.x)),(enemy,const(size.mid.pos.y))
facing = -1
ownpal = 1
ontop = 1

[State -2]
type = PlaySnd
trigger1 =palno=12&&(enemy,numprojid(21511198241)||enemy,numprojid(21511198242))
value = 4000,3

[State -2]
type = null;PlaySnd
trigger1 =palno=12&&enemy,numprojid(21511198242)
value = 120,0

[State -2]
type = SuperPause
triggerall = palno!=12||palno=12&&!numhelper(200000)
triggerall = stateno != 2005
triggerall = roundstate = 2
triggerall = var(54) >= 1
trigger1 = (GameTime%2) = 1
time = 1
movetime = 1
darken = 0
anim = -1

[State -2]
type = EnvColor
trigger1 = projhit20000 = 1
persistent = 0
ignorehitpause = 1
time = 1
value = 255,255,255
under = 1

[state -2]
type = varset
trigger1 = movetype = H
v = 13
value = 0

[state -2]
type = varadd
trigger1 = 1
persistent = 0
ignorehitpause = 1
v = 4
value = -1

[state -2]
type = pause
trigger1 = var(4) >= 1
trigger1 = gametime % 2
persistent = 0
ignorehitpause = 1
time = 1

[State -2]
type = varset
trigger1 = RoundState != 2
v = 26
value = 0

;-------------------------------------------------------------------------------
; 목표 설정
;-------------------------------------------------------------------------------

[State 목표 설정]
type = targetstate
triggerall = palno=12&&roundstate>=3&&enemynear,alive
trigger1 = (enemynear,stateno=[805,806])||(enemynear,stateno=[2010,2013])
value = 26360

[State 목표 제지]
type = targetLifeAdd
trigger1 = palno=12&&(stateno=23000||stateno!=23000&&projhit=1)
value = ifelse(stateno=23000,-9999999999999,-(enemy,lifemax*0.002))
absolute = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 목표 제지]
type = null;targetLifeAdd
trigger1 = palno=12&&target(fvar(11)),time<=1&&movehit=1;target(fvar(11)),GetHitVar(hittime)
trigger1 = fvar(12)-(target(fvar(11)),life)<=(target(fvar(11)),lifemax)*fvar(10)
value = -(((((target(fvar(11)),lifemax)*fvar(10))-(target(fvar(11)),GetHitVar(damage)))*0.001)*(target(fvar(11)),lifemax))
absolute = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 목표 제지]
type = targetPowerAdd
trigger1 = palno=12&&(stateno=23000||stateno!=23000&&projhit=1)
value = ifelse(stateno=23000,-9999999999999,-(enemy,lifemax*0.002))
absolute = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 목표 제지]
type = null;targetPowerAdd
trigger1 = palno=12&&target(fvar(11)),time<=1&&movehit=1;target(fvar(11)),GetHitVar(hittime)
trigger1 = fvar(12)-(target(fvar(11)),life)<=(target(fvar(11)),lifemax)*fvar(10)
value = -(((((target(fvar(11)),lifemax)*fvar(10))-(target(fvar(11)),GetHitVar(damage)))*0.001)*(target(fvar(11)),lifemax))
absolute = 1
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

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

[State 천성 효과사진]
type = Explod
triggerall = roundstate = 2
triggerall = anim = 0
trigger1 = (GameTime%4) = 0
ownpal = 1
sprpriority = 9
anim = 3023
ID = 30230
postype = p1
pos = var(50),var(51)
vel = -0.5+random%2,-3
removetime = 30
trans = add
alpha = 250,250
persistent = 1
ignorehitpause = 1
PauseMoveTime = 9999
SuperMoveTime = 9999

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[23000,23001]
id = 3060

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3038

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3039

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3040

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3041

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3042

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2216,2217]
id = 3043

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno!=[2205,2210]
id = 3012

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
id = 185

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
ID = 1470

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
ID = 4000

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
id = 4200

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
id = 1655

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
id = 1860

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno != 2216
id = 3038

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno != 2216
id = 3035

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno != 2216
id = 3042

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno != 2216
id = 3043

[State 효과사진 제거]
type = removeexplod
trigger1 = stateno != 2205
id = 3012

[State 효과사진 제거]
type = removeexplod
trigger1 = movetype = H
id = 2200

[State 효과사진 제거]
type = removeexplod
trigger1 = anim != 0
id = 3011

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
ID = 2405

[State 효과사진 제거]
type = removeexplod
trigger1 = MoveType = H
ID = 1000

[State 효과음 제거]
type = stopSnd
trigger1 = stateno != 100
channel = 1

[State 효과음 제거]
type = stopsnd
trigger1 = movetype = H
channel = 3

[State 효과음 제거]
type = stopsnd
trigger1 = stateno != 1055
channel = 5

[State 효과음 제거]
type = stopSnd
trigger1 = MoveType = H
channel = 2

[State 효과음 제거]
type = stopsnd
trigger1 = MoveType = H
channel = 1

[State 효과음 제거]
type = stopsnd
trigger1 = RoundState = 2
channel = 2

[state 변화효과 제거]
type = afterimagetime
trigger1 = MoveType = H
time = 0

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

[State 본체 변화도 체제 설정]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
var(21) = 1

[State 본체 변화도 체제 설정]
type = varset
triggerall = !ishelper
trigger1 = roundstate = 0
var(22) = 1

[State 본체 변화도 체제 설정]
type = varset
triggerall = !ishelper
trigger1 = var(21) <= 1
var(22) = 3

[State 본체 변화도 체제 설정]
type = varset
triggerall = !ishelper
trigger1 = var(21) >= 150
var(22) = 2

[State 본체 변화도 체제 설정]
type = varadd
triggerall = !ishelper
trigger1 = var(22) = 3
var(21) = 5

[State 본체 변화도 체제 설정]
type = varadd
triggerall = !ishelper
trigger1 = var(22) = 2
var(21) = -5

[State 본체 변화도 설정]
type = PalFX
triggerall = !ishelper
trigger1 = stateno != [190,192]
trigger1 = stateno != [23000,23001]
trigger1 = roundstate != 0
time = 2
add = var(21),var(21),var(21)
ignorehitpause = 1

[State 본체 변화도 설정]
type = PalFX
triggerall = !ishelper
trigger1 = stateno != [190,192]
trigger1 = stateno != [23000,23001]
trigger1 = roundstate != 0
trigger1 = var(21) <= 40
time = 2
add = var(21)-40,var(21)-40,var(21)-40
ignorehitpause = 1
color = 0

[State 투명화 설정]
type = Trans
trigger1 = var(55) >= 50
trans = addalpha
alpha = 50-((palno=12)*40),230+((palno=12)*200)

[State K.O. 판정 제지 설정]
type = assertspecial
trigger1 = palno=12&&RoundState!=2&&enemynear,alive=0
trigger2 = palno=12&&(roundstate=[2,3])&&alive&&stateno!=23000
trigger2 = (enemynear(0),life>=enemynear(0),lifemax*0.9||enemy,life>=enemy,lifemax*0.9)
flag = noko
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 투명화 설정]
type = AssertSpecial
trigger1 = palno=12&&alive&&roundstate>=3&&enemy,alive
trigger2 = palno=12&&alive&&roundstate>=3&&numhelper(190000)
trigger3 = (var(55) = [0,49]) && (GameTime%2)=1
flag = invisible
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State 방어 기능 상실화 설정]
type = AssertSpecial
trigger1 = palno = 12 && var(1) = 1
flag = NoStandGuard
flag2 = NoCrouchGuard
flag3 = NoairGuard

[State 본체 방어력 설정]
type = defenceMulSet
trigger1 = palno!=12
value=1.0+((palno=11)*4.5)+(((palno=[1,10])&&var(55)<=0)*0.3)
ignorehitpause = 1
supermovetime = 99999999
pausemovetime = 99999999

[State 너비 설정]
type = Width
trigger1 = 1
edge = 5,0

[State -2]
type = helper
trigger1 = loseko
trigger1 = RoundState = 3
trigger1 = numhelper(195001)=0
id = 195001
persistent = 1
name = "losevo"
pos = 0,0
postype = P1
stateno = 195001
helpertype = normal
keyctrl = 0
ownpal = 1
SuperMoveTime = 9999999
PauseMoveTime = 9999999

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

[StateDef -3, 핵심 기술]

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

[State 위험 여부 검사]
type = varset
trigger1 = 1
var(58) = gametime

[State 위험도 측정]
type = varset
trigger1 = 1
var(53) = gametime*Ceil(e+214748)
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State 위험도 측정]
type = varset
trigger1 = 1
v = 53
value = gametime*Ceil(e+214748)
ignorehitpause = 1
supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

;[State 도우미 위험 대응]
;type = DestroySelf
;triggerall = ishelper && root, name = "G Mizuchi"
;trigger1 = var(53) != gametime+214748
;ignorehitpause = 1
;supermovetime = 9999999999999999999999999999999999999999999999999999999999999999
;pausemovetime = 9999999999999999999999999999999999999999999999999999999999999999

[State 타격사진 체제 설정]
Type = VarSet
trigger1 = 1
var(35) = 0
IgnoreHitPause = 1

[State 타격사진 체제 설정]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 1
IgnoreHitPause = 1

[State 타격사진 체제 설정]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 2
IgnoreHitPause = 1

[State 타격사진 체제 설정]
Type = VarSet
triggerall = !ishelper
trigger1 = Random <= 300
var(35) = 3





[State -3]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 105
value = 105, 0

[State -3]
type = NotHitBy
triggerall = var(1) = 1 && palno !=12
trigger1 = var(55) >= 0
value = SCA,AA,AP
ignorehitpause = 1

[State -3]
type = HitBy
triggerall = var(1) = 1 && palno !=12
trigger1 = var(55) >= 0
value = SCA,AT
ignorehitpause = 1

[State 0, ModifyExplod]
type = ModifyExplod
trigger1 = 1
ID = 1005
ownpal = 1

















;-------------------------------------------------------------------------------
; 신의 영역
;-------------------------------------------------------------------------------

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

[State Null]
type = Null
trigger1 = 1
ignorehitpause = 1





























