Page 1 of 1

Qustion about Scarabes from Reavers? Help!

Posted: Mon Mar 17, 2008 3:51 pm
by redhot209
Well here's what I'm trying to, I'm trying to make a scarab appear and attack surrounding enemy units when I build a any unit(Ex.Dragoon). But it doesn't work. So I went to thinking... If I make a Reaver(Ally Computer Player 5, Attacks a turret with scarabes in the middle of invinsible supply depots =causing scarabs to float around for a certain time) Attack with Scarabs and move them to my Unit(Marine) when I buy a Dragoon, the scarabs should attack the enemy units(zergling), but when the scarabs appear, they just move around somewhere and blow up....they don't attack even if the marine is right next to the Zergling.

I try to make a trigger where the scarabs patrol to anywhere but it didn't seem to work.
I thought they were still allied, so set the Player 7 as enemy but it didn't work as well. Can Someone Help Me. I seen other people do it, but I can't figure it out...

Re: Qustion about Scarabes from Reavers? Help!

Posted: Wed Mar 19, 2008 7:42 pm
by Durandal-Thoth
Honestly, I'm not sure what you're talking about, but when it comes to having scarabs appear and attack, "Junkyard Dog" scripts seem to work best.

Re: Qustion about Scarabes from Reavers? Help!

Posted: Fri Oct 21, 2011 12:32 am
by sneakylikeaninja
I have no idea how to get scarabs to appear next to things and attack independently of a revear, but I do know another way to do it. I learned this off of the StarEdit network and I haven't tried it myself, but I tried some test maps that test this concept and they were great.

What you need to do is get some revears to pump out some scarabs, then move them to a "scarab bank" and run this trigger:

Conditions:
Current player brings at least 1 Scarab to "Scarab Bank"(location over the bank)
Actions:
Preserve trigger (of course)
Execute AI Script: Set Generic Target Command at "Scarab Bank" (this makes them forget what they were aimed at from when the revear shot them out)

From there you use a move trigger and move them to a location that is centered over the unit about to be scarabed. Make sure that they scarabs actually move right next to them before proceeding. Once you are certain that they are centered, you can use this trigger to force them to cause damage:

Conditions:
Current player brings at least 1 Scarab to "Location Over Enemy/Unsuspecting Unit"
Actions:

Preserve trigger
Move all scarabs at "Location Over Enemy/Unsuspecting Unit" to "Location Over Water"

By moving them to the water, they will be forced to die and will deal damage in the process like a normal scarab, just not in a normal way. The course the scarabs take is through four locations: revear > bank > unit > water (or impassible terrain). Again I've never tested this myself and I hope this is useful to you. Good Luck!