Downfall - "Droppin bombs since '04"

  • home
  • forums
  • calendar
  • gallery
  • handbook
  • raid hub
  • epgp
Home › The Downfall Handbook › Downfall Guild Guides

GridStatusHealth - Absolute Health Hax

saedo's picture

saedo — Wed, 11/25/2009 - 13:33

A while ago, I wondered if seeing absolute health values on Grid would help deal with P3 of Penetrating Cold.  Like, just have to watch a number, keep those with it above 6K hp only.    A deficit / percentage varies from person to person making it more ambigious to how much they need.

Attached is a bit of a hax to one of the Grid files to show absolute values.    Replace this file in your Grid folder.   And under configuration, it is "Unit Health" status text that you want turned on to whereever you want (i.e. Center Text 1 or 2), and set priorities to etc.

 

For the exact changes, all I did was mostly copy what it already did and tweaked it a bit...

Added new function:

function GridStatusHealth:FormatHealthText2(cur, max)
    local healthText
    local deficit = cur
    if deficit > 999 then
        healthText = string.format("%.1fk", deficit/1000.0)
    else
        healthText = string.format("%d", deficit)
    end

    return healthText
end 

This just copies the another function, except I change the deficit text to current hp, and removed the minus sign from the formating.


In function GridStatusHealth:UpdateUnit

Added another variable:  local healthText2

Added another line below original (the non 2 version) to get it called like the other:  healthText2 = self:FormatHealthText2(cur,max)

Changed this line:

self.core:SendStatusGained(guid, "unit_health",
                    priority,
                    (ignoreRange ~= true and settings.range and 40),
                    (settings.useClassColors and
                     self.core:UnitColor(guid) or
                     settings.color),
                    healthText2,
                    cur, max,
                    settings.icon)

Only the healthText2 part, was healthText normally of course.   Just gets it to print out the new variable.

AttachmentSize
GridStatusHealth.lua9.8 KB
‹ Downfall T-Shirts: Fund The Meetup!upImproving WoW latency/lag/connection speed ›
  • Addons
saedo's picture

Bump for those that haven't

saedo — Thu, 11/26/2009 - 11:35

Bump for those that haven't seen.

saedo's picture

Bump!    Think any of this is

saedo — Wed, 11/25/2009 - 13:35

Bump!    Think any of this is useful?

Random image

Knoppix in Bora Bora

Navigation

  • Content
  • Raid Parses
  • The Downfall Handbook
  • User list
  • Polls
  • Groups
  • Popular content

Who's new

  • Babyconan
  • Grantlius
  • Ecology
  • fumabomb
  • firstslacker

Latest image

PMS Logo for Legion

Archives

  • September 2016 (1)
  • August 2016 (5)
  • July 2016 (8)
  • June 2016 (2)
  • May 2016 (1)
  • March 2016 (3)
  • February 2016 (2)
  • January 2016 (5)
  • August 2015 (1)
  • May 2015 (3)

The Downfall Handbook

  • Downfall Guild Guides
    • Downfall Guild Raid Addon Pack
    • Downfall Loot Distribution
    • What dkp/points/loot system does Downfall use?
    • Loot Priority
    • Guild Bank
    • How to apply
    • IRC Chat Clients
    • Ventrilo Guides
    • Downfall T-Shirts: Fund The Meetup!
    • GridStatusHealth - Absolute Health Hax
    • Improving WoW latency/lag/connection speed
    • Rawr and Val'anyr
    • Test
  • Downfall Class Guides
  • Downfall Raid Guides
  • WoW Ubuntu 3.1 Guide
  • Cataclysm Cheat Sheets
  • Downfall Dungeon Guides
  • Downfall Motivational Pics
  • Downfall Video Archive
  • EPGP Our Points/Loot System
  • How to add a Blizzard Authenticator to your B-Net account

Recent comments

  • App closed with extreme
    7 hours 17 min ago
  • Guild App closed at his
    4 weeks 1 day ago
  • Once we get the new site,
    7 weeks 1 day ago
  • Is the time frame posted in server time?
    7 weeks 2 days ago
  • Awesome. Thanks. Once I
    9 weeks 1 day ago
  • I'd be happy to stick around
    9 weeks 1 day ago
  • Possibly
    9 weeks 1 day ago
  • More necro
    10 weeks 2 days ago
  • Story time!
    11 weeks 3 days ago
  • I;ve downladed drop box, if
    13 weeks 17 hours ago

Active forum topics

  • April 1st 2006
  • Nostalarious: "Blizzard wants Vanilla servers"
  • Galaga 13/13 Heroic by Deposing A Tyrant
  • Poker Face Achieves in one night! Glory of Hellfire Raider
  • Glory of The Hellfire Raider
  • Galaga Destroys Heroic Archimonde AOTC 12/13H
  • Galaga takes out Thomas the Train (7/10 H BRF)
more

Recent blog posts

  • So I guess this is the end...
  • Shaedo's Soloing Extravaganza
  • Shaedo UI Extravaganza
  • Big site updates this weekend!
  • This is for all the Hearthstone players out there
  • My First Full Day on Beta
  • State Of <Downfall> 2014
  • Scaron taking a break
  • How Gorgonnash's Connections went
  • Let's Talk about Mythic Raids
more

Poll

What do you think about no flying for an entire expansion?
YES) It makes me feel more immersed in the game lore.
15%
YES) It encourages more PvP! (Please explain how in comments)
5%
YES) I miss riding my ground mounts.
9%
MAYBE) If you make all of my flying mounts able to be ground too.
8%
MAYBE) if ground mounts are sped up to 200% speed (or higher)
26%
NO) I don't have enough time when I'm on to be riding everywhere
7%
NO) I have spent too much time getting various levels of flying to be wasting it.
11%
NO) It encourages more PVP! (please explain in the comments)
0%
NO) I love flying.
19%
Total votes: 74
  • 38comments
  • Older polls

Popular content

All time:

  • Professor Putricide Strategy Page
  • Rotface Strategy Guide
  • Arthas, the Lich King Strategy Page
  • Sindragosa Strategy Page
  • Toravon the Ice Watcher Strategy Guide
  • home
  • forums
  • calendar
  • gallery
  • handbook
  • raid hub
  • epgp

I notice your oeuvre is monochromatic.
This site is proudly powered by Drupal.