The AI Engine

This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.

Posts 7,387 - 7,398 of 7,766

6 years ago #7387
MROdell48: yep, that's possible. Why not give it a try and let us know if you run into any obstacles?

bobstack: I haven't actually worked with the flash chat system myself yet, but I do see a number of bots with links to "flash chat" below the link to their ordinary chat feature so at least I know it exists somehow.

I've also never used xnomatch before. When things don't match I always just get xnone *shrugs* lol

6 years ago #7388
Its not really working. it wont display the second message
https://gyazo.com/ca053954724efd34bbac3b78200cba35
https://gyazo.com/40766d0e64f21af66da20fc71d4e7b1c
https://gyazo.com/8f1b3acf6f1087b76a593cedda606e03

do you see anything wrong with the code?

6 years ago #7389
Hello. Is there any way to keep a bot from hating someone?

6 years ago #7390
MROdell48: I do see several problems in your script.
1: remember "X" as only "Y" will not create a variable that you can recall with mem-X set to Y. It will create a variable you can recall with mem-Y set to X.

2: without an if on your first response, it has a 50% chance of triggering even if your variable does equal "one"

3: You can learn a lot about potential flaws in the code like this by running your tests with the Build > Debug feature.

6 years ago #7391
Ya I realized that when I looked at my other code. Thanks

6 years ago #7392
how would I make my chatbot remember what it said for as long as the user talks to it, then if they would stop talking to them they would forget?
example keyphrase = sit down
response=I sit down in the chair beside you.

6 years ago #7393
bobstack: the problem here sounds like: how do you know when the user has "stopped talking to it"?

I don't think that the system has a timeout for variables, or a way to trigger events outside of the time when chat is happening. And it doesn't do a great job of telling one chat from the next..

.. one of the x??? keywords like xinitiate or xhello might be abusable for this purpose though. Figure out which one does the most reliable job of firing at the beginning of conversations (and make sure to test both user-initiated and bot-initiated convos), and add into the aiscript for that one keyword to forget the variables you want to start from scratch with.

6 years ago #7394
okay I will try that.

6 years ago #7395
could you tell me what this means?i would like to know how to use
it."Hi, (mem-nickname)! Someone told me I was (self-iam) today. Do you think so?"

6 years ago #7396
Well (mem-something) and (self-something) are both ways of accessing different kinds of variables via the AIscript. If the bot said those things out loud, that just means that something went wrong, either a bug in PF's text processor (it's not supposed to select a response which references an unset variable) or something the creator did wrong.

6 years ago #7397
i could not figure out how to make my chatbot remember what it said for as long as the user talks to it, then if they would stop talking to them they would forget?

6 years ago #7398
Well, I offered my idea of abusing the xinitiate or xhello keywords as an opportunity to issue a "forget" command. Aside from that, how would a bot tell the difference between not having talked in a long time and having talked mere moments before?


Posts 7,387 - 7,398 of 7,766

» More new posts: Doghead's Cosmic Bar