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

Restriction when choose heroes

Status
Not open for further replies.
Level 3
Joined
May 30, 2012
Messages
29
Hi. i explain it with a example.
My game have 2 heros healers. one is Shandow Hunter and other Is Paladin.
If a team pick this 2 Heros. the team will be really imba. and imbalance.

what I want is not allowed to choose these two heroes. Just one for team.
If team 1 pick Paladin, another player on the same team
cant pick Shandow Hunter.
But if chose shandow hunter first they cant pick paladin.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
just make the hero food cost to 5, then food available to 5, that way a player cant train/get more than 1 unit...
He's talking about a team that cannot use 2 hero types at the same type. Would be a good option for a single player though.
(Or am I missing something? :S)

You could use this trigger:
  • Player Group - Pick every player in yourTeam and do (Actions)
    • Loop - Actions
      • Player - Make Unit Unavailable for training/construction by (Picked player)
If Team 1 picked a paladin, you can make the Shadow Hunter unavailable for all players in Team 1 and vice versa.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
1. Separate hero taverns for each team
2. Make a trigger:
Event - Unit is sold
Condition - (unit type of sold unit is paladin) AND (player group - owner of sold unit is on team 1)
Action - Neutral building - disable (shadow hunter unit type) for team 1's tavern.

Copy the trigger for the other way around, and for the other team.
 
Status
Not open for further replies.
Top