Staredit Network > Forums > SC2 Assistance > Topic: Most efficient way to trigger my map.
Most efficient way to trigger my map.
Aug 29 2010, 10:17 pm
By: fat_flying_pigs  

Aug 29 2010, 10:17 pm fat_flying_pigs Post #1



How would I make the trigger:
If current player buys a hero, then a) Center point/region on his bunker and create unit, or b) Create unit at his bunker.
[note: current player*, there are 8 different players with 8 different bunkers.]

And since this will apply to a bunch of heroes, and therefore a bunch of triggers exactly like the above, is there a way to say:
If player has his "buy hero menu" CLOSED, then skip all those triggers in the trigger cycle for that player. (So those triggers won't be checked for if they meet the requirement, and reduce trigger lag)




Also, I have to create (a bunch of) units for each player at his bunker. Is there a way to loop the units for each player at each location?
Currently, I have:
Create A at Point 1 for Player 1
Create B at Point 1 for Player 1
Create C at Point 1 for Player 1
Create D at Point 1 for Player 1
Create A at Point 2 for Player 2
Create B at Point 2 for Player 2
Create C at Point 2 for Player 2
Create D at Point 2 for Player 2
etc.

The units A-D are the same, but the points and players are different. Currently, I have 88 (11 units * 8 players) actions. Is there a way to make it less (some kind of loop).



None.

Sep 3 2010, 3:36 am Roy Post #2

An artist's depiction of an Extended Unit Death



You'd have to fill the point and unit type arrays, but after you did that, this is the kind of loop you'd be looking for. Since your points aren't based on an algorithm, they have to be manually specified, which would cause the several lines.

If your points were based on an algorithm, of course, you could cut down the lines of actions by using a loop like mentioned above.




Sep 3 2010, 5:28 am payne Post #3

:payne:

Use "Cargo Unit" action to load a bunker.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01: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
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: jjf28