• 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.

2 Questions. [Please Answer]

Status
Not open for further replies.
Level 4
Joined
Feb 27, 2006
Messages
49
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
 
Level 8
Joined
Jul 23, 2005
Messages
329
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.
 
Status
Not open for further replies.
Top