User guide
How to use the editor: a first map, then each layer and dialog — terrain, units, triggers, settings, testing and saving — replays, plugins, and editing a map together.
This guide is for map makers. It starts with getting the editor running, walks through a first map, and then goes through each layer and dialog in turn. TrigScript, triggers written as code, has a guide of its own; the technical side (file formats, game data, writing plugins, building from source) is covered in separate documents, listed in the README. Several tasks here also have a terminal form, in the command line guide; Help ▸ Command Line… opens its install page.
Beta. This editor needs to be extensively tested. Keep backups of maps you care about, and check anything important in-game before you rely on it.
You do not need to read all of it. Pick the path that matches what you came to do:
- A first melee map. Getting started to get the editor running, then Your first map, which takes a blank map to a playable game in six steps.
- A first scripted scenario. Your first map for the ground and the bases, then Triggers to write the rules in the Trigger Editor, or TrigScript's Quick start to write them as code. Check them with Check Map and play them with Test Map.
- An existing project from SCMDraft 2. Coming from SCMDraft 2 says what carries over and what works differently.
- A map for a mod. Add the mod as a data set (Data sets made from a mod), and the palette, the settings and the triggers follow it. The mods guide covers the rest: the mod as a folder of text, playing it on the play page with a bot, and its replays.
- Getting startedThere are three ways to run scmJS, each covered in Installing.
- The editor windowThe window has nine parts, numbered in the picture below.
- Classic or Remastered graphicsThe editor can draw a map with the classic graphics or with StarCraft: Remastered's.
- Your first mapThis section walks through a small melee map from start to finish.
- Coming from SCMDraft 2Most of what you know from SCMDraft 2 applies here. This section covers what carries over, what is in a different place, and what to check before you move a map you care about.
- TerrainThe Terrain layer's palette has six tabs. Five are brushes, and the sixth protects what they have laid.
- Mod terrainA mod's tileset can hold ground and pictures the game never had.
- DoodadsDoodads are the trees, rocks, ruins, ramps and bridges of a map: pieces of terrain that come with their own tiles and, sometimes, a sprite drawn over them.
- UnitsThe Units layer places everything the game has a unit for: the three races' units and buildings, heroes, critters, resources, start locations, beacons and powerups.
- SpritesThere are two kinds of sprite. Pure sprites are a graphic drawn where it stands with no unit behind it: tree canopies, markers, glows.
- LocationsLocations are the rectangles that triggers refer to, as in "bring a unit to Beacon" or "create a unit at Spawn".
- Fog of warThe fog of war decides which tiles a player starts the game unable to see.
- Cut, copy and pasteTo copy part of a map, drag on it with the Cut / Copy / Paste layer active (C) to mark a rectangle, then Ctrl+C or Ctrl+X.
- TriggersTriggers turn a map into a scenario: when these conditions hold, for these players, do these actions.
- TrigScriptTrigScript writes triggers as code: TypeScript files kept inside the map.
- Scenario settingsThe Scenario menu holds the map's own tables. Nothing in a dialog changes the map until OK or Apply, and what an OK or Apply wrote is one undo step.
- Checking, testing and savingBefore a map is played, it can be checked for common mistakes, tried in the game, and saved in the form you want to release.
- ReplaysThe editor opens StarCraft replays (.rep files) and shows, on the map the game was played on, what the players did.
- PluginsPlugins add tools to the editor, and several of the tools in this guide are plugins.
- Your scmjs.dev accountscmjs.dev is the project's own service. An account there does two things for the editor.
- Editing a map togetherSeveral people can work on one map at the same time, each in their own editor.
- The AITools ▸ AI holds an assistant that reads and edits the open map with you, and tools that lay out maps, write triggers, names and briefings, review a map and rewrite its strings.
- Keyboard and preferencesPress F1 for a list of every shortcut. These are the ones the editor starts with; any of the commands can be given other keys on Preferences ▸ Hotkeys.
- When something goes wrongIf the editor does something strange, the debug console shows what happened, Copy Bug Report puts it on the clipboard, and Report an Issue sends it to the project.
- What it does not doThis section lists what the editor does not do, and the limits worth knowing before you rely on a feature.