I have an issue with the Swarm Queen train (like Niadra) trying to "train" units that I've made custom. I've created a custom zergling and a custom train ability. And what I've done so far is change the Train 01 of the train ability to create the custom zerglings.
What happens is that the Swarm Queen lays the egg, but the egg has nothing inside it and will never create the unit.
ability: info - unit is set to 2 of my custom zerglings
ability: morph unit is set to nothing, same as the default swarm queen train. does the ability need it? because the default one doesn't and I just copied from it and changed Train 01 Ability: Info - Unit to 2 of my custom zerglings.
I'll try setting the morph unit to the default cocoon that the swarm queen uses.
EDIT: Changing the ability: morph unit to a cocoon with queue and connected to my custom ability had no effect.
EDIT 2: I've also added a button and command in the zerg cocoon (swarm queen) for making my zergling since I noticed the default one has a second page on its command card with those buttons and ability commands for training the default
EDIT 3: I think I know the issue... I have a requirement on the zergling training where I hide and make the button unusable if a dummy ability (which I'm using for hero upgrades) isn't complete at the unit. So the egg can't create the custom zergling because it doesn't have the dummy ability complete at the unit. Would I be correct in assuming this? And if so, is there another ability which could birth these zerglings like the swarm queen but be upgraded to birth more powerful zerglings?
EDIT 4: I created an effect - instant ability that creates zerglings using a "Create unit" effect that creates my custom zerglings. However... I want to have these spawned units take up supply and it seems spawned units don't do that. Would I have to add a behavior to the units that subtract supply? Is that possible?
Like the summon water elemental ability in warcraft 3.