• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Gold Mine Distance Remover v1.01

Gold Mine Distance Remover
This system is for map makers who want to build town hall-like structures near gold mine structures.


For this to work, you need to remove the return gold or return gold and lumber ability from the unit.


You can specify which unit types will be affected by this.
Just a few triggers/short codes




1. Copy the triggers and paste them into your map
2. Remove the return gold/return gold and lumber from your specified unit types


  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Specify Gold Mine Return Ability --------
      • Set GMDR_Spell = Return Gold and Lumber
      • -------- Specify unit-types you want to be affected here --------
      • Set GMDR_BuildingUnitType[1] = Town Hall
      • -------- Specify how many unit types --------
      • Set GMDR_UnitTypeCount = 1
  • Run
    • Events
      • Unit - A unit Finishes construction
    • Conditions
    • Actions
      • For each (Integer A) from 1 to GMDR_UnitTypeCount, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Triggering unit)) Equal to GMDR_BuildingUnitType[(Integer A)]
            • Then - Actions
              • Unit - Add GMDR_Spell to (Triggering unit)
            • Else - Actions


Please give credits if used! :D


Keywords:
Gold, Mine, Distance, Remover, Gold, And, Lumber, Return, Ability, Miness, Money!, Custom Games,
Contents

Gold Mine Distance Remover (Map)

Reviews
17:11, 9th Oct 2012 Magtheridon96: This may be short, but it's nonetheless a useful utility. Well done.

Moderator

M

Moderator

17:11, 9th Oct 2012
Magtheridon96: This may be short, but it's nonetheless a useful utility.
Well done.
 
Level 30
Joined
Jul 31, 2010
Messages
5,246
Why do you need to make a trigger if you have OBJECT EDITOR? if you remove the Return Gold & Lumber Ability just for the distance of the building then what's the point of having a Town Hall?

here's a useful one, go to the object editor, click the town hall you want to reduce distance and find the "Pathing - Pathing Map", there you can adjust the path of every building you want as shown in the screen shot:
11.JPG

it will end up changing the path into this:
12.jpg
 
Last edited:
Why do you need to make a trigger if you have OBJECT EDITOR? if you remove the Return Gold & Lumber Ability just for the distance of the building then what's the point of having a Town Hall?

here's a useful one, go to the object editor, click the town hall you want to reduce distance and find the "Pathing - Pathing Map", there you can adjust the path of every building you want as shown in the screen shot:
View attachment 118396

it will end up changing the path into this:
View attachment 118397
The point of this is for custom maps, not melee maps, and its just another way on how to do it D:
 
Level 7
Joined
Sep 2, 2011
Messages
350
It might cause bugs when the building is too near at the mine. That would be the obvious reason why they have distance to each other.
 
It might cause bugs when the building is too near at the mine. That would be the obvious reason why they have distance to each other.
Yes, I know. But some custom maps, that are not melee, don't want it to be that far, like mine, Jurassic Park Philippines, it needs to be built close to the mine so that you could get gold faster.
 
Why have units move at all if you don't want distance? You could just make it like nightelven or undead mines.
Well because, I want them to still look like harvesting, not worshipping a gold mine, or staying inside the gold mine.

y not just raise the amount of gold u get rather than lowering the distance ?
Because I need this kind, so that you could still build buildings with return gold/return gold and lumber near gold mines, of other players, if you're making a base together. You would understand better of what I'm saying if you try my game.
 
Top