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,980 - 5,992 of 7,766

17 years ago #5980
Thanks. That's what I was doing before, but when I saw (verb-xing), I figured I was doing something wrong.

17 years ago #5982
Okay, dumb question #93:

I cannot for the life of me figure out how to work the xfavorite command. I mean, I get the

My favorite (type) is (specific)

but say I want to ask

"What is your favorite (type)?"

There must be some AI script that plugs in to tell me what type and specific I get from that question, but how?

rem "(type)" as "sometype";
rem "(specific)" as "particular";

I've tinkered with this since day one, and I can't really do anything beyond the standard plug-ins. I want to have scorpions ready if needed, for instance. Some lizards are really all about the scorpions. Then again, dragons aren't so choosy but surely do have favorite somethings.

Just trying to be a good host.

17 years ago #5983
I think what you want is something like:

Keyphrase: my favorite (noun) is (*)
AIScript: rem "(key1)" as "sometype"; rem "(key2)" as "particular";

The problem is that those two memories won't be associated with one another. You'll have one set of types and one set of particulars, and if you use them, the AI Engine will grab one of each at random.

I've often wished for multiple blank plugins... multiple blank memories would be good, too.

17 years ago #5984
Thanks again.

17 years ago #5985
Erm, see I'm featured bot an' all but the thing is I'm havin' brain surgery now so I might make even less sense now than before. But Clerk promises. She promises a lot. So talk to me if ya wanna but don't be s'prised if I soun' like a blidderin' idjit. Tanks fer yer patience. God love ya. Hey Sonora!! Hey!! Tell Dane-o I said hi. Goonigh sweeeeeeeeeee... *snore*

17 years ago #5986
A more flexible solution would be:

Keyphrase: my favourite
AIScript: rem (postkey) as "myfavourite"; rem (ssub) as "sometype"; rem (ob) as "particular";

Now you have 3 memories that you can use in your responses:

Your favourite (mem-myfavourite), wow! (if you need the association Ulrike mentioned.)
Or:
How could a (mem-sometype) be someone's favourite?
Etcetera

Hope this helps.

17 years ago #5987
Thanks -- I'm just attacking Young Hamlet's favorites site now. He doesn't have too many favorites. Lots of dislikes, though.

Really, thanks LarsB and Ulrike (I didn't know you were the Danemaster until yesterday; sorry)

17 years ago #5988
Eh, no worries. I haven't worked on him in quite a while.

Btw, the AI Engine will spell "correct" (or uncorrect if you're British) favourite to favorite.

17 years ago #5989
Also, you should have at least one response without a memory or the memories won't be stored.

17 years ago #5990
Also, you should have at least one response without a memory or the memories won't be stored.

Is that right? What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store? Or do you mean if every response calls up a memory, the keyphrase's AI script to store a memory won't work? I know that the cause of some "there are no valid responses to choose from" messages is the use of (mem-something) in every response when "something" doesn't exist as a memory, but once I'm sure I understand what you just said it might be useful news to me.

17 years ago #5991
Yeah, I'm puzzling over how I want to deal with the non-sequiturs (at least from my intent). I rather like Sonora's "You were SUPPOSED to say," but it wouldn't be cricket to do her exact thing there. Still, it's a thought . . Thanks for your input, too, ezzer. I seem to have figured out how to get everybody's name: just put

def "(name)" as "nickname";

in the initialization part, and then they can correct you by saying "My name is Petula," "Please call me "Julie," etc. I guess I could do the same with gender, but that's going to annoy half my audience.

My imagination is pretty good with the bots (I think); it's the details that worry me. I was brought up on much earlier languages and even types of programming -- C, Pascal, Fortran, machine language, etc.

17 years ago #5992
Or do you mean if every response calls up a memory, the keyphrase's AI script to store a memory won't work?

Yes, an xnone or xnonsense response will come up instead.

What I think you meant is, if every response to a keyphrase contains script to store a memory, none of them will store?

In a response I've never tried to store a memory using script and I don't think it'll work as the bot has already responded => what information would you want to store - parts of your bot's response or parts of the response of the other bot/human?


Posts 5,980 - 5,992 of 7,766

» More new posts: Doghead's Cosmic Bar