ID:179174
 
I was wndering if somebody could help me with some code I keep trying to make but I always end up screwing it up. I am trying to write some small code for when you bump into a sign it shows teh dialog on it but I dont know how to go about doing this. Like should i make an area and when i bump into it or somethin? I really would appreciate any help.
What you need to do, is give the sign a var, then when you bump into it, show it.
mob
Bump(obj/sign/O)
if(istype(O,/obj/sign))
usr << "[O.dialog]"
..()
else
..()
obj
sign
density = 1
var
dialog = "null"


-Rcet
In response to Rcet
Nope, it doesnt work. I bumbed every sign i had in the game but still nothing.
In response to JordanUl
Funny, works for me... Make sure that the signs have the dialog var, and have a density of 1.. I don't know why its not working..

-Rcet