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 6,794 - 6,805 of 7,766

15 years ago #6794
I think it's easier to use the if mem exists, or does not exist.
<?PF if (mem-asshole) does not exist; ?>

15 years ago #6795
If there is an istance where you want to say something once, the "does note exist" and "exists" or "yes" commands will be the way to go.. But that method probably doesn't apply to alot of users.. just a select few.. but, it will help you think of different coding techniques.

15 years ago #6796
I'd love to be able to use the "exists" conditional, but there is no way to programmaticly remove memories once they have been created. Using the asshole example, what if the bot decided you are no longer an asshole? It does not work to do <?PF rem "" as only "asshole"; ?> and have it be removed.

15 years ago #6797
You are a dick <?PF rem "yes" as only "asshole"; ?>
Bot: You suck <?PF if (mem-asshole) exists; ?>

I am sorry <?PF rem "no" as only "asshole"; ?>
Bot: You called me asshole before. I will forgive but not forget <?PF if (mem-asshole) is "no"; ?>

just code for futre key phrases and responses to equal "no" or any other variable you want to put in.

I use this in many different forms of additional emotions and attitudes

I even apply it to certain sarcastic remarks. Why? cause that is who I am..

15 years ago #6798
Right, that's what I am currently doing. It would be nice to be able to erase them and use the exists test as prob123 mentioned, though.

eta: I wish I had chosen a friendlier example. lol

15 years ago #6799
well.. I have been doing this for 8 months.. figured it out after 6.

Good Luck

15 years ago #6800
Why do you need to erase a memory when you can call up a new one?? Just call 2 memories dor the same task and point the second one as the new one.. I am drunk.. so.. just thought of this response.

got to get back to the ladies. kk

15 years ago #6801
I don't need to, per-se, but it would allow me to use the simpler <?PF if (mem-something) exists; ?> instead of something like <?PF if (mem-something) is "notSomething"; ?>. If I could erase a memory, it would make for somewhat easier/cleaner coding. In other words, it would be nice to completely erase a memory instead of setting it to "none" "no" "false" or something similar.

15 years ago #6802
I know what you mean.. but you and I discussing it is not going to change things or make it magically available.

When I ran into the problem.. I coded around it.

I have run into 4 important problems so far.. I code around it.

I am creating a mind file, so my coding has inventive properties.

There are alot of members here and they are not discussing the 'erase memories' thing cause they either know that it can't be done or they have no clue what you are talking about.

But let me ask you, this is very important to me. Have you come up with a coding that can take self memories and use them as a plug-in? Doesn't hold high regard when you first think about it.. but it is one of my biggest concerns. I have big plans for this idea

15 years ago #6803
I would love to see the erase memories idea come into play..but I would also yell FUCK.. cause that is 7mb of coding I gotta run through to take advantage of the new code.. It would be good for all of us..but a personal headache for those of us wanting to make things easier and have cleaner code..

sorta like if tomorrow all cars sold were electric.. great for everyone..but..we got a big mess of gas cars to get rid of

15 years ago #6804
I know discussing it probably won't change anything (unless the site's owner follows the message boards and takes these sorts of things into consideration when designing the engine). I was just trying to explain why I'd like to be able to do it since prob123 suggested using exists/does not exist.

What do you mean use self-memories as plugins? They work just fine as response plugins. Do you mean as keyphrase plugins?

You're right about it being a PITA trying to clean up code after a large code base has been established. I've had to rework code when design specifications change--with some of the larger projects I've worked on, it almost seemed like it would be easier to start from scratch.

15 years ago #6805
I have never found it necessary to erase a memory. The AI engine will add new ones to the category unless you use the "only" they the original memory is erased.
You can also use the check box "once" for things and the bot will only ask once. You can modify the response
The bot already decides who is an ass, with it's emotional response to each conversation. You can use the if emotion is less than any number you want
I love you +5
You are an ass -5
etc
It's easier in the long run and you get the same results.


Posts 6,794 - 6,805 of 7,766

» More new posts: Doghead's Cosmic Bar