- Joined
- Oct 4, 2004
- Messages
- 22
I have a hero that has multiple morphing abilities, and as I know having more than one ability on a hero based off of metamorphosis can cause big problems. So I decided to base one morphing ability off of bear form. I want it to have a timed duration and then change the hero back to normal, just like meta does. The ability is called "Owlbear Form," and here is the trigger I have so far, but I can't seem to get it to work...it never changes the hero back.
The nested If statements are basically there so if the ability is at level 1, there is a 25 second delay before morphing back, if at level 2, there is a 45 second delay, and if at level 3, there is a 65 second delay.
I used "Unit Group - Order (Units of type Owlbear) because I wasn't sure if (Triggering unit) would apply to the morphed "owlbear" unit or not, but it didn't seem to work either way.
Code:
Events-
A unit begins casting an ability
Conditions-
(Ability being cast) Equal to Owlbear Form
owlbear Equal to False
Actions-
Set owlbear = True
If ((Level of Owlbear Form for (Triggering unit)) Equal to 1) then do (Wait 25.00 seconds) else do (If ((Level of Owlbear Form for (Triggering unit)) Equal to 2) then do (Wait 45.00 seconds) else do (Wait 65.00 seconds))
Unit Group - Order (Units of type Owlbear) to Night Elf Druid Of The Claw - Bear Form
Set owlbear = False
The nested If statements are basically there so if the ability is at level 1, there is a 25 second delay before morphing back, if at level 2, there is a 45 second delay, and if at level 3, there is a 65 second delay.
I used "Unit Group - Order (Units of type Owlbear) because I wasn't sure if (Triggering unit) would apply to the morphed "owlbear" unit or not, but it didn't seem to work either way.