SC2Mapster Forums

Development > Data

Damage Response issue

  • 2 posts
    #1 Nov 15, 2012 at 23:44 UTC - 0 likes

    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?

    If life's a bitch, better make everyday your wife!!

    #2 Nov 16, 2012 at 21:01 UTC - 0 likes

    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?

  • 2 posts

You must login to post a comment. Don't have an account? Register to get one!