• 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 make campaign hero's be spawned only once in any altar?

Status
Not open for further replies.
Level 2
Joined
Jul 4, 2018
Messages
10
Heh, I am doing this on my own still . But I'd appreciate if some of you guys tell me how do I make any campaign hero be spawned only once. When i tap on the campaign hero to spawn , it can be spawned multiple times . Can someone tell me how to do this ? Please ?
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Detect when a unit enters the map (there's an event for it). If it's a campaign hero, then disable it for training by the owning player at the building that trains that campaign hero. If that doesn't work you could also give it a techtree requirement to train and simply remove that tech after the hero has been trained
 
Level 12
Joined
Nov 3, 2013
Messages
989
  • Player - Limit training of Paladin to 1 for Player 1 (Red)
That's the one used by melee trigger, not sure if
  • Player - Limit training of Heroes to 3 for Player 1 (Red)
is also used somewhere
 
Level 13
Joined
Oct 12, 2016
Messages
769
Yea, he means the heroes in the campaign section of the object data.

The melee limits don't apply to non-melee heroes since they're not in the Hero unit list under Gameplay Constants.
He can either put the hero in question into the Gameplay Constants hero list, or use the above trigger Death Adder mentioned.
 
Level 2
Joined
Jul 4, 2018
Messages
10
Hmm, all replies helped me a lot . But a question to Death Adder . Where must the trigger be, does it also work for campaign heroes..?
 
Status
Not open for further replies.
Top