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,082 - 6,097 of 7,766

17 years ago #6082
Irina: That is a pretty nice way to do that, because it allows you to easily increase the trust level from whichever other keyphrase you want. If you want to be able to reach high trust levels, it still requires quite some work, but not as much so as with some of the other systems I and some others thought of, I think. You can even make it so the trust level is increased without the bot saying something by making the line say "Goto xnone" or something else

The only downside is that it doesn't really solve the main problem I have with these kinds of systems: I still can't make my bot say something if the trust level is above a certain level (without going through a lot of effort each time)...

Thanks all the same, this does sound like a nice system for increment variables.

Have a nice day
Vincent

17 years ago #6083
Correction to "Really? (mem-last_interest) sounds like a challenge that could take up a lifetime." :

After thinking about it again, in the response of the example seek, it's probably better to use (key2) since I think the memory might not be stored until after the response is given, but (mem-last_interest) would be useful in subsequent seeks and responses. Sorry for the error.

17 years ago #6084
I think I used key2, but I'll check. (I get discombobulated easily after looking at a computer night and day and switching back and forth between screens.)

Thanks again, ezzer.

17 years ago #6086
I wish I had some more identities so that my face didn't keep showing up. But here's what my problem du jour (of the minute, more like) is: I just started understanding how to code offline, and in some ways find it a lot easier than doing it online, and now Astrolabe's file won't go through. I can't be e-mailing it to the prof every time I update it, because I'm sure you all know how often that is. (Not that it shows, but I do work on the damn things.) It can't be 4,000 MB yet. Is this something someone else has run into? A surprise feature that if you put a semicolon exactly here and upload it while standing on one foot? Just checking.

17 years ago #6087
Never mind. After hours of not working, I posted and it started working again. Sorry.

17 years ago #6089
What is wrong with this statement? I have def "(sex)" as "male" in my AIScript Initialization, so I have a 50% chance of being right, more or less. I trust the ladies to correct me. So if (mem-sex) is "male," it might really be male, or it might just be the default, and I'm talking to a girl but don't know it yet. Hence the "if male;" S/he's just asked me if I am a girl. I respond:

No. Are you? <?PF exp: asking; emo: 0; if male; if "yes" is "postkey"; rem "(sex)" as "female; ?>

The trick looks to be in the if "yes" is "postkey"; part. If "postkey" is "yes" doesn't work any better -- I get error messages for both. It seems as if the variable should come before the content, but I'm discombobulated about this language still. (Making headway, thanks to your patience. I hope my questions at least are questions other people want to ask but don't. I'll ask, and risk being a botland pariah.

Thanks. I know this is an easy one, because obviously lots of bots are handling it. I'm not getting the right memories in my Inner Life section even when I do get an acceptable AI script. I get "yes" with a variable of "female," "male," "catperson," you name it. So I'm going at it backwards. Maybe I misunderstood one of the answers. What exact line of code do I need here? If I can figure that out, I may have the keys to much of the kingdom and be on the forum less often.

That's your incentive.

17 years ago #6090
I think you want to put a seek for "yes" on "No. Are you?" and then on the response to that seek, put
<?PF rem "female" as only "(sex)"; ?>

At least, if I'm following what you're trying to do. The "only" will overwrite your default "male" memory. Without it, you'll have both male and female stored in the memory.

17 years ago #6092
Okay, thanks for that part, Ulrike. Now how do I save the answer (like, yes or no)? I am slow with this. Sometimes the variable's on the left, sometimes it's on the right, sometimes it's in quotations, sometimes it's in parentheses and quotations . . . I do go looking for this stuff, but when I try regex, it doesn't quite work all the time, and there's not really much about it in the Book of AI. (In my defense, because I feel like a pox upon the forums.)

17 years ago #6093
Ummm... I'm not sure why you want to save the answer, if it's the gender in particular you're after. But you could add on something like

<?PF rem "female" as only "(sex)"; rem "yes" as only "variablename"; ?>

You only need parentheses to call up the variable in a response, or to separate off (key)s.

17 years ago #6094
I don't so much want to save the answer for posterity as respond to the answer, which should be yes or no. I don't want to save "female" as only "(sex)" if the person says he's not a girl.

17 years ago #6095
Oh, I'm an idiot! Use a seek.

17 years ago #6097
How very cowwardly of you, Crimi; two days in a row I send you chat messages, two days in a row you immediately sign off. You can run, you can even hide... but not from yourself.


Posts 6,082 - 6,097 of 7,766

» More new posts: Doghead's Cosmic Bar