Logo di Rpgmaker Dialog

Rpgmaker Dialog

Community
nightquill
rpgmaker-dialog

Use this skill when writing, editing, or reviewing NPC dialog in an RPG Maker MV or MZ project. Triggers: editing CommonEvents.json or MapXXX.json dialog, writing character lines, reviewing text escape codes like \N[] or \V[], or when the user mentions dialog, NPC lines, conversation, text, cutscene dialog, or character voice in an RPG Maker context. Provides: dialog command code reference, text escape codes, voice consistency workflow, and helper scripts for extraction, injection, and validation.

Panoramica

Pubblicato danightquill
Repositoryrpgmaker-agent-skills
Nome della skillrpgmaker-dialog
Stelle
30
Fork
3
File inclusi
4
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: 4

    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 nightquill su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Rpgmaker Dialog 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/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog
  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/nightquill/rpgmaker-agent-skills.git /tmp/rpgmaker-agent-skills
mkdir -p .claude/skills
cp -r /tmp/rpgmaker-agent-skills/skills/rpgmaker-dialog .claude/skills/rpgmaker-dialog
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rpgmaker Dialog 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 Rpgmaker Dialog 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 Rpgmaker Dialog 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à.

RPG Maker Dialog Skill

This skill covers reading, writing, and editing NPC dialog in RPG Maker MV and MZ projects. It teaches agents where dialog lives in the project files, what the event command structure looks like, and how to maintain character voice consistency when drafting new lines.

All dialog suggestions generated by this skill are drafts for developer review — never authoritative final copy.


Where Dialog Lives

Dialog is stored as structured event commands in three locations:

1. data/CommonEvents.json

Reusable dialog sequences — inn conversations, quest hand-ins, shop greetings. This file is a JSON array where index 0 is always null. Each event object has an id, name, and list of event commands.

json
[
  null,
  {
    "id": 1,
    "name": "Innkeeper Dialog",
    "trigger": 0,
    "switchId": 0,
    "list": [
      { "code": 101, "indent": 0, "parameters": ["Actor1", 0, 0, 2] },
      { "code": 401, "indent": 0, "parameters": ["Welcome to the village inn!"] },
      { "code": 0,   "indent": 0, "parameters": [] }
    ]
  }
]

2. data/MapXXX.json event pages

NPC dialog attached to a specific map. Each map file has an events array (null at index 0). Each event has a pages array, and each page has a list of event commands.

json
{
  "events": [
    null,
    {
      "id": 1,
      "name": "Innkeeper",
      "pages": [
        {
          "list": [
            { "code": 101, "indent": 0, "parameters": ["Actor1", 0, 0, 2] },
            { "code": 401, "indent": 0, "parameters": ["Hello traveler!"] },
            { "code": 0,   "indent": 0, "parameters": [] }
          ]
        }
      ]
    }
  ]
}

3. data/System.json terms

UI text — menu labels, battle messages, status names. Not NPC dialog, but text fields agents may need to review or update. Modify with care; this file also holds the currency unit name (currencyUnit) and other engine settings.


Dialog Command Codes

Every dialog block follows this structure. For the full command code reference, see ../shared/references/event-command-codes.md.

Code 101 — Show Text (header)

Starts a dialog block. Sets the face portrait and window position.

json
{ "code": 101, "indent": 0, "parameters": ["Actor1", 0, 0, 2] }

Parameters: [faceName: string, faceIndex: int, backgroundType: int, positionType: int]

ParameterValues
faceNameFilename of the face sprite sheet (e.g., "Actor1")
faceIndex0–7: which portrait in the 4×2 sprite sheet
backgroundType0 = window, 1 = dim, 2 = transparent
positionType0 = top, 1 = middle, 2 = bottom

Code 401 — Show Text (line)

One line of dialog text. Must follow a code 101. Multiple 401s form a multi-line message (RPG Maker shows up to 4 lines per text window).

json
{ "code": 401, "indent": 0, "parameters": ["Please, \\N[1], you must help us!"] }

Parameters: [text: string] — one entry per visible line.

Code 102 — Show Choices

Presents the player with a choice menu.

json
{ "code": 102, "indent": 0, "parameters": [["Yes", "No"], 1, 0, 2, 0] }

Parameters: [choices: string[], cancelType: int, defaultType: int, positionType: int, background: int]

cancelType: -1 = disallow cancel, 0–N = cancel maps to that choice index.

Code 402 — When [Choice]

Branch block for one specific choice. Indent increases by 1.

json
{ "code": 402, "indent": 1, "parameters": [0, "Yes"] }

Code 403 — When Cancel

Branch executed when the player presses cancel (if cancelType ≠ -1).

json
{ "code": 403, "indent": 1, "parameters": [] }

Code 404 — End Choice

Closes the choice block. Indent returns to the level of the 102.

json
{ "code": 404, "indent": 1, "parameters": [] }

Code 0 — List Terminator

Every event command list must end with this entry. Insert new dialog blocks before the code-0 terminator, never after it.

json
{ "code": 0, "indent": 0, "parameters": [] }

Complete Example

json
[
  { "code": 101, "indent": 0, "parameters": ["Actor1", 0, 0, 2] },
  { "code": 401, "indent": 0, "parameters": ["Would you like to rest? It's 50 gold."] },
  { "code": 102, "indent": 0, "parameters": [["Yes", "No"], 1, 0, 2, 0] },
  { "code": 402, "indent": 1, "parameters": [0, "Yes"] },
  { "code": 101, "indent": 2, "parameters": ["Actor1", 0, 0, 2] },
  { "code": 401, "indent": 2, "parameters": ["Sweet dreams!"] },
  { "code": 402, "indent": 1, "parameters": [1, "No"] },
  { "code": 101, "indent": 2, "parameters": ["Actor1", 0, 0, 2] },
  { "code": 401, "indent": 2, "parameters": ["Come back anytime."] },
  { "code": 404, "indent": 1, "parameters": [] },
  { "code": 0,   "indent": 0, "parameters": [] }
]

Text Escape Codes

RPG Maker text supports inline escape codes for dynamic content. The most critical codes to know:

CodeEffectExample
\N[n]Actor name by ID\N[1] → "Hero"
\V[n]Variable value\V[1] → current value of variable 1
\C[n]Text color\C[1] = blue, \C[0] = default white
\I[n]Inline icon\I[64] → icon 64 from IconSet.png

Full table: ../shared/references/text-codes.md

NEVER strip or modify text codes during extraction or editing. Preserve them verbatim. \N[1] in the source must appear as \N[1] in extracted output and any re-injected content.

In JSON files, backslashes are escaped: the source text \N[1] is stored as \\N[1] in the JSON string. When reading with json.load(), Python gives you the raw \N[1] string.


Voice Consistency Workflow

Before drafting new dialog for any character, always extract and review their existing lines first. This is the single most important rule for maintaining believable character voice.

Quick summary:

  1. Extract existing lines with extract_npc_lines.py
  2. Analyze tone, vocabulary, sentence length, verbal tics
  3. Draft new lines matching the identified voice patterns
  4. Validate that all \N[id] and \I[id] references point to real entries

Full step-by-step guide: references/character-voice.md


Never Fabricate References

Before using \N[id] or \I[id] in any dialog line:

  • Check data/Actors.json to confirm the actor ID exists
  • Check data/Items.json to confirm the item ID exists
  • Never invent IDs. A non-existent \N[99] displays a blank string in-game and corrupts voice/immersion silently.

\V[n] (variable) and \C[n] (color) do not require database cross-checks — variables are runtime values, colors are engine constants (0–31).

Run validate_dialog_refs.py before finalizing any dialog changes.


Helper Scripts

These scripts live in skills/rpgmaker-dialog/scripts/. Run them from the repository root with PYTHONPATH=. python skills/rpgmaker-dialog/scripts/<script>.py.

ScriptPurpose
extract_npc_lines.pyExtract all dialog lines attributed to a named NPC across the whole project
inject_dialog.pyInject a new dialog block into a CommonEvent or Map event
validate_dialog_refs.pyValidate that all \N[id] and \I[id] text code references exist in the database

All write operations default to dry-run mode. Pass --apply to write changes. A .bak backup is created automatically before any modification.

Quick usage

bash
# Extract all dialog lines for the Hero NPC
PYTHONPATH=. python skills/rpgmaker-dialog/scripts/extract_npc_lines.py \
  --project fixtures/example-mv-project --npc Hero

# Inject new dialog into CommonEvent 1 (dry run)
PYTHONPATH=. python skills/rpgmaker-dialog/scripts/inject_dialog.py \
  --project fixtures/example-mv-project \
  --target common-event:1 \
  --lines "Good morning, traveler." "The weather's fine today."

# Validate all dialog references in the project
PYTHONPATH=. python skills/rpgmaker-dialog/scripts/validate_dialog_refs.py \
  --project fixtures/example-mv-project

Navigation

DocumentContents
references/character-voice.mdStep-by-step voice consistency workflow with examples
../shared/references/text-codes.mdFull text escape code reference table
../shared/references/event-command-codes.mdDialog event command code reference (101, 401, 102, 402, 403, 404)
../rpgmaker-core/SKILL.mdProject structure, safety rules, MV/MZ detection

All dialog suggestions generated by this skill are drafts for developer review. The developer makes the final creative and structural decisions.

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 Rpgmaker Dialog?

Use this skill when writing, editing, or reviewing NPC dialog in an RPG Maker MV or MZ project. Triggers: editing CommonEvents.json or MapXXX.json dialog, writing character lines, reviewing text escape codes like \N[] or \V[], or when the user mentions dialog, NPC lines, conversation, text, cutscene dialog, or character voice in an RPG Maker context. Provides: dialog command code reference, text escape codes, voice consistency workflow, and helper scripts for extraction, injection, and validation.

Perché usare Rpgmaker Dialog su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rpgmaker Dialog è 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 Rpgmaker Dialog in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog. 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 Rpgmaker Dialog?

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 Rpgmaker Dialog?

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

La skill IA Rpgmaker Dialog è gratuita?

Sì. È pubblicata su GitHub da nightquill 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 👇