ID:171661
 
hi i was on here before about the name being the name picked well i want an icon to go with that how do i do it

E.g
(a picture of Mark Webber) Jaguar: Mark Webber: Hi

so can someone plz help me
This should be in Newbie Central, since this isn't really a coding problem, where you need to show actual coding.

You use the \icon text macro.

world << "\icon[src] [src] says: Hello."


\icon[src] makes the \icon macro know that the icon will be src's icon.

~~> Dragon Lord
In response to Unknown Person
where do i put it
In response to Jaydude
i have done it but thier is no icon next to it
In response to Jaydude
right the code works but i got difenert icons that i want to put in how do i do that
In response to Jaydude
you change the input for \icon[]

for instance -


\icon['mysexybody.dmi']

that would then display the icon mysexybody.dmi

so basically -

\icon['insert file name here']


look up the DM reference, and look up icon... you might beable to learn some so you can understand better.
In response to Jon Snow
it saying F1_2003.dmi 34 error: icons.dmi: unideified var
In response to Jaydude
how do i make it in to say instead of world say
In response to Jaydude
-_-
oview()
In response to Jaydude
No it probably isnt.

And your problem is that you're not defining what the icon is first.
In response to DeathAwaitsU
?
In response to Hell Ramen
the code looks like this

 mob/verb/OOC(msg as text)
world<<"{OOC} \icon[icons.dmi][src] [src] says: [msg]"
In response to Jaydude
And in that code, have you defined icons.dmi?
In response to DeathAwaitsU
i have icons in icons.dmi
In response to Jaydude
thats not called defining it.
In response to DeathAwaitsU
wat is it then
In response to Jaydude
var/a = "a"
In response to DeathAwaitsU
wats that
In response to Jaydude
One sec, let me get Zila's Tutorial. READ IT ALL.
Do not copy it...
[Edit]http://zilal.byond.com/tutorials/zbt.html
In response to Hell Ramen
that doesnt help coz i making a racing game not an rpg
Page: 1 2