Help this asset pack reach its goal

Raised
$0.00
Goal
$1,599.99
0%
of goal

A downloadable asset pack

Get this asset pack and 9 more for $29.99 USD
View bundle
Buy Now$14.99 USD or more

Advanced Base Building & RTS Unit System

ED5_BaseBuilder brings a full base-building, settlement management, and RTS-style unit system to RPG Maker MZ & MV. Place structures on a grid, spawn and command NPC units (builders, gatherers, fighters), manage resources and production chains, and defend your territory — all through an intuitive mouse-and-keyboard build mode with a sleek HTML overlay UI. Inspired by RimWorld and classic RTS gameplay.

๐Ÿ“ฆ Version: 1.0  |  ๐ŸŽฎ RPG Maker MZ & MV  |  ๐Ÿ‘ค Author: ED5 (ChigooX)

โ–  Grid Building

๐Ÿงฑ Grid-Based Placement with Ghost Preview
A semi-transparent ghost follows your cursor, tinting green (valid) or red (blocked). Supports structures from 1x1 up to 5x5 tiles. Rotate with A/D, R, or middle-click — the floating info label above the cursor updates in real time with name, cost, and rotation.
โณ Build Timers & Progress Bars
Structures take real in-game time to build, with progress bars drawn on the grid overlay. Queue multiple constructions and assign workers to speed them up with configurable efficiency bonuses.
๐Ÿ’ฐ Resource Costs & Refunds
Define costs with a simple struct picker — Gold and/or any database Item with an amount. No hand-typing JSON. Demolishing returns a configurable refund percentage.
โฌ†๏ธ Upgrades & Prerequisites
Multi-tier upgrades with configurable cost multipliers. Lock advanced structures behind prerequisite buildings. Limit how many of each structure can exist.
๐ŸŽญ Visual Priority & Passability
Set each structure to render Below, Same as, or Above the player. Structures at Same/Above priority automatically block movement — no manual passability tweaking needed.
๐Ÿ“Œ Template Event Spawning
Designate a template map and assign an event ID to each structure. When placed, the plugin clones that event onto the game map. Events are despawned on demolish and re-spawned when loading a save.

โš™ Production & Benefits

๐Ÿ“ฆ Production Chains
Per-structure production timers with configurable cycle length and max storage. Choose Collect mode (click to gather) or Drop mode — items spawn on the ground for pickup, with optional ED5_RandomLoot integration.
๐Ÿ‘ท Worker Assignment
Assign actors as workers to boost production speed by a configurable efficiency percentage.
๐Ÿช Structure Benefits
Each structure can provide a benefit: Heal (regenerate HP when nearby), Shop (apply shop price discounts — stacks with ED5_RandomShopItems), Buff (apply a state to party members), or None.
๐Ÿฐ Territory, Defense & Happiness
Buildings contribute to your settlement's territory radius, defense rating, and citizen happiness — all tracked and displayed in the bottom HUD bar (toggleable via plugin parameter).
๐Ÿ“ 3 Build Restriction Modes
None (free placement), Territory (expand outward from your first building), or Region (only on painted map regions). Territory and region tiles are highlighted with configurable overlay colors.
๐Ÿ–ฑ Context Menus & Tooltips
Right-click any structure for a context menu with Info, Upgrade, Collect Production, Hire Unit, and Demolish. Hover over sidebar icons for detailed tooltips showing cost, category, size, and benefits.

โš” RTS Unit System

๐Ÿค– Smart AI Roles
Builder — patrols and auto-assists incomplete structures.
Gatherer — walks to resources, harvests items, returns them to storage.
Fighter — detects <ED5Enemy>-tagged events and attacks until defeated.
General — auto-selects the best role based on current settlement needs.
๐ŸŽฏ Behavior Modes
Patrol — wanders a set radius around spawn point.
Hold — stays in place, attacks only if enemies enter range.
Chase — aggressively pursues enemies across the map.
Wander — free-roams the entire map.
โค Unit Health & Combat
Units have HP bars drawn on the map overlay (green, yellow, red). Fighters attack enemies, reducing their HP until they are erased. Units can take damage and be destroyed.
๐Ÿญ Hire, Manage & Fight
Right-click a structure to Hire any unit type it supports. Right-click a unit for its context menu: Info, Set Role, Set Behavior, Dismiss. All units persist across saves and auto-respawn when you revisit the map.

๐ŸŽฎ Controls

Input Action
B Toggle build mode
T Switch sidebar: Structures / Units
Left Click Move player
Right Click Place or context menu on existing
Scroll Cycle structures / units
A / D / Middle Click Rotate
Shift + Arrows Walk in build mode
Esc Exit build mode

๐Ÿ”Œ Plugin Commands

MZ plugin commands + MV ED5Base commands + ED5.Base.* script calls.

Structure Commands

Command What it does
Enter / Exit Build Mode Toggle the build UI
Place / Remove / Demolish Place at x,y or Remove/Demolish (with refund)
Upgrade Upgrade structure at x,y
Unlock / Lock Enable or disable a structure type
Assign Worker / Collect Assign actor or gather items at x,y
Get Stats to Variable Count, Defense, Happiness, Territory

Unit Commands

Command What it does
Spawn / Remove Unit Spawn at x,y / Remove at x,y
Set Role General / Builder / Gatherer / Fighter
Set Behavior Patrol / Hold / Chase / Wander
Unlock / Lock Unit Enable or disable a unit type

๐Ÿ”Œ MV Plugin Commands

ED5Base Enter | Exit | Menu
ED5Base Place name x y | Remove x y | Demolish x y
ED5Base Upgrade x y | Unlock name | Lock name
ED5Base Count name varId | Defense varId | Happiness varId
ED5Base SetMap id | AssignWorker actorId x y | Collect x y
ED5Base SpawnUnit name x y | RemoveUnit x y
ED5Base UnitRole x y role | UnitBehavior x y behavior
ED5Base UnlockUnit name | LockUnit name

โš™ Key Parameters

Parameter Description
Structure Catalog Name, icon, size, costs, build time, max level, category, prereqs, priority, benefit, production, template event
Unit Catalog Name, icon, sprite, role, costs, HP, ATK, speed, range, sight, behavior, spawn-from structure
Build Zone Map IDs Comma-separated map IDs where building is allowed
Build Restriction None / Territory / Region
Template Map ID Map with template events to clone on placement
Show Bottom Bar Toggle the stats and controls HUD
Overlay Colors Grid, valid/invalid, territory, region highlight colors
Refund / Tick / Worker Bonus Fine-tune economy and production

๐Ÿ“ Script Calls

Structures

ED5.Base.enterBuildMode() / exitBuildMode() ED5.Base.place(name, x, y) / remove(x, y) / demolish(x, y) / upgrade(x, y) ED5.Base.getStructureAt(x, y) / getCount(name) / getAllStructures() ED5.Base.unlock(name) / lock(name) / isUnlocked(name) ED5.Base.getDefenseValue() / getHappiness() / getTerritorySize() ED5.Base.assignWorker(actorId, x, y) / collectProduction(x, y) ED5.Base.getShopDiscount() / setShopDiscount(percent)

Units

ED5.Base.spawnUnit(name, x, y) / removeUnit(x, y) ED5.Base.getUnitAt(x, y) / getMapUnits() ED5.Base.setUnitRole(x, y, role) / setUnitBehavior(x, y, behavior) ED5.Base.unlockUnit(name) / lockUnit(name) ED5.Base.damageUnit(x, y, amount)

๐Ÿ”Œ Works Great With Other ED5 Plugins

Standalone by default. Combine for deeper gameplay:

Plugin What it adds
ED5_RandomLoot Floor-drop mode spawns randomized loot tables
ED5_RandomShopItems Shop discounts stack with dynamic pricing
ED5_AdvancedChest Gatherers deposit into chests near storage
ED5_HarvestSystem Farm crops feed into production chains
ED5_NPCSchedules Workers follow daily schedules
ED5_CarryWeight Gathering limited by encumbrance
ED5_ReputationFactions Faction structures shift standing
ED5_MMO Multiplayer settlement sync

๐Ÿš€ Quick Start

Step 1: Drop ED5_BaseBuilder.js into js/plugins/ and enable in Plugin Manager.
Step 2: Set Build Zone Map IDs and add structures to the Structure Catalog (name, icon, costs, size, category).
Step 3: Press B on a build-zone map to start building. Scroll to pick, right-click to place.
Step 4: (Optional) Add units to the Unit Catalog and press T to switch to the Units tab.
Step 5: (Optional) Set up a Template Map for event spawning.

๐Ÿ“œ Terms of Use

  • Commercial and non-commercial RPG Maker MZ and MV projects
  • Credit ED5 (ChigooX) in your game credits
  • Do not redistribute, resell, or claim as your own

๐Ÿ— ED5_BaseBuilder — Build settlements. Command units. Defend your territory.

itch.io  |  Discord  |  Patreon

2025 ED5 (ChigooX). All rights reserved.

Updated 8 hours ago
Published 2 days ago
StatusIn development
CategoryAssets
AuthorChigooX
Tags2D, plugin, RPG Maker MV, RPG Maker MZ

Purchase

Get this asset pack and 9 more for $29.99 USD
View bundle
Buy Now$14.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $14.99 USD. You will get access to the following files:

ED5_BaseBuilder.js 168 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.