Hello!
I've spent several hours searching for the forums, but none of the posts seems to help my problem fully.
I'm working on a druid hero which can shapeshift with his ulti (custom robo goblin) to bear form. Models & transformation works fine.
What I want is next:
While in druid form hero has set of his own abilities (let's say blizzard, summon water elemental & brilliance aura for example) which he can level.
1) When he shapeshifts to his bear form I want him to have a NEW set of abilities (fan of knives, blink, shadow strike) that correspond with normal form abilities (example, if blizzard is lvl 2, I want fan of knives to be lvl 2 also, if briliance aura is not learned, I don't want bear to have shadow strike).
2) While in bear form he can normally lvl up his BEAR abilities, and when he shapeshifts back to his normal form, his normal form abilities (blizzard etc..) will correspond his bear abilities (If he lvls up shadow strike in bear form, I want him to have briliance aura when he convers back to normal form).
Using my poor skills of coding I managed to get part of the 1) part done myself (except that when he's in bear form that "Red +" button which u use to lvl abilities dissapears)
Bbut the biggest problem occurs when i shapeshift back into normal form. He loses all of his normal form abilities and doesn't retain ability points (Red + button is back)
EDIT: Here's a map file with triggers / units so you can see for yourself. You're welcome to edit to to test a solutions
I've spent several hours searching for the forums, but none of the posts seems to help my problem fully.
I'm working on a druid hero which can shapeshift with his ulti (custom robo goblin) to bear form. Models & transformation works fine.
What I want is next:
While in druid form hero has set of his own abilities (let's say blizzard, summon water elemental & brilliance aura for example) which he can level.
1) When he shapeshifts to his bear form I want him to have a NEW set of abilities (fan of knives, blink, shadow strike) that correspond with normal form abilities (example, if blizzard is lvl 2, I want fan of knives to be lvl 2 also, if briliance aura is not learned, I don't want bear to have shadow strike).
2) While in bear form he can normally lvl up his BEAR abilities, and when he shapeshifts back to his normal form, his normal form abilities (blizzard etc..) will correspond his bear abilities (If he lvls up shadow strike in bear form, I want him to have briliance aura when he convers back to normal form).
Using my poor skills of coding I managed to get part of the 1) part done myself (except that when he's in bear form that "Red +" button which u use to lvl abilities dissapears)
Bbut the biggest problem occurs when i shapeshift back into normal form. He loses all of his normal form abilities and doesn't retain ability points (Red + button is back)
-
t1
-
Events
- Map initialization
- Conditions
-
Actions
- Set Bear_Form[1] = Fan of Knives
- Set Bear_Form[2] = Blink
- Set Bear_Form[3] = Shadow Strike
- Set Druid_Form[1] = Blizzard
- Set Druid_Form[2] = Summon Water Elemental
- Set Druid_Form[3] = Brilliance Aura
-
Events
-
t2
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to BEAR FORM Druid ultimate
-
Actions
- Wait 2.00 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Rageclaw (Bear)
-
Then - Actions
-
For each (Integer DruidLoop) from 1 to 3, do (Actions)
-
Loop - Actions
- Unit - Add Bear_Form[DruidLoop] to (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Druid_Form[DruidLoop] for (Triggering unit)) Equal to 0
-
Then - Actions
- Unit - Remove Bear_Form[DruidLoop] from (Triggering unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Druid_Form[DruidLoop] for (Triggering unit)) Equal to 1
-
Then - Actions
- Unit - Set level of Bear_Form[DruidLoop] for (Triggering unit) to 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Druid_Form[DruidLoop] for (Triggering unit)) Equal to 2
-
Then - Actions
- Unit - Set level of Bear_Form[DruidLoop] for (Triggering unit) to 2
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Druid_Form[DruidLoop] for (Triggering unit)) Equal to 3
-
Then - Actions
- Unit - Set level of Bear_Form[DruidLoop] for (Triggering unit) to 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player - Disable Druid_Form[DruidLoop] for (Triggering player)
- Player - Enable Bear_Form[DruidLoop] for (Triggering player)
-
Loop - Actions
-
For each (Integer DruidLoop) from 1 to 3, do (Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Triggering unit)) Equal to Rageclaw (Elf)
-
Then - Actions
-
For each (Integer DruidLoop) from 1 to 3, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Bear_Form[DruidLoop] for (Triggering unit)) Equal to 0
-
Then - Actions
- Unit - Remove Druid_Form[DruidLoop] from (Triggering unit)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Bear_Form[DruidLoop] for (Triggering unit)) Equal to 1
-
Then - Actions
- Unit - Set level of Druid_Form[DruidLoop] for (Triggering unit) to 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Bear_Form[DruidLoop] for (Triggering unit)) Equal to 2
-
Then - Actions
- Unit - Set level of Druid_Form[DruidLoop] for (Triggering unit) to 2
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Bear_Form[DruidLoop] for (Triggering unit)) Equal to 3
-
Then - Actions
- Unit - Set level of Druid_Form[DruidLoop] for (Triggering unit) to 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player - Enable Druid_Form[DruidLoop] for (Triggering player)
- Player - Disable Bear_Form[DruidLoop] for (Triggering player)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer DruidLoop) from 1 to 3, do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Events
EDIT: Here's a map file with triggers / units so you can see for yourself. You're welcome to edit to to test a solutions
Attachments
Last edited: