• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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