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.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: Vrael, lil-Inferno, jun3hong, Ultraviolet, Roy