One hero per player?

Wratox1

Member
Reaction score
22
i want to make so you only can have 1 hero per player, this is a hero map and you start with picking a hero from a tavern, but since i do this it doesnt work with this:
Trigger:
  • Player - Limit training of Heroes to 1 for Player 1 (Red)

the other heroes is still available if ive already picked a hero..
how can i make this work?

thanks!
 

Happy

Well-Known Member
Reaction score
71
i think youre using a dummy unit somewhere around the tavern right??

then just remove the dummy...
 

Wratox1

Member
Reaction score
22
hmm, maybe, but i wonder how DotA did it, in DotA you only can choose 1 hero from different taverns, and if you choose one all the heroes disappear from the taverns, even if your allies are there..
 

Happy

Well-Known Member
Reaction score
71
if i remember correctly there a jass way to do that but i really dont know it...maybe someone can tell...

good luck with this
 

DuelPlayer

Member
Reaction score
21
Just make the hero need some lumber to buy.
So when they buy once they cant buy again.
Or else you can kill the hero if they buy again.
Btw, training hero and buying hero is different.
 

BlueMirage

Trust, but doubt.
Reaction score
39
Just go into the gameplay constants and add all of your heroes to "Techtree - Dependency Equivalents - Hero", and you're done.
 

crazyfanatic

New Member
Reaction score
20
What I would do is set all usable heroes into a variable with array and then use a loop to make these heroes unavailable for training/construction.
 

Wratox1

Member
Reaction score
22
What I would do is set all usable heroes into a variable with array and then use a loop to make these heroes unavailable for training/construction.

that seems to be much more work than the solution BlueMirage suggested, besides it already works.. but thanks anyway;)
 

D359

Member
Reaction score
1
how did you get BlueMiragge's method to work,I tryed the same thing and it didn't work,with his method I can train up to 3 identical heroes.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
Please don't bring up old threads. This one is over two years old.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top