Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Mercenary Trigger
Mercenary Trigger
Mar 17 2015, 11:28 pm
By: SCRuler  

Mar 17 2015, 11:28 pm SCRuler Post #1



What's the trigger in the "Mercenaries" map that switches a specific unit out for a hero when its built?



None.

Mar 17 2015, 11:49 pm Dem0n Post #2

ᕕ( ᐛ )ᕗ

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:

Replace Unit With Hero
Players

  • Player 1
  • Conditions

  • Current Player brings at least 1 Terran Marine to 'Anywhere'.
  • Actions

  • 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.





  • Mar 18 2015, 12:23 am SCRuler Post #3



    I see. Thanks, that should help.



    None.

    Mar 18 2015, 12:38 am l)ark_ssj9kevin Post #4

    Just here for the activity... well not really

    Here's how Blizzard did it (they didn't protect their maps :P)
    The Mercenaries
    Players

  • Force 1
  • Conditions

  • Command("Current Player", "Terran Wraith", At least, 1);

  • Actions

  • 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"


    Mar 18 2015, 3:17 am Azrael Post #5



    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.




    Mar 18 2015, 1:28 pm Sacrieur Post #6

    Still Napping

    Quote from Azrael
    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.

    Mar 18 2015, 1:29 pm SCRuler Post #7



    I look forward to using this in a campaign map.



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [09:38 pm]
    NudeRaider -- Ultraviolet
    Ultraviolet shouted: NudeRaider sing it brother
    trust me, you don't wanna hear that. I defer that to the pros.
    [07:56 pm]
    Ultraviolet -- NudeRaider
    NudeRaider shouted: "War nie wirklich weg" 🎵
    sing it brother
    [2024-4-27. : 6:24 pm]
    NudeRaider -- "War nie wirklich weg" 🎵
    [2024-4-27. : 3:33 pm]
    O)FaRTy1billion[MM] -- o sen is back
    [2024-4-27. : 1:53 am]
    Ultraviolet -- :lol:
    [2024-4-26. : 6:51 pm]
    Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
    [2024-4-26. : 6:50 pm]
    NudeRaider -- Vrael
    Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
    sounds like moisture control is often a pressing concern in your city
    [2024-4-26. : 6:50 pm]
    Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
    [2024-4-26. : 6:49 pm]
    Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
    [2024-4-26. : 6:48 pm]
    Vrael -- On this Topic, I could definitely use some Introductions.
    Please log in to shout.


    Members Online: Oh_Man