Hello,
I'm working on a map and I need to locate a unit. Wait, that's not THAT simple.
It's in a 32x16 location, I control 10 larvas and there is 5 enemy units.
I want to locate the enemy unit when it walk on a larva and kill the enemy who walked on it.
So, a center location can't work (I think) and I need another solution.
I thought about a static grid, but i'm not sure how to do it and if it will work.
I need help,
Oo.
Rage
Against
Stupid
Hackers.
oO (Oo.Rash.oO)
Post has been edited 1 time(s), last time on Oct 12 2008, 5:01 am by Oo.Rash.oO.
None.
Swap the larve between two players, center a location before you swap them, check if there is a unit there, if not change color. Do this until all are the other color, then do the trigger backwards.
Riney#6948 on Discord.
Riney on Steam (
Steam)
@RineyCat on Twitter
-- Updated as of December 2021 --
Uhh well thanks, but it won't work
None.
If the 5 enemy units all belong to one player do it how DM said do it.
Center a say 1x1 location on the larvae.
Give larvae at 1x1 location to different player.
Kill all enemy unit at 1x1 location.
Preserve Trigger
(if you're not noob) Comment
You could even put that all in one trigger since there's such little actions and it would be instant, all you have to do is give all larva from player to the original player and poof, an infinite cycle that will kill all enemy players that stand on a larvae.
Now if you do it with 5 DIFFERENT players you can achieve the same thing by.
Trigger1:
Always
-------------
Center a 1x1 location on the enemy unit.
Preserve Trigger
(if you're not noob) Comment
Trigger 2:
Player whatever brings larvae to 1x1 location
--------------
Kill all any unit for current player at 1x1 location
preserve trigger
(if you're not noob) Comment
Both will achieve the exact same effect, but depending on who owns the units, and how many, one is better then the other...
Also, do not put your name at the end of your posts, it's what the signature is for.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
For only 5 units static solutions are well possible.
But a 1x1 static grid of a 32x16 would require 512 locations, so I recommend the following:
Follow each of the 5 enemies by a 1x1 pixel location. This requires hypertriggers and can glitch if those units can fly, burrow, or otherwise stack onto each other.
Then use 5 1x1 block locations that are centered on the 1x1 pixel at all times.
If at any of those location happens to be a larva and one of the enemy units the same time, kill the unit there.