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.
    [12:00 am]
    jjf28 -- we're talking about it a bunch on discord ;)
    [11:59 pm]
    jjf28 -- ya, I live ~20 mins from minneapolis
    [10:51 pm]
    Ultraviolet -- I watched the video, shit was fucked up O.o
    [10:50 pm]
    Ultraviolet -- are you guys having rioting going on there, too? I've only heard about the rioting in Minneapolis after the police murdered that George Floyd guy
    [10:50 pm]
    Ultraviolet -- ah nice one of my best friends moved out that way a few years ago, I hear it's lovely
    [10:44 pm]
    KrayZee -- Ultraviolet
    Ultraviolet shouted: KrayZee are you in Minneapolis?
    No, the Bay Area
    [10:38 pm]
    Dem0n -- also [codebox], idk what the difference between those two are though
    [10:37 pm]
    Dem0n -- There's the [code] tag you can use
    [10:04 pm]
    KlaSsicaL -- Is there any method to share monospace text on post? If not, sharing text table with row N colum 2?
    [06:35 pm]
    Ultraviolet -- You might even be able to turn another unused unit into a map revealer imitation with a smaller vision range so that you could have both normal map revealers and smaller map revealers. Not sure about this one though.
    Please log in to shout.

    Members Online: Roy