You probably need some modifications, most notably changing the Gold Cost and using a trigger to add requirements for reviving heroes on Tavern.
I'm trying to make it so you can buy your hero back when they die from a tavern, but for whatever reason it does not cost the player anything. I've looked at the gameplay constants and there's nothing set to zero that says "Hero Revive Cost" or anything like that (Except for lumber, but I don't...
www.hiveworkshop.com
Also, latest Reforged patch now had the updated Gold Cost for buying a second/third normal heroes (400 instead of 425), as well as Revive Time Factor thing.
Thanks for the reply! Sadly, that older thread was wrestling with the same problem, but caused by a different issue - one that I managed to solve 10 years ago. From what I can remember and to my understanding, tavern hero revival was always bugged: it used the Hero Awaken constant values instead of the Hero Revive constant values. This made it impossible to separate the Purchase cost from the Revival cost. I created a work-around for the Purchase cost that I didn't want by just refunding the spent resources the moment the hero was bought via triggers.
However, what i'm speaking of here is something that recently changed in patch 1.35, which broke the tavern revival cost entirely as a nasty surprise. My heroes suddenly don't cost anything to revive anymore at a tavern, and it's ruining the difficulty of my Map. I don't know what or why or have the solution yet (short of triggering my own revive system - last resort), but I've run a few tests. Allow me to explain.
First, gameplay constants and object editor hero costs. My constants have looked like this for the longest time, which before 1.35, resulted in a 10 Lumber cost to both buy the hero, and revive it at a tavern. (hero Lumber cost in the object editor was also set to 10 for every related hero)
After the sudden problem withstanding(hero revival costing nothing instead of 10 Lumber like it should), I've since messed A LOT with the constant values and hero cost fields in the object editor (even the gold costs) and it has not fixed or given any of my heroes a revival cost at all. At first I thought maybe it set revive to zero if I didn't reach a certain threshold value, but after setting them to pretty high amounts... no cigar. Still free.
Other things were attempted. If you see something in here that my eyes have somehow missed that may solve this, that'd be awesome.
After that, I decided to test and see if the bug was present
outside of my Map. I created a fresh map, placed a tavern, placed a hero from that tavern, placed some enemies to kill the hero, and changed nothing else. Then played it. Curious and perhaps alarmingly, the tavern hero after being slain
has no revive cost.
Is... is this normal? Is it working like this in melee W3 games right now? Ranked games?
I have other test ideas I can still do. For example it's possible the hero has to be bought properly, not placed in the editor, in order to have a revive cost. Ultimately, the heroes that need to revive in my map have been placed in the editor. I'll keep working on it and posting my findings here regardless if anyone helps or not.
Ravager, you did mention
"using a trigger to add requirements for reviving heroes on Tavern." Is it possible using this to somehow add a revive cost perhaps slightly after map initialization, that sticks/overrides and works? If so, can you point me to the GUI or Jass function that I should use to do this? Thanks.
If anyone else has any ideas or wants to help figure this out or has the solution and wants tell me that i'm a big dummy, please don't hesitate to.