How do i limit max heroes?!


New Member
Reaction score
Im confused with it. im new to world editor. all i need is that and my map is no longer a beta please help me ive tried many ways. i just want to make it to where after u train 2 heroes you can train anymore please show me what to do. Ive looked at other posts like mine but no help. i just want a step by step thing to do made for a newbie to it. :confused:
Download a dota template. Here is one I found. There is a trigger that limits you to only be able to pick 1 hero.
Don't make the same thread twice. The admins are serious about their rules. Hope I helped you...
Hey. I found how to fix your problem, go into trigger editor (F4) create a new trigger and do that :

Event : Map initialisation
Condition : /
Actions : Player - Limit training of Heroes to 2 for Player 1 (Red)

If you want that for multiple players, just use a loop ^^
i did that but it didnt work i did. game initial then i did play group then i did loop then i did limit to 1 for all players.
Also you could set the requirements for a third hero (in the object editor) to something that doesnt exist, like a farm called "YOU TO GTFO MY KITCHEN" so that after two hero's it would say
That doesn't make any sense... You posted the second thread 1 minute after the first one... This is a forum, not an instant messaging conversation.
what the heck i did? i didnt kno... sorry im new to it. i just joined to ask about this. is there any way i can delete it?
No, only a moderator or administrator can do it. Don't worry about for now. Just try not to do it anymore. At any rate, we're way off topic.
normally i would do somthing like make a farm and name it no more heroes but i have more then 1 hero so it wont work.
Yes, infact the simplest thing you could do is do it with food. At the beginning set each player's food cap to 2 and in the object editor find "food cost" and set it to 1. This would only work though if none of your normal units use food. Also make sure no units produce food otherwise the limit would get spoiled. You can also change the message that appears when trying to produce more than 2 heroes. Go to Advanced > Game Interface and find Text - Message "Build more farms" , click "Use Custom Game Interface" and change it to something like "Can't Produce more than two Heroes". Also go to "Sound - No Food" and change it to Error Message.
i thought of that already but im thinking of changing it. i may actaullly do that cause i hate triggers.
i did it the lazy way and did the popullation thing cause i hate triggers with the passion. thank you all of your help.
General chit-chat
Help Users
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
  • The Helper The Helper: is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example:
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser
  • The Helper The Helper:
    Happy Thursday!

      The Helper Discord

      Staff online

      Members online


      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.