• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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

Status
Not open for further replies.
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)
 
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.
 
Status
Not open for further replies.
Back
Top