Logo di Godot Narrative

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.

Panoramica

Pubblicato daEL4CTEO
Repositorygodot-skills
Nome della skillgodot-narrative
Stelle
60
Fork
6
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da EL4CTEO su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Godot Narrative in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Godot Narrative in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Godot Narrative non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Godot Narrative non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello 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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill 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.

Perché usare Godot Narrative su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Godot Narrative è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Godot Narrative in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-narrative. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Godot Narrative?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Godot Narrative?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Godot Narrative: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Godot Narrative è gratuita?

Sì. È pubblicata su GitHub da EL4CTEO con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇