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.
[03:35 pm]
Symmetry -- though mine's probably worse
[03:35 pm]
Symmetry -- That certainly sounds similar to what I've made
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
Please log in to shout.


Members Online: Symmetry