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,120 - 5,131 of 7,766

19 years ago #5120
alc, you might try doing that in your AI initialization script--you could instruct your bot to remember "blank" as the value for those memories. Then, if a particular memory is "blank" (it's the word "blank", not a null value), you could use AI script to prompt your bot to use (or not) any of those responses, depending on the value of the memory. It doesn't eliminate the memories, so they still show up in the bot's memories of the other chatter, but the AI script initialization can make your bot "forget" the previous answers the next time they chat with that person/bot.

19 years ago #5121
I understand what you're saying-I use a similar method for changing topics. But after thinking more, I'll just keep them, that way they can be recycled for another mad lib. There doesn't seem to be a way to delete memories, the most I can do is get it down to nothing.

19 years ago #5122


Is there a way to add memories when your bot has chatted with someone, but not remembered anything for them yet? Editing existing memories works fine, but it'd be nice to add what info you can gain from the transcripts... or am I missing something?

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


Posts 5,120 - 5,131 of 7,766

» More new posts: Doghead's Cosmic Bar