I'm trying to make a passive ability for a Firebat where an ability is applied, and if the target unit dies while the behavior is active it will damage all surrounding enemies. Seemed fairly simple to do, but it simply isn't working.
The Firebat's weapon works through a series of search areas run by a single persistent, and then damaging the target unit and the units about. I made a behavior get applied to the units in the SA and the target unit with a damage response chance of 1, fatal flag enabled, and the handled effect being damage within an area. However, when I test this, the damaging effect does not occur on the dying unit, it occurs on the attacking unit. Yes, the damage response location is defender, and the damage effect is entirely default for testing purposes.
How do I make this damage response occur on the dying unit?
Yes it is. Below I attached screenshots which show (in order): Prometheus company and the planetary fortress getting the effect (actor event triggered by effect.start), the bunker being attacked gaining the behaviors (ignore the tooltip, it's from the parent), the behavior and then the damage effect in the editor.
The actor is definitely functioning properly, the attacker gets the damage effect after the unit is killed. I tested this by setting damage to 1000 and the attacking unit would die (no area damage involved).
Have you tried swapping the source and target units in the damage effect? There will be a field you can specify what unit deals the damage and another which specifies what unit takes the damage (if any). Maybe the unit reference they are using is not what you expect it to be, some times it can be hard to predict which unit it will refer to.
I'm trying to make a passive ability for a Firebat where an ability is applied, and if the target unit dies while the behavior is active it will damage all surrounding enemies. Seemed fairly simple to do, but it simply isn't working.
The Firebat's weapon works through a series of search areas run by a single persistent, and then damaging the target unit and the units about. I made a behavior get applied to the units in the SA and the target unit with a damage response chance of 1, fatal flag enabled, and the handled effect being damage within an area. However, when I test this, the damaging effect does not occur on the dying unit, it occurs on the attacking unit. Yes, the damage response location is defender, and the damage effect is entirely default for testing purposes.
How do I make this damage response occur on the dying unit?
SCII Profile: http://us.battle.net/sc2/en/profile/2744634/1/Drusus/
"The main reason Santa is so jolly is because he knows where all the bad girls live." - George Carlin
What are the settings on the Damage effect? Probably defaulted to caster when source is needed.
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
It is source
SCII Profile: http://us.battle.net/sc2/en/profile/2744634/1/Drusus/
"The main reason Santa is so jolly is because he knows where all the bad girls live." - George Carlin
The buff is definitely being applied to the right units?
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
Yes it is. Below I attached screenshots which show (in order): Prometheus company and the planetary fortress getting the effect (actor event triggered by effect.start), the bunker being attacked gaining the behaviors (ignore the tooltip, it's from the parent), the behavior and then the damage effect in the editor.
SCII Profile: http://us.battle.net/sc2/en/profile/2744634/1/Drusus/
"The main reason Santa is so jolly is because he knows where all the bad girls live." - George Carlin
So you actor is definitely being created at target and not caster? Sure it is just not the actor spawning on the wrong unit?
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
The actor is definitely functioning properly, the attacker gets the damage effect after the unit is killed. I tested this by setting damage to 1000 and the attacking unit would die (no area damage involved).
SCII Profile: http://us.battle.net/sc2/en/profile/2744634/1/Drusus/
"The main reason Santa is so jolly is because he knows where all the bad girls live." - George Carlin
Have you tried swapping the source and target units in the damage effect? There will be a field you can specify what unit deals the damage and another which specifies what unit takes the damage (if any). Maybe the unit reference they are using is not what you expect it to be, some times it can be hard to predict which unit it will refer to.
Worst case set it to the target of the effect that applied the buff in the first place.
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
Can I send one of you the map so that you can take a look at it? It's still not working... :(
SCII Profile: http://us.battle.net/sc2/en/profile/2744634/1/Drusus/
"The main reason Santa is so jolly is because he knows where all the bad girls live." - George Carlin
Assuming this is for Special Forces Elite would this still be in the drop box? Otherwise PM either of us a link and we will look into it.