CAFG,
Someone told me that the reason you need the hallucinations removed is because the LM can hallucinate other LM and then uses an ability, and the spell is cast at the hallucination instead. They were letting me know because the system I posted before seems to have a delay, which is true because I didn't take the additional time to optimize it. I even put in the mission briefing that it would take 5 seconds
Of course it can be sped up as much as you want easily by duplicating the triggers into the same trigger cycle, it could be sped up to the point of removing all LM hallucinations on the map every 0.084 seconds.
However, if what they said is the case, there's a pretty simple way to fix it which is even more reliable, and you don't even need the mobile grid map scanning system I posted before. All you have to do is have these triggers run before the ability is used:
(Keep in mind that "Current player uses LM ability" means, the conditions that trigger the use of the ability. Whatever the conditions are for the actual ability (building a Zealot or whatever), they go here.)
Trigger 1CONDITIONS:-Current player uses LM ability.
ACTIONS:-Center 1x1 location on LM.
Trigger 2CONDITIONS:-Current player uses LM ability.
-Current player brings exactly 0 LM to 1x1 location.
ACTIONS:-Kill all LM at 1x1 location for current player.
You copy these 2 triggers for however many hallucinated LMs they might have when they cast an ability, if you want the ability to be cast within 1 trigger cycle. If you have these 2 triggers run 6 times, and the player has 12 hallucinated LMs centered on before their real LM, then it will take the spell an additional 0.084 seconds to cast than normal.
Then all you have to do is add this condition to the normal LM abilities:
-Current player brings exactly 1 LM to 1x1 location.
With this system it will keep killing their LM hallucinations until it is centered on the real one, and then cast the ability. If the most hallucinations they can ever have at any given time (due to energy limitations) is 6, then just copy the first 2 triggers 6 times and their abilities will still be used instantaneously.
This system is also extremely simple. It will take less time to implement than it took me to write this post, it only needs 1 location, and it's impossible to fool.