Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Computer AI, Hold Position

Creator: Sie_Sayoka
Time: Oct 30 2007, 2:59 am

Post #1     Sie_Sayoka Oct 30 2007, 2:59 am

[Avatar]
 offline contact
Is there any AI or orders that can make a computer hold position? I dont want my computers moving around to chase units.
Top

Post #2     Akar Oct 30 2007, 3:53 am

[Avatar]
Peaceful Warrior
 offline contact
I think the stop order is your best bet, but that doesn't let the unit fire...
(user posted image)
Top

Post #3     Oyen Oct 30 2007, 4:31 am

[Avatar]
 offline contact
I believe the only available orders are Move to, Patrol to, or Attack to. I don't know much about AI scripts, so there may or may not be a script that can simulate the "hold position" effect.

How many units do you hope to make "hold position"?

EDIT: You could just put a location around the group of units. If any of those units leaves the location, then simply move it back.
(signature image)
No Hablo Espanol!
Top

Post #4     Sie_Sayoka Oct 30 2007, 4:31 am

[Avatar]
 offline contact
around 100 :)
Top

Post #5     Oyen Oct 30 2007, 4:33 am

[Avatar]
 offline contact
Are the 100 units going to be near eachother? Are the 100 units able to be killed?
(signature image)
No Hablo Espanol!
Top

Post #6     Fwop_ Oct 30 2007, 4:35 am

[Avatar]
A 43 minerals well spent.
 offline contact
I'm not sure exactly, but I think if you order units to move to an implacable area, they won't move but still be able to attack. Though, I'm not positive on that. Probably doesn't work.
(signature image)
Top

Post #7     Sie_Sayoka Oct 30 2007, 5:36 am

[Avatar]
 offline contact
that is just a stop command i think :/

QuoteAre the 100 units going to be near eachother? Are the 100 units able to be killed?

no, yes
Top

Post #8     Oyen Oct 30 2007, 5:59 am

[Avatar]
 offline contact
Well....That's a bit tricky. I suppose you could use the method I suggested earlier and put a location around every one of them, but that would probably be a bad idea and take up tons of triggers as well.
(signature image)
No Hablo Espanol!
Top

Post #9     Sie_Sayoka Oct 30 2007, 6:11 am

[Avatar]
 offline contact
that wouldnt work
Top

Post #10     frazz Oct 30 2007, 6:34 am

[Avatar]
He'll spear your brains if you step out of line.
 offline contact
Perhaps.... With hyper triggers you could repeat stop, attack to, stop attack to.... That way they wouldn't have time to run, but would be able to attack. Dragoons go to slow and wouldn't do anything though.

I don't know if this would cause them to seize up, or maybe move a little bit at a time. Or it might actually work.
[quote=Felagund]The most dangerous weapon anyone can wield is self righteousness.[/quote]

I have a signature yay!
Top

Post #11     in_a_biskit Oct 30 2007, 8:13 am

[Avatar]
 offline contact
Quote from Fwop_I'm not sure exactly, but I think if you order units to move to an implacable area, they won't move but still be able to attack. Though, I'm not positive on that. Probably doesn't work.

This should work, I think. Units won't move but will attack.
Top

Post #12     Sie_Sayoka Oct 30 2007, 9:15 am

[Avatar]
 offline contact
no, its the equivilent of a stop order. so they will chase units and such.
Top

Post #13     NudeRaider Oct 30 2007, 1:09 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 online contact
Quote from in_a_biskit
Quote from Fwop_I'm not sure exactly, but I think if you order units to move to an implacable area, they won't move but still be able to attack. Though, I'm not positive on that. Probably doesn't work.

This should work, I think. Units won't move but will attack.

There is a trick for that. I'm not exactly sure about it but I will ask someone who has already done this in several maps.

It's either something about disabling/enabling unit(s) (sprites) or its about TELEPORTING them to unwalkable terrain. Try to experiment with that until I found the solution.

Order won't work since they will walk as far as they can until they hit the obstacle and will patrol in front of it. But they wont stand still.

But here's a quick and dirty workaround:
Place some (3-4 should be enough) dts for P12 around every of them.
If placed correctly melee units will still be able to hit them.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #14     Ahli Oct 30 2007, 5:07 pm

[Avatar]
Master of 239.242 D1 Items
 offline contact
Quote from NudeRaider
Quote from in_a_biskit
Quote from Fwop_I'm not sure exactly, but I think if you order units to move to an implacable area, they won't move but still be able to attack. Though, I'm not positive on that. Probably doesn't work.

This should work, I think. Units won't move but will attack.

There is a trick for that. I'm not exactly sure about it but I will ask someone who has already done this in several maps.
[...] ...its about TELEPORTING them to unwalkable terrain. Try to experiment with that until I found the solution.


Moving, or better 'Teleporting' the units to unwalkable terrain (= an area where they cannot be teleported/moved to because of terrain or other units) will make the units nearly unhittable. But psi storms and zerglings can kill the units.

If you want to have the units be attackable, you need a system which teleports them back to their position, if they move, or better, you have to block them like NudeRaider said.
Top

Post #15     Sie_Sayoka Oct 31 2007, 2:27 am

[Avatar]
 offline contact
Thanks guys but all of these seem too impracticle for my map... so it is concluded no hold position AI script is avaliable :/
Top

Post #16     Viii_iiiV Nov 3 2007, 7:56 pm

[Avatar]
 offline contact
I have an idea, as always.

Location A is 8x8, location B is 3x3 and there is a burrowed unit under each unit.
Then just cycle through the burrowed units (give them to P11 when used and then move onto next one, and at end give them all back to P10)
So, on each one you just move all in B to A, and with hyper triggers 100 or so units each unit will be put back every 16800 miliseconds (16 seconds). However, this isn't good enough.

So, since there are seven burrowable units and one observer, you can have, instead of one type of unit between 100, one between 12 or 13. This means that they will move back every 2.1 seconds - a much better time. However, you will have to have sixteen locations.
(user posted image)
Top

Post #17     Ahli Nov 3 2007, 10:10 pm

[Avatar]
Master of 239.242 D1 Items
 offline contact
just copy the centering triggers 100 times...
in the end you have 300 triggers for that...
Top
0 members in this topic: None
+ 0 guest(s)


[09:13 pm]
MadZombie -- ಠ_ಠ
[09:12 pm]
Lord Malvanis -- I don't understand why isolatedpurity responds to everyone that reponds to his topic but when I make a completely true statement about the entire argument over something I'm ignored
[09:10 pm]
TassadarZeratul -- And it's too easy to accidentally press Enter on the itouch. :flamer:
[09:09 pm]
TassadarZeratul -- a NetHack map! NH in SC = epic.
[09:09 pm]
isolatedpurity -- yeah i'll have to fix that... eventually
[09:09 pm]
TassadarZeratul -- I just had an idea! Someone (maybe me) should make
[09:00 pm]
HailFire -- 2 59s and 65s, too.
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions