Godot Narrativeのロゴ

Godot Narrative

コミュニティ
EL4CTEO
godot-narrative

Dialogue, quests and story state in Godot 4.7 - choosing Dialogue Manager, Dialogic, Yarn Spinner or Ink versus custom Resource dialogue, typewriter RichTextLabel boxes, choices with gamepad focus, portraits and voice blips, conditions and flags, quest logs, barks, cutscenes with Tween.tween_await, localized and accessible dialogue. Use for NPC conversations, branching stories or visual novels.

概要

公開者EL4CTEO
リポジトリgodot-skills
スキル名godot-narrative
スター
60
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EL4CTEOがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Godot Narrative」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-narrative .claude/skills/godot-narrative
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGodot Narrativeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGodot Narrativeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Godot Narrativeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Narrative: Dialogue, Quests, Story State (4.7)

Pick the dialogue format

OptionWhenNotes
Dialogue Manager (Nathan Hoad)most games; writers like a screenplay-style text file.dialogue files, branching, conditions, mutations that call your code, example balloons, CSV/PO translation export. v4 needs Godot 4.6+, v3 for older 4.x. GDScript and C#
Yarn Spinner for Godotteams that already use Yarn, or that ship on several enginesthe C# version is the stable one. The pure GDScript port (4.6+) was still beta/alpha in 2026, so don't ship on it without testing
Ink (GodotInk, C#)heavy branching prose, writers using Inkyneeds the .NET build
Dialogic 2visual-novel style with an editor of characters, portraits and timelinesstill alpha (4.5+), and the API changes between alphas. Pin the version
Custom Resources (reference)small games, full control, no addon riskDialogueLineData Resources edited in the inspector, or JSON/CSV exported from a spreadsheet
Before installing, check that the addon release targets your Godot version (godot-addons). Look up an addon's API in its own docs, not from memory: the names change between majors.

Architecture (any format)

GameState (autoload)    flags/variables Dictionary, saved with the game
DialogueRunner          walks the dialogue data, evaluates conditions, emits line/choices/ended
DialogueBox (CanvasLayer UI)  shows a line, typewriter, choices; knows nothing about story logic
QuestLog (autoload)     quests as Resources, progress via signals
  • The runner emits line_shown(speaker, text), choices_shown(options), dialogue_ended. The box calls runner.advance() / runner.choose(index). This split lets you reuse the box for barks, tutorials and cutscenes.
  • Conversations pause gameplay through a state flag or get_tree().paused. Set the dialogue UI to PROCESS_MODE_ALWAYS (godot-architecture).
  • Keep story state in one place (GameState) and save it with the save system. Use flags like met_blacksmith, counters like gold, and enums for quest stages.

Conditions and effects in data

  • In custom formats, conditions are strings ("gold >= 10 and not met_king"). Evaluate them with Expression.parse(text, var_names) then execute(values, GameState, true, true). const_calls_only = true blocks calls with side effects. Parse once and cache.
  • Never evaluate expressions from untrusted sources (mods, downloads) without const_calls_only.
  • Effects (set gold -= 10, give_item("key")) are better as a small list of commands that your runner understands than as free code.

Dialogue box essentials

  • RichTextLabel with bbcode_enabled, fit_content, visible_characters_behavior = TextServer.VC_CHARS_AFTER_SHAPING (no jumping when words wrap). Typewriter: tween visible_ratio 0 → 1, or step visible_characters on a timer for per-character sounds and punctuation pauses.
  • First press: finish the line (visible_ratio = 1). Second press: advance. Accept ui_accept and mouse/touch. Ignore input for ~0.1 s after a line appears so a held button doesn't skip text.
  • Choices: build Buttons in a VBoxContainer, call grab_focus() on the first one (gamepad), and add number keys for PC. Disable instead of hiding locked options when the player should see what they missed.
  • Voice blips: an AudioStreamRandomizer with random_pitch ~1.1, played every 2–3 characters, with a different pitch per speaker.
  • Portraits: a TextureRect per side, swapped by speaker and emotion keys ("ana_happy"), from a Dictionary[StringName, Texture2D] Resource.
  • Name plate and color per speaker; text speed, auto-advance and font size in the settings.

Localization

  • Every line needs a stable key, not the English text as the key, so rewriting English doesn't break translations. Addons generate the keys and export CSV/PO.
  • Custom data: store keys and call tr(key). Plurals: tr_n(singular, plural, n). Context: tr(key, &"menu"). Insert names with format() after translating.
  • Test with pseudolocalization (TranslationServer.pseudolocalization_enabled) for 30–40 % longer text, and size boxes with fit_content (godot-ui).

Quests

  • QuestData Resource: id, title, description, objectives: Array[ObjectiveData] (id, text, required), rewards. Runtime progress lives in QuestLog (Dictionary id → progress), not in the Resource, which is shared.
  • Gameplay emits generic events (enemy_killed(kind), item_collected(id), talked_to(npc)) on an event bus. The quest log listens and updates objectives, so gameplay code never knows about quests.
  • Signals quest_started, objective_updated, quest_completed drive the HUD tracker and the journal UI.

Barks and cutscenes

  • Barks (short lines in the world): a Label3D/Label over the NPC, a pool of lines with a cooldown, never blocking input.
  • Cutscenes: an AnimationPlayer with camera and character tracks plus method call tracks that start dialogue. Pause the animation until the dialogue ends: await runner.dialogue_ended in code, or in a Tween use tween_await(runner.dialogue_ended) (4.7) between steps.
  • Skippable: AnimationPlayer.advance() to the end or seek(length, true), then apply the final state (flags) the same way as when it plays out.

Accessibility

Text speed options and instant text, auto-advance, high-contrast box, no information only in color, and screen-reader support: set accessibility_live on the line label (4.5+, AccessKit, experimental; godot-ui).

Dialogue Resources, runner with conditions, typewriter box, choices, GameState, quest log and cutscene await (compiled by the tests): references/patterns.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Godot Narrative」では何ができますか?

Dialogue, quests and story state in Godot 4.7 - choosing Dialogue Manager, Dialogic, Yarn Spinner or Ink versus custom Resource dialogue, typewriter RichTextLabel boxes, choices with gamepad focus, portraits and voice blips, conditions and flags, quest logs, barks, cutscenes with Tween.tween_await, localized and accessible dialogue. Use for NPC conversations, branching stories or visual novels.

TypingMindでGodot Narrativeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Godot Narrativeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGodot Narrativeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrativeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Godot Narrativeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Godot Narrativeで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGodot Narrativeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Godot Narrative」は無料ですか?

はい。EL4CTEOがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇