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.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy