Logo: Rpgmaker Dialog

Rpgmaker Dialog

Communautéit
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.

Iwwersiicht

Editeurnightquill
Repositoryrpgmaker-agent-skills
Skill-Nummrpgmaker-dialog
Stären
30
Forks
3
Matgeliwwert Dateien
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nightquill huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rpgmaker Dialog an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rpgmaker Dialog an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rpgmaker Dialog automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rpgmaker Dialog net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Rpgmaker Dialog op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rpgmaker Dialog besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rpgmaker Dialog an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rpgmaker Dialog benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rpgmaker Dialog benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rpgmaker Dialog domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rpgmaker Dialog gratis?

Jo. nightquill huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇