View Full Version : Help plz
How would i do a trigger so when all the enemy's hero's have been killed, eg team 1 kills all of team 2's hero's, Its Victory for the team that killed all of the enemy's hero's and defeat for the team with all the dead hero's, help plz
gamer102
07-13-2006, 12:08 PM
Whenever you have a team game, you always have to have triggers for that team
Team 1 Death
Events
Time - Every 1.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 1 (Red))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 2 (Blue))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 3 (Teal))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 4 (Purple))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 5 (Yellow))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 6 (Orange))) Equal to 0
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat Player 2 (Blue) with the message: Defeat!
Game - Defeat Player 3 (Teal) with the message: Defeat!
Game - Defeat Player 4 (Purple) with the message: Defeat!
Game - Defeat Player 5 (Yellow) with the message: Defeat!
Game - Defeat Player 6 (Orange) with the message: Defeat!
Game - Victory Player 7 (Green) (Show dialogs, Show scores)
Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
Game - Victory Player 9 (Gray) (Show dialogs, Show scores)
Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores)
Game - Victory Player 11 (Dark Green) (Show dialogs, Show scores)
Game - Victory Player 12 (Brown) (Show dialogs, Show scores)
Team 2 Death
Events
Time - Every 1.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 7 (Green))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 8 (Pink))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 9 (Gray))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 10 (Light Blue))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 11 (Dark Green))) Equal to 0
(Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Equal to 0
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
Game - Defeat Player 7 (Green) with the message: Defeat!
Game - Defeat Player 8 (Pink) with the message: Defeat!
Game - Defeat Player 9 (Gray) with the message: Defeat!
Game - Defeat Player 10 (Light Blue) with the message: Defeat!
Game - Defeat Player 11 (Dark Green) with the message: Defeat!
Game - Defeat Player 12 (Brown) with the message: Defeat!
Thx for the help, ill try it soon.
I cant find the condition line in WE, could u point me in the direction plz
edwinfong25
07-17-2006, 3:15 PM
also it can be done with the event - a unit dies rather than every second
condition is integer comparison
then units in region
...i think...?
gamer102
07-17-2006, 6:14 PM
Ya there is... in TFT
I have ROC thats why it is complicated
In RoC you have a Unit Owned play Player Dies event repeated 12 times!
Oh Edwin, ur back! Good to see ya!
Its cool, iv worked it out, thx for the feedback.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.