| 01-26-2006, 08:38 PM | #1 |
I wanted to create a peasant that can regrow trees. I tried changing attack value, but I cannot change it to negative because it is an integer. I tried using a heal effect, but I can't get that to target trees. (I set it to target trees in the editor, but it tells me "must target tree") when I try to target a tree) I tried using a harvest effect with negative damage, but it won't take integers (like the basic attack) Any ideas? |
| 01-26-2006, 08:57 PM | #2 |
gotta trigger it. (try to do it before ya get told how :)) |
| 01-26-2006, 09:16 PM | #3 |
I need to do it without triggers. Triggers are slow. Trust me I know. |
| 01-26-2006, 09:25 PM | #4 |
there is no way to do it without triggers (AFAIK) Then again, you could look at the repair ability. |
| 01-26-2006, 09:33 PM | #5 |
Same problem. Unselectable.. edit: Well I guess I'll need the tree size to change at the same time so it will probably be a function. :S |
| 01-26-2006, 09:36 PM | #6 |
then triggers are your only option. |
| 01-27-2006, 04:50 AM | #7 | |
Quote:
no, triggers are plenty fast. |
| 01-27-2006, 05:06 AM | #8 |
I don't think you can increase doodad scaling dynamically with triggers :/ |
| 01-27-2006, 06:41 AM | #9 | |
Quote:
U can change the value to negative by forcing it. Hold down shift and double click the value. After that, u are able to insert "-" :) But i don't know ir will crash or not since it is attack value. Never try before, but it will work. |
| 01-27-2006, 07:08 AM | #10 |
What do you mean by regrow trees anyway? Do you want to make trees alive instead of dead, or just restore the amount of lumber a tree carries? |
| 01-28-2006, 05:05 PM | #11 |
Thank you SmileyJeff, that did help a lot. Qwertyui, I am going to try to do both, but one step at a time.. |
| 01-28-2006, 06:41 PM | #12 |
Simple trigger for this using destructible trigger. |
| 01-29-2006, 04:12 AM | #13 |
I'm not quite sure what you're trying to say, Whitehorn. Anyway, I'm getting there. |
| 01-30-2006, 06:08 AM | #14 |
well i'd just make the trees regrow with triggers, but if you want to be stubborn about it, go for it. Let me take a quick look at waugs footmen wars. it has a tree regrowth trigger. OK here goes give the peasant an aoe ability and incorporate this trigger into the effect. Code:
Event: A unit starts the effects of an ability Conditions: ability equal to regrow Actions: Pick every destructible in (area of effect) and do destructible-type of picked destructible equal to tree (whatever tree type your using) then do destructible - resurect picked destructible with max life of picked destructible and show birth animation else do nothing |
