What's the trigger in the "Mercenaries" map that switches a specific unit out for a hero when its built?
None.
I have no idea what Mercenaries is, but if it functions anything like Diplomacy, all you do is create the hero in some area, center a location onto the built unit, and then remove that unit and move the hero there. You want to create the hero and then move it so that you don't get the "Unit Implaceable" message. So basically, the trigger looks like this:
Player 1
Current Player brings at least 1 Terran Marine to 'Anywhere'.
Create 1 Jim Raynor (Marine) at 'Location 0' for Current Player.
Center location labeled 'Location 1' on Terran Marine owned by Current Player at 'Anywhere'.
Remove 1 Terran Marine for Current Player at 'Location 1'.
Move Jim Raynor (Marine) for Current Player at 'Location 0' to 'Location 1'.
Preserve trigger.
I see. Thanks, that should help.
None.
Just here for the activity... well not really
Here's how Blizzard did it (they didn't protect their maps
)
Force 1
Command("Current Player", "Terran Wraith", At least, 1);
Move Location("Current Player", "Terran Wraith", "Anywhere", "Floating Replace Unit");
Remove Unit At Location("Current Player", "Terran Wraith", 1, "Floating Replace Unit");
Create Unit with Properties("Current Player", "Tom Kazansky (Wraith)", 1, "Floating Replace Unit", 9);
Preserve Trigger();
Comment("Replace Wraith with Hero Wraith\r\n(Custom score = 2)");
which doesn't require an extra "spawning zone" but could get an implaceable error if you, say, replace units with units of larger size.
guy lifting weight (animated smiley):
O-IC
OI-C
"Oh, I see it"
You definitely want the extra spawning zone. There are numerous ways you can cause an unplaceable unit error, even when replacing a unit with a smaller unit.
You definitely want the extra spawning zone. There are numerous ways you can cause an unplaceable unit error, even when replacing a unit with a smaller unit.
Indeed; it's best practice to always create units this way. This way it's always ensured that your unit can be placed and will be created.
None.
I look forward to using this in a campaign map.
None.