Method SetListenPattern
SetListenPattern(string, int)
Sets a listen pattern for this object, assigning a pattern number that is accessible from the related object's OnConversation event.
public void SetListenPattern(string pattern, int patternNumber)
Parameters
patternstringThe pattern to match the message against. This is not regex, but a custom pattern format. See the remarks for more info.
patternNumberintThe pattern number to assign, on a successful match.
Remarks
Pattern Format:
** will match zero or more characters
*w one or more whitespace
*n one or more numeric
*p one or more punctuation
*a one or more alphabetic
| is or
( and ) can be used for block.
Telling him to listen for "funk" will match any string that contains the word "funk".
"(bash|open|unlock)(chest|door)" will match strings like "open the door please" or "he just bashed that chest!"