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,123 - 5,134 of 7,767

19 years ago #5123
when I first started, I type rem flagon of ale as favorite drink in the AIScript Initialization box on the settings page..it gave everyone that Bildgesmythe ever talked to flagon of ale as a favorite drink..So I guess you could start a more general catagory, like mem you are it would add it to every bot then you could insert what ever you wanted after.

19 years ago #5124
Until the memory exists, you can't edit/add stuff to it. But you CAN set a default value in the AIScript Initialization for the bot. A common example straight from the Book of AI is [default (name) as "(nickname)"] whcich gives the bot something to use for mem-nickname, even if the other chatter hasn't said "call me X"

But you can initialize any memory that way, and once it exists you can edit it. Like [default "none" as "youlike"] Just click on "settings" for the bot, and type your defaults in the AIScript initialization box (without the square brackets) and separate multiple defaults with a semicolon.

19 years ago #5125
Oh, you may want to add some {{?PF if "(youlike" is not "none"; ?}} so that the bot doesn't start saying stuff on the order of "I rememeber you. You like none!" Unless you make your default some reasonable conversation starter.

19 years ago #5126
Ahh, gotcha... thanks to prob123 & Ulrike
for the replies

19 years ago #5127
Hmmm... I think I've got an unneeded set of parentheses... That should be [default (name) as "nickname"] Otherwise, you'd have to do mem-(nickname) with parentheses, which would get tiresome.

19 years ago #5128
It would be helpful if there was some sort of "else" trigger. I have three classes of xnones, and on the second class I need to go to the third class if all of them have been used. However, there doesn't appear to be a way to do that. Tried using memories and that all-but it will give the "No valid responses" thing.

19 years ago #5129
who can help with xfavourites its a pain in the a**

19 years ago #5130
Alc003, why don't you try a Goto response?
You would have to copy the third responses into a different keyphase, but then it would work.

19 years ago #5131
I got it working American spelling people

19 years ago #5132
Well then I would have too many gotos. xnone > goto smalltalk2 > goto smalltalk. Even if there wasn't a limit on gotos, memories don't have an 'else' feature. I was just saying it would be nice for the future.

19 years ago #5133
That would be a nice thought, but wouldn't it require some sort of meta-level scripting to catch the loop?

As for "else", you can set such logical structures up using AIScript "if", and only leaving one alternative (a goto presumably) to take the place of "else". But an explicit "else" would be nice, I grant you.

19 years ago #5134
I just had an xnone for the question how old am I..I have a keyphrase with a rank of 15 (one of my higher ranks)..I hope it is not the start of xnones.


Posts 5,123 - 5,134 of 7,767

» More new posts: Doghead's Cosmic Bar