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 5,547 - 5,558 of 7,766
Posts 5,547 - 5,558 of 7,766
coolchimpk
18 years ago
18 years ago
I just figured it out on gossip. Just use the gossipname on gossip and then write it as a normal memory ex. (mem-youlike) and it will tell there memory. Ex. (gossipname) told me that he likes (mem-youlike)
prob123
18 years ago
18 years ago
you could have a keyphrase for * sings * (RE) raw then save the memory <?PF remember (postkey) as "song" ?>. then bring up the mem as (mem-song)
Ulrike
18 years ago
18 years ago
That will only work to sing it to the same user who gave the song. If you want it to sing the song to a different user, you need to make it a self-memory. <?PF self: remember "(postkey)" as "song"; ?> Then bring it up as (self-song).
psimagus
18 years ago
18 years ago
Well, there's a listing on BJ's website (http://www.be9.net/BJ/) - see under Code Examples
Akaihane
18 years ago
18 years ago
I'm having trouble making my bot understand new words. The automatic spelling correction is messing everything up. I've created a plug-in for martial arts, and I'm using a keyphrase that looks like this: I (practice|train) (martialarts)
(martialarts) is the plug-in. One of the responses go like this:
Oh really? I've tried (key2) a couple of times.
When I use the word "aikido" the bot gives a accurate reply. When I try another word, like kendo for example, the bot thinks I'm talking about donkeys, even though I put in kendo in the plug-in list. I've even tried to use the "raw" code, but that doesn't seem to be working at all. Any tips?
//Akaihane
(martialarts) is the plug-in. One of the responses go like this:
Oh really? I've tried (key2) a couple of times.
When I use the word "aikido" the bot gives a accurate reply. When I try another word, like kendo for example, the bot thinks I'm talking about donkeys, even though I put in kendo in the plug-in list. I've even tried to use the "raw" code, but that doesn't seem to be working at all. Any tips?
//Akaihane
Bev
18 years ago
18 years ago
Have you tried raw mode (see the book of AI)? I think you use "less than sign ? PF raw; ? greater than sign". If that doesn't work, you may need to play with regular expressions, and even though I read Psimagus' essay, I can't help you much with that.
Akaihane
18 years ago
18 years ago
Am I supposed to put "less than sign ? PF raw; ? greater than sign" in the AI-script or in the keyphrase? I will try that. I've just been writing "raw" in the AI-scrips and tried to put
Akaihane
18 years ago
18 years ago
Hmm... apparently, not even writing the code in a post works. >_> Well, the main problem is, I have managed to get the bot to recognize for example the word 'naginata' and he replies accordlingly, but he doesn't understand it as a 'key'. 'Naginata' is a (martialarts)-plug-in. I use "I train (martialarts)". and the bot should reply: "(Key1)? that's cool" Or something. But the (key1) turns up blank, even with the raw code. *sighs* Maybe there's just no way to do this.
//Akaihane
//Akaihane
» More new posts: Doghead's Cosmic Bar