• 🏆 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!

Keeping a Haunted Gold Mine Alive

Status
Not open for further replies.
Level 4
Joined
Feb 23, 2020
Messages
33
Hi all.

I'm struggling with a situation. I have a Haunted Gold Mine that I want to keep alive when it runs out of gold, however I don't know what to do to detect that happening in a trigger, to either keep it alive or replace it with a copy of the unit (just without gold this time).

Anyone have any ideas?
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
try this:

create a dummy building that looks like a haunted goldmine, but is just a building with no significant abilities (maybe keep blight).

when the gold mine dies:

  • save it's location in a variable.
  • remove it from the game.
-create a dummy building on the saved location.
 
Status
Not open for further replies.
Top