• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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: 239
Status
Not open for further replies.
Top