Shoutbox

Stuffplug Talkers (yes, again) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Stuffplug Talkers (yes, again) (/showthread.php?tid=28422)

Stuffplug Talkers (yes, again) by Ulrik on 07-09-2004 at 11:35 PM

I had this idea a few minutes back and it doesnt seem to work, so could someone please help?

I'd like to make a talker that would assign a different color to each letter. So, the a would be green, the b would be red, the c would be yellow, etc. which could create amusing and entertaining messages for yourself and your friends, and optionnaly score chicks ;).

I tried two things: I first did ctrl+k plus whatever color in the chat window, put it in the talkers file which gave something like
a=29
but unfortunately, what showed up in the chat window was 29a.

So I looked in the pre-typed messages (/bigkiss) because I remembered the syntax was different, and it was, it was like (!FC39). I typed that in the file, which gave
a=(!FC39)a
but it didnt work either.

Does someone have a solution?


RE: Stuffplug Talkers (yes, again) by Dung3onMast3r on 07-10-2004 at 12:50 AM

As I don't know how the StuffPlug talkers are used by the plugin, I can't give any advice. Anyway, take a look at how bambi talker works:

code:
function getnr() {
    var output=""+(Math.round(Math.random()*5) * 50);
    while (output.length < 3) output="0"+output;
    return output;
}

function talker(input){
    var cchar="";
    var output="";
    var i=0;
    while (i<input.length) {
        if (input.substr(i,1)==" ") {
            output = output+" ";
        } else {
            output=output+cchar+"(";
            output=output+getnr()+",";
            output=output+getnr()+",";
            output=output+getnr()+")";
            output=output+input.substr(i,1);
        }
        i=i+1;
    }
    return output;
}


So try giving the  value to any string and then use it...
RE: Stuffplug Talkers (yes, again) by Ulrik on 07-10-2004 at 02:50 AM

Well, I actually have zero programming knowledge. I don't understand anyting of the above... :S


RE: Stuffplug Talkers (yes, again) by toddy on 07-10-2004 at 02:55 AM

quote:
Originally posted by Ulrik
Well, I actually have zero programming knowledge. I don't understand anyting of the above... :S

well the best thing to do would be to ask someone else to make you a talker
RE: Stuffplug Talkers (yes, again) by Ulrik on 07-10-2004 at 03:07 AM

Ok. Could somebody do that talker? Or if you REALLY have time to kill, developping a whole plugin if the talkers dont work?


RE: Stuffplug Talkers (yes, again) by toddy on 07-10-2004 at 03:12 AM

the talkers do work. i mite have a go at making it later, but i'm really busy and its 4am


RE: Stuffplug Talkers (yes, again) by Ulrik on 07-10-2004 at 03:14 AM

Thanks!


RE: Stuffplug Talkers (yes, again) by MessEnGer on 07-10-2004 at 07:56 AM

How do i make or find talkers??

i searched the forum but can't find talkers newher


RE: Stuffplug Talkers (yes, again) by Millenium_edition on 07-10-2004 at 08:37 AM

there are numerous talkers on the plugins forum. just search more.


RE: Stuffplug Talkers (yes, again) by Dung3onMast3r on 07-10-2004 at 11:55 AM

I made a talker that works and colors each letter. The code is very simple, so you can continue adding symbols to be colored, and changing the colors I assigned If u don't like them (I don't).


RE: Stuffplug Talkers (yes, again) by MessEnGer on 07-10-2004 at 12:05 PM

How do i use this ??

neve used talkers and dnt knw how it wrks

if u can guide me thru the proceess thnk u


RE: Stuffplug Talkers (yes, again) by Dung3onMast3r on 07-10-2004 at 02:20 PM

You can edit talker files with notepad. An easy way to substitute characters with colored characters is the Replace command.

code:
Function talker(input)
   output = Replace(input,"a","2a")
   output = Replace(output,"b","3b")
   output = Replace(output,"c","4c")
   output = Replace(output,"d","5d")
   output = Replace(output,"e","6e")
   output = Replace(output,"f","7f")
   output = Replace(output,"g","8g")
   output = Replace(output,"h","9h")
   output = Replace(output,"i","10i")
   output = Replace(output,"j","11j")
   output = Replace(output,"k","12k")
   output = Replace(output,"l","13l")
   output = Replace(output,"m","14m")
   output = Replace(output,"n","15n")
   output = Replace(output,"o","16o")
   output = Replace(output,"p","17p")
   output = Replace(output,"q","18q")
   output = Replace(output,"r","19r")
   output = Replace(output,"s","20s")
   output = Replace(output,"t","21t")
   output = Replace(output,"u","22u")
   output = Replace(output,"v","23v")
   output = Replace(output,"w","24w")
   output = Replace(output,"x","25x")
   output = Replace(output,"y","26y")
   output = Replace(output,"z","27z")
   
   'Add here more replacements

   output = output + "·0"
   talker = output
End Function


In the code above (which is the color talker I made), you can add more replacements below all the others. Just add a line like this:
output = Replace(output,"<character to be replaced>","<color tag (with CTRL+K) and character>")
For example, to make full-stops orange, write:
code:
output = Replace(output,".","36.")
where 36 is the color number for orange.

I hope you'll understand, and we can all enjoy your talkers soon!:)