• 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.

Please Help Me with a trigger

Status
Not open for further replies.
Level 6
Joined
Oct 6, 2005
Messages
203
Well im working on a map at the moment and i need a trigger so that when a player is defeated all players inside that alliance are to... because theres going to be mercenaries i cant just set which players are going to be defeated and i cant do variables... anyone got any ideas please... help please?
 
Level 22
Joined
May 11, 2004
Messages
2,863
Make a player-group variable and name is something, say, Playergroup1. Make another and call it something else, like playergroup2 (you will need to make one player group variable for every opposing team). At map initialization, use this trigger:

Player group- Add player to player group

...and add all the players of one side to one player group and all the players of the other side onto the other player group. Then simply make a trigger like this

Event
Player XX leaves the game with a defeat
Player XX leaves the game with a defeat
Player XX leaves the game with a defeat
(these are all players of one player group/team

Action-
Player group- pick every player in (playergroup1/2) and (defeat) picked player.
-VGsatomi
 
Level 6
Joined
Oct 6, 2005
Messages
203
heh... :? hmm i think im getting the gist of it... but... i cant do variables.. can you pm me your e-mail addy and ill send to you if thats okay???Ill also send you details on the teams and what its about in the e-mail... if thats okay by you of course... ill also give you credit on it.
 
Status
Not open for further replies.
Top