;********************************************
; 变量设置
;********************************************
; var(9) = 语言中英文设置
;	var(9) = 0      中文台词
;	var(9) = 1      英文台词
; var(10) = 姿态设置
;	var(10) = 0	防御姿态 
;	var(10) = 1	战斗姿态
;	var(10) = 2	狂暴姿态
; var(11) = 战斗姿态·战术精通记时
; var(12) = 狂暴姿态·暴击倍率与HP判断
; fvar(12) = 狂暴姿态·暴击攻击力倍率
; var(13) = 破釜沉舟变量判定
; var(14) = 破釜沉舟狂战士化判定
; var(15) = 狂战士化动作记录
; var(16) = 狂战士化动作图片记录 [作废]

;---------------------------------------------------------------------------
[statedef -2]

[State -2, DisplayToClipboard]     ;DEBUG 加入检测变量
type = DisplayToClipboard
trigger1 = 1
text = "var(10) = %d"
params = var(10)
ignorehitpause = 1

[State -2, VarSet]
type = VarSet
trigger1 = RoundState = 0
var(10) = 1

[State -2, VarSet]
type = VarSet
trigger1 = var(10) = 1
trigger1 = RoundState = 0
var(11) = 0


[State -2, VarAdd]
type = VarAdd
trigger1 = var(10) = 1
trigger1 = time%30 = 0
v = 11
value = 1

[State -2, Explod]
type = Explod
trigger1 = teamside = 1
trigger1 = var(10) = 0
trigger1 = numexplod(20651) = 0
anim = 20651
ID = 20651
pos = 0,40
postype = left ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State -2, Explod]
type = Explod
trigger1 = teamside = 2
trigger1 = var(10) = 0
trigger1 = numexplod(20651) = 0
anim = 20651
ID = 20651
pos = -150,40
postype = right ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = var(10) != 0
id = 20651
;ignorehitpause =
;persistent =

[State -2, Explod]
type = Explod
trigger1 = teamside = 1
trigger1 = var(10) = 1
trigger1 = numexplod(20652) = 0
anim = 20652
ID = 20652
pos = 0,40
postype = left   ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State -2, Explod]
type = Explod
trigger1 = teamside = 2
trigger1 = var(10) = 1
trigger1 = numexplod(20652) = 0
anim = 20652
ID = 20652
pos = -150,40
postype = right ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = var(10) != 1
id = 20652
;ignorehitpause =
;persistent =

[State -2, Explod]
type = Explod
trigger1 = teamside = 1
trigger1 = var(10) = 2
trigger1 = numexplod(20653) = 0
anim = 20653
ID = 20653
pos = 0,40
postype = left   ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State -2, Explod]
type = Explod
trigger1 = teamside = 2
trigger1 = var(10) = 2
trigger1 = numexplod(20653) = 0
anim = 20653
ID = 20653
pos = -150,40
postype = right ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = .25,.25
sprpriority = 0
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause =
;persistent =

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = var(10) != 2
id = 20653
;ignorehitpause =
;persistent =

;-------声音设置---------
[State -2, VarSet];语言设置
type = VarSet
trigger1 = 1
var(9) = 0

[State -2, PlaySnd];前走脚步声
type = PlaySnd
triggerall = stateno = 20
triggerall = anim = 20
trigger1 = animelem = 5
trigger2 = animelem = 14
value = 20,0
volume = 200
;channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];后退脚步声
type = PlaySnd
triggerall = stateno = 20
triggerall = anim = 21
trigger1 = animelem = 5
trigger2 = animelem = 14
value = 21,0
volume = 150
;channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];起跳声
type = PlaySnd
triggerall = stateno = 40
trigger1 = animtime = 0
value = 40,0
volume = 0
;channel = 0
;lowpriority = -1
freqmul = 1.1
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];跳跃落地声
type = PlaySnd
triggerall = stateno = 52
trigger1 = time = 1
value = 52,0
volume = 255
;channel = 0
;lowpriority = -1
freqmul = 0.9
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];跳跃落地喊声
type = PlaySnd
triggerall = stateno = 52
trigger1 = random >= 500
trigger1 = time = 1
value = 210,0
volume = 255
channel = 0
;lowpriority = -1
freqmul = 0.9
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];跑步脚步声
type = PlaySnd
triggerall = stateno = 100
trigger1 = animelem = 11
trigger2 = animelem = 24
value = 100,0
volume = 255
;channel = 0
;lowpriority = -1
freqmul = 1.5 +random%2
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];疾退脚步声
type = PlaySnd
triggerall = stateno = 105
trigger1 = time = 1
value = 40,0
volume = 100
;channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];疾退落地声
type = PlaySnd
triggerall = stateno = 106
trigger1 = time = 1
value = 40,1
volume = 0
;channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];失败声音
type = PlaySnd
triggerall = stateno = 170 | stateno = 175
trigger1 = time%100 = 0
value = 5000,3
volume = 0
channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];胜利声音
type = PlaySnd
triggerall = stateno = 180
trigger1 = var(9) = 0
trigger1 = time%150 = 0
trigger2 = var(9) = 1
trigger2 = time = 1
value = 180+var(9),0
volume = 200
channel = 0
;lowpriority = -1
;freqmul = 1.0
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];开场声音
type = PlaySnd
triggerall = stateno = 190
trigger1 = time = 1
value = 195+var(9),0+random%4
volume = 200
channel = 0
;lowpriority = -1
freqmul = 1.1
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State -2, PlaySnd];挑衅声音
type = PlaySnd
triggerall = stateno = 195
trigger1 = time = 1
value = 191,0+random%2
volume = 200
channel = 0
;lowpriority = -1
freqmul = 1.1
;loop = 0
;pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State 5000, ouch]
type = PlaySnd
triggerall = life > 0
triggerall = Random < 500
triggerall = Time = 1
triggerall = GetHitVar(animtype) = [0,1]
trigger1 = stateno = 5000
trigger2 = stateno = 5010
trigger3 = stateno = 5020
trigger4 = stateno = 5030
value = 5000,0 + random%2
volume = 200
channel = 0
;lowpriority = 1

; Play "ouch" when landing on back
[State 5100, ouch]
type = PlaySnd
triggerall = life > 0
triggerall = stateno = 5100
trigger1 = life > 0
trigger1 = Time = 0
value = 5000,1 + random%2
volume = 200
channel = 0
;lowpriority = 1

; Play "ouch" sound when hit hard
[State 5000, ouch2]
type = PlaySnd
triggerall = life > 0
triggerall = Random < 500
triggerall = Time = 1
triggerall = GetHitVar(animtype) = [2,5]
trigger1 = stateno = 5000
trigger2 = stateno = 5010
trigger3 = stateno = 5020
trigger4 = stateno = 5030
value = 5000,1 + random%2
volume = 200
channel = 0
;lowpriority = 1


