I made one, but it lags the more you use it and I can't figure out why, but it works just fine and even gives units an attacking integer so they attack a specific amount of times.
But yeah, it takes a lot of triggering to do it. Actually, you just need a modified wanter an a periodic effect where you order units to move somewhere or attack something.