• 🏆 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!

Leak Help

Status
Not open for further replies.
Level 4
Joined
Nov 24, 2004
Messages
70
Hi, I was just going throught my map tweaking it here and there and I used the Leak Search program to find leaks. Anyways most of my triggers are fine except for ones like:

Player - Add (Number of units in (Units owned by Player 1 (Red) of type Soldier)) to Player 1 (Red) Current gold

Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Soldier) and do (Unit - Explode (Picked unit))


Pretty much the leak is (number of units in(units owned my player(x) Is there a variable that i can make to set the number of units of type(x) owned by player(x)?

And also i have a Random_Int[1] variable in one of my triggers and the Leak Find program said that it wasn't removed, how can I remove it without stopping the trigger because its meant to stay on and loop over everytime a hero dies to display the player(x) was killed by (player(x). All the random_int does is select random numbers from 1-5 and if say its = to 1 then do display player (message) player. It just makes more than one kill message so its all random.
 
Status
Not open for further replies.
Top