WurstScript is a patch-aware programming language and modding toolkit for Warcraft 3 maps. This guide covers setup with VS Code and the Grill command-line tool.
Install the VS Code Wurst language support extension.
The extension now installs and updates the compiler and CLI for you. grill is added to PATH automatically by the extension setup.
After installing the extension, use one of these paths:
Important: Open the Wurst project folder itself as the VS Code workspace root. Wurst projects do not work reliably when opened as a subfolder of a larger workspace. After
grill generate my-wurst-project, either runcode ./my-wurst-projectas shown bygrill, or use VS Code’sFile -> Open Folder...command and select the folder thatgrill generatecreated.
grill install
F1 -> Developer: Reload Window.F1.Wurst: New Wurst Project.This command opens a terminal and runs grill generate, the same project wizard you can use directly from the command line.
For this flow, you usually do not need to run grill install manually right away.
Wurst supports multiple Warcraft III generations from one toolchain. The project wizard asks which patch to target and downloads the matching core Jass definitions and standard library branch. When installing dependencies in an existing project with grill install, Grill also asks for a patch if none is recorded in wurst.build yet.
This is useful for both ends of Warcraft III’s history:
The VS Code extension detects the installed client when it can, and the asset and map tooling follows the same game-data selection. You can use the current editor tools with an older MPQ installation too.
After updating Warcraft III, compare the installed client with your project’s target. Run these commands from the project folder:
grill patch
If you want to move the project to the detected client’s patch, run:
grill patch align
This updates wc3Patch in wurst.build, the official standard library branch, and managed core Jass definitions. Grill backs up changed configuration to wurst.build.bak and preserves the project’s Jass or Lua output choice. If you use a custom standard library fork, update that dependency yourself.
To select another Warcraft III installation, pass --wc3-path "/path/to/Warcraft III" to either command. Running grill install on its own keeps an existing patch target.
Use the play button in VS Code to run your project quickly.
.wurst file and click the play button..w3x or .w3m map and use the same run action.From a terminal in the project folder, grill run builds the map and launches it in Warcraft III. It detects the map automatically when the project root contains exactly one .w3x or .w3m map archive or folder. Otherwise, specify the map:
grill run MyMap.w3x
Grill uses the Warcraft III path selected during project setup, or detects an installation. You can override it with --wc3-path "/path/to/Warcraft III".
>wurst: Install>wurst: New Wurst ProjectOpen the command palette with F1 and search for wurst.
Once the toolchain is installed and grill is on PATH, you can create, build, and run projects from a terminal.
Create a new project and enter its folder:
grill generate my-wurst-project
cd my-wurst-project
The wizard is the same one launched by Wurst: New Wurst Project in VS Code. It configures the patch target and output mode, installs the matching standard library, and sets up the starter map.
Build and launch the starter map:
grill run
Use grill build to build without launching Warcraft III, grill typecheck to check your code, or grill test to run unit tests.
Add a dependency:
grill install https://github.com/Frotty/wurst-astar-jps
If you are new to WurstScript, continue with the beginner walkthrough: