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

Tavern hero revive suddenly costs nothing.

Status
Not open for further replies.
Level 2
Joined
May 31, 2013
Messages
5
I've been working on a map for roughly 10 years in my free time, and long ago I set some revive costs up for my tavern heroes. After the W3 patch from 3 days ago, suddenly, my tavern heroes have no cost to revive them. I cannot seem to get the cost to come back after messing with values in constants and on the related hero editor fields.
My question is: did something change? Is this something I need to fix myself or is it a new bug that i need to wait for to be fixed? Anyone have any idea what's happened?
 
Last edited:
Level 34
Joined
May 14, 2021
Messages
1,604
You probably need some modifications, most notably changing the Gold Cost and using a trigger to add requirements for reviving heroes on Tavern.

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.
 
Level 2
Joined
May 31, 2013
Messages
5
You probably need some modifications, most notably changing the Gold Cost and using a trigger to add requirements for reviving heroes on Tavern.

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)
bug2.PNG

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.
bug1.PNG

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.
bug3.png

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