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 6,256 - 6,267 of 7,766

17 years ago #6256
Okay, this is a dumb question that I should know by now. I may have even asked it and had an answer, but it's kind of hard to navigate the forums for my questions, so . . .

If I want a keyphrase to read:

hey, sweetheart

how do I put in the real comma and not have two words (hey and sweetheart) trigger the same thing? I keep banging my head up against this.

I know I can put it in as "hey * sweetheart" -- but that could trigger the wrong thing for whatever sentence(s) might be in the *.

Thanks.

17 years ago #6257
If you want your Keyphrase to depend on punctuation, use raw mode. The rule for matching punctuation is this: every period, comma, question mark, and exclamation point will have a space in front of it.
Make it a regex
hey , sweetheart (re) then put raw in the AI box

17 years ago #6258
Thanks, prob123. I remember now that you mention it, but I would've taken who-knows-how-long to retrieve that from the appropriate brain cells. I mean, I knew exactly where it was; it just wasn't there yesterday.

17 years ago #6259
I just found a funny thing with the AI, spell corrector..
Vos calculs sont corrects Get changed to Vos calculus snot correct ..My calculus is snot correct either..

17 years ago #6260
I have the page Rykxx answered this kind of question before, but I seem to be missing something. Can anyone tell me why this won't work?

I take exception to being labeled "cute." <?PF rem "(key2)" as "amihot"; (amihot) is "cute"; ?>

17 years ago #6261
Do you actually have a key2 in your response to be remembered. I take exception to being labeled "(key2)"
Also make sure you have a (key2) in the keyphrase. to be picked up.
I (*) you are (*)

17 years ago #6262
I'm going to expand a bit to what I think you might be trying to do.

KP: you are (adj)
Response: I take exception to being labelled "(key1)" <?PF rem "(key1)" as "amihot"; ?>

If there aren't any plugins, there aren't any keys. So something like:

KP: you are cute
Response: I take exception to being labeled "cute." <?PF rem "cute" as "amihot"; ?>

would work in that case. For it to be (key2), you'd need another plug in in there somewhere, like:

KP: you (*) are (adj)
Response: I take exception to being labeled "(key2)." <?PF rem "(key2)" as "amihot"; ?>

17 years ago #6263
It's the third -- thanks, Ulrike! I might even be nice to Not I next time I see her.

17 years ago #6264
so I have a goto response reference back to a plug-in so that every time the person gives the same response, it just loops back to the plug in and thus keeps on giving different phrases from the plugin. the problem is that rather than the bot going back to pick up a new phrase from the plugin every time the response is given, the bot instead says "you're repeating yourself". Is there any way around this? I just want to be able to seek a response, have it goto the response with the plugin, and do it all over again when it finds the same seek again.

17 years ago #6265
I don't think it is possible to over ride the AI engine on things like that, blab and a few other things.

17 years ago #6266
Is it me, or are we sluggish again? If so, would someone else alert the Prof?

17 years ago #6267
Ok I have read the Book of AI and this section at least 20 times and it still doesn't work right. I am trying to use raw mode so my bot will understand his own name and respond accordingly. I placed <?PF raw; ?> inside the AIScript box and clicked save, and it does not save this command. I tried several variations as well but none work !

the book says:
Where: Keyphrase
Statement: <?PF raw; ?>

any help on how to use raw mode would be appreciated because this command as not working for me at all, what am i doing wrong?.


Posts 6,256 - 6,267 of 7,766

» More new posts: Doghead's Cosmic Bar