• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How to limit training of new custom Heroes to 1 per player?

Not open for further replies.
Level 12
Feb 22, 2010
How do players get heroes in your map?(Via tavern or altar of heroes, or some other way)

Try this first.
  • Hero Limit
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Limit training of Heroes to 1 for (Picked player)
Level 21
Mar 27, 2012
There's a list in gameplay constants that's used to determine what units are supposed to be considered heroes. Its name is "Dependency Equivalents - Hero".
In addition to that you can make an initialization trigger that sets the limit of heroes to 1.
Not open for further replies.