Logotipo de Godot Narrative

Godot Narrative

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

Descripción general

EditorEL4CTEO
Repositoriogodot-skills
Nombre de la habilidadgodot-narrative
Estrellas
60
Forks
6
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 1

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por EL4CTEO en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Godot Narrative en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Godot Narrative en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Godot Narrative automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Godot Narrative no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Godot Narrative en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Godot Narrative está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Godot Narrative en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Godot Narrative?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Godot Narrative?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Godot Narrative con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Godot Narrative?

Sí. EL4CTEO la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇