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,228 - 3,239 of 7,767
Posts 3,228 - 3,239 of 7,767
ruebot
21 years ago
21 years ago
sure dallymo, she does like that zebra.
i tried saying several different things to see if she'd say something else about it but she hasn't yet.
the first bot i made was fascinated by cats and thought a cat was the most powerful computer.

the first bot i made was fascinated by cats and thought a cat was the most powerful computer.

dallymo
21 years ago
21 years ago
Help me out with "as only" in AIScript. Here's what the Book of AI says:
Saves memorycontents or the value of a plugin as a memory by the name of memoryname. If a memory of this name exists, it adds the new value to a list with a maximum of 10 values.
So "as only" *does* remember multiple values? I was thinking that it allowed only a single value for a particular memory. If "as only" *does* only allow for one memory, will another "as only" for the same memory replace the original memory? For example, Frizella's got a keyphrase for "i wish i had (*)" and it's got AIScript that says "remember (key1) as only "wisheshad"; ".
If the other party wishes they had a zebra (f'rinstance), Frizella assigns "zebra" to (mem-wisheshad). If, later, they wish they had a cow, would Frizella replace "zebra" with "cow" in the "wisheshad" memory?
Saves memorycontents or the value of a plugin as a memory by the name of memoryname. If a memory of this name exists, it adds the new value to a list with a maximum of 10 values.
So "as only" *does* remember multiple values? I was thinking that it allowed only a single value for a particular memory. If "as only" *does* only allow for one memory, will another "as only" for the same memory replace the original memory? For example, Frizella's got a keyphrase for "i wish i had (*)" and it's got AIScript that says "remember (key1) as only "wisheshad"; ".
If the other party wishes they had a zebra (f'rinstance), Frizella assigns "zebra" to (mem-wisheshad). If, later, they wish they had a cow, would Frizella replace "zebra" with "cow" in the "wisheshad" memory?
ezzer
21 years ago
21 years ago
Yes, dallymo, i think that's right. I think the purpose of the "as only" in the memory command is to make the new memory overwrite all other previous memories in that category.
Shadyman
21 years ago
21 years ago
*nod*
Yep, cow would be the only one there if you used "asonly".
If you used just the "as", there would be zebra and cow.
Yep, cow would be the only one there if you used "asonly".
If you used just the "as", there would be zebra and cow.
doulos
21 years ago
21 years ago
I dont remember who asked this question, was it ezzer?, about having a response only pop up once? Of course we know how to do it per convo. I was trying to come up with a way last night, but im not sure if it is right. In the response you only want them to say once add a seek and on the seek's keyphrase add <?PF rem "alreadysaid" as "onlyonce"; ?>. Now in the original keyprhase you can add <?PF if (mem-onlyonce) is not "alreadysaid" ?>. So if I am right then what happens is that after the first time the keyphrase is said a memory is created that will keep it from being said again. Ever. Am I right?
Joe Repka
21 years ago
21 years ago
I took the description of 'as only' in the Book of AI to be an editoring error. 'as only' should restrict a memory to a single value.
gazissax
21 years ago
21 years ago
I know what the code is supposed to do, but I picked up yet another example of it ~not~ overwriting a previously recorded memory item using "only"
gazissax
21 years ago
21 years ago
I've put up a new plugin called (fastfoodjoints). Please be so kind as to look it over and suggest additions. I am Californo-centric and want to represent a broader universe of fat.
deleted
21 years ago
21 years ago
Doulos, you can also do it this way,
in one response...
for example...
keyphrase -- I am traveling through Ireland right now. Would you like to hear what I've been up to?
<?PF chrono: day(1-15) month(6); ?>
+ xnomatch [0] <?PF remember (key1) as "wouldliketohearireland1" ?>
I'm in Ireland right now. I think I told you all about it. <?PF chrono: day(1-15) month(6); if (mem-wouldliketohearireland1) exists; ?>
or something along those lines. or you can do another response with
if (mem-whateveryouwanttoputhere) does not exist,
and expand the options some more.
in one response...
for example...
keyphrase -- I am traveling through Ireland right now. Would you like to hear what I've been up to?

+ xnomatch [0] <?PF remember (key1) as "wouldliketohearireland1" ?>
I'm in Ireland right now. I think I told you all about it. <?PF chrono: day(1-15) month(6); if (mem-wouldliketohearireland1) exists; ?>
or something along those lines. or you can do another response with
if (mem-whateveryouwanttoputhere) does not exist,
and expand the options some more.
doulos
21 years ago
21 years ago
Im not sure I get it. To me it looks as if the response will come up only on the 1-15 in the sixth month. Or am I wrong.
deleted
21 years ago
21 years ago
yeah, but you can take that chrono thing out and it will do it anytime of the year. that was just an example of how you could use it.
» More new posts: Doghead's Cosmic Bar