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

[General] How to remove other hero in tavern?

Status
Not open for further replies.
Level 4
Joined
Dec 16, 2013
Messages
84
sorry for my english

so how to remove other hero in a tavern after a player picked specific hero,
but all heroes is still there for players who dont picked yet.

like dota, if i picked drow ranger, i can't see any hero from the tavern anymore
and drow get removed to all player.

but others player still can see them, other than hero that already picked
 
Last edited:
Go to Gamplay Constants, and find this data:
attachment.php

In the data, add the custom heroes you made into the list.


After adding the custom heroes, you can make a trigger/add the action looking something like this
  • Melee Initialization
    • 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)
This will then limit every player to have only 1 hero

After that, to make sure every player will use different heroes (meaning there will be no 2 same heroes in the game), you could do something like this
  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Limit training of Unit Type of (Triggering Unit) to 0 for (Picked player)
Doing this will then remove the hero from the tavern for the players that havent picked their hero

This is only a rough example. But perhaps you could learn a thing or two from it.
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    205.7 KB · Views: 253
Status
Not open for further replies.
Top