Single Draft Help

streng

Member
Reaction score
1
Hi guys. I need help wit Single draft triger(chose random 3 hero one of each attribute-like dota) in hero arena map. Hero selection is based on Hero tavern. I have absolutely no idea how to do. I think, I must asign heroes with array (different by primary attribute). Yes I did. But what now next ? I trying do triger to remove all heros from tavern , but dont work. Any ideas how to do it ?
 

Juggernaut

I don't know what to change it to
Reaction score
33
Create 3 variables of type UNIT.
Named: Strength, Agility, Intelligence.
And set each strength hero with arrays in the strength variable.
Agility heroes in the agility variables and so on.
Then in a map initialization trigger set all Str/Agi/Int heroes to their respective variables.
e.g. Strength[1] = Hero1, Strength[2] = Hero2 etc..

Then when the real trigger comes you select
Strength[random number between 1 and *total number of str heroes*]
do the same for agility and intelligence, and voila you have 1 of each hero.
 

streng

Member
Reaction score
1
Ok. This part i understand. But i dont know, how import selected heroes in my tavern?
What I need: I have 6 Tavern with 10 custom heroes. I need remove all heroes from tavern forst , after need triger (in your post) wich select 3 random hero based on ability. Next i need import selected heroes to one tavern. And need do it for all players.
 

Juggernaut

I don't know what to change it to
Reaction score
33
I don't know if there is a command to add units to a tavern if there is use that, and if not you could use abilities. Just create X number of abilities. (x = number of heroes)
And add the corresponding abilities to the circle of power.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top