How can I make it so only the usr sees an object on the screen? Like I'm trying to make it so I have 'black.dmi' under all the 'hud' stuff.. It would really help me out a lot if I just knew how to add in the black.dmi so only the usr could see it.
-Thanks-
ID:176934
![]() Nov 26 2002, 6:09 pm
|
|
Kijokiha wrote:
How can I make it so only the usr sees an object on the screen? Like I'm trying to make it so I have 'black.dmi' under all the 'hud' stuff.. It would really help me out a lot if I just knew how to add in the black.dmi so only the usr could see it. It's a mistake to even be using the term "usr" in this context; unless this HUD is directly verb-related, I don't think this is remotely what you want. The question of the hour is: At what time do you want to create or modify the HUD display, and what will you put there? This matters a lot in determining how to go about adding what you want. Lummox JR |
ive got my hud background all set up and all i need is a code snippet to display my numbers. i'm using it to display stamina, hp, and money here is my code so far:
mob/Login() usr.client.screen += new/obj/hud/black usr.client.screen += new/obj/hud/black2 usr.client.screen += new/obj/hud/black3 usr.client.screen += new/obj/hud/black4 usr.client.screen += new/obj/hud/black5 usr.client.screen += new/obj/hud/black6 usr.client.screen += new/obj/hud/stamina usr.client.screen += new/obj/hud/money usr.client.screen += new/obj/hud/hp world obj hud black layer = MOB_LAYER + 1 icon = 'hud.dmi' icon_state = "1" screen_loc = "1,13" obj hud black2 layer = MOB_LAYER + 1 icon = 'hud.dmi' icon_state = "2" screen_loc = "2,13" obj hud black3 layer = MOB_LAYER + 1 icon = 'hud.dmi' icon_state = "3" screen_loc = "3,13" obj hud black4 layer = MOB_LAYER + 1 icon = 'hud.dmi' screen_loc = "1,12" icon_state = "4" obj hud black5 layer = MOB_LAYER + 1 icon = 'hud.dmi' screen_loc = "2,12" icon_state = "5" obj hud black6 layer = MOB_LAYER + 1 icon = 'hud.dmi' screen_loc = "4,13" icon_state = "6" obj hud stamina layer = MOB_LAYER + 1 icon = 'text icons.dmi' icon_state = "S" screen_loc = "1,13" obj hud money layer = MOB_LAYER + 1 icon = 'text icons.dmi' screen_loc = "1,12" icon_state = "M" obj hud hp layer = MOB_LAYER + 1 icon = 'text icons.dmi' screen_loc = "3,13" icon_state = "H" |
Even though usr is technically mostly safe in mob/Login(), don't use it; src is absolutely guaranteed to be correct, and you save some space by just taking out "usr." because "src." is redundant.
Lummox JR |
-DogMan