Hi, I'm trying to create a trigger to increase a hero's attack range at level 6.I decided to do this using the Metamorphosis ability, replacing one unit with another when the skill is learned.I set it up this way, but it's not working:
Since I am working on version 1.27, I am using the 'Metamorphosis trick' to swap the unit type for one with higher range whenever the ability is learned or leveled up. However, the trigger is not working as expected.
I've tried using ChatGPT and Gemini AI for this, but the solutions provided didn't work for my specific version.
-
LongRange
-

Events
-


Unit - A unit Learns an ability
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Critical Strike X for (Triggering unit)) Equal to 1
-
-



Then - Actions
-




Unit - Add Metamorphosis 1 to (Triggering unit)
-




Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-




Unit - Remove Metamorphosis 1 from (Triggering unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Critical Strike X for (Triggering unit)) Equal to 2
-
-





Then - Actions
-






Unit - Add Metamorphosis 2 to (Triggering unit)
-






Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-






Unit - Remove Metamorphosis 2 from (Triggering unit)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Critical Strike X for (Triggering unit)) Equal to 3
-
-







Then - Actions
-








Unit - Add Metamorphosis 3 to (Triggering unit)
-








Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-








Unit - Remove Metamorphosis 3 from (Triggering unit)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Level of Critical Strike X for (Triggering unit)) Equal to 4
-
-









Then - Actions
-










Unit - Add Metamorphosis 4 to (Triggering unit)
-










Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-










Unit - Remove Metamorphosis 4 from (Triggering unit)
-
-









Else - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Level of Critical Strike X for (Triggering unit)) Equal to 5
-
-











Then - Actions
-












Unit - Add Metamorphosis 5 to (Triggering unit)
-












Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-












Unit - Remove Metamorphosis 5 from (Triggering unit)
-
-











Else - Actions
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














(Level of Critical Strike X for (Triggering unit)) Equal to 6
-
-













Then - Actions
-














Unit - Add Metamorphosis 6 to (Triggering unit)
-














Unit - Order (Triggering unit) to Night Elf Demon Hunter - Metamorphosis.
-














Unit - Remove Metamorphosis 6 from (Triggering unit)
-
-













Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
-
Since I am working on version 1.27, I am using the 'Metamorphosis trick' to swap the unit type for one with higher range whenever the ability is learned or leveled up. However, the trigger is not working as expected.
I've tried using ChatGPT and Gemini AI for this, but the solutions provided didn't work for my specific version.
Last edited:





