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

How do i make it so you can have 1 hero? {in a Tavern system}

Status
Not open for further replies.
Well.. you could always place that hero for the player, or are you asking how to add something like a custom unit so it is limited like normal heroes?
 
I made a tavern and i didnt want a player taking like half the hero's but my question has alredy been answered :D
 
That trigger, an easier way, comes in Melee Initialization but I'm not sure if it will work if its a custom map.
If helped please +Rep
Don't be a rep piggy, they will rep you if they want to...

By the way...
I'm not sure if that will work when its buying heroes in taverns instantly, if so I think you might have to make a tavern owned by each person and then make a trigger for when they train a hero, their shop disappears or make it when they buy a hero, teleport the hero out of reach of the tavern and kill the hero buyer.
 
I'm not sure if that will work when its buying heroes in taverns instantly, if so I think you might have to make a tavern owned by each person and then make a trigger for when they train a hero, their shop disappears or make it when they buy a hero, teleport the hero out of reach of the tavern and kill the hero buyer.
It will, a player can't buy a hero if he doesn't have a free slot. Evidence stands that when in a melee map a player can't buy a fourth hero.
 
If its a custom map (not melee), and scenario is like a AoS or on ORPG, just limit pop. Give a player just 5 population, and make every hero cost only 5 population. Then each player can have only 1 hero.

But if you want the player can have mercenaries, then deside witch is the max number of mercenaries. I will take 10. Then simply give each player 25 population. Make each hero cost 15 population, and each mercenary, that you can buy later, 1 population.

You can give population by giving each player a circle of power infront of taverns on witch a player buys heroes. And in same time you get a herobuyer.

If your wondering about a custom hero witch can be bought many times, you have to go to advanced options and make cpu see it as a hero not as a unit. I dont remember the path.
 
Also if you want to add a re pick system to your map and you use that way, you'll need to remove the players hero and increase the maximum about of heroes they have. EX) A person's maximum was 1 and they re pick, they couldn't get another hero in less you increase the maximum of heroes they can to 2. best way to do this a integer array.

EDIT: Also it doesn't remove their tavern it just doesn't show any heroes that can be trained for that player.
 
easiest way, like HailFireer said: in the top of the editor go to advanced: gameplay constants, check "use custom gameplay constants" go most of the way down, and add your hero to the list of heroes in the "dependancy equivelants -hero" under techtree
thats how the normal heroes are limited

EDIT: o wait nvm thats not what you were asking. my bad
 
Status
Not open for further replies.
Back
Top