Ive got an ability that makes units attack one another. It works well, except for when they kill eachother, they dont continue to attack themselves for the remainder of the buff duration. How I am handling this is to have a damage response to fatal effect reduce dmg fraction to 0. This is not working... Here is my dmg response in xml;
here is the suicide2 effect;
<CEffectDamage id="Suicide2">
<Flags index="Kill" value="1"/>
<Flags index="NoKillCredit" value="1"/>
</CEffectDamage>
So the main buff that starts all this has an initial effect that order units to attack one another, the expire effect is to order the units to stop attacking one another. so this dmg response is in the same main buff and the dmg response isnt working for me. I know the suicide will kill the unit and i want it to just not kill it, but at this point im just trying to debug / get it to fire.
I have used dmg response many times and it works easy enough usually.... This time i can get it to fire. I've tried switching attacker -> defender etc... chance is 1 (100%).
it is currently set up to use 'handled' and 'exauster' but ive tried each by themself as well. any1 know what may be the/an issue?
Ive got an ability that makes units attack one another. It works well, except for when they kill eachother, they dont continue to attack themselves for the remainder of the buff duration. How I am handling this is to have a damage response to fatal effect reduce dmg fraction to 0. This is not working... Here is my dmg response in xml;
<DamageResponse> <Chance value="1"/> <Exhausted value="Suicide2"/> <Fatal value="1"/> <Handled value="Suicide2"/> <Location value="Attacker"/> <ModifyFraction value="0"/> <Kind index="Spell" value="0"/> <Kind index="Ranged" value="0"/> <Kind index="Splash" value="0"/> </DamageResponse>
here is the suicide2 effect; <CEffectDamage id="Suicide2"> <Flags index="Kill" value="1"/> <Flags index="NoKillCredit" value="1"/> </CEffectDamage>
So the main buff that starts all this has an initial effect that order units to attack one another, the expire effect is to order the units to stop attacking one another. so this dmg response is in the same main buff and the dmg response isnt working for me. I know the suicide will kill the unit and i want it to just not kill it, but at this point im just trying to debug / get it to fire.
I have used dmg response many times and it works easy enough usually.... This time i can get it to fire. I've tried switching attacker -> defender etc... chance is 1 (100%).
it is currently set up to use 'handled' and 'exauster' but ive tried each by themself as well. any1 know what may be the/an issue?
Fatal responses can only be handled by the defender. Get the response on attacker to add a second buff.
Also what damage type do your units do?
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