I am brand new to the ChatScript program but I feel as though I have a basic grasp of how it works.
I have used many of the system functions and I can’t seem to get ^disable(BLAH) to work the way I want it to work. I wanted to make sure I am interpreting the manual correctly. An example of my script:
topic: ~CONTROLA ()
t: testing one
t: testing two
t: testing three ^disable(ORANGE.COOL)
t: testing four
t: testing five ^addtopic(ORANGE)
topic: ~ORANGE ()
t: COOL () oranges are awesome
t: oranges make me sad
The desired output would be (in response to each visitor statement):
testing one
testing two
testing three
testing four
testing five
oranges make me sad
The idea is to issue a gambit output and then disable a gambit in a different topic (perhaps because the gambit in the other topic would be redundant). The ^addtopic() function is just for ease of testing to see if it worked since it will go immediately to that topic’s next gambit.
Right now, I am getting:
testing one
testing two
testing four
testing five
oranges are awesome
oranges make me sad
This tells me that the function is not being called and (presumably) causing the whole gambit to fail, not even issuing output.
Is this just a problem with my syntax? I’ve tried just disabling the topic only (without the topic/label pair) and it still gives the same output, so I’m wondering if the function itself is broken or if I’m just completely misinterpreting what it is supposed to do. I promise I have scoured the manual up and down trying to determine this answer!
Thank you in advance for taking a look at this! I really appreciate the amount of support you guys offer and the program is very useful.