• 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.

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