I made the trigger to random all hero in my map (based on http://world-editor-tutorials.thehelper.net/herotavern.php
But somehow i dont know i gave me and my enemy same hero, but now i cant find the way to fix it, can anyone show me please
But somehow i dont know i gave me and my enemy same hero, but now i cant find the way to fix it, can anyone show me please

-
GP All Random
-

Events
-


Player - Player 2 (Blue) types a chat message containing -ar as An exact match
-
-

Conditions
-

Actions
-


Game - Display to (All players) the text: All Random
-


Set Total_Heroes = 29
-


Set Random_Count = 29
-


-------- HUMAN --------
-


Set Hero[1] = Barbarian
-


Set Hero[2] = Holy Order
-


Set Hero[3] = Paladin
-


Set Hero[4] = Viking Explorer
-


Set Hero[5] = Chancellor
-


Set Hero[6] = Demon Hunter
-


Set Hero[7] = Gryphon Rider
-


-------- ORC --------
-


Set Hero[8] = Beastmaster
-


Set Hero[9] = Brewmaster
-


Set Hero[10] = Tauren Chieftain
-


Set Hero[11] = Scorpion
-


Set Hero[12] = Shadow Hunter
-


Set Hero[13] = Warchief
-


Set Hero[14] = Engineer
-


Set Hero[15] = Hellfire Demon
-


Set Hero[16] = Sorcerer
-


-------- UNDEAD --------
-


Set Hero[17] = Fallen Infernal
-


Set Hero[18] = Infector
-


Set Hero[19] = Lich King
-


Set Hero[20] = Shadow Walker
-


Set Hero[21] = Archlich
-


Set Hero[22] = Flamefury
-


Set Hero[23] = Nerubian Overmind
-


-------- NIGHT ELF --------
-


Set Hero[24] = Bladewing
-


Set Hero[25] = Blind Hunter
-


Set Hero[26] = Elder Druid
-


Set Hero[27] = Unbroken Sage
-


Set Hero[28] = Vengeance
-


Set Hero[29] = Warden Spy
-



Do Multiple ActionsFor each (Integer A) from 1 to 29, do (Actions)
-




Loop - Actions
-





Set Random_Data[(Integer A)] = (Integer A)
-
-
-
-


-------- SETUP --------
-


Set AALoc1 = (Center of Tarven <gen>)
-


Player Group - Pick every player in (All players matching (((Matching player) slot status) Equal to (==) Is playing)) and do (Actions)
-



Loop - Actions
-




Set Random_Hero = (Random integer number between 1 and Random_Count)
-




Unit - Create 1 Hero[Random_Data[Random_Hero]] for (Picked player) at AALoc1 facing Default building facing (270.0) degrees
-




Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
-




Set Random_Data[Random_Hero] = Random_Count
-




Set Random_Count = (Random_Count - 1)
-
-
-


Custom script: call RemoveLocation( udg_AALoc1 )
-


Trigger - Turn off (This trigger)
-
-


