Warcraft III resources & community, 2003–2006 · archived

2 Questions. [Please Answer]

3 posts
#1

2 Questions. [Please Answer]

1. I've made a trigger that detects, when a hero gets killed by a player, then there comes a text, for all players that say something like, "name of killing player just killed name of the owner of the killed unit". And for instant this map is a footmen frenzy map. My problem is, when a player kills another players base, all the units owned by the player who has goten its base killed, gets killed INCLUDING THE HERO. So if the defeated player, still has its hero allive it says a random player name has killed the owner of that hero. How do make it so, if the hero gets killed because a base gets destroyed that text won't appear?

2. How do make a timer window, that displays the elapsed game time
#2
Well, put in a new trigger that detects when the base is destroyed (of if you use a currently used one, thats great). Then, add a boolean variable and call it whatever you want. in the trigger that detects when the base is destroyed, the first action should be to set the boolean to true.

Then, in the trigger that displays the text, put in a if/then statement, outlining that the boolean must be false for the thing to be displayed.

Remember to set the boolean to false after you're done with it.
#3
"Trigger - Turn off" and "Trigger - Turn on" are your friends.