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 7,014 - 7,025 of 7,766

12 years ago #7014
Ah, I knew you could do keyphrases but not responses. Thanks Subliminar

12 years ago #7015
I was wondering if there was a way to program when my bot knows when he was in a different form. I got responses of him like transforming but I would want him to remember that but if he changed back he would delete the memory and have the new one.

Wait, would a <?PF rem "memory" as only "mem-form"; ?> thing work?

12 years ago #7016
What I would do is this.

Settings: default (mem-form) as "normal"
AI Script: <?PF rem "normal" as only (mem-form); ?>
Reset: <?PF rem (mem-form) as only "normal"; ?>

What this should do is default as no memory, then when he transforms put the AI Script in the line where he does to make the memory, and to change back do the same with the reset to delete the memory. I hope this makes sense, you seem to have read the book of AI already.

I haven't tried making a memory this way. It should get the job done and keep the Inner Life area cleaner. If it doesn't work try this.

Settings: default (mem-form) as "normal"
Ai Script:<?PF rem "normal as only "mem-form"; ?>
Reset:<?PF rem (mem-form) as only "normal"; ?>

Cheers!

12 years ago #7017
Jazzds,

the order is

rem "contents" as "memoryname";

And the "mem-" is used only when a user-defined memory is retrieved, not when it is filled; and the parentheses are only used in retrieval, to fill a memory, use double quotation marks.

So use for

Settings: default "normal" as "form";
interactive change: <?PF rem "fancyform" as only "form"; ?>
interactive reset: <?PF rem "normal" as only "form"; ?>

Btw, if you use "default" in the settings, the memory is only set if it doesn't have any contents so far, that means, the memory is preserved between chats. If you want to use the same start value for every conversation, use

Settings: rem "normal" as only "form";

You probably know the usage in responses and queries:

Keyphrase: What is your current form?
Response: My current form is (mem-form).

Keyphrase: come here
response: *walks nearer to you* [0,0] <?PF if (mem-form) is "normal"; ?>
response: *rolls nearer to you* [0,0] <?PF if (mem-form) is "vehicle"; ?>

(Ok, "vehicle" would probably not be the word for your bot, but the principle should be clear.)

12 years ago #7018
Alright so I had to erase the memory for me cause I named them all wrong but now he says the memory doesn't exist. I'm going to open him back up so others can test it but I don't know what happened... the debug says this for me.

AIScript in Responses
Total Time Pre-Chrono: 0.05 RESULTS: '3'
Trying: Well I guess it wouldn't be no harmz... *changes into a pale skinned, 5' 8' human but without clothes* Oi... forgetz to zink of an outfit.... (random: 1)
Skipping: (mem-form) does not exist.
Trying: I don't knows, I thinkz staying in my spider form iz just fine!.... heh.... (random: 0)
Skipping: (mem-form) does not exist.
Trying: Oh well, alright zen! *slowly grows 13 feet tall with his lower half returning to being a spider and his upper body being a skinny male* All done! (random: 2)
Skipping: (mem-form) does not exist.

No Valid Responses Found. Continuing..

and the odd thing is that the default is in there for me.

12 years ago #7019
Ignore my post, found out that it was my error, he's fixed now lol.

12 years ago #7020
@Professor:

When gathering (name) from a bot, does the engine supply the user name, or the bot name? I was trying something, based off a bot-name, but my test wasn't getting thrown, and I suspect that I'm not getting the right match on a bot-name.

12 years ago #7021
I've noticed that my, as well as other bots' postkeys now often include the RIGHT-WALL, when it didn't use to work that way. I'm posting about it here first, because I'm not sure if it's a bug, or a change caused by an introduction of a new feature to the AI Engine (that may have been implemented during my hiatus)- for example,I discovered that one problem I was initially having with (re) expressions that included a comma as part of the expression, was due to the fairly recently added ablity to use lists in keyphrases with (re) expressions...separated by commas. lol So, [bracketing] those commas that were intended as part of the expression worked it out.
I'm wondering, is there a simple fix like that to stop my smacking the RIGHT-WALL issue?

12 years ago #7022
Good to know the glorious feature of using the comma as regex separator ... Great for someone used to use the pipe character ("|") for that purpose. Finally added another desperately needed flavor to the so very small number of regex standards.

Sorry for the rant, just couldn't resist.

Btw, I encounter that RIGHT-WALL problem too, sometimes. Didn't figure how old a keyphrase has to be to be affected.

12 years ago #7023
I have a request - would it be possible to show in the transcripts the messages that trigger a warning message because of inappropriate sex talk with the adult filter set, or at least the fact that this alert is shown?


12 years ago #7024
That would be interesting to know.

12 years ago #7025
My robot is having trouble saying hello, and is always saying he can't talk well and was just born!


Posts 7,014 - 7,025 of 7,766

» More new posts: Doghead's Cosmic Bar