• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Massing / Group Win

Status
Not open for further replies.
Level 18
Joined
Feb 9, 2008
Messages
1,504
So How does massing really work, im re-creating the Starcraft Original - Halo: War of the Races X.

I have everything down except massing.

I want it to:


Have a unit enter a Circle of Power (Region set already)
Take all of (Player's) Units and move it to Red's base (Region set already).

And same with the other players.

---------------------------------------


My second Problem is Group Win.

I have teams:

3 players on Human
3 on Covenant
1 on Flood (Its the way in SC)

I want it so, when all the other teams are dead, (They loose their main building = defeat) that team wins.
 
Level 15
Joined
Dec 18, 2007
Messages
1,098
First question.
Just Pick Every Unit Owned by Owner of Triggering Unit then move the unit to the region.
Remove Leaks.
Second Question.
You can make it when the main building dies, the player loses all his buildings. Then just use melee victory condition :p
OR
When a main building dies, check if the allied main buildings are also destroyed, if they are, just make the whole team lose (pick every unit owned by those in the team, or allies of one of the players of the team and make them lose). Then check if the other teams are dead, if so, make the last remaining team win :p
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Could main buildings with an arrayed Integer variable. The value is the amount of building on the team, the array is the team. When the building is destroyed, set MainBuildingCount[<TEAMNUMBER>] = (MainBuildingCount[<TEAMNUMBER>] - 1). If MainBuildingCount[<TEAMNUMBER>] equal to 0, then set defeat to everyone in the team and victory to the other.
 
Status
Not open for further replies.
Top