| 02-05-2004, 03:56 PM | #1 |
Im working on just another td, and im trying to make a anti block triggeremote_sweat I need to check if one of the computers units cannot reach the designated region, and if so im gonna fix so you loose a life and the unit is removed. So my question is: Is there any way to check if the unit cant reach the region? |
| 02-05-2004, 04:02 PM | #2 |
Just make a path of unbuildable terrain and only have stationary units, like in Blizz's. Otherwise, I imagine you'd have to try and use Jass to check pathing, which would probably lag the game and be hard to make (checking every unit every few seconds...). It could be possible to just say if they ever stop moving and they aren't dead, but again, that could be tricky. |
| 02-05-2004, 04:29 PM | #3 |
Hmm, best thing is to give the guys that have to leach theil destination some means to attack buildings. If you do this, they will attack as many buildings untill they have a path to continue. If you follow plevious advice, you will effectively not have a maze type td, but a pledefined path type TD. |
| 02-05-2004, 04:33 PM | #4 |
Well i dont want to have like in wintermaul that the units start blowing up buildings, and i want a maze td. So what i need is to know if the unit is coming thereemote_sweat I GOT IT!!!!!!: You do like wintermaul, so the units start attacking if there is no path. And then you have a trigger who makes so if a unit owned by computer attacks a player building the player attacked looses a life and the attacking unit is removed and such!!!!! :ggani: |
| 02-05-2004, 04:44 PM | #5 |
Actually, Wintermaul TD looks for the "A unit is issued an order with no target", and then has a trigger that issues the order "Attack-move to point", so, instead of using that order, decrease lives by 1 and remove the unit. :) |
| 02-05-2004, 04:49 PM | #6 |
Well, are you totally sure of that? I just spent 10 min looking through wintermaul's triggers, and it had no "anti - block" trigger. But mayb it was a old versionemote_sweat And another thing, issued an order with "NO TARGET" means like using a ability like roar and such, a order with no target... right? Sounds like you just came up with that=) but anyways, ill try:) |
| 02-05-2004, 04:54 PM | #7 |
Yes, means abilities such as roar and such, but also when a unit cannot reach its destination. I didn't come up with it, I have looked through dozens of TD's, and that's how it's done :) |
| 02-05-2004, 05:12 PM | #8 |
Thanks=) i think it works:ggani: |
