Hi there, I got this idea (sort of inspired by the what I think is a dota spell that summons trees to entrap a target), when you use this ability you will be surounded by trees (wich didn't work really when I used real trees cause they apeared at wrong locations of the hero), when these trees are created working as a shield the hero will be healed and gain mana for a short period of time. Then the trees will die and treants will spawn.
Anyway here is the current unworking trigger:
Anyone have any idea how to fix this? (By the way I noticed that you can't play a model filed unit animation, atleast not the birth and death animation from a tree when it's a unit).
Oh and btw, the things that doesn't work (just thought I might tell you that^^) is the animations and the creation of the ents (wich at the same time removes the "trees").
Edit: Also, I know that it's only 3 trees that are created atm and they will never be able to suround him since they are so few but it's still in test state since it doesn't work
Help would be real apriciated!
/Greatest wishes: Kazuga
Anyway here is the current unworking trigger:
Code:
Ultimate nature protection
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ultimate nature protection
Actions
Set UltimateNatureProtCaster = (Casting unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Unit - Create 1 Tree for (Owner of UltimateNatureProtCaster) at ((Position of UltimateNatureProtCaster) offset by 100.00 towards 0.00 degrees) facing Default building facing degrees
Unit - Create 1 Tree for (Owner of UltimateNatureProtCaster) at ((Position of UltimateNatureProtCaster) offset by 100.00 towards 45.00 degrees) facing Default building facing degrees
Unit - Create 1 Tree for (Owner of UltimateNatureProtCaster) at ((Position of UltimateNatureProtCaster) offset by 100.00 towards 90.00 degrees) facing Default building facing degrees
Unit Group - Pick every unit in (Units within 512.00 of (Position of UltimateNatureProtCaster) matching (((Picked unit) is in (Units of type Tree)) Equal to True)) and do (Actions)
Loop - Actions
Animation - Play (Picked unit)'s birth animation
Unit - Add Life Regeneration Aura (Neutral) to UltimateNatureProtCaster
Unit - Add Mana Regeneration (Neutral) to UltimateNatureProtCaster
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\NightElf\Tranquility\TranquilityTarget.mdl
Set UltimateNatureProtSpec = (Last created special effect)
Wait ((Real((Level of Ultimate nature protection for UltimateNatureProtCaster))) x 2.00) seconds
Unit Group - Pick every unit in (Units within 512.00 of (Position of UltimateNatureProtCaster) matching (((Picked unit) is in (Units of type Tree)) Equal to True)) and do (Actions)
Loop - Actions
Animation - Play (Picked unit)'s death animation
Wait 1.50 seconds
Unit - Replace (Picked unit) with a Treant using The old unit's relative life and mana
Else - Actions
Oh and btw, the things that doesn't work (just thought I might tell you that^^) is the animations and the creation of the ents (wich at the same time removes the "trees").
Edit: Also, I know that it's only 3 trees that are created atm and they will never be able to suround him since they are so few but it's still in test state since it doesn't work
Help would be real apriciated!
/Greatest wishes: Kazuga