HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tree Eating Sheep

01-18-2005, 11:13 PM#1
ShadowWolf
Since everywhere I have asked has not been able to figure this one out, and I think this has to do with JASS, because I've tried millions of trigger combos to try to get this to work and it fails everytime. Anyways to get to the point; my project is a tower defense, with hay in the middle, and every round is a different kind of sheep that tries to make it to the middle, and which if they do, they will eat your hay, and if they eat all your hay, you lose. They come from all sides of the map to the middle and there's clumps of trees scattered slightly on the map to somewhat create paths to direct sheep through players' areas. I want a round where the sheep eat through the trees, like an attack-move command, where they eat any trees in their path. Like I said, I've tried many triggerings and tweaking things in the object editor, all to come out to the same outcome of it not working. Many are looking forward for this level to be in the next version and I think it would be very nice if I could get it in. Thank you to whoever helps with this. I have attached the map, in case you want to take a look at the setup.
01-19-2005, 10:47 AM#2
Whitehorn
What? Just give sheep an attack which can only affect, say, Ancients. Make your hay ancients, and they only sheep can attack hay... You dont need triggers to do that.
01-19-2005, 12:15 PM#3
The Gearhead
Did you read his whole post? Erm... Yeah, that would work, except for the trees, just make them units which can only be targeted by your sheep.
01-19-2005, 12:45 PM#4
Guest
You can choose Tree instead of Ancient under Targets Allowed. Ancient is just an example. There is no need to make the trees units.
01-19-2005, 09:07 PM#5
ShadowWolf
Quote:
Erm... Yeah, that would work, except for the trees, just make them units which can only be targeted by your sheep.

Uh... that would be like what? 437 units? Major lag, and lots of little tiny dots on teh minimap. I'll use that if I have to, thank you, but is there possibly some other way to do this?

Quote:
You can choose Tree instead of Ancient under Targets Allowed. Ancient is just an example. There is no need to make the trees units.

i alreadt tried, its against wc3's natural programming to have the sheep attack the trees on an attack move command, even if its all they can target.
01-19-2005, 09:34 PM#6
Guest
No, only smart(right click) doesnt work, which is logical.. the trees arent even enemies.

But if you use the attack button it works..
01-19-2005, 09:55 PM#7
ShadowWolf
Quote:
Originally Posted by WorldWatcher
No, only smart(right click) doesnt work, which is logical.. the trees arent even enemies.

But if you use the attack button it works..

An attack move , even with all the unit's settings right, will not work. Selecting the trees individually by trigger doesn't work either, one time I tried it, it didn't work, another time the screen went black and my computer froze.
01-20-2005, 10:47 AM#8
Guest
Attack move indeed doesnt work either - again, the trees arent enemies, why would the sheep attack them? - but attack unit works.

So you can easily trigger an attack move, if that's really what you want.

I attached an example map. For now, the sheep just attacks a random tree on the map when it is issued an attack move.

Instead of just picking a random tree, write a function that puts all trees between the unit and the point it attack moves too in a group, and let the sheep attack them one at a time, the closest the first.
You will have to program a bit of Jass for this, but it will definitely work.
01-20-2005, 10:49 AM#9
Whitehorn
Units, Doodads, the model is the same, it wont add any lag. Plus you can turn off the creep blip image on the mini-map.
01-20-2005, 09:03 PM#10
ShadowWolf
Quote:
Originally Posted by WorldWatcher
Attack move indeed doesnt work either - again, the trees arent enemies, why would the sheep attack them? - but attack unit works.

So you can easily trigger an attack move, if that's really what you want.

I attached an example map. For now, the sheep just attacks a random tree on the map when it is issued an attack move.

Instead of just picking a random tree, write a function that puts all trees between the unit and the point it attack moves too in a group, and let the sheep attack them one at a time, the closest the first.
You will have to program a bit of Jass for this, but it will definitely work.

thank you so much, it works! but the only problem is i dont know any jass >>, but maybe i can get someone to write it for me, or i can think of some trigger combos to do it. i got a couple people @ worldedit who know some JASS.