Ok, so i got this trigger for initializing.
and then this
and this for team 2
why wont it work =(?
oh, forgot the death detect
Code:
Druid Spawn
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Quest - Display to (All players) the Simple Hint message: Welcome to |cff32cd...
Set Team1 = (All allies of Player 1 (Red))
Set Team2 = (All allies of Player 6 (Orange))
Player Group - Pick every player in (All players) and do (Unit - Create 1 Druid for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees)
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Set team1droods = (Number of units in (Units owned by (Picked player) of type Druid))
Player Group - Pick every player in Team2 and do (Actions)
Loop - Actions
Set team2droods = (Number of units in (Units owned by (Picked player) of type Druid))
and then this
Code:
Defeat team1
Events
Time - Every 15.00 seconds of game time
Conditions
team1droods Equal to 0
Actions
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Quest - Display to (All players) the Quest Update message: Team 2 is Victoriou...
and this for team 2
Code:
Defeat team2
Events
Time - Every 15.00 seconds of game time
Conditions
team2droods Equal to 0
Actions
Player Group - Pick every player in Team2 and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Quest - Display to (All players) the Quest Update message: Team 1 is Victoriou...
why wont it work =(?
oh, forgot the death detect
Code:
Reveal
Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Not equal to Neutral Hostile
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 1 (Red)) Equal to True
Then - Actions
Set team1droods = -1
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of Player 6 (Orange)) Equal to True
Then - Actions
Set team2droods = -1
Else - Actions
Set MyLocation = (Center of (Playable map area))
Unit - Create 1 Spirit of Vengence for (Owner of (Triggering unit)) at MyLocation facing MyLocation
Custom script: call RemoveLocation(udg_MyLocation)
Wait 0.60 seconds
Set MyLocation = (Position of (Last created unit))
Camera - Pan camera for (Owner of (Triggering unit)) to MyLocation over 3.00 seconds
Custom script: call RemoveLocation(udg_MyLocation)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Neutral Hostile
Then - Actions
Quest - Display to (All players) the Quest Update message: ((Name of (Triggering player)) + (( + (Name of (Triggering unit))) + ( has been killed by + Forest Creatures.)))
Else - Actions
Quest - Display to (All players) the Quest Update message: ((Name of (Triggering player)) + (( + (Name of (Triggering unit))) + ( Has been killed by + (Name of (Owner of (Killing unit))))))