HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger help

04-08-2004, 04:43 AM#1
Leader
Im having trouble making a trigger. It goes like this: I have a game with 2 forces, the first has 8 players in it, and the second has 4 players in it. In the begging game the 4 player force gets to pick a from 4 heros.

I want a trigger that says when all the heros that the opposite team owns(1 per player) die, then the other force wins the game with a victory.

Things that make it hard:
-Even though there are 4 players max in the force doesnt mean they will all be filled, there could be 3 players playing out of the 4.

-There are 4 different heros that could be chosen out of each person in the second force.


If anyone could help me, that would be great!
04-08-2004, 05:26 PM#2
Leader
was I too unclear?
04-08-2004, 07:15 PM#3
Prophecy
Use a real comparsion.


Events
Time - Every 2.00 seconds of game time

Conditions
(Life of Paladin 0000 <gen>) Less than or equal to 0.00
(Life of Archmage 0001 <gen>) Less than or equal to 0.00
(Life of Mountain King 0002 <gen>) Less than or equal to 0.00
(Life of Blood Mage 0003 <gen>) Less than or equal to 0.00

Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)


just change the selected heroes to the ones in your map. If your game creates a hero for your players, then put the created hero into a variable and use that unit variable for the trigger.
04-08-2004, 07:27 PM#4
johnfn
You put them all as seperate comparisons; it should be one big comparison joined with AND.

(Life of Paladin 0000 <gen>) Less than or equal to 0.00 AND
(Life of Archmage 0001 <gen>) Less than or equal to 0.00 AND
(Life of Mountain King 0002 <gen>) Less than or equal to 0.00 AND
(Life of Blood Mage 0003 <gen>) Less than or equal to 0.00

Then... do whatever. For some strange reason wc3 only will care about one of the events/events( i could be wrong, it could just be events)
04-11-2004, 11:12 PM#5
Leader
When my game creates the hero, should I cache it?
04-11-2004, 11:51 PM#6
johnfn
Umm... Why on earth would you want to cache a hero? Thats just for saving a hero for a campaign...
04-12-2004, 02:47 AM#7
Leader
I meant put it in unit group, not cache
04-12-2004, 03:49 PM#8
Prophecy
What is putting the hero in a unit group going to do? You might want him in a variable, but I don't see the need for a unit group.