Okay. This problem is 5 years old, and yet, some have solved it BUT ARE RELUCTANT TO ANSWER (not naming anyone, lol).
I have been able to make it so that when you use the "colony infestation" ability on a Terran structure, it applies the colony infestation behavior, as well as the model... however, the command card stays the same. I can't train infested units, only SCVs. This means that upon being infested, the structure did not "morph" to the infestable infested Command Center, which does have the correct command card.
Basically.... How can I make it so that a behavior (colony infestation) activates an ability morph (CC >>> Infested CC)? Preferably without triggers?
Thank you for any future replies, and uh, can we please solve this problem once and for all??
(P.S, yes, I have already done research on my topic before posting this. in fact, it's been 1 hour, 13 minutes of pure surfing and still, nothing).
Alternatively, you can add infested units to train ability, add buttons for training infested units, but have infested/normal units use additional requirement/modify existing requirement. Personally I couldn't get the morph ability to work correctly for me and had loads of actor related problems with it, so this is my work-around. Example:
Marauder train requirement:
Use: - Unit Compare Count / Tech Lab / Completed at unit
As soon as the structure is infested, Marauder's button disappears. You can have another button underneath it with simple "Show: Compare Behavior Count / Colony Infestation >=1" and Marauder button will be replaced with the button of your infested unit.
Benefit of this way is that you don't have to duplicate buildings or anything, you just use requirements to show/hide appropriate buttons.
Another method of doing it would be to have the behaviour apply an Issue Order effect to the CC linked to the Morph ability which you have also added to the CC. As DSE says though, there are many ways of solving it.
Rollback Post to RevisionRollBack
Assistant Team Leader of "Generic Code" and User of the All-Mighty Data Editor.
Try Mercs of the Dark System, a RTS/MOBA hybrid.