ID:2162362
 
(See the best response by Kaiochao.)
Problem description: I have seen in some games that, when you type something to chat, then it appears also on the right a bubble that is clickable so you can send a pm to that person. Once clicked then the classic popup to send a message appears. Example:

https://s21.postimg.org/lv0rtztdz/zza.png

I know how to display icons to chat/output with world << "\icon[x]" for example, but they are not clickable.. How can I do the above?

Best response
Around the \icon[x] is an <a> tag (basic HTML), but the link is one that calls client.Topic(). For example:
"<a href=\"byond://?src=\ref[x];action=SendPM\">\icon[x]</a>"

When clicked, that calls client.Topic().