I was playing with array and just have idea to make AHSS all is working but;
let 1st you see how create regions and i use region array and set only reg 1-3 not 0000 one i used oooo only to activate trigger...

So i start my peasant is ready and i pick hero trigger do his thing and my peasant die.When i create another one and send him to other or to same hero then start to be messy trigger create same hero +old one and etc....
Also if i dont kill peasant before integers loop trigger wont do nothing..!?
here it is trigger:
same unit as 2nd one is...so my question is can somone tell me where is my leak?cuz the tool Leak cheker isnt working ...sorry for bad english
let 1st you see how create regions and i use region array and set only reg 1-3 not 0000 one i used oooo only to activate trigger...

So i start my peasant is ready and i pick hero trigger do his thing and my peasant die.When i create another one and send him to other or to same hero then start to be messy trigger create same hero +old one and etc....
Also if i dont kill peasant before integers loop trigger wont do nothing..!?
here it is trigger:
-
scriptV1
-
Events
-
Unit - A unit enters Region 000 <gen>
-
-
Conditions
-
(Unit-type of (Entering unit)) Equal to Peasant
-
-
Actions
-
Unit - Kill (Entering unit)
-
For each (Integer A) from 1 to 3, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in RegioN[(Integer A)])) Equal to 2
-
-
Then - Actions
-
Unit - Change ownership of (Random unit from (Units in RegioN[(Integer A)] owned by Neutral Passive)) to (Owner of (Entering unit)) and Change color
-
-
Else - Actions
-
-
-
-
-
same unit as 2nd one is...so my question is can somone tell me where is my leak?cuz the tool Leak cheker isnt working ...sorry for bad english
-
Melee Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set RegioN[1] = Region 001 <gen>
-
Set RegioN[2] = Region 002 <gen>
-
Set RegioN[3] = Region 003 <gen>
-
-
-
regain peasant
-
Events
-
Player - Player 1 (Red) types a chat message containing start as An exact match
-
-
Conditions
-
Actions
-
Unit - Create 1 Peasant for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
-
-