How would I make it that when you use Speak(msg as text) it calls a proc after displaying the message, which searches for keywords and shows a reply?
--Ray
EDIT. IF that's easy then could I make it search for keywords, if it has more than 1 then is compares them and shows a different reply?
ID:267735
Sep 7 2003, 8:22 am
|
|
In response to JackGuy
|
|
Hmm doesn't that look up the word as if it were a whole sentence?
|
In response to R.J.T
|
|
if(findtext(msg, "help"))
usr << "You typed HELP in that message." no, basically, if it finds "help" in msg, it will say that, (just an example of it), you can have it find anything you want. Even if its just a letter. (as it appears: if it finds the text in msg, "help") its basically stripping the sentence appart in groups of 1 letter, 2 letters, 3 letters, etc, and if it finds "help" it will stop, and do something |
In response to JackGuy
|
|
ah! cool!
--Ray |
ex:
if(findtext(msg, "help"))
usr << "You typed HELP in that message."