Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Unit Selection Question
[Solved] Unit Selection Question
This topic is locked. You can no longer write replies here.
May 29 2010, 8:17 pm
By: Sperate  
Polls

May 29 2010, 8:17 pm Sperate Post #1



I'm (mostly) remaking a basic RPG map from SC1 in SC2, and while I was a fair hand at SC1 triggers, I never really did anything with WC3 triggers, so the new editor blows my mind.

I have a pretty basic situation. I edited the Larva to be able to move around, and placed a single Larva for each player in the area of the map I roped off for hero selection. I can have each player select a hero, and that's fine. I need to be able to determine which players aren't actually in the game, so I can start the rest of the game once all the Larva in the selection area are gone. I also will need to know how to determine when all those Larva are gone - I currently don't see the old trigger option that there are no larva in x region.



None.

May 29 2010, 8:27 pm Temp Post #2



Assuming that each player has only 1 larva you could have a trigger which runs every 0.5 seconds that has a condition that player has 1 larva. This trigger could then turn itself on when run.

Realistically you should be using dialogs now though.



None.

May 29 2010, 8:42 pm Sperate Post #3



The way I look at it, a dialog just isn't a nice way to select your hero. I suppose it could be done, but I don't think it's that much cleaner.

Okay, that solves the problem for determining when the larva are gone, more or less, but I still need to know how many players I have. Is there a way to count the number of units in a given region? Seems kludgy.

I'd like to add one minor question to here instead of making a new topic:
I'm trying to order a unit to move, but the best I have is this:

Event: Any Unit enters within 1.0 of Point
Action: Order Triggering Unit to Ability Command (Replace Existing Orders)

when I click the link for Ability Command and search for Move, the only thing that coems up is hold Posistion, with no option for where to move to..

Post has been edited 1 time(s), last time on May 29 2010, 8:48 pm by Sperate.



None.

May 29 2010, 8:47 pm Temp Post #4



There is a function under PlayerGroup called ActivePlayers. This should return all players in the game.



None.

May 29 2010, 8:51 pm Sperate Post #5



Thanks. Topic can be locked, I'll figure the move thing out on my own.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[10:05 am]
Moose -- ya
[05:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: moiseslhines