View Single Post
Old 07/22/08, 10:56 AM   #351 (permalink)
Breii
Glass Joe
 
Dwarf Hunter
 
Drenden
Originally Posted by Montegos View Post
Im trying to make a dogtag for my mana, which shows my mana if it is below 2000 mana or if I mouseover. I guess it would be something like this.

[If is mouseover then MP else if mana > 2000 then MP end]

Im not fully sure if it works, can't test atm but would be nice if someone could tell me if it is in the right direction.
[(if IsMouseOver then
    MP
elseif MP < 2000 then
    MP
else
    nil
end)]
Just tested and that works.

Originally Posted by SiggyCertified
I am looking for a Dogtag, that turns my Health Text to a color when I am in range of a mob, 36 yards? I've tried to manipulate a few Dogtags off of this thread but nothing seems to work out, so any help would be appreciated.
The following *should* work, but I don't have RangeCheck installed to make sure. According to DogTag you'll need that lib to get any sort of range-checking working in your DogTags.

[if Range(unit="target") <= 36 then
    HP:Green
else
    HP:Red
end]
Originally Posted by Cady View Post
I'm attempting to make a Dogtag that will show the percent of health a target has assuming it's not at full health or dead. Currently I'm using a Dogtag I got from Caith's Pitbull Frames
[Outline][(~IsMaxHP & ~Dead ? PercentHP:Hide(0):Percent:HPColor)
Which is just what I'm looking for except for two things, firstly I only want to show the first two numbers of the percent and nothing after the decimal (would that be the veryshort code?) and secondly I want to be able to customise the HPColors.
Not sure if you're still looking for help on this one, but just tested this and it seems to be working ok.

[Outline] [(if PercentHP = 100 then
    nil
elseif PercentHP > 70 then
    PercentHP:VeryShort:Percent:Green
elseif PercentHP > 35 then
    PercentHP:VeryShort:Percent:Yellow
elseif PercentHP < 35 then
    PercentHP:VeryShort:Percent:Red
end)]
Obviously you can spice up the text to your flavor, but the syntax is accurate and working.

Disclaimer: I'm posting these to try and get my own DogTag'n up to snuff, so if there are any errors I appologize.

Last edited by Breii : 07/22/08 at 11:30 AM.
 
User is offline.
Reply With Quote