ID:170192
 
how to i put images in my messages?
Um, I know this one, hold on... it's coming to me. Oh, yeah. You have to use the text macro \icon before a reference to the object or icon you wish to display. Here's a quick example:
mob
icon = 'mobs.dmi'
icon_state = "player"

verb
Say(msg as text)
world << "\icon[usr][usr.name]: [msg]"


~X
In response to Xooxer
hey xoox- why dont we have that feature in chatters if it's so easy???

:)
In response to digitalmouse
You do, they're called Smileys. You can thank Spuzzum.

~X
In response to Xooxer
no, no- i was referring to an icon next to our names. ya know, like a little digitalmouse face next to mine either in the chatter list, or next to each chat line i post (for example).

and thank you Spuzzum!
In response to Xooxer
thanks.
In response to digitalmouse
digitalmouse wrote:
no, no- i was referring to an icon next to our names. ya know, like a little digitalmouse face next to mine either in the chatter list, or next to each chat line i post (for example).

and thank you Spuzzum!


if so, it would have to be the 16x16 sized icon before them, mainly becasue of the problem with the 32x32 icon size message ofest. like each time some1 talks with a 32x32 icon in the text chat area, you would have to prety much scroll down each time some1 talks
In response to ElderKain
DM automatically reduces the size of the images from 32x32 to 16x16. You'd have to write up some style script for img tags to make them 32x32 again. Since s_smileys was intended only for inline images in the text window, Spuzzum drew them at 16x16 resolution, meaning, each "pixel" was really 2x2 pixels in the icon, but when reduced to 16x16, they become 1x1 and lose no information in the reduction. I think he drew them in MS Paint at the regular 16x16 and used stretch/skew to enlarge them to 32x32 and then imported them into the dmi file. They come out cleaner-looking this way, as no new colors are created, blurring the image when it can't resolve the minor details of the icon.

~X