• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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

Status
Not open for further replies.
Level 12
Joined
Feb 22, 2010
Messages
1,115
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
Joined
Mar 27, 2012
Messages
3,232
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.
Top