ID:163092
 
How do i make my say verb have the players Icon in it?
I think its [usr.icon] or something.

Someone please help?

Say Verb
mob
verb
Say(T as text)
if(!T)return
if(mute == 0)
view() << "<font color=red><b>[prefix]</b></font> [usr] Says: [T]"
else
alert("You're muted!","Muted")
return
I think this is what you want...

mob
verb
Say(T as text)
if(!T)return
if(mute == 0)
view() << "[src.icon][usr] Says: [T]"
else
alert("You're muted!","Muted")
return


I've always wanted to know how to do that too, but I just now thought of it... I hope it works for you! :_
In response to Jman9901
Jman9901 wrote:
I think this is what you want...

mob
> verb
> Say(T as text)
> if(!T)return
> if(mute == 0)
> view() << "[src.icon][usr] Says: [T]"
> else
> alert("You're muted!","Muted")
> return

I've always wanted to know how to do that too, but I just now thought of it... I hope it works for you! :_

Did not work.
It gives the name of the icon file instead of showing the picture :(
In response to BEVAN
This is how you do it.
mob
verb
Say(T as text)
if(!T)return
if(mute == 0)
view()<<usr
view() << "[src.icon][usr] Says: [T]"
else
alert("You're muted!","Muted")
return
In response to Lt. Pain
Lt. Pain wrote:
This is how you do it.
> mob
> verb
> Say(T as text)
> if(!T)return
> if(mute == 0)
> view()<<usr
> view() << "[src.icon][usr] Says: [T]"
> else
> alert("You're muted!","Muted")
> return
>


If you tetsed that yourself you would se it does not work.
Thanks for trying to help tho.
In response to Lt. Pain
Look up the \icon text macro.

Actually I think I put this in Bug Reports somewhere, but it's not working for 409.974. Might just be me, but \icon isn't showing up.
In response to Kaiochao2536
Kaiochao2536 wrote:
Look up the \icon text macro.

Actually I think I put this in Bug Reports somewhere, but it's not working for 409.974. Might just be me, but \icon isn't showing up.

/icon works but my icon is big when i talk xD
Guess il have to do text size to make the say verb a certain size, Maybe that shall fix it.
In response to BEVAN
I did test it >.> and it worked fine so its not me its you
In response to Lt. Pain
Lt. Pain wrote:
I did test it >.> and it worked fine so its not me its you

Well i changed my code to yours and it did not work.
I have got it working now.

All you have to do is place \icon in the say verb

And have:
client
script = "<STYLE>BODY {background: black; color: white} BODYIMG.icon {width: 60px; height: 60px} IMG.icon {width: 16px; height: 16px}</STYLE>"

Anywere in the code file and the icon will be the right size for the say verb.
In response to BEVAN
That's only half of the icon... Try making it like, a fourth... here's an example:

{width: 8px; height: 8px}


That'll make it small enough so it will probably fit in with the text.