ID:267735
 
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?
Look up findtext() proc, in the DS help files (press F1)

ex:
if(findtext(msg, "help"))
usr << "You typed HELP in that message."
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