I'm doing a mod for sc2 and i have thing high templar with an ability that allow him to morph in an archon ( not merge , morph )
but i want it to unmorph him self back 15 seconds later in a high templar.
I already done the morphing process but I had troubles with the unmorphing, I tried applying a buff when the archon is created that when expired triggers an unmorph effect, and all the related actors ...
Hi I have an idea of how do something like this, for that you need the following:
You need to create two morphing abilities one that gives the high templar the ability to morph into an archon (aka your morph ability) and then you need another that give the archon the ability to morph back into the high templar (aka an unmorph ability). After that create a buff with a duration equal to the time the high templar is expected to remain morphed into the archon and another buff with a short duration like 0.2 seconds and then go to the "Behavior: Modification" field open it and click on the "Behavior" tab on the Modification window and scroll down until you find a field named "State: Flags" and enable "Invulnerable". Then you need to create two issue order effects, in the first set the "Ability" field to the name of your morph ability that turns your archon into a high templar, then create another issue order effect set the "Ability" field "Stop". After that set "Effect: Unit" field and "Target" field of both issue order effect to "Source unit". After that create and apply a buff effect that applies the short duration buff and set the "Effect: Unit" field to source.
After that, take the buff that has the expected duration of the morph ability, and got to the "Expire Effect" field, and add the apply buff effect that applies the short duration buff. Then go to the short duration buff and go to the "Initial Effect" field and add the issue order effect that has "Stop" in the "Ability" Field, then go to the "Periodic Effect" of that buff and add the issue order effect that has the ability field set to the ability of your archon to morph into a high templar, then go to the "Period Count" field and set it to 1 and go to the "Period" and set it to 0.1.
Finally go to your custom archon unit, go to the "Behaviors" field on that unit and add the buff that has the duration that matches the duration that you morph ability is supposed to have.
What this will accomplish is that when your high templar morphes into an archon, the archon will have a buff with a fixed duration that after expiring will apply the short duration buff. When the short duration buff is applied the initial effect of the buff will order the archon to stop anything it's currently doing and the expire effect will order the archon to "unmorph".
If you don't want the "unmorph" ability of the archon to be visible for most of the duration of the morphed state, you could also create a requirement for the "unmorph" ability that checks if a unit has at least one stack of the short duration buff that gives the "unmorph command" in order for the unit to be able use the ability, then in both the "Use" and "Show" sections found within the "Basic: Requirement" field of the custom requirement, set the conditions to do that and enable both the "Use" and "Show" options within the "Basic: Can Be Suppresed" field of the custom requirement. After go to the "unmorph" ability, then go to the "Command Button" field of that ability and add the custom requirement to the "Execute" command. If you do that the "unmorph" ability will only be visible and usable while the archon has the short duration buff that has the issue order effects.
Ok normally I wouldn't do this and is not something that I or anyone else on this site usually does, but I made a demo map with a morph ability that allows a high templar unit to morph into an archon for 12 seconds and then detransforms. I leave a temporal link the file of the demo map here: https://ydray.com/get/t/u17162386178339eShFd4b16ad4db0eli
To acomplish this I had to do the following I created 2 custom buffs, then created the morph ability the "morph to" unit to archon in the "Info" field of the ability and then the unit archon needs to turn back as the templar in the "Info Umorph" field of the ability, then created two apply behaviors to manage the duration of the morph ability and handle ability commands, after that I created the issue order commands with similiar parameters as I described in my former post. After that I added two "morph related events" within each unit actor (the actor of the custom templar and the actor of the custom archon), in order to allow the templar and the archon to change its model when it morphs or unmorphs.
So if you want to use this morph ability in another map you need either copy or replicate completely all custom elements of the demo map, which are 2 custom units with 2 added events to each unit's custom actor, a custom morph ability, 2 custom buffs, 4 custom effects. The duration of the "Unmorph Timer" buff, determines the duration of the morph ability. To understand which elements I modified within the custom units, unit's actors, ability, behaviors and effects, check the demo map and check all the data fields highlighted in green in each custom object.
I leave screenshots highlighting the events added to each unit actor and another screenshot displaying where within the morph ability, I added the apply behavior effect, that adds the buff that handles the duration of the morph ability.
Since this took me quite some time, this is my final reply on this subject, if you have doubts about how the morph ability works you can check this entry: https://sc2mapster.fandom.com/wiki/Data/Abilities/Morph, if you need a better understanding of the editor check https://sc2mapster.fandom.com/wiki/ or any of the available online tutorials and forums that dive into the different aspects of the editor.
I'm doing a mod for sc2 and i have thing high templar with an ability that allow him to morph in an archon ( not merge , morph )
but i want it to unmorph him self back 15 seconds later in a high templar.
I already done the morphing process but I had troubles with the unmorphing, I tried applying a buff when the archon is created that when expired triggers an unmorph effect, and all the related actors ...
it dosnt seems to work
so i need your help guys, how can i do ?
Hi I have an idea of how do something like this, for that you need the following:
You need to create two morphing abilities one that gives the high templar the ability to morph into an archon (aka your morph ability) and then you need another that give the archon the ability to morph back into the high templar (aka an unmorph ability). After that create a buff with a duration equal to the time the high templar is expected to remain morphed into the archon and another buff with a short duration like 0.2 seconds and then go to the "Behavior: Modification" field open it and click on the "Behavior" tab on the Modification window and scroll down until you find a field named "State: Flags" and enable "Invulnerable". Then you need to create two issue order effects, in the first set the "Ability" field to the name of your morph ability that turns your archon into a high templar, then create another issue order effect set the "Ability" field "Stop". After that set "Effect: Unit" field and "Target" field of both issue order effect to "Source unit". After that create and apply a buff effect that applies the short duration buff and set the "Effect: Unit" field to source.
After that, take the buff that has the expected duration of the morph ability, and got to the "Expire Effect" field, and add the apply buff effect that applies the short duration buff. Then go to the short duration buff and go to the "Initial Effect" field and add the issue order effect that has "Stop" in the "Ability" Field, then go to the "Periodic Effect" of that buff and add the issue order effect that has the ability field set to the ability of your archon to morph into a high templar, then go to the "Period Count" field and set it to 1 and go to the "Period" and set it to 0.1.
Finally go to your custom archon unit, go to the "Behaviors" field on that unit and add the buff that has the duration that matches the duration that you morph ability is supposed to have.
What this will accomplish is that when your high templar morphes into an archon, the archon will have a buff with a fixed duration that after expiring will apply the short duration buff. When the short duration buff is applied the initial effect of the buff will order the archon to stop anything it's currently doing and the expire effect will order the archon to "unmorph".
If you don't want the "unmorph" ability of the archon to be visible for most of the duration of the morphed state, you could also create a requirement for the "unmorph" ability that checks if a unit has at least one stack of the short duration buff that gives the "unmorph command" in order for the unit to be able use the ability, then in both the "Use" and "Show" sections found within the "Basic: Requirement" field of the custom requirement, set the conditions to do that and enable both the "Use" and "Show" options within the "Basic: Can Be Suppresed" field of the custom requirement. After go to the "unmorph" ability, then go to the "Command Button" field of that ability and add the custom requirement to the "Execute" command. If you do that the "unmorph" ability will only be visible and usable while the archon has the short duration buff that has the issue order effects.
sorry but Idk why but it dosnt seem to work, I tried quite a few thing but nothing
Maybe im doing it wrong
and if so help me
Ok normally I wouldn't do this and is not something that I or anyone else on this site usually does, but I made a demo map with a morph ability that allows a high templar unit to morph into an archon for 12 seconds and then detransforms. I leave a temporal link the file of the demo map here: https://ydray.com/get/t/u17162386178339eShFd4b16ad4db0eli
To acomplish this I had to do the following I created 2 custom buffs, then created the morph ability the "morph to" unit to archon in the "Info" field of the ability and then the unit archon needs to turn back as the templar in the "Info Umorph" field of the ability, then created two apply behaviors to manage the duration of the morph ability and handle ability commands, after that I created the issue order commands with similiar parameters as I described in my former post. After that I added two "morph related events" within each unit actor (the actor of the custom templar and the actor of the custom archon), in order to allow the templar and the archon to change its model when it morphs or unmorphs.
So if you want to use this morph ability in another map you need either copy or replicate completely all custom elements of the demo map, which are 2 custom units with 2 added events to each unit's custom actor, a custom morph ability, 2 custom buffs, 4 custom effects. The duration of the "Unmorph Timer" buff, determines the duration of the morph ability. To understand which elements I modified within the custom units, unit's actors, ability, behaviors and effects, check the demo map and check all the data fields highlighted in green in each custom object.
I leave screenshots highlighting the events added to each unit actor and another screenshot displaying where within the morph ability, I added the apply behavior effect, that adds the buff that handles the duration of the morph ability.
Since this took me quite some time, this is my final reply on this subject, if you have doubts about how the morph ability works you can check this entry: https://sc2mapster.fandom.com/wiki/Data/Abilities/Morph, if you need a better understanding of the editor check https://sc2mapster.fandom.com/wiki/ or any of the available online tutorials and forums that dive into the different aspects of the editor.
Best of luck.
Its kind of late for me to make it but thanks :)