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

Heroes

Status
Not open for further replies.
Level 5
Joined
Jul 12, 2013
Messages
118
Hello. I create a map right now on High Elves. So I create custom heroes. But they do not seem to be recognized as such. Let me explain. When I recruit a first hero, it is always possible to recruit the other three. And yet I have to specify the conditions of employment of the unit.
Does anyone has an explanation ?
In advance, thank you.
PS. I'm French. Sorry for the English mistakes.
 
Level 29
Joined
Sep 26, 2009
Messages
2,596
I'm unsure what you want exactly, but here are solution to what I think is relevant:

a) If you have only 1st tier main building (e.g. you have only Human Town Hall; not Keep, nor Castle), but you can create 3 heroes immediately, then find that hero in Object Editor and search for:
- "Techtree - Requirements - Tier 2" => add Tier 2 main building here (e.g. Keep)
- "Techtree - Requirements" - Tier 3 => add Tier 3 main building here then (e.g. Castle)
- "Techtree - Requirements - Tiers Used" => put number "3" here

b) If you can create more than 3 heroes
In the trigger that fires upon map initialization, put this line there:
  • Player - Limit training of Heroes to 3 for Player 1 (Red)
This limits number of heroes that player can train

c) If you can create the same hero more than once
Put this line in your map initialization trigger:
  • Player - Limit training of Your_Hero to 1 for Player 1 (Red)
This limits how many units that player can create.
 
Level 5
Joined
Jul 12, 2013
Messages
118
a) This is what I did for all my heroes. My stage 1 from the main building (city hall in my case) I can recruit four heroes.
b) That it works. Each hero exists in a single copy.
c) That I did too. But it does not work.

I noticed something. When the third one I recruit my hero personalized I can recruit another and then another .... By cons, when the third one I recruit heroes already existing in the game (ex. paladin) so my hero's block schedule.
So I think my heroes are not recognized as such. In the same way, without changing the script, a personalized main building is not recognized as such and is displayed "You Will Be Revealed".

PS. I hope I have not made ​​too many mistakes and that my text is understandable.
 
Level 5
Joined
Jul 12, 2013
Messages
118
It works!
Thank you very much Adiktuz and Malhorne.
PS - French version - Effectivement Malhorne, ça s'appelle bien "constantes de jeu" en français. Merci encore pour ta réponse brillante.
 
Status
Not open for further replies.
Top