Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How do I move Scarabs and Order them to attk
How do I move Scarabs and Order them to attk
Jun 18 2009, 3:39 pm
By: m.0.n.3.y  

Jun 18 2009, 3:39 pm m.0.n.3.y Post #1



First of all, sorry for my spam posts guys, i promise this will be my last one! :blush:
Ok so I know the basics of this, and i know they have to be owned by computer players and stuff, so I tried it out, but I can't get the scarabs to attack where I want, they just go and it seems like they're trying to move to a certain location.

I have a location following the hero of the player called P1 Hero Location, and I want to move the scarabs to that location and have them attack any bad guys that are near.

Here's what I did.

Players: 1
Conditions: Player 1 Brings exactly 1 Corsair to location SPELLS

Actions:
Remove all Corsair for current player at location SPELLS
Modify Death Counts for current player set to 120 for BooM
Preserve Trigger
-----------------------------------------------------------------------------
Players: 1
Conditions: Current Player has suffered atleast 1 deaths of BooM
Actions: Modify death counts for current player subtract 1 for BooM
------------------------------------------------------------------------------
Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Run ai Script: Set Generic Command Target at location P1 Hero Location
Run ai Script: Make These Units Patrol at locatoin P1 Hero Locatoin
Preserve Trigger


I have a location following the hero of the player called P1 Hero Location, and I want to move the scarabs to that location and have them attack any bad guys that are near.
But it doesn't work, so how do I do it?



None.

Jun 18 2009, 3:50 pm Morphling Post #2



Quote from m.0.n.3.y
Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Run ai Script: Set Generic Command Target at location P1 Hero Location
Run ai Script: Make These Units Patrol at locatoin P1 Hero Locatoin
Preserve Trigger
?
Two things.
First off, when you run the ai scripts "Set Generic Command Target" and "Make These Units Patrol" it keeps the scarbs alive forever.
Secondly, those ai scripts would constantly move the scarbs underneath your hero.

Change your last trigger to this to fix.
Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Preserve Trigger

When you take out the ai scripts they should roam around and start attacking.



None.

Jun 18 2009, 4:03 pm Morphling Post #3



Try running the ai script at location "Set Unit Order To: Junk Yard Dog".
Edit: lol. How was I a second faster then you if I was responding to you post?



None.

Jun 18 2009, 4:03 pm m.0.n.3.y Post #4



Quote
Change your last trigger to this to fix.
Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Preserve Trigger

When you take out the ai scripts they should roam around and start attacking.
Yeah see I just tried that but the scarabs dont attack the enemy units that are around, they all just shoot out as if they're all trying to go to a certain location. They all just go past all the bad units and they move as if they're trying to get to the top left corner of the map, maybe they're trying to get back to their reavers. However, their reavers are in the top right corner of the map so idk


But yeah, so it doesn't work like that because then they just start dooing random things and kind of moving to like an invisable location of something.


Um yeah, junk yard dog doesn't work either, they still shoot out at the same spot, going past and avoiding all the other units.

Post has been edited 1 time(s), last time on Jun 21 2009, 11:55 pm by Excalibur. Reason: Combining from triple post. Fuck.



None.

Jun 18 2009, 4:14 pm Morphling Post #5



There are probably some other triggers causing them to go to the top left, however my method should work though unless I am forgetting something.



None.

Jun 18 2009, 4:25 pm m.0.n.3.y Post #6



Quote from Morphling
There are probably some other triggers causing them to go to the top left, however my method should work though unless I am forgetting something.

um, well the only other triggers that have anything to do with scarabs are as follows:

Players: 4 (computer player)
Conditions: Alwayse
Actions:
Add at most 5 to hangar for all Protoss Reaver owned by current player at location Scarabs
Set hit points for all terrain missle turret owned by player 5 at location Scarabs to 100%
Preserve trigger
-----------------------------------------------------------------------------------------
Players: 4

Conditions: Alwayse
Actions: Issue Order to all Protoss Reaver owned by player 4 to attack to location Scarabs



None.

Jun 18 2009, 5:03 pm JaFF Post #7



Quote from m.0.n.3.y
Um yeah, junk yard dog doesn't work either, they still shoot out at the same spot, going past and avoiding all the other units.
The location you run JunkYard Dog at must be as small as possible, because the scarabs tend to attack targets that are outside the location. If your hero location is like... 5x5, then it explain everything. If it is quite small, like 1x1 (tiles), then there must be some trigger that breaks the system.



None.

Jun 18 2009, 8:14 pm xYoshix Post #8



Aren't you supposed to run Junkyard Dog on the computer player, then give the reaver to the player? So it would be like this:

Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Set "Switch 1"
Preserve Trigger

Players: 4
Conditions: Switch 1 is Set

Actions:
Run AI Script at P1 Hero Location
Give 1 scarab owned by player 4 to player 1
Clear Switch 1
Preserve trigger



None.

Jun 18 2009, 8:31 pm m.0.n.3.y Post #9



Quote
The location you run JunkYard Dog at must be as small as possible, because the scarabs tend to attack targets that are outside the location. If your hero location is like... 5x5, then it explain everything. If it is quite small, like 1x1 (tiles), then there must be some trigger that breaks the system.
Yeah the hero location is pretty big. I suppose I can create another one just for the scarabs, I'll try it out, maybe like a 1X1 pixel location?

Quote from xYoshix
Aren't you supposed to run Junkyard Dog on the computer player, then give the reaver to the player? So it would be like this:

Players: 1
Conditions: Current Player has suffered atleast 2 deaths of BooM

Actions:
Move all Scarab owned by player 4 at location Scarabs to location P1 Hero Location
Set "Switch 1"
Preserve Trigger

Players: 4
Conditions: Switch 1 is Set

Actions:
Run AI Script at P1 Hero Location
Give 1 scarab owned by player 4 to player 1
Clear Switch 1
Preserve trigger

So really what you're dooing is moving the scarabs and then giving them to player 1? I'm not sure if you can give scarabs and the such, hmm. I'll try this out as well though.

Thanks for the tips guys, ill get back to you



None.

Jun 18 2009, 8:37 pm JaFF Post #10



Quote from m.0.n.3.y
Quote
The location you run JunkYard Dog at must be as small as possible, because the scarabs tend to attack targets that are outside the location. If your hero location is like... 5x5, then it explain everything. If it is quite small, like 1x1 (tiles), then there must be some trigger that breaks the system.
Yeah the hero location is pretty big. I suppose I can create another one just for the scarabs, I'll try it out, maybe like a 1X1 pixel location?
I don't think that non-stacked scarabs are moved directly underneath units. I suggest you use a 1x1 tile location just to be sure.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Lost_Angel, Rawflesh0615, Ultraviolet