شعار Rpgmaker Dialog

Rpgmaker Dialog

المجتمع
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.

نظرة عامة

الناشرnightquill
المستودعrpgmaker-agent-skills
اسم المهارةrpgmaker-dialog
النجوم
30
التفريعات
3
الملفات المرفقة
4
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 4

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها nightquill على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Rpgmaker Dialog في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Rpgmaker Dialog في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Rpgmaker Dialog تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Rpgmaker Dialog بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Rpgmaker Dialog على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Rpgmaker Dialog عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Rpgmaker Dialog في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-dialog. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Rpgmaker Dialog؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Rpgmaker Dialog؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Rpgmaker Dialog معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Rpgmaker Dialog مجانية؟

نعم. نشرها nightquill على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇