HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ancient Uproot Problem

10-04-2005, 01:58 PM#1
Das Jank
Alright so what is supose to happen here is when the Ancient's life goes below 1000, he gets healed to full health, uproots himself and attacks to a certain point. The problem is that when he uproots he does nothing, just stands there and doesn't even attack any enemys around him. Also if he is life with the root ability he just reroots himself in the ground and starts attacking again. Can anyone help?

Code:
Tower Uproot
    Events
        Unit - Corrupted Ancient Protector 0031 <gen>'s life becomes Less than 1000.00
    Conditions
    Actions
        Unit - Set life of (Triggering unit) to 100.00%
        Unit - Add Root (Ancient Protector) to (Triggering unit)
        Unit - Order (Triggering unit) to Night Elf Ancients - Uproot
        Unit - Remove Root (Ancient Protector) from (Triggering unit)
        Unit - Order (Triggering unit) to Attack-Move To (Center of Attack Main Base <gen>)
10-04-2005, 05:32 PM#2
xxxSpikexxx
The problem that I see is that you give the unit the root ability, order it to unroot and instantly remove the ability without waiting. This doesn't leave him enought time to uproot before the ability disappears. same thing about the attack-move command - he gets it while he is uprooting and therefore he can't execute that order. you have to leave him the time he needs to uproot before you can order him to move. at least I think this could be the problem. try adding some waits.