This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Pitbull target health help
Post Reply
Return to board index
Post by
Haxxer
I need help with Pitbull; I'm just wondering, is there any way to make Pitbull target frame to show the targets exact health when they have under etc. 50k health, otherwise it shows percent?
Post by
Wanderingfox
What version of pitbull?
Post by
Haxxer
4.0, I believe.
Post by
Wanderingfox
You'd use something like this luatext:
if MaxHP(unit) > 50000 then
return "%s%%", HP(unit)/MaxHP(unit)*100
else
return "%s / %s", HP(unit), MaxHP(unit)
end
returns "HP%" if the unit's maxHP is 50,001 or larger, otherwise it returns "CurrentHP / MaxHP" or at least it should. I haven't upgraded to v4 yet so that's based on the documentation of luatexts.
Post by
Haxxer
Well, PB4 uses DogTags ingame
Post by
224056
This post was from a user who has deleted their account.
Post by
Haxxer
Nice, thanks
Post by
Wanderingfox
The latest update of Pitbull 4 (or one of the recent updates, at least) switched Pitbull's default text to use Luatext over DogTags.
This is why I asked what version you were using XD
Post by
Haxxer
Now with the Lua kind of #$%^ed it all up for me, could anyone care to give me lessons? :|
Post by
HighFive
Here you go.
Post by
21327
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.