Thread: Shield Strength
View Single Post
10/08/14, 06:05 AM   #4
spoqster
Join Date: Apr 2014
Posts: 8
Originally Posted by Garkin View Post
By default is shield is displayed on unitframes, so what do you exactly want? Some number on the screen or some kind of progress bar?

There is a hack how to get numeric shiled value from the unitframes:
Lua Code:
  1. for k, module in pairs(PLAYER_ATTRIBUTE_BARS.attributeVisualizer.visualModules) do
  2.    if module.moduleId == 5 then
  3.       ZO_PreHook(module, "OnValueChanged", function(self, bar, info) d(info.value) end)
  4.       break
  5.    end
  6. end
If you run this code for example using the ZAM Notebook, it will print shield value every time when shield value is changed.
That sounds pretty much like what I had in mind.

The original idea was to have a Combat Cloud style message on screen when the shield is cast that reads "Blazing Shield at 800" and when you take a 250 point hit the text pops up again and reads "Blazing Shield at 550".

Of course having the current shield strength displayed next to the buff is also an option. But it would be a bit of a design exception in the buff context, because an extra value like this is only relevant for few buffs. Also I really like the way Combat Cloud displays information. It's very clear and relevant.
  Reply With Quote