ID:147297
 
        say(msg as text)
set category="Social"
var/obj/speech_bubble/s=new/obj/speech_bubble(locate(usr.x,usr.y+1,usr.z))
s.ata="[usr] says, [msg]"
obj
speech_bubble
icon='Speech Bubble.dmi'
var/ata
New()
sleep(200)
del(src)
Click()
usr<<"[src.ata]"


When I click the bubble, nothing happens.
try defining ata as obj/var/ata
In response to Wizkidd0123
Wizkidd0123 wrote:
try defining ata as obj/var/ata
Nope..
FireEmblem wrote:
        say(msg as text)
> set category="Social"
> var/obj/speech_bubble/s=new/obj/speech_bubble(locate(usr.x,usr.y+1,usr.z))
> s.ata="[usr] says, [msg]"
> obj
> speech_bubble
> icon='Speech Bubble.dmi'
> var/ata
> New()
> sleep(200)
> del(src)
> Click()
> usr<<"[src.ata]"

When I click the bubble, nothing happens.

your problem is probably the fact that the say proc never gets a chance to set s.ata because by the time your new proc is finished, the object is deleted. I would suggest adding spawn() to it and going from there
In response to DarkCampainger
Thankings, my good man.