Unit dies on using custom transform ability

Having this issue today, none of my custom tranformation abilities are working as the unit using it always dies when I press it, have tried to make three diffrent ones, to see if any of them would work, based on Bear Form, Gargoyle one and Chemical Rage, and all of them have the same problem.

The original unit does not have THREE similar abilities, I was testing one by one;
Both units (original and transformed) are normal units, not Heroes;
Have tried to change the desired transformed unit to another one, and that dindt work;
Have tried to use for the transformed unit a normal one and a Special one, havnt work either;
I wasnt using any triggers on any of those abilities;
And I have other similar abilities that work properly based on Chemical Rage, but they are Hero abilities, and not Unit ones.

Pls, someone can give me a help on this?
 

Attachments

  • image_2024-12-11_200825736.png
    image_2024-12-11_200825736.png
    57.9 KB · Views: 15
  • image_2024-12-11_200849249.png
    image_2024-12-11_200849249.png
    35.4 KB · Views: 15

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Make sure this is not being caused by a faulty trigger. Make a copy of the map file and delete all triggers so it is just the standard custom abilities, and check if the unit still dies. If death stops, then some trigger must be killing the unit either by modifying its maximum life, current life, dealing damage to it, e.t.c.

If it still persists then the transformation must somehow be getting the units current or maximum life to be <0.405 and so causing the unit to die due to lack of health.
 
Level 15
Joined
Jul 12, 2018
Messages
560
if you're looking for an easy solution that works, trigger the whole thing and use gargoyle stoneform. Make one background ability based on stoneform for each unit to unit transformation, make a channelling based activating skill for the unit to cast, and trigger that when that gets cast the relevant stoneform gets added and then removed from the unit.

Note that the fields in object editor for stoneform feel backwards, it's the Data- Normal Form Unit that is the unit you're transforming into and Alternate Form Unit that is the unit you're currently meant to be when it gets added to the unit for it to work right.
 
if you're looking for an easy solution that works, trigger the whole thing and use gargoyle stoneform. Make one background ability based on stoneform for each unit to unit transformation, make a channelling based activating skill for the unit to cast, and trigger that when that gets cast the relevant stoneform gets added and then removed from the unit.

Note that the fields in object editor for stoneform feel backwards, it's the Data- Normal Form Unit that is the unit you're transforming into and Alternate Form Unit that is the unit you're currently meant to be when it gets added to the unit for it to work right.
Thank you for replying @hexhound, and for the info on fields for stoneform, gonna try that in the future! xD
 
Make sure this is not being caused by a faulty trigger. Make a copy of the map file and delete all triggers so it is just the standard custom abilities, and check if the unit still dies. If death stops, then some trigger must be killing the unit either by modifying its maximum life, current life, dealing damage to it, e.t.c.

If it still persists then the transformation must somehow be getting the units current or maximum life to be <0.405 and so causing the unit to die due to lack of health.
Thank you for replying @Dr Super Good, Have tried that today, copy-paste the map, deleted all triggers, and none of the abilities have worked, maybe a deeper problem I guess..
 
Have you tried morphing say a Footman into a Knight? I would try using standard units on standard abilities.

Basically, confirm that it's not user error by removing all of your own custom settings.
Update - Problem Solved

Have tried to change the transformed unit to another one, and the original unit still dies on transformation;
Have tried to reset all the customization on the original unit stats, was using Sorceress as a base, and original unit still dies on transformation.

Have tried @hexhound tip on inverting the targets of the ability, changing the original unit to the transformed place and the tranformed unit to the original one place, and that worked, but dindt feel a proper fix.

Lastly I tried @Uncle idea to use the ability on different units (original and transformed), Footman into a Knight as he placed, and that worked, looking more into it, apparently the issue was on the base unit that I was using (Sorceress) for the original unit. After recreating the custom unit on the base of Archer, everything was working properly.

Maybe the problem was on the hoover stuff on the sorceress? No idea...

And thanks for helping @Uncle xD!!
 
Top