Make RPG Maker maps and events from a prompt

Updated 2026-11-28 · RPGM MCP Pro 1.1.0

RPG Maker maps are arrays of tile IDs in six layers, and events are lists of numbered commands. RPGM MCP Pro hides both behind tools that take names and coordinates, and it gives the model two ways to look at the result. This guide walks through a town with an inn, the inn's interior, and the NPCs and doors that connect them.

The workflow

  1. Load and back up: project_load, project_backup.
  2. Rough out the map with a template: template_town, template_building, template_interior, template_dungeon.
  3. Add detail with tile names: tile_lookup, map_paint, map_paint_border, tile_get_objects.
  4. Fix autotile shapes and look: map_refresh_autotiles, map_get_layout, map_render.
  5. Add events: template_npc, template_door, template_treasure_chest, event_add_text and friends.
  6. Check the logic: event_flow, map_connections.

1. Load, back up, plan

Load D:/games/MyRPG, make a project_backup, then list the maps and tilesets.
I want a new town map "Riverside" (40x30, Outside tileset) with an inn
and two houses, plus a matching inn interior.

The AI uses map_list and db_list type=tilesets to find the tileset IDs (the default Outside tileset is usually ID 2, Inside 3), then map_create for each new map.

2. Rough out the map with templates

template_town fills the ground and places several buildings at once, each with roof, walls, windows, an optional chimney, a shop sign and a door event that transfers to another map. template_building places one. Roofs are matched to the wall tile automatically.

On Riverside, use template_town: cobblestone ground, the inn at (8,6)
6 wide with an inn sign and a door to the inn interior, two houses at
(20,6) and (28,12). Then show me map_get_layout.

For indoor maps, template_interior lays out the void border, ceiling, wall, floor and exit door. For caves, template_dungeon fills the map with wall and carves rooms and L-shaped corridors you list as coordinates.

3. Paint tiles by name

Tile IDs differ between tilesets, and MV and MZ lay out their B–E sheets differently, so ask for tiles by name. tile_lookup finds a tile by English or Japanese name; map_paint fills a rectangle and picks the layer; map_paint_border draws a walled room. For furniture and other multi-tile objects, tile_get_objects returns the correct tile layout to place.

Paint a 3-wide dirt road from the town entrance at the bottom to the inn
door, add a pond with grass edges east of the houses, and put two barrels
and a crate next to the inn.

Custom tilesets have no name list at first. Ask for tile_generate_names to make a template, then name the tiles you use with tile_set_name; from then on painting by name works on that tileset too.

4. Refresh autotiles and check

After a batch of edits, map_refresh_autotiles recalculates the edge and corner shapes of ground and wall autotiles (layer 0; layer 1 for overlays such as forest). Then the AI checks its work two ways:

Refresh autotiles on Riverside, render it with showEvents, and fix anything
that looks wrong (gaps in walls, doors not on a wall, blocked road).

5. Add events

Templates cover the common cases in one call:

ToolCreates
template_npcTalking NPC with sprite, facing and dialogue lines
template_treasure_chestChest with item, weapon, armor or gold, open graphic and self switch
template_door / template_switch_doorTransfer door; a door that opens when a switch is ON
template_shop / template_innShopkeeper with goods; innkeeper with price, gold check and full heal
template_save_point / template_cutsceneSave point with a choice; a scripted cutscene sequence

For anything else, the AI builds events command by command: event_create, then event_add_text (face, speaker name on MZ), event_add_choices, event_add_conditional_branch, event_add_switch, event_add_variable, event_add_transfer, event_add_battle, event_add_plugin_command, and page settings with event_set_page_conditions, event_set_page_trigger and event_set_page_image.

In the inn interior, add an innkeeper (template_inn, 20 gold), a girl who
says something different after switch 5 "Bridge repaired" is ON, and a
chest with 2 Potions behind the counter. Then show event_flow for the map.

event_flow prints every event's trigger, conditions and key actions as a tree, which is the quickest way to confirm that the logic is what you asked for. If the project uses MZ plugin commands, have the AI read them first with plugin_commands so the arguments match your plugin version.

6. Wire maps together

map_connections lists every transfer between maps with coordinates. Ask the AI to confirm that each door has a way back and that it lands on a walkable tile:

Show map_connections for Riverside and the inn, check that each door
has a return door, and run qa_reachability on both maps.

More checks in playtesting and debugging with AI. If a step went wrong, journal_list and journal_undo roll it back.

Prompts that work

Limits

Get RPGM MCP Pro
$5 once on itch.io, free updates.

itch.io · $5

More guides