Yes, it is possible. You can use the $text variable and input it into a quest command just like any other variable that you may have created. Though, you will most likely want to add a filter on the text they enter to prevent them from adding special characters and such. If you search google for regular expression and perl and look for the regex to filter out all but letters, you can then set whatever you want as long as there is a quest command/object for it. You will also want to add in checks to make sure they aren't just hailing the NPC or using one of its other prompt key words (IE. if ($text !~ /Hail/i)).
|