I have this metamorphosis trigger I am using to switch out a hero into another hero.
I can't make the alternate unit acquire new abilities through triggers for some reason. Both the original unit and the alternate unit have the metamorphosis spell.
I would prefer it if the alternate unit can acquire new "learn-able" hero abilities once the original unit transforms into the alternate unit. The original unit however shouldn't have the alternate units hero/unit abilities.
I am trying to add an ability called "Vampire Strength" to the alternate unit but it doesn't show up when the original unit uses Metamorphosis(Transform Evil).
Both hero and unit abilities aren't able to be added to the alternate unit. I am not sure if I need to put these units in variables or not, but if someone could point me in the right direction, I would appreciate it.
I can't make the alternate unit acquire new abilities through triggers for some reason. Both the original unit and the alternate unit have the metamorphosis spell.
I would prefer it if the alternate unit can acquire new "learn-able" hero abilities once the original unit transforms into the alternate unit. The original unit however shouldn't have the alternate units hero/unit abilities.
I am trying to add an ability called "Vampire Strength" to the alternate unit but it doesn't show up when the original unit uses Metamorphosis(Transform Evil).
Both hero and unit abilities aren't able to be added to the alternate unit. I am not sure if I need to put these units in variables or not, but if someone could point me in the right direction, I would appreciate it.
-
Transform Evil
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Transform Evil (Vampire)
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to /w Knight Suit
-
(Unit-type of (Triggering unit)) Equal to /w Heavy Knight Suit
-
(Unit-type of (Triggering unit)) Equal to /w Thief Suit
-
(Unit-type of (Triggering unit)) Equal to /w Priest Suit
-
-
-
-
Then - Actions
-
Unit - Order (Triggering unit) to Stop
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to /w Nothing (Male)
-
-
Then - Actions
-
Custom script: call UnitRemoveAbility( GetTriggerUnit(), 'AHbu')
-
Unit - Add Vampire Strength to (Triggering unit)
-
Unit - Set level of Vampire Strength for (Triggering unit) to Vampire_Strength_Int
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Vampire
-
-
Then - Actions
-
Custom script: call UnitAddAbility( GetTriggerUnit(), 'AHbu')
-
Unit - Add Transform Evil (Vampire) to (Triggering unit)
-
Set Vampire_Strength_Int = (Level of Vampire Strength for (Triggering unit))
-
Unit - Remove Vampire Strength from (Triggering unit)
-
-
Else - Actions
-
-
-