1. #1

    Damage taken TMW Snippet

    Hello everyone.

    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.

    Please see the snippet code here:

    http://pastebin.com/9HVSRupZ

    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:

    http://pastebin.com/Mhet7caM

    - - - Updated - - -

    It also includes a "degugger" through whispers in the end - so that you can check what happens with your values.

  2. #2
    Hi Viggen,

    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.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •