EXPLANATION: I am helping make a map right now where I have an egg spawned by a building and I want it to hatch into kerrigan.
STATEMENT OF PROBLEM: The egg hatches into kerrigan, with all her abilities and stuff, but still looks like and egg. Also, it kills itself a few seconds after hatching. The hatch ability is based on the hatch ability of the infested terran. The map is uploaded.
Sounds like your actors are lacking the events involved in the creation/destruction when morph is complete and you forogt to remove the timed life applied to the unit.
After looking at the map you forgot to remove the Infested Swarm (Timed Life) effect from the morph and your actors are lacking any morph related events, I advise you look at the corrupter/broodlord for inspiration.
First of all, please improve your demo maps. Add an indicator to anything you want looked at (editor prefix/suffix of "#+" is always helpful). Deleting melee triggers and adding comments on the intended function of things is also helpful for more difficult problems.
Now to your problem. The timed life is applied by the MorphToKerrigan ability of the egg, under Info+, in the "effects" list. (the second scrollable list in the morph details window). Set all entries to "nothing". (there should be only one, called "swarm - timed life" or something)
Your visual problems are caused by the Actors of the units. To simply fix your problem, do this:
1. On the Kerrigan Egg/Cocoon actor, open up Events+ and add:
AbilMorph.*.Finish
=>MorphFrom KerriganEgg (the cocoon unit's name)
Destroy
2. On the Kerrigan (char) actor (the one used for your Kerrigan unit), again open up Events+ and add:
AbilMorph.*.Finish
=>MorphFrom KerriganEgg (same unit as above)
=>MorphTo KerriganChar (your Kerrigan unit)
Create
This will cause the cocoon to instantly turn into Kerrigan upon completing the morph, with no animations whatsoever. Animations can be added via the actor Events+ fields, in this case use the AbilMorph event as a trigger (and adjust Start/Finish/Cancel/whatever). "=>" denotes "arguments", which basically are actor-event-specific validator systems. I added them to ensure that the Kerrigan actor doesn't duplicate itself whenever she burrows, and of course to make sure the events only trigger when morphing the unit an actor is responsible for (standard setup being "=>MorphFrom ->Destroy" and "MorphTo ->Create")
You can also set either the "egg timed life" or the "morph time" to 0 and increase the other one, that will make it easier for the player to discern the total morph time. Or you can use the transition to start an animation (e.g. Cocoon starts to "burst" when the timed life explires, and Kerrigan does her "rising" animation during the morph, just like in the campaign)
Well, this problem was fixed earlier by fiddling round. However, the egg now spawns exactly 10 kerrigans. This is made from the Zerg Structure Broodling Spawn behavior if that helps.
EXPLANATION: I am helping make a map right now where I have an egg spawned by a building and I want it to hatch into kerrigan.
STATEMENT OF PROBLEM: The egg hatches into kerrigan, with all her abilities and stuff, but still looks like and egg. Also, it kills itself a few seconds after hatching. The hatch ability is based on the hatch ability of the infested terran. The map is uploaded.
Sounds like your actors are lacking the events involved in the creation/destruction when morph is complete and you forogt to remove the timed life applied to the unit.
After looking at the map you forgot to remove the Infested Swarm (Timed Life) effect from the morph and your actors are lacking any morph related events, I advise you look at the corrupter/broodlord for inspiration.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
First of all, please improve your demo maps. Add an indicator to anything you want looked at (editor prefix/suffix of "#+" is always helpful). Deleting melee triggers and adding comments on the intended function of things is also helpful for more difficult problems.
Now to your problem. The timed life is applied by the MorphToKerrigan ability of the egg, under Info+, in the "effects" list. (the second scrollable list in the morph details window). Set all entries to "nothing". (there should be only one, called "swarm - timed life" or something)
Your visual problems are caused by the Actors of the units. To simply fix your problem, do this:
1. On the Kerrigan Egg/Cocoon actor, open up Events+ and add:
2. On the Kerrigan (char) actor (the one used for your Kerrigan unit), again open up Events+ and add:
This will cause the cocoon to instantly turn into Kerrigan upon completing the morph, with no animations whatsoever. Animations can be added via the actor Events+ fields, in this case use the AbilMorph event as a trigger (and adjust Start/Finish/Cancel/whatever). "=>" denotes "arguments", which basically are actor-event-specific validator systems. I added them to ensure that the Kerrigan actor doesn't duplicate itself whenever she burrows, and of course to make sure the events only trigger when morphing the unit an actor is responsible for (standard setup being "=>MorphFrom ->Destroy" and "MorphTo ->Create")
You can also set either the "egg timed life" or the "morph time" to 0 and increase the other one, that will make it easier for the player to discern the total morph time. Or you can use the transition to start an animation (e.g. Cocoon starts to "burst" when the timed life explires, and Kerrigan does her "rising" animation during the morph, just like in the campaign)
You could have just used a Train ability like the zergling to baneling uses.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg