• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 26
Joined
Nov 18, 2012
Messages
1,905
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