• 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] Help. X_X

Status
Not open for further replies.
Level 5
Joined
Feb 3, 2012
Messages
107
thats gonna be a lot of triggers. i hope ur quite advanced in world editor, cause its gonna be long to explain everything and ill give the quick version. if u have any more questions just post again.
make sure they are all enemies in the player properties.

firstly, the host have to choose a game mode. prob just use the 'type as an exact match' event, its the easiest way to do it.
next, make a new trigger.
Use this event:
Player 1 types 'team 200' as an exact match
then, depending on how many players there are, u make them allies.
here is an example: there are 4 players in my map and player 1 is the host.
player 1 types: -team 200.
make an action that states: make player 1 ally to player 2 w/ shared vision
and another action: make player 2 ally to player 1 w/ shared vision
NOTE: that u have to make both players ally with each other, if u only make player 1 ally with player 2, player 2 can attack player 1 as an enemy but player 1 can't.
do the same for player 3 & 4.
next, u have to make an integer. use the set variable action. for example, i make an integer 'team1score'
now i make a new trigger:
Event
Generic Unit Event - A unit dies
Conditions
Or Multiple Conditions
-Player Comparison - Dying Unit equal to Player 3
-Player Comparison - Dying Unit equal to Player 4
Actions
-Set Variable - 'team1score' + 1
If u dont know how to add team1score, use anthimetic (i think its something like that)
NOTE: this can fail if player 3 or 4 has some summoned units (if u want to make like a hero arena). if u want more advanced, make player 3 and 4's hero a variable unit and use this trigger. for this trigger player 3's hero is a variable called 'player3' and player 4's hero is a variable called 'player4'
Event
Generic Unit Event - A unit dies
Conditions
Or Multiple Conditions
-Unit Comparison - Dying Unit equal to player3
-Unit Comparison - Dying Unit equal to player4
Actions
Set Variable - 'team1score' + 1
and everytime team 1 scores a kill, the integer will increase, and it acts like a score.
im assuming u know how to use multiboard so i wont go into that.
now, team 1 has scored 200 kills! now we need to make a win condition
Event
Periodic Event - Every 1 second of game time
Condition
Integer Comparison - team1score equal to or greater than 200
Actions
Game - Victory Player 1
Game - Victory Player 2

and there u go! for the second team, just make everything the same with the different integers, variables and players. if u want ffa, ull have to do create an integer for every player and a win condition for every player. for unlimited, no win condition. hope this helped.
im sure a more advanced triggerer will come around and tell u a more advanced trigger. (there is a more advanced way but i dont know it yet) so good luck on ur map.
 
Status
Not open for further replies.
Top