Hi guys,
I need help with the code below….I need to know how to only deliver the responses only ONCE to a user, and to not loop…..?? Is there a way of doing that ? It’s kinda causing havoc with things ! ......Also, I need to know if it is possible to delay each response and add a sleep command to each response ? If there is such a thing ......
<aiml version=“1.0”>
<category>
*</pattern>
<template>
<think>
<set name=“state”>
<srai>SUCCESSOR <get name=“state”></srai>
</set>
</think>
<srai>say response <get name=“state”></srai>
</template>
</category>
<category>SUCCESSOR</pattern>
<template>I</template>
</category>
<category>SUCCESSOR *</pattern>
<template>I</template>
</category>
<category>SUCCESSOR I</pattern>
<template>II</template>
</category>
<category>SUCCESSOR II</pattern>
<template>III</template>
</category>
<category>SUCCESSOR III</pattern>
<template>IV</template>
</category>
<category>SUCCESSOR IV</pattern>
<template>I</template>
</category>
<category>
SAY RESPONSE I</pattern>
<template>Response One.</template>
</category>
<category>
SAY RESPONSE II</pattern>
<template>Response Two.</template>
</category>
<category>
SAY RESPONSE III</pattern>
<template>Response Three.</template>
</category>
<category>
SAY RESPONSE IV</pattern>
<template>Response Four.</template>
</category>
<category>
SAY RESPONSE *</pattern>
<template>Undefined.</template>
</category>
</aiml>