; NAOKの定数（基本データ）と状態（各動作）を記述する
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;基本データ部分
[Data]
life              = 1000    ;体力ゲージの最大値を決めます
power             = 3000    ;パワーゲージ最大値（デフォルトは 3000 = Lv.3 になります・オプション）
attack            = 100     ;攻撃力パーセンテージ（デフォルトは 100% になります）
defence           = 100     ;防御力パーセンテージ（デフォルトは 100% になります）
fall.defence_up   = 50      ;一時的に上昇するダウン時の防御力パーセンテージ
liedown.time      = 60      ;倒れてから起き上がるまでの時間
airjuggle         = 15      ;ジャグルポイント限界値
sparkno           = 2       ;デフォルトのヒットスパーク番号（fightfx.airか、キャラのairから呼び出す）
guard.sparkno     = 40      ;デフォルトのガードスパーク番号（fightfx.airか、キャラのairから呼び出す）
KO.echo           = 0       ;ＫＯ時の声にエコーを掛けるかどうか（0=しない・1=する）
volume            = 255       ;キャラの音量　255が最高
intpersistindex   = 20      ;Varを次のラウンドへ持ち越しが可能 (最小=0, 最大=59)
floatpersistindex = 40      ;FVarを次のラウンドへ持ち越しが可能 (最小=0, 最大=39)


;---------------------------------------------------------------------------
;サイズ設定
[Size]
xscale           = 1        ;キャラ画像の横のスケール
yscale           = 1        ;キャラ画像の縦のスケール
ground.back      = 15       ;キャラの幅（地上後方）
ground.front     = 16       ;キャラの幅（地上前方）
air.back         = 12       ;キャラの幅（空中後方）
air.front        = 12       ;キャラの幅（空中前方）
height           = 60       ;跳び越す相手のためのキャラの高さ
attack.dist      = 160      ;攻撃を出した時に相手がガード体勢に入る最低の距離
proj.attack.dist = 90       ;相手がガード体勢に入る発射物との最低の距離
proj.doscale     = 0        ;xscaleとyscaleが発射物のスケールにも影響するかどうか（0=しない・1=する）
head.pos         = -5, -90  ;BindToTargetの時に必要な頭の座標
mid.pos          = -5, -60  ;BindToTargetの時に必要な体中心の座標
shadowoffset     = 0        ;影の垂直方向の位置
draw.offset      = 0,0      ;キャラ描画表示位置（Ｘ軸,Ｙ軸）

;---------------------------------------------------------------------------
;移動速度設定
[Velocity]
walk.fwd     = 2.0         ;前進歩行速度
walk.back    = -1.6        ;後退歩行速度
run.fwd      = 5.6, 0      ;前に走る時の速度（Ｘ軸,Ｙ軸）
run.back     = -4.5,-3.8   ;後ろに走る時の速度（Ｘ軸,Ｙ軸）
jump.neu     = 0,-9.4      ;垂直ジャンプ速度（Ｘ軸,Ｙ軸）
jump.back    = -2.5        ;後ジャンプ速度
jump.fwd     = 2.55        ;前ジャンプ速度
runjump.back = -2.55,-8.1  ;後ろに走りながらのジャンプ速度（オプション）
runjump.fwd  = 4,-8.1      ;前に走りながらのジャンプ速度（オプション）
airjump.neu  = 0,-8.1      ;空中垂直ジャンプ速度（オプション）
airjump.back = -2.5        ;空中後ジャンプ速度（オプション）
airjump.fwd  = 2.55        ;空中前ジャンプ速度（オプション）

;---------------------------------------------------------------------------
;動作設定
[Movement]
airjump.num     = 0      ;空中ジャンプが出来る回数（オプション）
airjump.height  = 35     ;空中ジャンプするために必要な最低限の高さ（オプション）
yaccel          = .44    ;重力（垂直下降加速度）
stand.friction  = .85    ;立ち状態の摩擦係数
crouch.friction = .82    ;しゃがみ状態の摩擦係数
;---------------------------------------------------------------------------
; 勝利ポーズ選択
[Statedef 180]
type = S
ctrl = 0
;anim = 180 + var(15)
velset = 0,0


[State 180,ちびみずかヘルパー]
type = null;helper
triggerall = time = 0
triggerall = numhelper(51010) = 0
triggerall = numhelper(10013) = 0
trigger1 = random % 4 = 0
trigger2 = enemy,name = "White_Len"
trigger3 = enemy,name = "White Len"
trigger4 = enemy,name = "Ayu Tukimiya"
trigger5 = enemy,name = "D-Mai_Kawasumi_by_Nachel"
trigger6 = enemy,name = "kanna"
trigger7 = enemy,name = "Unknown"
trigger8 = enemy,name = "Akane Satomura"
trigger9 = enemy,name = "EXnanase"
trigger10 = enemy,name = "Mayu"
trigger11 = enemy,name = "Mayu Shiina"
trigger12 = enemy,name = "Mio"
trigger13 = enemy,name = "misaki kawana"
trigger14 = enemy,name = "Mizuka Nagamori"
trigger15 = enemy,name = "Rumi Nanase"
name = "win_Unknown"
id = 51010
pos = -30,-70
postype = p1
facing = 1
stateno = 51010
helpertype = normal
ownpal = 1
keyctrl = 0
persistent = 0
ignorehitpause = 1


[State 180,無敵]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


[State 180,ラウンド移行制限] 
type = AssertSpecial
trigger1 = 1
flag = roundnotover


[State 180,勝利ポーズ分岐]
type = ChangeState
trigger1 = time >= 1
value = 181 + (var(3)!=0) + (numhelper(10013) = 1)*2
;---------------------------------------------------------------------------
;通常モード勝利
[Statedef 181]
type = S
ctrl = 0
anim = 180
velset = 0,0


[State 181,ボイス分岐（通常）]
type = VarRandom
trigger1 = time = 0
v = 9
range = 0,4


[State 181,無敵]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


[State 181,ラウンド移行制限] 
type = AssertSpecial
trigger1 = time <= 400
flag = roundnotover


[State 181,勝利ボイスランダム再生] 
type = PlaySnd
trigger1 = animelemtime(5) = 0
value = s15,var(9)
channel = 0
;---------------------------------------------------------------------------
;スタンドモード勝利
[Statedef 182]
type = S
ctrl = 0
anim = 20180
velset = 0,0


[State 182,ボイス分岐]
type = VarRandom
trigger1 = time = 0
v = 9
range = 0,4


[State 182,無敵]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


[State 182,ラウンド移行制限] 
type = AssertSpecial
trigger1 = time <= 400
flag = roundnotover


[State 182,勝利ボイスランダム再生] 
type = PlaySnd
trigger1 = time = 74
value = s15,var(9)
channel = 0
;---------------------------------------------------------------------------
;LAフィニッシュ
[Statedef 183]
type = S
ctrl = 0
velset = 0,0


[State 183,ラウンド移行制限] 
type = AssertSpecial
trigger1 = time <= 900
flag = roundnotover


[State 183,アニメ変更]
type = changeanim
trigger1 = anim != 2220
value = 2220


[State 183,ボイス分岐（通常）]
type = VarRandom
trigger1 = time = 0
v = 9
range = 0,2


[State 183,無敵]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1


[State 183,「心に不安を持つかぎり、私を倒す事はできない。ここに在るのはタタリ。貴方の不安、貴方の未来を騙る死徒の王なのですから。」] 
type = PlaySnd
triggerall = time = 1
trigger1 = var(9) = 0
channel = 0
value = s10,18


[State 183,「喜びなさい。貴方の知識は私の記憶に、貴方の体は私の血液となる。貴方は死を以って、エルトナムの末席に連ねるのです。」] 
type = PlaySnd
triggerall = time = 1
trigger1 = var(9) = 1
channel = 0
value = s10,19


[State 183,「不味い血だ。栄養値は低いし旨味もない。率直に言って、貴方は安物という事だ。」] 
type = PlaySnd
triggerall = time = 1
trigger1 = var(9) = 2
channel = 0
value = s15,5


;---------------------------------------------------------------------------
;イントロ選択
[Statedef 191]
type = S
ctrl = 0
anim = 190
velset = 0,0


[State 192,イントロ宣言]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic


[State 190,あゆヘルパー]
type = null;helper
triggerall = time = 0
triggerall = numhelper(50000) = 0
trigger1 = random % 4 = 0
trigger2 = enemy,name = "White_Len"
trigger3 = enemy,name = "White Len"
trigger4 = enemy,name = "Ayu Tukimiya"
trigger5 = enemy,name = "Nayuki Minase"
trigger6 = enemy,name = "Akiko Minase"
trigger7 = enemy,name = "Makoto Sawatari"
trigger8 = enemy,name = "Shiori"
trigger9 = enemy,name = "Shiori Misaka"
trigger10 = enemy,name = "Kaori Misaka"
trigger11 = enemy,name = "Mishio"
trigger12 = enemy,name = "D-Mai_Kawasumi_by_Nachel"
trigger13 = enemy,name = "Mai_K"
trigger14 = enemy,name = "Sayuri Kurata"
trigger15 = enemy,name = "kanna"
trigger16 = enemy,name = "Unknown"
name = "intro_ayu"
id = 50000
pos = 30,0
postype = p1
facing = 1
stateno = 50000
helpertype = normal
ownpal = 1
keyctrl = 0
persistent = 0
ignorehitpause = 1


[State 190,ちびみずかヘルパー]
type = null;helper
triggerall = time = 0
triggerall = numhelper(51000) = 0
trigger1 = random % 4 = 0
trigger2 = enemy,name = "White_Len"
trigger3 = enemy,name = "White Len"
trigger4 = enemy,name = "Ayu Tukimiya"
trigger5 = enemy,name = "D-Mai_Kawasumi_by_Nachel"
trigger6 = enemy,name = "kanna"
trigger7 = enemy,name = "Unknown"
trigger8 = enemy,name = "Akane Satomura"
trigger9 = enemy,name = "EXnanase"
trigger10 = enemy,name = "Mayu"
trigger11 = enemy,name = "Mayu Shiina"
trigger12 = enemy,name = "Mio"
trigger13 = enemy,name = "misaki kawana"
trigger14 = enemy,name = "Mizuka Nagamori"
trigger15 = enemy,name = "Rumi Nanase"
name = "intro_Unknown"
id = 51000
pos = -30,0
postype = p1
facing = 1
stateno = 51000
helpertype = normal
ownpal = 1
keyctrl = 0
persistent = 0
ignorehitpause = 1


[State 192,分岐]
type = VarRandom
trigger1 = time = 0
v = 9
range = 0,6


[State 192,ゲージセット]
type = powerset
trigger1 = 1
value = 1000
ignorehitpause = 1


[State 192,VSタタリ・志貴・青子]
type = ChangeState
triggerall = time = 1
trigger1 = enemy,name = "White_Len"
trigger2 = enemy,name = "White Len"
trigger3 = enemy,name = "warakia"
trigger4 = enemy,name = "warachia"
trigger5 = enemy,name = "Sion TATARI"
trigger6 = enemy,name = "shiki_tohno"
trigger7 = enemy,name = "shiki tohno"
trigger8 = enemy,name = "tohno_shiki"
trigger9 = enemy,name = "tohno shiki"
trigger10 = enemy,name = "InferisAOKO"
trigger11 = enemy,name = "Dark Arcueid"
trigger12 = enemy,name = "Len"
trigger13 = enemy,name = "Sion Eltnam Atlasia"
trigger14 = enemy,name = "Sion"
value = 192


[State 192,VSシエル]
type = ChangeState
triggerall = time = 1
trigger1 = enemy,name = "ciel"
value = 193


[State 192,VSそれ以外(1)]
type = ChangeState
trigger1 = time >= 2
trigger1 = var(9) = [0,3]
value = 194


[State 192,VSそれ以外(2)]
type = ChangeState
trigger1 = time >= 2
trigger1 = var(9) = [4,6]
value = 195
;---------------------------------------------------------------------------
; イントロ（VSタタリ・志貴・青子）
[Statedef 192]
type = S
ctrl = 0
anim = 191
velset = 0,0


[State 192,イントロ宣言]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic


[State 192,「志貴、貴方が相手でも邪魔はさせない」] 
type = PlaySnd
triggerall = animelemtime(1) = 0
trigger1 = enemy,name = "shiki_tohno"
trigger2 = enemy,name = "shiki tohno"
trigger3 = enemy,name = "tohno_shiki"
trigger4 = enemy,name = "tohno shiki"
channel = 0
value = s13, 5


[State 192,「タタリの後継者は私だ。貴方は要らない」] 
type = PlaySnd
triggerall = animelemtime(1) = 0
trigger1 = enemy,name = "White_Len"
trigger2 = enemy,name = "White Len"
trigger3 = enemy,name = "warakia"
trigger4 = enemy,name = "warachia"
trigger5 = enemy,name = "Sion TATARI"
channel = 0
value = s13, 6


[State 192,「貴方の首を貰います」] 
type = PlaySnd
triggerall = animelemtime(1) = 0
trigger1 = enemy,name = "InferisAOKO"
trigger2 = enemy,name = "Dark Arcueid"
trigger3 = enemy,name = "Len"
trigger4 = enemy,name = "Sion Eltnam Atlasia"
trigger5 = enemy,name = "Sion"
channel = 0
value = s13, 7


[State 192,ステート変更]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; イントロ（VSシエル）
[Statedef 193]
type = S
ctrl = 0
anim = 192
velset = 0,0


[State 193,イントロ宣言]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic


[State 193,「代行者……私を、殺しにきたの、ですか」] 
type = PlaySnd
trigger1 = animelemtime(1) = 0
channel = 0
value = s13, 4


[State 193,ステート変更]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;---------------------------------------------------------------------------
; イントロ（VSそれ以外(1)）

[Statedef 194]
type = S
ctrl = 0
anim = 190
velset = 0,0


[State 194,イントロ宣言]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic


[State 194,ボイス分岐]
type = VarRandom
trigger1 = time = 0
v = 9
range = 0,3


[State 194,イントロボイスランダム再生] 
type = PlaySnd
trigger1 = animelemtime(1) = 0
channel = 0
value = s13,var(9)


[State 194,ステート変更]
type = ChangeState
trigger1 = time >= 240
value = 0


;---------------------------------------------------------------------------
; イントロ（VSそれ以外(2)）
[Statedef 195]
type = S
ctrl = 0
velset = 0,0


[State 195,イントロ宣言]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic


[State 195,ボイス分岐]
type = VarRandom
trigger1 = time = 0
v = 9
range = 1,3


[State 195,アニメ変更]
type = ChangeAnim
trigger1 = time = 1
value = 4190 + var(9)


[State 195,イントロボイスランダム再生] 
type = PlaySnd
trigger1 = animelemtime(6) = 0
channel = 0
value = s13,var(9)


[State 195,ステート変更]
type = ChangeState
;trigger1 = 
trigger1 = time >= 300 - ((var(9)=2)*50)
value = 0
