I need trigger random hero for my map. I mean..I'll give a player time to choose a hero. After few minutes,Tavern will be removed. If player not choose ahero, we'll give him ahero randomly but not same each other. POST ME IF YOU KNOW! BTW,Download my map by title:Lord of the Ring created by PRIBUMI-in epicwar.com THANKS FOR ATTENTION!!!
i dont noe if this is the right answer to your question but.
1. Create Variable Random_Unit - Unit Type Array - none Random_Num - Integer - 0(Defualt)
2.Create a Trigger. Event: Map Intilization Condition: none Action: (Go to step 3) 3. Set ALL YOUR HEROE'S to the Variable in the first Trigger and the end when u set the hero'es, set them to the amount of hero'es there are. E.g set "Random_Unit" to "Paladin". set "Random_Unit" to "Bloodmage". set "Random_num" to "2"
4.Create another Trigger. Event: player types exact massage "-random" Condition: none Action: Create "1" "random number between 1 to "random_num" at position of "Region"
Alrite, dunnoe if this is the answer, didnt really understand but yeah. Hope this will help u in any other maps.