r/wowaddons • u/Galllo89 • 7d ago
Development / WIP ADDON Idea - Is it possible to replace your character's overhead name with a floating health bar?
Hey everyone!
I've been working on what I thought would be a simple small addon for WoW Forever and I'm trying to figure out if it's possible to replace the text above your own character's head with a proper health bar, similar to the nameplate you see above an enemy or target.
The goal is to have it appear only during combat, follow your character in the 3D world, and scale/adjust naturally when zooming the camera in and out.
I've been working through this with the help of ChatGPT and have managed to get the first part working which is hiding my character's name when entering combat and restoring it afterward.
Where I'm stuck is getting an actual health bar to occupy that same position.
I've asked chatgpt and it looked into the nameplate API, C_NamePlate, NAME_PLATE_UNIT_ADDED, and the Personal Resource Display, but haven't found a way to access or create a proper player nameplate. I also tried an addon called My Personal Bars Forever, but it uses screen-space positioning rather than actually anchoring to the character.
Is this something the WoW Forever client/API simply doesn't allow, or is there another method that I am overlooking?
Would love to hear from anyone familiar with the nameplate API, UI frames, or addon development in Forever. Even a little direction would be appreciated!
•
u/AutoModerator 7d ago
Development / Work In Progress Notice:
This addon is currently in an unfinished state.
Moderation does not audit Development/WIP posts for strict code quality standards. Please do not report this post for unoptimized code or messy namespaces unless it violates core safety or TOS rules.
Constructive feedback to help the developer improve is highly encouraged!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/BeneficialAd8793 7d ago
hey, i've looked into this myself, though only briefly. as i understand it, while at one point they had this built in, they removed it from the game for some reason (i think it was allowing people to do some sort of exploit). if you find a way to have a personal resource bar exist in the 3D space, keep us posted!
and for the inevitable response saying to turn on Personal Resource in options, no. the existing personal resource bar does not exist in the 3D space, hence why it remains static when you zoom in and out.
8
u/OhWhoopsIDroppedMy 7d ago
this is the closest i could find [addon] Remember the moveable Personal Nameplate added in Legion and removed with the addon purge? I'm rebuilding it. : r/WowUI
Blizzard locked down the WOW Lua api hard which makes drawing stuff in 3d space near impossible
3
u/Ok-Department-6452 7d ago
Disable nameplate enable personal resource display with power bar disabled, just swap them in out combat should cover it, I can draft some code when I get home
1
u/mi_zzi 7d ago
Claude, make ma an addon... just disable 'My Name' under Options -> Gameplay (Nameplates) -> My Name and enable Personal Resource Display in Options -> Gameplay (Combat) -> Personal Resource Display. Customize it how yo like in Edit Mode
2
u/dasgoooose 7d ago
I just made this exact addon for someone else. I'll message you the link.
1
u/Zackete 7d ago
Not exactly what you're looking for, but I do something similar with forever auras although the display is plain numbers. I use it to display my health and rage for warrior and is attached to the enemy nameplate so technically on a more or less fixed position.
1
u/LoadIntelligent7564 7d ago
Archud does it better for me
1
u/ObligationAncient112 6d ago
All friendly nameplates are protected in combat so you can't anchor anything to them, your only option to have any kind of dynamic positioning is using camera positioning but I'm also not sure this can be done with the secret restrictions.
Having the healthbar only be shown in combat is easy, I'm not 100% sure you can hide your own name in combat but I think so.
I just use the Personal Bar but with static positioning
1
u/kossenin 7d ago
Isn’t that just personal ressource ?
-1
u/Mysterious-Watch777 7d ago
I dunno bro, my health is over there. There's also a personal resource setting you can toggle.
-5
u/Ohrder 7d ago
Ask Claude instead of Reddit, you won't need to wait for an answer.
0
u/Heart_Resonance 7d ago
NO, don't do that
0
u/Quizok 3d ago
If you have your regular how bar under your char, what do you need another one so close. It's too much of the same info in close proximity. Also why would you have your name above, your own name is pointless. Just remove it and keep it clear so you can see better.
-5
u/toastjarom 7d ago
Just press Shift-V or Ctrl-V