• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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