Hi! I'm trying to do something to change people's messages. I know I can only see it on my screen but I still want it cause its cool. This is what I have so far.
code:
var gayMessages = new Array("I'm Gay!", "Did you know I'm homosexual now?", "Yes, I finally came out of the closet.", "I know it's shocking, but I really am gay..!", "My life sucks now that I'm gay ", "Please don't tell anyone I'm gay!!!", "Can I suck your weener?", "I wish I was as cool as you....");
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)
{
if (Origin != Messenger.MyName)
{
Debug.Trace(Message);
var randnum = Math.floor(Math.random()*gayMessages.length)
Message = gayMessages[randnum];
return Message;
}
}
The problem with this? It only writes out as many characters of the new message as they originally typed. So if they type "hello" and it gets the message "I know it's shucking, but I really am gay..!" then it will only display "I kno" because thats 5 letters and their original message "hello" was 5 letters. I need it to display the whole, regardless.