Moving Location
May 8 2019, 3:19 pm
By: nakedput  

May 8 2019, 3:19 pm nakedput Post #1

Hi, what triggers can I use to do "moving locations". So for example, upon a unit dying somewhere on the map; how do I get this location to create a flag or something. I've seen this done on some maps but no idea how they pull this off. Any help is appreciated.


May 8 2019, 3:30 pm Roy Post #2

An artist's depiction of an Extended Unit Death

It depends on your map requirements. The simplest way to accomplish this is if the player only owns one instance of the unit you want the location to follow:
Location Tracking

  • Player 1
  • Conditions

  • Current Player commands exactly 1 Terran Marine
  • Actions

  • Move location 'p1' on Terran Marine owned by Current Player at 'Anywhere'
  • Preserve Trigger

  • Creating Flag

  • Player 1
  • Conditions

  • Current Player commands exactly 0 Terran Marine
  • Actions

  • Create 1 Flag at 'p1' for Current Player

  • If your player owns multiple units that you want to track, things become more complicated. You can keep locations tracking certain units with Location IDs, depending on the unit's size and movement speed.

    If you need something that specifically moves the location onto a dying unit, you can look at the Duplicating Marines concept map. Combined with Super Hyper Triggers, this should work at a 100% success rate, as opposed to the 50% success rate with regular hyper triggers.

    May 8 2019, 4:08 pm nakedput Post #3

    Wow thanks for the quick response. Works like a charm.


      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [05:48 am]
    O)FaRTy1billion[MM] -- SI when do we get more EUD condition/actions? It'd be nice to have .dat ones XD
    [05:22 am]
    O)FaRTy1billion[MM] -- I just heard the song
    [05:17 am]
    NudeRaider -- and I even heard it in the overmind voice
    [05:16 am]
    NudeRaider -- I am proud that I recognized it after the first 3 words :)
    [04:23 am]
    KrayZee -- Behold that I shall set you amongst the greatest of my Cerebrates, that you might benefit from their wisdom and experience. Yet your purpose is unique. While they carry forth my will to the innumerable Broods, you have but one charge entrusted to your care.
    [04:23 am]
    KrayZee -- Awaken my child, and embrace the glory that is your birthright. Know that I am the Overmind; the eternal will of the Swarm, and that you have been created to serve me.
    [2019-5-23. : 7:33 am]
    KrayZee -- NO
    [2019-5-23. : 5:00 am]
    Pr0nogo -- U
    [2019-5-23. : 2:39 am]
    RdeRenato -- xd
    [2019-5-22. : 7:40 pm]
    Suicidal Insanity -- I can just look at PyMS or something
    Please log in to shout.

    Members Online: Roy, jun3hong, Nekron, hotelezbook, Dem0n