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

Non-summoned Haunted Mines

Status
Not open for further replies.
I've noticed that Haunted Gold Mines that are not summoned (the builder is not in the Undead race) have their gold is set to zero. Is there a way I can manually set the gold of a haunted gold mine to the specific gold value of the gold mine? The thing I can't catch is the gold mine itself to find out how much gold is left in it.
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
2,010
If i got what you mean, you want to set the gold of a haunted gold mine that was built by a builder that isn't in the undead race (summoned) but have the same effect as a haunted gold mine? Then this is an impossible thing, even if you try to track the values of gold mines and the amount of gold with a periodic timer, the constructing unit (haunted gold mine) will not be the same as the original gold mine (normal one). I've spent hours trying to do it but it didn't work out. Only if you upgrade the goldmine it is possible.
 
One way I thought of doing it was to store the gold amount value in relation to the x/y co-ordinate, so every time you build a haunted gold mine, if it's x/y equals to the x/y of the gold mine, set the gold to that amount for the haunted mine. I haven't quite gotten around to trying it though since I haven't used Hashtables in a while.
 
Status
Not open for further replies.
Top