docs: explain ambient scenarios and shared expressions
Describe independent ambient executions and their editing/debugging through npc_barks_base. Extend localized guidance on expressions_base calculations.
This commit is contained in:
1 parent
4720506047
commit
24e5e2d40e
7 files changed
+62
No files matched your search
+10
@@ -97,3 +97,13 @@ save_allowed: true
|
||||
2. **台詞が別の言語で表示される。** その言語の翻訳キー `key=` が mod の `locale` ファイルになく、引用したテキストがそのまま表示されています。
|
||||
3. **選択肢がどこにも行かない。** `->` の後のラベルは、同じファイル内にコロン付き(`:bar`)で存在しなければなりません。
|
||||
4. **`action` が何もしない。** アクションを持つ mod がゲームに含まれていない(ログに "is not registered" と出ます)か、パラメーター名が間違っています。Editor Tools のシナリオエディターで該当アクションと見比べてください。
|
||||
|
||||
## 並行する背景シナリオ
|
||||
|
||||
`channel: ambient` は `npc_barks_base` によりモーダル会話の外で実行されます。変数、待機、役割、デバッガーは実行ごとに独立します。シナリオエディターは検証と保存、F5 はバッファーの試行を行います。Studio → Background では定義と実行を選び、個別に一時停止、ステップ、ブレークポイント、時計を操作できます。
|
||||
|
||||
[npc_barks_base](../../npc_barks_base/docs/en.md)
|
||||
|
||||
## 共通の式
|
||||
|
||||
`expressions_base` が計算を提供します。`set money=rnd(3,5)` は両端を含む整数、`cset total "1+2+${money}"` は式の結果を保存します。`set name value` は文字列のままです。誤りがあれば後続のアクションの前に会話を停止します。構文と拡張は[式エンジンのガイド](../../expressions_base/docs/en.md)を参照してください。
|
||||
Reference in new issue
Block a user