Help with TD

henbobk

New Member
Reaction score
0
I'm doing a TD with towers in the way for the creeps. How do I make the creeps not attack the towers when they're not blocking the way and creeps attac when they are?
 

SNOOPDOGGDIZ

New Member
Reaction score
2

FhelZone

Have a drink of a nice cold mellowberry juice!
Reaction score
103
Bet they would automatically attack if they cannot move anymore. Really they would.
 

SNOOPDOGGDIZ

New Member
Reaction score
2
this is an example.. try making this, this will prevent tower attacks, and keep them moving

JASS:
Prevent Attack
    Events
        Unit - A unit owned by Player 1 (Red) Is attacked
        Unit - A unit owned by Player 2 (Blue) Is attacked
        Unit - A unit owned by Player 3 (Teal) Is attacked
        Unit - A unit owned by Player 4 (Purple) Is attacked
        Unit - A unit owned by Player 5 (Yellow) Is attacked
        Unit - A unit owned by Player 6 (Orange) Is attacked
        Unit - A unit owned by Player 7 (Green) Is attacked
        Unit - A unit owned by Player 8 (Pink) Is attacked
        Unit - A unit owned by Player 9 (Gray) Is attacked
    Conditions
        (Owner of (Attacking unit)) Equal to Player 12 (Brown)
    Actions
        Wait 1.00 seconds
        Unit - Order (Attacking unit) to Move To (Center of Catredral <gen>)
 

FhelZone

Have a drink of a nice cold mellowberry juice!
Reaction score
103
Well, that is how Skibi's Castle work, the trigger above should do it. Though I bet those who have very slow attack speed would look crazy, though it wont matter having an attackspeed minimum. Afterall its a tower defense

Trigger:
  • Prevent Attack
    • Events
      • Unit - A unit owned by Player 1 (Red) Is attacked
      • Unit - A unit owned by Player 2 (Blue) Is attacked
      • Unit - A unit owned by Player 3 (Teal) Is attacked
      • Unit - A unit owned by Player 4 (Purple) Is attacked
      • Unit - A unit owned by Player 5 (Yellow) Is attacked
      • Unit - A unit owned by Player 6 (Orange) Is attacked
      • Unit - A unit owned by Player 7 (Green) Is attacked
      • Unit - A unit owned by Player 8 (Pink) Is attacked
      • Unit - A unit owned by Player 9 (Gray) Is attacked
    • Conditions
      • (Owner of (Attacking unit)) Equal to Player 12 (Brown)
    • Actions
      • Wait 1.00 seconds
      • Unit - Order (Attacking unit) to Move To (Center of Goal <gen>)


Put codes in wc3 tags ;)
 

SNOOPDOGGDIZ

New Member
Reaction score
2
But if the towers are blocking the path?

oh now i understand. so they hit a wall of towers and they just sit there.. that would be a "problem" with your map. in "wintermaul" they just turn around and try another route, due to there being more then one way to the "finish" line.
 

FhelZone

Have a drink of a nice cold mellowberry juice!
Reaction score
103
The code is somewhat actually wrong. It will make the whole thing do some error, like a unit won't actually move -- The "Attacking Unit" would be changed since there is a 1 second of waiting time. Hmmm.... Requires a better trigger actually. Hmmm... I don't seem to recall a TD that allows complete blockade, Skibi's has a smal path at both right and left corner. You might want to reconsider having a non-fully blockable path.
 

henbobk

New Member
Reaction score
0
You can always put a tower behind the tower like

--------------------------------
a
a
a
a
a
---------------------------------
 

henbobk

New Member
Reaction score
0
sorry got wrong... i don't know how to explain... I have a straight path from a to b and if i'll but a tower in the way for creeps the creeps kills the towers and then stands still. I want them to keep running after they've killed the towers.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top