Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Auto attacking
[Solved] Auto attacking
This topic is locked. You can no longer write replies here.
Sep 14 2010, 1:54 am
By: ace67aod  

Sep 14 2010, 1:54 am ace67aod Post #1



I'm trying to get a trigger to make units that have already spawned in a region to attack-move to another region. The spawning is continuous so i need the attack move option to also be so its constantly sending the new units any help is appreciated the picture attached is all i have so far.

Attachments:
balls.jpg
Hits: 7 Size: 46.73kb



None.

Sep 14 2010, 2:10 am Temp Post #2



For event use unit enters region. Then use the issue order action, change no target to targetable and use the attack order with target as the center of the other region.



None.

Sep 14 2010, 2:48 am shmeeps Post #3



You could also integrate this into the spawn trigger right after the units are spawned one by one by using "Order <Created Unit> to Attack-Move to Point...". This would prevent any units not explicitly sent to attack from attacking when entering the region.



None.

Sep 14 2010, 7:02 am ace67aod Post #4



im still having problems for some reason its not recognizing the recently spawned marines as the created unit anyone got advice?



None.

Sep 14 2010, 2:06 pm Ahli Post #5

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Strange... maybe some more information can help us solving that issue. So here are some questions and hints what could cause this (since we don't have the map or a screenshot what happens or the triggers)
-How do the Marines spawn (created via trigger or produced by building)?
-Did you remove the Attack Ability of the Marines in data editor or set acceleration/max speed to 0? (order doesn't exist for that unit)
-Is the region big enough? (units may spawn outside the location)
-Are you accidentially moving or resizing the region? (units are outside the location)
-Does that effect only apply to some units [-> some Marines attack, some stay where they spawned]? (orders can be canceled, if the unit can't move... event unit becomes idle is triggered when that happens)

That could help us...




Sep 14 2010, 6:26 pm ace67aod Post #6



so far i have not altered anything in data yes i wanna get the marines to fight first so nothing is altered but triggers.

Events



None.

Sep 14 2010, 6:29 pm ace67aod Post #7



here is a Screen shot of what i have the trigger before the spawn trigger is just to set alliance so im just dealing with the spawn trigger atm

Attachments:
trigger.bmp
Hits: 5 Size: 2135.21kb



None.

Sep 14 2010, 10:12 pm Sand Wraith Post #8

she/her

Use <Last Created Unit> instead of <Created Unit>. (Have you even bothered to read the descriptions for the functions?)

The method you're trying probably won't work BTW.

Instead:
Use a second trigger with the Event <Unit Enters Region> that uses an Action to issue a point-target order to the <Triggering Unit> instead of ordering <Last Created Unit>, since I'm pretty sure <Last Created Unit> bugs when there are more than 1 unit prescribed in the last Create Unit Action.




Sep 15 2010, 1:29 am ace67aod Post #9



i just tried your method and it still wont send the units for some reason i dont understand whats going wrong i have it set to any unit that enters region one to attack point 2 and it wont work i have it as a separate trigger and all also



None.

Sep 15 2010, 2:47 am Sand Wraith Post #10

she/her

Try using the order <Attack-move> (or something).

If that doesn't work, show all of your relevant triggers for viewing again.
Or, you might consider simply uploading the map as an attachment.




Sep 15 2010, 8:11 am ace67aod Post #11



i just can only find "attack" under the list of orders i get to select from i cant find the "attack-move" one



None.

Sep 15 2010, 8:52 am Ahli Post #12

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from ace67aod
i just can only find "attack" under the list of orders i get to select from i cant find the "attack-move" one
http://www.staredit.net/257683/




Sep 16 2010, 6:09 pm ace67aod Post #13



so i have tried all of your suggestions and i still cant get it working here is the map if someone wants to help me getting the marines that spawn in region one to attack-move to point 3 on this map i think i have it right but i dunno it wont work

Attachments:
map beta.SC2Map
Hits: 1 Size: 62.73kb



None.

Sep 16 2010, 6:43 pm Ahli Post #14

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

2 solutions methods:
- Go map -> map borders and remove the default borders
OR:
- move your regions inside the blue borders...

What is happening in your map:
The trigger creates the units but they don't appear in that region because that region cannot be accecessed by any unit because the region is outside of the gameplay (?) borders...
So they won't be ordered.

edit:
oh and move the points maybe, too




Sep 16 2010, 7:03 pm ace67aod Post #15



okay perfect i just moved the region to the middle to make sure i had the trigger worked and worked like a charm i couldn't figure out how to take off the borders but moving the region helped thanks so much!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[11:05 pm]
Ultraviolet -- :wob:
[2024-5-18. : 3:55 pm]
Zoan -- :wob:
[2024-5-18. : 10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
Please log in to shout.


Members Online: Ultraviolet