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.



None.

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
Players

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

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



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [02:58 pm]
    Pr0nogo -- Suicidal Insanity
    Suicidal Insanity shouted: Moose Naw - if that is an option, it should be a global option
    agreed
    [02:58 pm]
    Pr0nogo -- no problem
    [11:47 am]
    rnDPrc -- Pr0nogo
    Pr0nogo shouted: though idk if you can extract them from scr anymore since casc took effect, so you can download them here
    Thank you :)
    [11:28 am]
    Suicidal Insanity -- Pr0nogo
    Pr0nogo shouted: though idk if you can extract them from scr anymore since casc took effect, so you can download them here
    SC:R still ships with all the old MPQs
    [11:26 am]
    Suicidal Insanity -- Otherwise it clutters up the UI and you have inconsistent names from location to location
    [11:26 am]
    Suicidal Insanity -- Moose
    Moose shouted: Basically, anywhere that supports custom unit names should have an option to use the originals imo
    Naw - if that is an option, it should be a global option
    [11:10 am]
    Pr0nogo -- though idk if you can extract them from scr anymore since casc took effect, so you can download them here
    [11:08 am]
    Pr0nogo -- rnDPrc
    rnDPrc shouted: Where can I learn more about the default AI Scripts behavior? I'm having some problems here
    extract the scripts using pympq and open them in pyai (using the python modding suite) and use nekron's guide as a reference
    [10:57 am]
    NudeRaider -- http://www.staredit.net/372001/ thou shalt not judge
    [10:18 am]
    rnDPrc -- I mean the Run AI Script trigger choices
    Please log in to shout.


    Members Online: Roy, UEDCommander, Pr0nogo