Rpgmaker Events logo

Rpgmaker Events

Community
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.

Overview

Publishernightquill
Repositoryrpgmaker-agent-skills
Skill namerpgmaker-events
Stars
30
Forks
3
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by nightquill on GitHub. Read the source before you install it.

Installation

Install the Rpgmaker Events AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-events
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rpgmaker Events in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rpgmaker Events on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rpgmaker Events is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rpgmaker Events AI skill do?

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.

Why use Rpgmaker Events on TypingMind?

Because you install it once and use it with any model. Rpgmaker Events is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rpgmaker Events in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-events. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rpgmaker Events?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rpgmaker Events?

As many as you like. As long as a model supports skills, you can use Rpgmaker Events with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rpgmaker Events AI skill free?

Yes. It is published on GitHub by nightquill under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇