So I followed http://orkframework.com/tutorial/game-tutorial/19-damage-and-refresh-notifications/ to put the damage notifications in, and for the most part they work.

But it seems that if I do so much damage that I one shot an opponent, I get some erroneous positive values for some reason ( http://puu.sh/ox1TD/20ecd8a3c2.jpg ).

I'm also tracking the values in my own script ( http://puu.sh/ox1IM/6eec66c533.png ) and I get the following readout (which is correct - the maximum health is currently 94 health with 37 shield [set up as a buffer]) - http://puu.sh/ox1OV/3bfb4b06a5.png .

Does anybody know what could be causing this issue?
  • That happened to me too awhile back and it was wholly my fault. In my attack ability I had a setting that was duplicative. I can't find my old thread here but take a look at the settings in your abilities. That may help.
  • Hmm - I couldn't find anything in the abilities that looked duplicated. But I did decide to experiment and I turned off the Refresh Notification for the affected Status -> Status Values. This seemed to fix the issue.

    So now my problem is - why would my damage abilities sometimes be refreshing enemy targets? I'd like to turn the notification back on for healing effects. My Ability target changes looks correct:
    http://puu.sh/oxQaf/639096d4ce.png

    And the Space Damage formula essentially the same as in the tutorial: http://puu.sh/oxQd3/91d91d280c.png
  • If that's the only Value Change of the ability, there are some reasons why a damage can turn into a refresh:
    - the used attack attributes of the target are negative
    - the used defence attributes of the user are negative
    - the formula result is negative (e.g. through negative DEF or level factor)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • It is the only value change - although there is a barrier that I have set up.

    When I look at the combatant components, every status value is positive (http://puu.sh/oz0PJ/330c135036.png & http://puu.sh/oz0YC/951c018955.png), and I have added two steps to both the Level Factor and Space Damage abilities (at the end I added an absolute value block), but the issue still occurs. From my testing after they get killed by a one shot it seems to show refresh values equal to their total health (so I see +37 and +94) - does this hint at anything?
  • Hm, might be something that's happening somewhere else, e.g. the death event of the combatant or one of the battle bonuses?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Alright I will take a look at those but I cannot think of anything in there that I would have changed.

    Thanks for helping.
Sign In or Register to comment.