Starcraft – Can custom maps in Starcraft 2 automatically enable certain unit upgrades

galaxy-editorstarcraft-2

If I create a custom map with the Starcraft 2 map editor, how can I specify that some unit upgrades are already researched?

For example, if I want all the units to already have the weapons upgrade 1 at the beginning of the game, can I specify this in the editor?

I've looked through the menus but didn't find anything that looked like it would relate to unit upgrades.

Best Answer

To enable upgrades or set other special properties for a map you have to use a trigger that is executed at the start of the game.

In the map editor, Modules -> Triggers (F6) opens the trigger editor:

Triggers window

The only default trigger is "Melee Initialization", which is executed at the start of the game. New actions can be added to this trigger by choosing New -> New Action (Ctrl-R) in the right pane's context menu. Searching for "upgrade" brings up the correct action to add:

Actions window

Double-clicking on Upgrade: (No Value) then shows a window that lets you choose which upgrade you want to enable for the player.

The action created this way will be executed at the start of the game and enable the selected upgrade.