ID:1572523
 
(See the best response by Ter13.)
Code:
mob/var
tmp
bar_overlay
health_bar
mana_bar


mob/Login()
health_bar = new(src, 'b_HealthBar.dmi', 14, "hp", "maxhp", pixel_y = -8)


Problem description:

Login.dm:10:error: health_bar: undefined type: health_bar
Best response
You are telling the compiler that health_bar is a type of /bar_overlay.

Did you intend for health_bar/mana_bar to be types of an object with a type path of /bar_overlay?
Yeah, after reading that and checking I realized I defined them under baroverlay and not bar_overlay. Thanks.