[Solved] Entangled Gold Mine collapsed

Level 9
Joined
Mar 26, 2020
Messages
205
How do you make a certain building to be briefly invulnerable the moment the gold is depleted and not causing the entangled gold mine (custom building) to not collapsed/destroyed even if it's empty...or is it hard coded?

i also think of an alternate way and saw a thread i was looking for, unfortunately no answers regarding it (regenerate golds in goldmine or buildings with gold mine ability) to prevent from collapsing/destroyed
 
Last edited:
nvm, i used this instead
  • Gold testremover
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Custom Gold Mine) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Resource quantity contained in Custom Gold Mine 0006 <gen>) Less than or equal to 100
            • Then - Actions
              • Unit - Remove Gold Mine from Custom Gold Mine 0006 <gen>
              • Unit - Remove Load (Entangled Gold Mine) from Custom Gold Mine 0006 <gen>
              • Unit - Remove Unload Instant (Entangled Mine) from Custom Gold Mine 0006 <gen>
              • Unit - Remove Entangled Gold Mine Ability / Gold Mine Ability from Custom Gold Mine 0006 <gen>
              • Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: Gold mine is emptied
              • Trigger - Turn off (This trigger)
            • Else - Actions
or
  • Gold testgenerate
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Custom Gold Mine) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Resource quantity contained in Custom Gold Mine 0006 <gen>) Less than or equal to 100
            • Then - Actions
              • Neutral Building - Add 5000 gold to Custom Gold Mine <gen>
              • Game - Display to Player Group - Player 1 (Red) for 10.00 seconds the text: A new gold vein has been discovered
              • Trigger - Turn off (This trigger)
            • Else - Actions
kinda off topic but why do ppl hate seeing a trigger regarding to dota related? i mean it's useful because other might need a reference and not a complete copy of said spell

i have a genshin map for fun (no intention of uploading here coz it's a mess trigger but functional and i made it for personal use also HW has high standard when it comes to map uploads, no parody/troll maps, just fleshed out and finished map but you can check it on epicwar lol) i created hu tao where in the game the lower her hp the more damage she gets and i found a huskar berserker ability, so instead of having magic resist and aspd, i simply changed it to dmg...
 
Last edited:
Back
Top