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

Unique Gold Mine

Status
Not open for further replies.
Level 11
Joined
Jun 26, 2014
Messages
513
How can I make a gold mine building like the Night Elf or Undead ones but the units will still mine like they do normaly? I wan't to make like the starcraft vespene gas buildings where the SCV's can get gas only if they have the building construcred.
 
Hmm. You'll could make a copy of the "hexed GoldMine" Unit and replace its Abilities by the normal "Goldmine-Ability" and remove the "Goldmine Ability" from the normal Goldmine.

Hmm, has the sideeffect that the Goldmine is removed, if the Hexed Goldmine gets destroyed.
And the resource amount is reseted to basic value of the picked gold ability on build.
 

Attachments

  • Goldmine.w3x
    16.5 KB · Views: 59
Level 11
Joined
Jun 26, 2014
Messages
513
Hmm. You'll could make a copy of the "hexed GoldMine" Unit and replace its Abilities by the normal "Goldmine-Ability" and remove the "Goldmine Ability" from the normal Goldmine.

Hmm, has the sideeffect that the Goldmine is removed, if the Hexed Goldmine gets destroyed.
And the resource amount is reseted to basic value of the picked gold ability on build.

But the units can still mine without the haunted mine. I want it so that the workers can mine only when there is a built haunted mine there.
 
Level 15
Joined
Sep 6, 2015
Messages
576
You could put mines which do not have Gold Mine ability on the map, so they cannot be mined, but trigger it so that when a building built on the mine is finished, the trigger replaces the built mine with a normal mine with Gold Mine ability, which has the model of the built-on mine, but which isn't Invulnerable. Then if that mine is destroyed you can trigger it so that another mine replaces it, the mine which was first put in the editor, maybe with less gold. This method can have some limitations, though, but it's the only one I can think of right now.
 
Level 11
Joined
Jun 26, 2014
Messages
513
You could put mines which do not have Gold Mine ability on the map, so they cannot be mined, but trigger it so that when a building built on the mine is finished, the trigger replaces the built mine with a normal mine with Gold Mine ability, which has the model of the built-on mine, but which isn't Invulnerable. Then if that mine is destroyed you can trigger it so that another mine replaces it, the mine which was first put in the editor, maybe with less gold. This method can have some limitations, though, but it's the only one I can think of right now.

Not bad but I need the other races like Human and Orc to still be able to mine from normal mines.
 
Level 4
Joined
Sep 13, 2014
Messages
106
Disable it only when there is a nearby custom race worker and no nearby enemy worker which is mining. I'm pretty sure wc3 will automatically prevent your custom race worker from mining if an enemy worker is mining at the same time.
 
Status
Not open for further replies.
Top