ID:172568
 
how do i make weapons and armor visible?
plz tell me how..
thx
by for example overlaying a icon over the players icon.
look "overlay" up in the dreammaker help (F1)

Good luck
src.equipped = 1
usr.overlays += 'Sheild.dmi'
usr << "You put on the [src.name]."
In response to KenjiofF3
KenjiofF3 wrote:
src.equipped = 1
usr.overlays += 'Sheild.dmi'
usr << "You put on the [src.name]."

Excuse me but if you post something please make sure it isnt some half piece of code you used!

He asked for making weapons and armor visible, and you start trowing in "src.equiped = 1" without even defining the var or explaning what use it has.

Nothing wrong with the "usr.overlays" line but since you are using "[src.name]" in the message then why not use "usr.overlays += src" ?

And one more thing, there is nothing wrong with looking stuff up, i really hope less and less people start giving code like that (oke, this wasnt much i know) let em look it up, make mistakes and find out what they did wrong. If u really wanna learn how to code with byond thats just the best way if u ask me . . .
In response to Fint
lol, sorry I think before posting next time
In response to KenjiofF3
Well sometimes people need a sippet ones in awhile to get them going and no doubt this is his first game, so sorry but i dissagree with you, yes they should learn on there own but i think every single coder has got'en a line of code off someone before just to get them started so before you start saying that stuff think he is ner he needs something to over look.

Dreaded Kai
In response to Dreaded kai
Srry to disagree on you then , lol

If he opens the dream maker help and looks it up he gets the exact same line of code thats needed ("usr.overlays =+ src" in this case) WITH the best possible explanation there can be given.

Maybe the makers of byond wont answer all the questions on the forum, atleast they made sure to give all possible answers in the byond help. Only sometimes you have to stick em together.