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.
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:
Player 1
Current Player commands exactly 1 Terran Marine
Move location 'p1' on Terran Marine owned by Current Player at 'Anywhere'
Preserve Trigger
Player 1
Current Player commands exactly 0 Terran Marine
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.
Wow thanks for the quick response. Works like a charm.
None.