• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Custom Hero Problem (limit to 1 per type)

Status
Not open for further replies.
Level 15
Joined
Jan 12, 2011
Messages
1,196
Hi guys,
Can anyone help me? I am amking custom heroes in my map, and when i play it, i see that the custom heroes can be repicked more than once, but they disappear luckily after the 3rd hero. I set the gameplay constants and the tier requirements properly, so how should i fix that?
Please help me about it. I would really appreciate that and rep+!:thumbs_up:
 

Attachments

Last edited:
Try this:

  • Trigger
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
Is this what you are looking for?
 
  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Limit training of Barbara Windstrenght to 1 for (Player((Integer A)))
and so on...
Thanks. For now, it worked
 
I think it should also work when creating a custom hero if you keep the "melee game - limit heroes to 1 per hero type" and modify the gameplay constants to include the new custom hero. That's how I did it in my current map (at least, I'm pretty sure it's been working).

Otherwise, mckill2009's trigger is a good option.

Edit: I looked at my own map, and I stand corrected. Follow mckill2009's trigger.
 
Last edited:
Status
Not open for further replies.
Back
Top