蒼月潮の基本行動の多くが記述されているcnsファイル。こちらをの記述のほうが優先されて使用されるはず
歩き
編集前 |
[State 20, 1]
type = VelSet
trigger1 = command = "holdfwd"
x = const(velocity.walk.fwd.x)
[State 20, 2]
type = VelSet
trigger1 = command = "holdback"
x = const(velocity.walk.back.x)
編集後 |
;前に向かって歩く、蒼月潮の前進速度は遅い
[State 20, 1]
type = VelSet
triggerall = roundstate = 2
trigger1 = p2statetype != L && P2BodyDist X >= 0
trigger2 = p2statetype = L && P2BodyDist X > 75
x = const(velocity.walk.fwd.x)
;後ろに向かって歩く、蒼月潮の後退速度は遅い
[State 20, 2]
type = VelSet
triggerall = roundstate = 2
trigger1 = p2statetype = L && P2BodyDist X < 65
x = const(velocity.walk.back.x)
;AI用の追加記述、一旦足を止めたなら、そのまま立ち状態に戻る
[State 20, 5]
type = ChangeState
trigger1 = vel X = 0
value = 0
ctrl = 1
デフォルトAI用の前進・後退ステートとして、21番と22番が用意されているのだが、そちらは使わない
通常の歩きステートである20番の、command記述を編集して歩かせる。その方がたぶん確実だろう
ジャンプ
編集前 |
[State 40, 変数];※システム用
type = VarSet
trigger1 = (command = "holdfwd")
sysvar(1) = 1
[State 40, 変数];※システム用
type = VarSet
trigger1 = (command = "holdback")
sysvar(1) = -1
編集後 |
;前方へのジャンプ、蒼月潮のジャンプ速度・高度はあるが、二段ジャンプできない
[State 40, 変数];※システム用
type = VarSet
triggerall = roundstate = 2
trigger1 = BackEdgeBodyDist <= 20 &&(p2statetype = L ||(p2statetype != A && p2movetype != A))
trigger2 = p2statetype != A && p2movetype != H
trigger3 = p2statetype = A && p2movetype = H
sysvar(1) = 1
;後方へのジャンプ、蒼月潮のジャンプ速度・高度はあるが、二段ジャンプできない
[State 40, 変数];※システム用
type = VarSet
triggerall = roundstate = 2
trigger1 = p2statetype = L && BackEdgeBodyDist > 20 && enemynear,NumProj = 0
sysvar(1) = -1
ジャンプ記述、蒼月潮は二段ジャンプできないが、代わりに速度も高度もある
とはいえ使いどころとしては、普通のジャンプと同じ扱いになると思う
ダッシュ
編集前 |
[State 100, アニメ変更]
type = ChangeAnim
triggerall = (Time > 4)
trigger1 = (command != "holdfwd")&&(var(0) = 0)
trigger2 = (EnemyNear,p2bodydist X<=15)&&(var(0) = 1)
value = 48
Persistent = 0
編集後 |
;蒼月潮のダッシュ速度はかなり速い、そのぶん止まりづらい
[State 100, アニメ変更]
type = ChangeAnim
triggerall = (Time > 4)
trigger1 = p2movetype = A || InGuardDist
trigger2 = RoundState != 2
trigger3 = p2movetype != H
trigger3 = P2BodyDist X < 80
trigger3 = P2BodyDist Y > -120
trigger4 = P2BodyDist X <= 10
value = 48
Persistent = 0
「var(0)」は蒼月潮のAI起動を判断する変数、だがデフォルトAIは使用しないので、デフォルトAI用の記述も
消してかまわない。あとはコモンステートと同様に設定する。またこの項目は「ChangeAnim」なので
「ctrl = 1」は追記しない、後の「Changestate」でちゃんと行動可能に戻っている