Warcraft III resources & community, 2003–2006 · archived

Two types of tree.

6 posts
#1

Two types of tree.

I've made two kinds of tree. Large tree and small tree.

I've got two units done, big tree cutter and little tree cutter.

I've got two abilities both based on the human/orc tree cutting ability, Large tree cutting ability on the big tree cutter, and Small tree cutting ability on the little tree cutter.


Ok now my problem is, Big tree cutter can cut both types of trees, and the same with little tree cutter.

I need big tree cutter to ONLY be able to cut large trees.
...and I need little tree cutter to ONLY be able to cut small trees.

I've tried tons of crap with the "targets allowed" and "targeted as" settings, but both tree cutters can always cut all kinds of trees. :(

Please help.
#2
Please do help. I've been sitting around waiting for a reply...
#3
Bumping your thread gets it locked. You have to use forums like they're meant to be used. Leave a note, and check back in a while to see if anyone's had a chance to see it. If no one replies, it probably means you're out of luck.
#4
You could have one tree as "decoration" and the other normal. Make the big one's harvest ability target decoration and trees. This might work, but toggling destructibles usually leaves you screwed
#5
sounds pretty impossible to me.. unless you find a way to make one of the trees act like gold mines, acolyte style harvest targeting goldmines only.
#6
Try something like this so that it will stop the big harvestor unit from harvesting a small tree if the tree type is whatever.



Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Harvest (Gold and Lumber)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Casting unit)) Equal to Peasant
(Destructible-type of (Target destructible of ability being cast)) Equal to Summer Tree Wall
Then - Actions
Unit - Order (Casting unit) to Stop
Else - Actions