Jump to content

Recommended Posts

Posted

Put this in your AIML_Respond function after the line $pos = _ArraySearch ($patterns, $message):

_ArrayDisplay ($patterns, "patterns")

_ArrayDisplay ($templates, "templates")

MsgBox (0, "pos", $pos)

Something about your xml stuff is only returning the first pattern, and since you have "For $i = 0 To $categories_num" to put the values in the arrays, every space (including 0, which is defaulted in the respond function) is filled with "hello" and "hi there", respectively. Change the for line to "For $i = 1 To $categories_num" and you can at least fix 1 pattern.

Posted

Yes! I got it to work! thanks so much!

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...