Godot Narrative logo

Godot Narrative

Community
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.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-narrative
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Narrative AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Narrative in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Narrative on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Narrative is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Narrative AI skill do?

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.

Why use Godot Narrative on TypingMind?

Because you install it once and use it with any model. Godot Narrative is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Narrative in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Narrative?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Narrative?

As many as you like. As long as a model supports skills, you can use Godot Narrative with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Narrative AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇