Rpgmaker Eventsのロゴ

Rpgmaker Events

コミュニティ
nightquill
rpgmaker-events

Use this skill when reading, writing, or editing event command lists in an RPG Maker MV or MZ project. Triggers: editing event command lists, creating NPC behaviors, working with switches/variables/self-switches, scaffolding event patterns (chest, shop, inn, door, cutscene, wanderer), or when the user mentions events, triggers, map events, common events, switches, or variables in an RPG Maker context. Provides: full event command code table, six parameterized event pattern templates, switch/variable tracking scripts, and cross-project event reference search.

概要

公開者nightquill
リポジトリrpgmaker-agent-skills
スキル名rpgmaker-events
スター
30
フォーク
3
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    nightquillがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Rpgmaker Events」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-events
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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-events .claude/skills/rpgmaker-events
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRpgmaker Eventsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRpgmaker Eventsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Rpgmaker Eventsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

RPG Maker MV/MZ Events Skill

This skill covers reading, writing, and editing event command lists in RPG Maker MV and MZ projects. It teaches agents how events are structured in the project files, which command codes to use for common behaviors, and how to use switches, variables, and self-switches to gate event state.

All event patterns generated by this skill are drafts for developer review — never authoritative final content.


When to Use This Skill

Load this skill when:

  • Editing the list array inside a CommonEvent or Map event page
  • Creating NPC behaviors (wandering, dialog gating, shops, inns)
  • Setting or checking switch, variable, or self-switch state
  • Scaffolding a standard event pattern (chest, shop, inn, door, cutscene, wanderer)
  • Expanding or debugging a conditional branch (code 111) structure
  • The user mentions events, map events, common events, triggers, switches, or variables in an RPG Maker context

Critical Safety Rules

These rules prevent silent data corruption. Apply them before writing any event command JSON.

  1. Code-0 terminator is mandatory. Every event command list must end with {"code": 0, "indent": 0, "parameters": []}. RPG Maker stops processing at code 0. Its absence causes undefined behavior without error messages.

  2. Never renumber event IDs. Events in both CommonEvents.json and MapXXX.json have id fields that match their array index (MV) or object key (MZ). Changing either silently breaks every cross-file reference.

  3. Indent must match nesting. The indent field is purely positional — RPG Maker uses it to determine block membership. Getting it wrong corrupts the event's logical structure and may crash the game.

  4. Self-switch params are strings, not integers. Code 123 (Control Self Switch) takes "A", "B", "C", or "D" for params[0]. Using integers (0, 1, 2, 3) silently fails at runtime.

  5. Use 412 to close a conditional branch, not 413. Code 412 is End of Conditional Branch. Code 413 is Repeat Above (loop end — closes code 112). Using 413 to close a 111 corrupts event flow without error.

  6. Do not modify note field content. Note fields are opaque strings used by plugins. Parse or alter them and plugin behavior breaks silently.


Event Command Code Overview

Every event command has exactly three fields: code, indent, parameters.

RangeCategoryKey Codes
100sDialog, flow control, switch/variable control, inventory101, 111, 121, 122, 123, 125, 126
200sMap movement, screen effects, audio201, 205, 221, 222, 230, 241, 250
300sBattle, actor modification, shop301, 302, 311, 355, 356, 357
500sMove route sub-commands (inside code 205 route objects)1-4, 9, 10, 11
600sBattle branch markers, shop goods601, 602, 603, 604, 605

For the full code table with parameter details, see ../shared/references/event-command-codes.md.

The Most Commonly Needed Codes

CodeNameQuick Use
101Show Text (header)Opens dialog window, sets face portrait
401Show Text (line)One line of dialog
102Show ChoicesBranching player choice
111Conditional BranchIf/else on switch, variable, self-switch, etc.
121Control SwitchesSet a switch ON or OFF
122Control VariablesSet a variable to a value
123Control Self SwitchSet self-switch A/B/C/D on current event
126Change ItemsAdd or remove items from inventory
201Transfer PlayerMove player to a different map/position
205Set Movement RouteMake a character move
302Shop ProcessingOpen shop menu

Common Event Patterns

Six standard patterns cover most map event interactions. Each has required parameters; scaffold_event.py generates the full command list JSON.

PatternDescriptionCLI Example
chestOne-time item pickup; uses self-switch A to mark openedpython scripts/scaffold_event.py --project <path> --pattern chest --item-id 3
shopOpens the shop menu with configurable goodspython scripts/scaffold_event.py --project <path> --pattern shop --shop-items "0,3" --shop-items "1,5"
innChoice-gated rest for gold; heals HP/MPpython scripts/scaffold_event.py --project <path> --pattern inn --cost 50
doorConditional door: open if self-switch A, else locked; transfers playerpython scripts/scaffold_event.py --project <path> --pattern door --map-id 2 --x 5 --y 10
cutsceneSwitch-gated dialog sequence; clears switch when donepython scripts/scaffold_event.py --project <path> --pattern cutscene --switch-id 1
wandererNPC with random movement routepython scripts/scaffold_event.py --project <path> --pattern wanderer

Full JSON for each pattern with parameter tables and notes: references/event-patterns.md


Switches, Variables, and Self-Switches

TypeScopePersistenceMax CountStorage
SwitchGlobal (whole project)Saved to savefileLimited by System.json arraySystem.json["switches"]
VariableGlobal (whole project)Saved to savefileLimited by System.json arraySystem.json["variables"]
Self-SwitchPer-event (A/B/C/D only)Saved per event instanceAlways 4 per eventGame save data (not JSON)

Quick usage:

  • Set switch: code 121 — [startId, endId, 0=ON/1=OFF]
  • Check switch: code 111 with params[0]=0 — [0, switchId, 0=ON/1=OFF]
  • Set variable: code 122 — [startId, endId, operation, operandType, value]
  • Set self-switch: code 123 — ["A"|"B"|"C"|"D", 0=ON/1=OFF] (string params!)
  • Check self-switch: code 111 with params[0]=2 — [2, "A"|"B"|"C"|"D", 0=ON/1=OFF]

Full guide with page condition fields and script usage: references/switch-and-variable.md


MV vs MZ Differences

Most event code structure is identical between MV and MZ (~90% compatible). The key differences:

FeatureMVMZ
Plugin command code356 — single string "PluginName cmd arg1"357 — array ["Plugin", "Cmd", "", {args}]
Map events fieldArray (null at index 0)Object keyed by string ID
pluginCommands fieldNot presentAdded to event command structure

scaffold_event.py calls project_detect.detect_version() to automatically select code 356 (MV) or 357 (MZ) for plugin commands.


Helper Scripts

These scripts live in scripts/. Run from the repository root with PYTHONPATH=..

ScriptUsagePurpose
scaffold_event.py--project <path> --pattern <name> [pattern flags]Print a scaffolded event command list JSON to stdout
list_switches.py--project <path>List all switch references across the project as a markdown table
find_event_refs.py--project <path> --switch-id N | --var-id N | --self-switch A|B|C|DFind all references to a specific switch, variable, or self-switch

All scripts are read-only output — no file modifications, no dry-run flag needed.

Quick Usage

bash
# Scaffold a chest event (item ID 3, quantity 1)
PYTHONPATH=. python scripts/scaffold_event.py \
  --project fixtures/example-mv-project \
  --pattern chest --item-id 3

# List all switch references in the project
PYTHONPATH=. python scripts/list_switches.py \
  --project fixtures/example-mv-project

# Find all references to switch ID 1
PYTHONPATH=. python scripts/find_event_refs.py \
  --project fixtures/example-mv-project --switch-id 1

# Find all references to self-switch A
PYTHONPATH=. python scripts/find_event_refs.py \
  --project fixtures/example-mv-project --self-switch A

Navigation

DocumentContents
references/event-patterns.mdSix parameterized event pattern templates with full JSON and CLI examples
references/switch-and-variable.mdSwitch vs variable vs self-switch usage guide with command code cross-reference
references/map-event-structure.mdMap event page structure, conditions object, trigger types
../shared/references/event-command-codes.mdFull event command code table (100s–600s) with parameter details
../rpgmaker-core/SKILL.mdProject structure, safety rules, MV/MZ detection

All event patterns generated by this skill are drafts for developer review. The developer makes the final structural and gameplay decisions.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Rpgmaker Events」では何ができますか?

Use this skill when reading, writing, or editing event command lists in an RPG Maker MV or MZ project. Triggers: editing event command lists, creating NPC behaviors, working with switches/variables/self-switches, scaffolding event patterns (chest, shop, inn, door, cutscene, wanderer), or when the user mentions events, triggers, map events, common events, switches, or variables in an RPG Maker context. Provides: full event command code table, six parameterized event pattern templates, switch/variable tracking scripts, and cross-project event reference search.

TypingMindでRpgmaker Eventsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Rpgmaker Eventsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRpgmaker Eventsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-eventsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Rpgmaker Eventsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Rpgmaker Eventsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRpgmaker Eventsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Rpgmaker Events」は無料ですか?

はい。nightquillがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇