I'm not sure if this is something I should do through triggers or the data editor, so I apologize if this should be in the "triggers" forum, but "Thanks!" in advance for the help.
I have an ability in my game that fires an explosion from the caster and kills all units of a specific unit type in a radius. After the using the ability I want to grant the unit a behavior based on how many units were killed by the search effect.
I also want to add a text tag on impact, so I'm hoping I can do it through a trigger, but I can't find a good way to do it through either at the moment.
Update: I found 1 way to do this, but I figure I'll keep the thread up in case someone else knows a better way
I made a trigger that runs when my ability is used. To grab the number of units hit by the ability I just count the number of units in (unit group: find units) with the specific unit type.
I had to add a short Create Persistent delay to the ability so the units don't die before they are counted, so it's not perfect, but it's working
I'm not sure if this is something I should do through triggers or the data editor, so I apologize if this should be in the "triggers" forum, but "Thanks!" in advance for the help.
I have an ability in my game that fires an explosion from the caster and kills all units of a specific unit type in a radius. After the using the ability I want to grant the unit a behavior based on how many units were killed by the search effect.
I also want to add a text tag on impact, so I'm hoping I can do it through a trigger, but I can't find a good way to do it through either at the moment.
Any help is very much appreciated! Thank you
Update: I found 1 way to do this, but I figure I'll keep the thread up in case someone else knows a better way
I made a trigger that runs when my ability is used. To grab the number of units hit by the ability I just count the number of units in (unit group: find units) with the specific unit type.
I had to add a short Create Persistent delay to the ability so the units don't die before they are counted, so it's not perfect, but it's working
Anyone else have a better method?
Could apply a set effect to the targets killing them and adding a buff stack back to the caster.
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
Good call, DrSuperEvil. What I'm doing now seems to be working, but I'll keep that in mind if I do it again.