AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Keeping a rule
 
 

Hi everyone,

I have a small-scale funded project to experiment with game conversations. We’re using chatscript for our first prototype so you might be hearing from me.

Just for context, this is a simple goal-oriented conversation game set up in the Snow White folktale. You play the evil stepmother dressed up as an old woman and you need to convince Snow White of biting the apple. We’ve just begun scripting and things are going pretty well.

A small “n00bish” question… how can we make sure a specific rule isn’t deleted? (because, for example, it may be essential for game progression)

After reading around, it seems that ^keep() would do the trick but it’s not working yet.

example:

topic: ~chicken (chicken roasting pork

tChicken chicken chicken ^keep()
s: (like chicken)  You like chicken. ^keep() 

but then…

> I like chicken
: You like chicken
> I like chicken
:That’s nice.

Doesn’t work with the gambit either.

Thanks!

Jonathan
­­

 

 
  [ # 1 ]

look at ^repeat()

 

 
  [ # 2 ]

Oh!

s: (like * chicken)  You like chicken.  ^keep() ^repeat()

works!

Thanks.

Jonathan

 

 

 
  login or register to react