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

[General] how can i make Acolites to DRAIN WOOD?

Status
Not open for further replies.
Level 2
Joined
Jun 4, 2011
Messages
27
i want to make acolites to get wood draining it from the tree with dark magic...

like this:

attachment.php



without destroying the tree, like wishp do...

theres any way to do it?

Thanks for reading, thanks for you time.
 

Attachments

  • Acodeforester.JPG
    Acodeforester.JPG
    9.8 KB · Views: 262
Level 1
Joined
Jun 21, 2009
Messages
282
I think if you give the Acolites the harvest lumber ability from the peasant and set the animation for it to the draining and to set it so it doesn't kill the tree, that might work.
 
Level 1
Joined
Jun 21, 2009
Messages
282
You can't really use the harvesting in triggers, so that kinnda makes it hard, what you can do is to use the human harvesting, and then make the tree's hp 9999999999, and give the acoylite the dark magic animation.

The only problem is that I don't know what the command for the dark magic is, and once you get the wood you'll need to return it to yourself somehow using a Dummy Unit through triggers.
 
Level 2
Joined
Jun 4, 2011
Messages
27
its because the animation for the human lumber harvesting is attack... you should change it to whatever the animaiton name of the acolyte's harvesting is...
how do you choce the anim?

and why human harvest? i dont want to destroy trees and wishp harvest isnt better for it?
 
Level 1
Joined
Jun 21, 2009
Messages
282
The thing is, if you use the wisp harvesting, your unit will instantly be in the position of the tree, and for other harvestings, you'll have to switch the animation to the dark magic animation which i've tryed and couldn't find the animation, but then after that you'll have to make a dummy unit that spawns at the position of your harvesting unit in order to recieve the lumber, make the dummy unit invisable with locust and invulerable.

Something like that, the dummy part is going to require triggering that I don't know since harvest doesn't seem to work for triggering.
 
Level 2
Joined
Jun 4, 2011
Messages
27
errr... i have others unit that must "kill"/cut down trees...
so i cant use 99999999 hp or hp regen, because of peon will never cut down a tree...

when i use wishp harvesting the acolite instantly teleport at tree position...

what can i do?

and algo animation name: "stand work gold" dont work
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
They shouldnt teleport into the tree, it doesnt happen to me. You could make the acolytes deal no damage and give them a standard peasant work with a different animation, and then trigger resources.
 
Level 12
Joined
Jun 10, 2008
Messages
1,043
Sorry, dont have the editor installed right now. Just make the aclyte deal 0-0 or 1-1 damage and give them a custom Peasant Harvest Wood ability. Change the ability's animation to whatever one you want under Art - Animation. Then just make a trigger that counts how many acolytes you have on wood and gives you +x lumber every x seconds per acolyte. It shouldn't be that hard to do
 
Level 6
Joined
Feb 6, 2008
Messages
166
The only flaw with the Peasant Harvest Wood fix is that the tree would still shake every time it was gathered from.

The cooldown and lumber can easily be made MUI using a hashtable. You'd need to give individual cooldowns to each of your Acolytes, otherwise people could abuse an "Every (cooldown) seconds" based trigger. You'd be better off using something like:

Event:
- Every 0.25 seconds
Action:
- Set a temporary real variable equal to the cooldown handle of the Acolyte handle in the hash
- If temporary real variable is greater than 0.00
- - Then save (temporary real variable - 0.25) as the cooldown handle of the Acolyte handle in the hash
- - Else give lumber to the player, save (cooldown) as the cooldown handle of the Acolyte handle in the hash, and display the green number.

In most cases, this trigger should be initially off, and it should use another trigger to turn it on the first time an Acolyte begins to use whatever dummy ability you adapt for harvesting.

I'm very interested in seeing if someone can come up with the "perfect" fix, as this is a skill I tried making months ago. I ended up designing a new skill altogether to make my life easier.
 
Last edited:
Status
Not open for further replies.
Top