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