I've made a snippet + set of icons, that allow to calculate the damage you take in certain timeframe and then use it for highlighting how much % of your MaxHealth have you lost in that period. Can be especially useful for DK, where heal depends on damage taken.
So obviously, I'm using iconvalues for flashing icons and also making decisions in other parts of TMW (which I'm using basically as an intelligent Ovale/Spellflash in that case).
This thing is working and I'm planning to make a similar stuff with healing and then calculating the difference and expected death time ad some other things.
However, since I'm not a professional coder, I feel that the code can be optimized. So if anyone here, who is a professional in LUA can suggest how to optimize the code, while keeping the same functionality - I'd be grateful.
- - - Updated - - -
here is a bit updated and more stable version of the snippet:
Can you provide the TMW Profile import for the icon set? I cant figure out how to get the LUA to interface with the icon set to use in other TMW Conditionals.