• 🏆 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!

Two types of tree.

Status
Not open for further replies.
Level 3
Joined
Nov 11, 2004
Messages
32
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.
 
Level 4
Joined
Oct 8, 2004
Messages
64
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
 
Status
Not open for further replies.
Top