• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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