Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Units not patrolling!
Units not patrolling!
Apr 7 2015, 12:34 am
By: Zoan  

Apr 7 2015, 12:34 am Zoan Post #1

Math + Physics + StarCraft = Zoan

Hey, I'm running into a problem in my game.

I have a vHP system that spawns units in the following way:

1: It sets up a spawn area and a patrol location to which the spawned units are to be spawned at and ordered to patrol to, respectively

2: It detects if one of 120 small inverted locations is being used or not, starting from location 1 and going to location 120

3: When it finds one not in use, it moves that location to the spawn area and quits checking whether or not the other locations are in use

4: It then creates a zombie at a remote location for Player 8 (a computer ally)

5: It moves that zombie to the spawn area

6: It re-centers the small inverted location on the zombie owned by Player 8

7: It gives the zombie owned by Player 8 to Player 6 (a computer enemy)

8: It orders the zombie owned by Player 6 to patrol to the patrol location

And later on in the triggers I have a different set up of that moves a burrowed unit to each of the inverted locations in use and then moves it back, to slow down the zombies. It begins to run for the inverted locations immediately after (i.e. in the same trigger cycle and for every trigger cycle afterwards) the location becomes in use.

Anyway, the problem is that the zombies aren't patrolling when they spawn - they just sit there :(
And in other triggers, like when a car alarm goes off and orders all zombies in a large area around the car to patrol to it, they do move, so I know that they CAN patrol, it's just that they don't when they spawn.

Anyone know why?



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Apr 7 2015, 2:04 am zsnakezz Post #2



try putting a small wait before the patrol order. They triggers could be procking out of order.



I made the following maps; Hyperion 2, The Undead, The Undead Coop, Realm Rpg beta, and Overlords.

Apr 7 2015, 2:29 am Zoan Post #3

Math + Physics + StarCraft = Zoan

Fixed!

Quote from zsnakezz
try putting a small wait before the patrol order. They triggers could be procking out of order.

Yup, I think that's what was happening. I changed it such that it waits one trigger cycle before giving them to P6 and ordering them to patrol, and now it works perfectly.

Thanks man!



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:14 am]
l)ark_ssj9kevin -- Rectal!!!
[12:13 am]
IskatuMesk -- u guys ever look at the "Backend performance improvements" line and kinda you know 👀
[2026-7-03. : 4:25 pm]
l)ark_ssj9kevin -- oh wow it's kind of like archipeligo but solo
[2026-7-03. : 9:43 am]
Oh_Man -- makes me wonder tho, a brood war achievement project culd be quite something, following the design methodology of SC2 achieves
[2026-7-03. : 9:43 am]
Oh_Man -- intresting concept, i see starcraft N64 is on there, most of the achieves seen bare bones though
[2026-7-03. : 9:43 am]
Oh_Man -- https://retroachievements.org/ i stumbled across this website
[2026-7-02. : 9:57 pm]
IskatuMesk -- :wob:
[2026-7-02. : 10:46 am]
UndeadStar -- :wob:
[2026-7-01. : 3:34 pm]
Symmetry -- :wob:
[2026-7-01. : 4:42 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: Sie_Sayoka, lil-Inferno