StarCraft® II

[Guide] Morph Ability

Posts: 764
This is a guide to morph one building/unit to another building or unit.
This guide will show how to morph a pylon to an Obelisk
Note: Only the Data Editor is used to do this

Step 0 - Button
Open the Buttons tab
Make your button and call it "Upgrade to Obelisk" (You can call it what ever you want, however I will call it "Upgrade to Obelisk" in this tutorial)

Step 1 - Create the Ability
Open the abilities tab
Create an ability, the ability type is morph

Step 2 - Modifying the Ability
Click on the + sign next to "Stats: Flags"
The following things have to be Enabled: (Note: some of these are enabled by default)
1. Stats: Disable abilities
2. Stats: Fast Build
3. Stats: Interruptible
4. Stats: Ignore Collision
5. Stats: Ignore Placement
6. Stats: Ignore Unit Cost
7. Stats: Show progress
8. Stats: Suppress Movement
9. Stats: Wait Until Stopped

Part 2 of Abilities:
2X click on "Ability: Commands"
Click on "Execute"
Change button to "Upgrade to Obelisk"
Press "OK"
2X Click on "Ability: Info"
In the box, right click and click on "add unit"
Make the unit to Obelisk
2X click on Obelisk
You will find a section that says:
Info - Sections - Durations
Change the values to the following:
Abilities Delay 3.0000
Abilities Duration 0.0000
Actor Delay 2.5000
Actor Duration 0.5000
Collision Delay 3.0000
Collision Duration 0.0000
Facing Delay 3.0000
Facing Duration 0.0000
Mover Delay 3.0000
Mover Duration 0.0000
Stats Delay 3.0000
Stats Duration 0.0000

Step 3 - Actors
Go the the Actors tab
Find "Pylon"
2X click on Event:Events
Go to the bottom and right click "Add Event"
Change Msg Type to Ability Morph, and change sub name to "start"
Right click on AbilMorph.*.Start and click on "Add Term"
Again right click on AbilMorph.*.Start and click on "Add Term"
For the first one change the Term Type to "Morph From"
and Unit Link to "Pylon"
For the Second One Change the Term Type to "MorphTo" and Unit Link to "Obelisk"
Change "Action Damage Physics" to "MinimapIcon"
Right Click "Add Event"
Change Msg Type to "AbilMorph" and sub name to "start"
Add Term, change Term type to "MorphTo" and unit link to "Obelisk"
and Change Action Damage Physics to "Destroy"

Part 2 of Actors:
Find "Obelisk"
2X click on Event:Events
Go to the bottom and right click "Add Event"
Change Msg Type to Ability Morph, and change sub name to start
Do this twice: Right click on AbilMorph.*.Start and click on "Add Term"
For the first one change the Term Type to "Morph From"
and Unit Link to "Pylon"
For the Second One Change the Term Type to "MorphTo" and Unit Link to "Obelisk"
Change Action Damage Physics to "Create"

Step 4 - Final Stuff
Go to the Abilities tab, and change the cost of your ability to whatever you want
Add the ability to the pylon

THE END

I hope I didn't miss anything
Edit: Fixed a few grammar mistakes 4/3/2014 Yes I know it is a year and a half later, I still remember the day I typed this up. Time flies fast
Edited by TerranMaster on 4/3/2014 7:54 PM PDT
Reply Quote
Posts: 764
if u want the morphing to happen asap then change all the numbers to 0.0000

Abilities Delay 3.0000
Abilities Duration 0.0000
Actor Delay 2.5000
Actor Duration 0.5000
Collision Delay 3.0000
Collision Duration 0.0000
Facing Delay 3.0000
Facing Duration 0.0000
Mover Delay 3.0000
Mover Duration 0.0000
Stats Delay 3.0000
Stats Duration 0.0000
Reply Quote
Posts: 58
When i make a new ability of type morph it only has 2 options, Ability: Name & UI: Target Message. Those options also aren't in my existing morphing ability. Those options as in the Step two options
Reply Quote
Posts: 764
if u go on view (on the top in data editor) make sure all these are checked: show default values, show advanced values, show field categories, and combine structure values - this should make everything show up
Reply Quote
Posts: 764
Bump
Reply Quote
Developer
Posts: 222
Thanks for putting this together SCMaster.
Reply Quote
Posts: 83
Keep in mind chained morph units have a ability limit of 30 after 30 it breaks.
Reply Quote
Posts: 14
Hi, I followed your guide in order to morph swarm host into swarm host carrion, but the result was two combined swarm hosts (one inside the other). What I need to do to fix that?
Reply Quote
Posts: 581
Hi, I followed your guide in order to morph swarm host into swarm host carrion, but the result was two combined swarm hosts (one inside the other). What I need to do to fix that?

You are experiencing 2 unit actors at the same time. This means that the unit actor of the unit you started to morph with didn't destroy itself properly.

-> Check Actor Events for the Swarm Host.

You need something like this there:
Morph.*.start or Morph.*.Finish
=> MorphFrom SwarmHost
-> Destroy

Start or Finish depends when you need it to destroy: at the start or the end of the morph...
Most likely you need to have it destroy at the start of the morph.
Reply Quote
Posts: 764
Bump :D
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)

Reported!

[Close]