What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [HELP]match New question Solved!

[HELP]match New question Solved!
Author: Message:
DaAniv
Junior Member
**


Posts: 19
30 / Male / Flag
Joined: Jan 2009
O.P. RE: [HELP]match Solved
Solved D: thanks to everyone who helped me^_^
Javascript code:
//person
            string.replace(/!person/mig, function()
                    {
                        c = Math.floor((Math.random()*(Person.length-1)));
                        string = string.replace(/!person/mi, Person[c])
                        //verb
                    string = string.replace(/(.*?)!person/mi,function(sMatch, $1)
                    {
                        substr=$1
                        if (!(c==0||c==1||c==2||c==3||string.match(/!i/mi)||string.match(/!you/mi)||string.match(/!we/mi)||string.match(/!they/mi)))
                            substr=substr.replace(/!verbs/mgi,function()
                            {  
                            b = Math.floor((Math.random()*(VerbsES.length-1)));
                            return VerbsES[b]})
                        else
                            substr=substr.replace(/!verbs/mgi,function()
                            {  
                            b = Math.floor((Math.random()*(Verbs.length-1)));
                            return Verbs[b]})
                        return substr+"!person"
                    });
                    return string
                });
            //verb
            string = string.replace(/!verbs/mgi,function()
            {
                b = Math.floor((Math.random()*(VerbsES.length-1)));
                if (!(c==0||c==1||c==2||c==3||string.match(/!i/mi)||string.match(/!you/mi)||string.match(/!we/mi)||string.match(/!they/mi)))
                    return VerbsES[b]
                else
                    return Verbs[b]
            });


This post was edited on 01-25-2009 at 12:53 PM by DaAniv.
01-24-2009 02:49 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[HELP]match New question Solved! - by DaAniv on 01-24-2009 at 09:59 AM
RE: [HELP]match - by Danny22 on 01-24-2009 at 10:16 AM
RE: [HELP]match - by DaAniv on 01-24-2009 at 11:10 AM
RE: [HELP]match - by Matti on 01-24-2009 at 11:11 AM
RE: [HELP]match - by DaAniv on 01-24-2009 at 11:22 AM
RE: [HELP]match Solved - by Danny22 on 01-24-2009 at 11:38 AM
RE: [HELP]match new question - by DaAniv on 01-24-2009 at 12:19 PM
RE: [HELP]match New question - by Matti on 01-24-2009 at 12:49 PM
RE: [HELP]match New question - by DaAniv on 01-24-2009 at 01:44 PM
RE: [HELP]match Solved - by DaAniv on 01-24-2009 at 02:49 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On