Example: Blink on stalkers and Zeratul. It's not the same ability in that case technically, but I'm guessing they share an alias perhaps? In any case, does anyone know how this is done by Blizzard? I'd love to recreate the effect in my maps.
In my case it's actually the same exact ability, just on multiple unit types. It'd be great to allow the player to cast it on all the unit types with one button press.
It has a hotkey (Z in this case) but the problem is it'll only cast it for the subgroup that is currently selected. I'll post a video in a few minutes to explain a little better I guess. Maybe it needs to be in the same position on the command card for all the units? I kinda doubt that, but I'll try it.
You can also load in the campaign map that you are describing... I haven't played it that far yet (more MP / Editor =b) but another thing could be is you may need a trigger that activates the other units skill
It's called a linkID or abilityID or something to that effect... It tells the AI that when this is cast, it's the same as casting another spell... so multiple unit types can use simular abilities at the same time (if it's not smart casting, they will all do it at the same time, if it is smart casted, then they will do it in order, starting with the current subgroup)
It looks like it's called "Set ID" and it's under the ability tab in the ability. Sadly I don't think it'll help if it's the same exact ability. Here's the help text Blizzard provides for "Set ID".
"This field is used to link abilities to each other. For example, if a unit has ability A but not ability B, and both abilities have the same Set ID string, then if the unit is issued an order to execute ability B, it will execute ability A."
If I understand that right, I'll need to make separate abilities for each unit type and link them with this Set ID. Oh well.
After experimenting with Set ID, I'm pretty sure there's another piece to the puzzle. The other subgroups still aren't receiving the order to cast the ability. I'll keep trying, but if anyone knows more I'd be very grateful.
After looking at Blizzard examples, I set the abilities to all have the same Link in all the Link fields (Cooldown, Charge, and Marker). They all link to the ID of one of the abilities now (Abil/AfterburnersBattlecruiser). Blizzard set both Stimpack abilities to link to Marine Stimpack (Abil/Stimpack) in all fields.
Still no luck though, so that wasn't the only problem (if it was a problem at all).
Victory! Under ability, there is a flag called "Send to Selection" that sends the order to all selected units (I think). That caused it to work for me. It's possible that it would have worked with just a single ability instead of making an ability for each unit type as well. I'll test that in a bit.
lol nice... love the flame effects... good job on the find... I never messed with creating multiple unit types with duplicate abilities, so I wasn't aware that it was set up that way. From what you posted, I believe that the send to selection would work with a single ability, easily... but the SetID would allow multiple different spells to be triggered at the same time by multiple units within the selection that allow the "Send to selection" flag.