Im working on a mod and as part of this mod I need to have two units merge into a new unit. normally this is pretty simple, just create a merge ability however there is a catch: both units are immobile.
what I was thinking was having an ability where the unit you select consumes the other unit to become a new unit. depending on what unit it consumes it would become a different unit (a total of three possibilities)
if possible I would like to stay away from triggers and do everything in the data editor as there are a total of 6 units each with three units they can merge to but either way, any help is appreciated as this is literally the last thing standing between me and completion.
You could try making an Effect - Target ability that kills the targeted unit and then activates a Switch Effect that morphs the caster based on which unit is consumed.
Using a Switch Effect you can control what unit to morph into depending on what unit is consumed using validators. Next, to actually force the unit to morph you simply attach an Issue Order effect to the appropriate validator in the Switch Effect. The Issue Order effects would be connected to the appropriate morph ability. Make sure that the unit has the Morph abilities in order for the Issue Order to work. For the consume/merge ability you can either use 3 abilities for, one for each unit or be very fancy with the validators and use 1.
Im working on a mod and as part of this mod I need to have two units merge into a new unit. normally this is pretty simple, just create a merge ability however there is a catch: both units are immobile.
what I was thinking was having an ability where the unit you select consumes the other unit to become a new unit. depending on what unit it consumes it would become a different unit (a total of three possibilities)
if possible I would like to stay away from triggers and do everything in the data editor as there are a total of 6 units each with three units they can merge to but either way, any help is appreciated as this is literally the last thing standing between me and completion.
You could try making an Effect - Target ability that kills the targeted unit and then activates a Switch Effect that morphs the caster based on which unit is consumed.
@Spoolofwhool: Go
how do you do that. I know how to do the first part, the effect-target but how do you make the second ability activate?
Using a Switch Effect you can control what unit to morph into depending on what unit is consumed using validators. Next, to actually force the unit to morph you simply attach an Issue Order effect to the appropriate validator in the Switch Effect. The Issue Order effects would be connected to the appropriate morph ability. Make sure that the unit has the Morph abilities in order for the Issue Order to work. For the consume/merge ability you can either use 3 abilities for, one for each unit or be very fancy with the validators and use 1.
Or just use my now old multi unit merge system that has been on the community project thread for ages..
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