
;---------------------
;千影
;---------------------
[Statedef 3000]
type     = S
movetype = A
physics  = S
velset   = 0,0
poweradd = -1000
anim     = 3000
ctrl     = 0
sprpriority = 2
Facep2 = 1

[State 无敌]
type = NotHitBy
trigger1 = 1
value = SCA

[State 挥击音效]
type = PlaySnd
trigger1 = Animelem = 2
value = S7000,0

[State 取消]
type = palfx
triggerall = time <= 5
trigger1 = prevstateno = [1000,2999]
time = 1
add = 256,256,256
color = 1
ignorehitpause = 1

[State 超级暂停]
type = SuperPause
trigger1 = time = 0
anim = -1
movetime = 40
time = 40

[State 超必杀特效]
Type = Explod
Trigger1 = Animelem = 3
anim = 20000
postype = p1
pos = 0,-90
sprpriority = -1
bindTime = 30
supermovetime = 9999
scale = 0.4,0.4
ownpal = 1

[State 超必杀特效]
Type = Explod
Trigger1 = Animelem = 3
anim = 20001
postype = p1
pos = 5,-90
sprpriority = 5
bindTime = 30
supermovetime = 9999
scale = 0.4,0.4
ownpal = 1

[State 变量]
type = VarSet
trigger1 = Time = 0
v = 6
value = 1

[State 归零]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------
;千劫
;---------------------
[Statedef 3100]
type = S
physics = S
movetype = A
ctrl = 0
anim = 3100
poweradd = -1000
facep2 = 1
velset = 0,0
sprpriority = 3

[State 挥击音效]
type = PlaySnd
trigger1 = Animelem = 3
value = S7000,0

[State 取消]
type = palfx
triggerall = time <= 5
trigger1 = prevstateno = [1000,2999]
time = 1
add = 256,256,256
color = 1
ignorehitpause = 1

[State 超级暂停]
type = SuperPause
trigger1 = time = 0
anim = -1
movetime = 45
time = 45

[State 超必杀特效]
Type = Explod
Trigger1 = Animelem = 3
anim = 20000
postype = p1
pos = -15,-85
sprpriority = -1
bindTime = 30
supermovetime = 9999
scale = 0.4,0.4
ownpal = 1

[State 超必杀特效]
Type = Explod
Trigger1 = Animelem = 3
anim = 20001
postype = p1
pos = -10,-85
sprpriority = 5
bindTime = 30
supermovetime = 9999
scale = 0.4,0.4
ownpal = 1

[state 特效]
Type = Explod
Trigger1 = AnimElem = 3
anim = 3105
id = 3105
sprpriority = 1
posType = p1
pos = -10,-125
bindTime = -1
facing = 1
removetime = -1
under = 0
ownpal = 1
supermovetime = 9999

[State 特效删除]
Type = RemoveExplod
Trigger1 = AnimElem = 4
ID = 3105

[state 特效]
Type = Explod
Trigger1 = AnimElem = 4
anim = 3106
id = 3106
sprpriority = 1
posType = p1
pos = -63,-90
bindTime = -1
facing = 1
removetime = -1
under = 0
ownpal = 1
supermovetime = 9999

[State 特效删除]
Type = RemoveExplod
Trigger1 = AnimElem = 5
ID = 3106

[state 特效]
Type = Explod
Trigger1 = AnimElem = 5
anim = 3107
id = 3107
sprpriority = 1
posType = p1
pos = -45,-50
bindTime = -1
facing = 1
removetime = -1
under = 0
ownpal = 1
supermovetime = 9999

[State 特效删除]
Type = RemoveExplod
Trigger1 = AnimElem = 6
ID = 3107

[state 特效]
Type = Explod
Trigger1 = AnimElem = 6
anim = 3108
id = 3108
sprpriority = 1
posType = p1
pos = 50,-80
bindTime = -1
facing = 1
removetime  = -2
under = 0
ownpal = 1
supermovetime = 9999

[State 特效删除]
Type = RemoveExplod
Trigger1 = AnimElem = 7
ID = 3108

[State Helper]
type = Helper
trigger1 = AnimElem = 7
name = "ball"
ID = 3110
pos = 55,-85
postype = P1
stateno = 3110
keyctrl = 0
ownpal = 1

[State Helper]
type = Helper
triggerall = var(6) = 1
trigger1 = AnimElem = 7
name = "ball"
ID = 3111
pos = 65,-75
postype = P1
stateno = 3111
keyctrl = 0
ownpal = 1

[state 变量]
type = varset
trigger1 = time = 0
var(7) = 1

[State 归零]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3110]
type = S
movetype = A
physics = N
anim = 3110
velset = 0,0
ctrl = 0
sprpriority = 4

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = time >= 0
value = SCA

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 速度]
type = VelSet
trigger1 = 1
x = 15
y = -17

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = , HA
animtype  = Hard
damage = 20,10
hitflag = MAF
guardflag = M
pausetime = 0,5
sparkno = S-1
guard.sparkno = 7060
sparkxy = 5,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
ground.type = High
guard.dist = 200
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 屏闪]
type = EnvColor
trigger1 = Movehit
time = 1
under = 1
value = 255,255,255
ignorehitpause = 1
persistent = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y < -200
value = 3113

[State 转入]
type = ChangeState
trigger1 = FrontEdgeDist < 5
value = 3115

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3111]
type = S
movetype = A
physics = N
anim = 3110
velset = 0,0
ctrl = 0
sprpriority = 4

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = time >= 0
value = SCA

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 速度]
type = VelSet
trigger1 = 1
x = 15
y = -7

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = , HA
animtype  = Hard
damage = 20,10
hitflag = MAF
guardflag = M
pausetime = 0,5
sparkno = S-1
guard.sparkno = 7060
sparkxy = 5,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
ground.type = High
guard.dist = 200
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 屏闪]
type = EnvColor
trigger1 = Movehit
time = 1
under = 1
value = 255,255,255
ignorehitpause = 1
persistent = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y < -200
value = 3113

[State 转入]
type = ChangeState
trigger1 = FrontEdgeDist < 5
value = 3115

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3112]
type    = A
movetype= A
physics = S
ctrl = 0
anim = 3110
sprpriority = 2

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 变量]
type = VarADD
trigger1 = root,VAR(7) = 1
trigger1 = Time = 0
var(8) = 4

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = 1
value = SCA

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = , HA
animtype  = Hard
damage = 20,10
hitflag = MAF
guardflag = M
pausetime = 0,5
sparkno = S-1
guard.sparkno = 7060
sparkxy = 5,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
ground.type = High
guard.dist = 200
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 速度]
type = VelSet
trigger1 = 1
x = 18
y = -15

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 屏震]
type = EnvShake
trigger1 = Time = 0
time = 15
freq = 90
ampl = 4
phase = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y < -200
value = ifelse(var(8) > 80,3116,3113)

[State 转入]
type = ChangeState
trigger1 = FrontEdgeDist < 5
value = 3115

[State 转入]
type = ChangeState
trigger1 = root,movetype= H
value = 3116

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3113]
type    = A
movetype= A
physics = S
ctrl = 0
anim = 3110
sprpriority = 4

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 变量]
type = VarADD
trigger1 = root,VAR(7) = 1
trigger1 = Time = 0
var(8) = 4

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = 1
value = SCA

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = 	A, HA
animtype  = Hard
damage = 20,10
hitflag = MAFD
guardflag = M
pausetime = 0,10
sparkno = S-1
guard.sparkno = S7060
sparkxy = -25,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
guard.dist = 200
ground.type = High
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 速度]
type = VelSet
trigger1 = 1
x = 18
y = 15

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 屏震]
type = EnvShake
trigger1 = Time = 0
time = 15
freq = 90
ampl = 4
phase = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y > -10
value = 3112

[State 转入]
type = ChangeState
trigger1 = FrontEdgeDist < 5
value = 3114

[State 转入]
type = ChangeState
trigger1 = root,movetype= H
value = 3121

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3114]
type    = A
movetype= A
physics = S
ctrl = 0
anim = 3110
sprpriority = 4

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 变量]
type = VarADD
trigger1 = root,VAR(7) = 1
trigger1 = Time = 0
var(8) = 4

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = 1
value = SCA

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = 	A, HA
animtype  = Hard
damage = 20,10
hitflag = MAFD
guardflag = M
pausetime = 0,10
sparkno = S-1
guard.sparkno = S7060
sparkxy = -25,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
guard.dist = 200
ground.type = High
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 速度]
type = VelSet
trigger1 = 1
x = -18
y = 15

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 屏震]
type = EnvShake
trigger1 = Time = 0
time = 15
freq = 90
ampl = 4
phase = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y > -10
value = 3115

[State 转入]
type = ChangeState
trigger1 = root,movetype= H
value = 3116

[State 转入]
type = ChangeState
trigger1 = BackEdgeDist < 5
value = 3113

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3115]
type    = A
movetype= A
physics = S
ctrl = 0
anim = 3110
sprpriority = 4

[State 音效]
type = PlaySnd
trigger1 = time = 0
value = s120,3

[State 变量]
type = VarADD
trigger1 = root,VAR(7) = 1
trigger1 = Time = 0
var(8) = 4

[State 屏幕距离]
type = ScreenBound
trigger1 = 1
value = 0
movecamera = 0,0

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = 1
value = SCA

[State 攻击判定]
type = HitDef
trigger1 = Time = 0 
attr = 	A, HA
animtype  = Hard
damage = 20,10
hitflag = MAFD
guardflag = M
pausetime = 0,10
sparkno = S-1
guard.sparkno = S7060
sparkxy = -25,0
hitsound  = s-1,4
guardsound = s-1,3
ground.slidetime = 15
ground.hittime = 18
ground.velocity = -8
guard.velocity = -4
air.velocity = -1.5,-6
guard.dist = 200
ground.type = High
fall = 0
AIR.FALL = 1
yaccel = .5

[State 打击火花]
type = Explod
trigger1 = movehit = 1
anim = 7001
sprpriority = 20
supermovetime = 9999
postype = p1
pos = 0,0
bindtime = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.35,0.35
trans = addalpha
alpha = 256, 256

[State 飞道]
type = Projectile
trigger1 = Gametime%2 = 0
projid = 3120
projanim = 3120
projremove = 0
projremovetime = 1
projpriority = 2147483648
offset = 0, 0
velocity = 0, 0
Postype = p1
attr = S,HP
sparkno = -1
guard.sparkno = -1

[State 速度]
type = VelSet
trigger1 = 1
x = -18
y = -15

[State 残影]
type = AfterImage
trigger1 = Time = 0
time = 15
palmul = 1,1,1
palcontrast = 160,160,160
palbright = 0,0,0
PalAdd = 1,1,1
length = 5
framegap = 10
trans = add1

[State 屏震]
type = EnvShake
trigger1 = Time = 0
time = 15
freq = 90
ampl = 4
phase = 0

[State 转入]
type = ChangeState
trigger1 = Pos Y < -200
value = ifelse(var(8) > 80,3116,3114)

[State 转入]
type = ChangeState
trigger1 = root,movetype= H
value = 3116

[State 转入]
type = ChangeState
trigger1 = BackEdgeDist < 5
value = 3112

;---------------------
;千劫(Helper)
;---------------------
[Statedef 3116]
type    = A
movetype= I
physics = S
ctrl = 0
anim = 9997
sprpriority = 2

[State 抓取火花]
type = Explod
trigger1 = Time = 0
anim = 7250
postype = P1
pos = 0,0
sprpriority = 15
ownpal = 1
ignorehitpause = 1
persistent = 0
under = 0
ownpal = 1
scale = 0.5,0.5
trans = addalpha
alpha = 256, 256

[State 屏震]
type = EnvShake
trigger1 = time = 0
time = 10
ampl = 20
freq = 40

[State 音效]
type = playsnd
trigger1 = time = 0
value = S10,9

[State 断言]
type = AssertSpecial
trigger1 = 1
flag = noshadow

[State 无敌]
type = NotHitBy
trigger1 = 0
value = SCA

[State 速度]
type = VelSet
trigger1 = 1
x = 0
y = 0

[State Helper删除]
type = DestroySelf
trigger1 = time >= 20