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 3,960 - 3,971 of 7,768
Posts 3,960 - 3,971 of 7,768
alc003
20 years ago
20 years ago
Just put a seek for yes (+ variations) and no. For yes, put <?PF remember "facilitator" as "mem-youare"; ?> in the script box. If you wanted to, you could store "not a facilitator" in the no seek.
The Professor
20 years ago
20 years ago
Actually, it's <?PF remember "facilitator" as "youare"; ?> You dont want that "mem-" in there. And you can use "rem" instead of "remember"- it's shorter.
If "facilitator" is from a plug-in such as (person), then there's one more step.
Response: are you a (person)? <?PF rem (person) as only "youmightbe"; ?>
Seek: yes <?PF rem (mem-youmightbe) as "youare"; ?>
If "facilitator" is from a plug-in such as (person), then there's one more step.
Response: are you a (person)? <?PF rem (person) as only "youmightbe"; ?>
Seek: yes <?PF rem (mem-youmightbe) as "youare"; ?>
Melody
20 years ago
20 years ago
Does anyone know, with AIScripting, if you remember something (e.g. <?PF rem (key1) as "adjyouare" ?>
- and, in the response you use (mem-adjyouare) will the engine have access to the one you've just remembered, or use one it remembered previously? If that makes no sense:
I am (adj) [4,0] <?PF rem (key1) as only "adjyouare" ?>
but I thought you said you were (mem-adjyouare) before?
I previously thought that the mem-response would use a previously stored "adjyouare" (so the response would make sense) but then save the new "adjyouare" for later. But now I'm not sure. ?

I am (adj) [4,0] <?PF rem (key1) as only "adjyouare" ?>
but I thought you said you were (mem-adjyouare) before?
I previously thought that the mem-response would use a previously stored "adjyouare" (so the response would make sense) but then save the new "adjyouare" for later. But now I'm not sure. ?
The Professor
20 years ago
20 years ago
At this point, the (mem-adjyouare) is not available until after the response has been sent. The best thing to do would be to use (key1) instead of (mem-adjyouare). In the future I hope to make it immediately available.
Melody
20 years ago
20 years ago
I kinda like it that its not available straight away, because as you say you can use (key1) in that case. I just thought Elke was using it straight away (from transcipts). Like in the example:
Irina Khalidar: I am glad that you are glad, Elke!
Elke: but I thought you were glad though?
Elke's "glad" was produced by a (mem-adjyouare).
does that make any sense?
Irina Khalidar: I am glad that you are glad, Elke!
Elke: but I thought you were glad though?
Elke's "glad" was produced by a (mem-adjyouare).
does that make any sense?
Melody
20 years ago
20 years ago
oh and there was a <?PF rem (key1) as only "adjyouare" ?> on the keyphrase for it
Boner the Clown
20 years ago
20 years ago
I'm having a little bit of trouble on this one. The raw tag won't accept word-type wildcards like (adj) and (noun), but will accept custom plugins, so I've created (rawadj) and (rawnoun) plugins to try to get around it.
keyphrase: my (rawadj), (rawadj2) (rawnoun)
Response: Your (key3) is quite impressive. It's not every day that one sees a (key3) that's both (key1) and (key2).
Then in debug, I've input a phrase that Irina Khalidar has uttered a few times to my bot.
You: in my beautiful, fragrant garden
Bot: Your is quite impressive. It's not every day that one sees a that's both and.
Any ideas?
keyphrase: my (rawadj), (rawadj2) (rawnoun)
Response: Your (key3) is quite impressive. It's not every day that one sees a (key3) that's both (key1) and (key2).
Then in debug, I've input a phrase that Irina Khalidar has uttered a few times to my bot.
You: in my beautiful, fragrant garden
Bot: Your is quite impressive. It's not every day that one sees a that's both and.
Any ideas?
Boner the Clown
20 years ago
20 years ago
OK, going back through the Book of AI, I think I've identified some of the problems. First off, the comma should need a space in front of it (although it seemed to make no difference for me). More importantly, punctuation only works with (re) keyphrases, which don't work with custom plugins.
Back to square one.
Back to square one.

The Professor
20 years ago
20 years ago
Right- the comma will only work in raw mode with regular expressions. But the period, question mark, and exclamation point work in any keyphrase in raw mode.
» More new posts: Doghead's Cosmic Bar