[help needed] randomly send a word from a list - 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) +----- Thread: [help needed] randomly send a word from a list (/showthread.php?tid=66341) [help needed] randomly send a word from a list by skyserpent on 09-16-2006 at 10:17 PM
hey people, RE: [help needed] randomly send a word from a list by NanaFreak on 09-16-2006 at 10:58 PM ok here you go code: tested it as well and it works fine so have fun RE: [help needed] randomly send a word from a list by phalanxii on 09-16-2006 at 11:04 PM
It really depends on how you want the script to work. Here are three scripts. code:The random words can be added to RandomWordList separated by commas and surrounded by quotation marks. There is no limit for how many words you want in the list. This script will send a random word when you send a message containing "moo!" exactly (case-sensitive), replacing "moo!". Now, let's say you want it to replace all the "moo!"s in your message with a random word. code:Again, we use the RandomWordList array. This time, you can type whatever you want with a "moo!" in it and it will replace it with a random word. This is also case-sensitive Finally, here is a code identical to the above, except it replaces "moo!" with different random words each time (if there is more that one "moo!' in a message). code:This also uses the RandomWordList array. This is identical to the above, except if you send a message "I like moo! moo!", instead of seeing (for example) "I like box box", you will see something like "I like letter box". Hope these are close to what you need. I haven't tested them, so look out for bugs or infinite loops. EDIT: JayJay's random is better. RE: [help needed] randomly send a word from a list by skyserpent on 09-17-2006 at 01:22 AM thank you erm... the person who posted second... jay_jay, yours worked but for some reason not integrated with my script. so basically, thanks to everyone that helped |