• 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.

Tree Problems

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
1. How can i make it so a tree dies after a certain number of wood is harvested?

2. How can i make a tree give gold instead?
 
This depends on the "Harvest" ability. Go to the abilities tab, search for (Ctrl + F) Harvest and go to the field "Data - Damage dealt to Trees". This ability will define how much damage you deal to the tree and up to the max health of the tree it will fall by a factor of Health/Damage.
You can make a tree give gold, but you need custom trees. Just get a destructible and go to the Stats - Targeted as -> tick something that only a worker unit can touch. Then, a trigger will run that checks when that destructible dies and, when it does, you will attach an integer value on the worker unit, so that when it returns the resources, it will provide the player with the attached via hashtable integer value.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
mmkay +rep to both.

Azazel, 1. you just copied what the first guy said 2. that doesnt help at all!
 
Status
Not open for further replies.
Top