Newcomers
This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.
Posts 4,899 - 4,910 of 8,130
re: "Hello The Clerk!"
Not too important, but the AI Engine seems to strip off the The. Bots always greet me as "Clerk." It's not something I lose sleep over.
Posts 4,899 - 4,910 of 8,130
Many questions are answered in the FAQ.
Inept Butterfly
17 years ago
17 years ago
I've noticed that some bots are able to remember people's names.
How would I go about getting my bot to remember names? Would (mem-mynameis) work?
How would I go about getting my bot to remember names? Would (mem-mynameis) work?
prob123
17 years ago
17 years ago
in the AIScript Initialization box on your settings page put AIScript: default (name) as "name"
Make a keyphrase for My name is (*) in the script box put
<?PF remember (key1) as only "name" ?>
every time you want to use the name use (mem-name)
Make a keyphrase for My name is (*) in the script box put
<?PF remember (key1) as only "name" ?>
every time you want to use the name use (mem-name)
The Clerk
17 years ago
17 years ago
I've been using
def (name) as "nickname"
Are "nickname" and "name" the same to start with?
def (name) as "nickname"
Are "nickname" and "name" the same to start with?
The Clerk
17 years ago
17 years ago
I knew that; I just wasn't aware until now that "name" came defined. It would have to for def (name) as "name" to work.
Bev
17 years ago
17 years ago
Oh I don't know that it would. I thought we can use def "you" as "name" or whatever unless we want to have the PF engine plug in the name as a default. What you did should plug in the chatter/bot's name whenever you use (nickname), shouldn't it? Both of us would then pick up the chatters offered name on cue and use it, right?
Did I understand it wrong? I sometime flip things so staring at at the classic def (name) as "name" always bothers me as to what is the variable and what is the default. And no, I don't stay up all night wondering if there is a dog. I wonder if what I think I see is what was there and if what I thought I typed ever made it in a close enough form to work.
Did I understand it wrong? I sometime flip things so staring at at the classic

Interzone
17 years ago
17 years ago
(name) is The AI Engine default.
"name" is a variable.
my bot's script says
def (name) as "names";
consequently,, "Hello (mem-names)!" will resolve to "Hello Bev!"... "Hello The Clerk!" etc... the names always get picked up correctly.
this means, if you have a script that says
def (name) as "name"
it will work alright, but it won't do anything that the Engine wouldn't do on its own, without the script.
"name" is a variable.
my bot's script says
def (name) as "names";
consequently,, "Hello (mem-names)!" will resolve to "Hello Bev!"... "Hello The Clerk!" etc... the names always get picked up correctly.
this means, if you have a script that says
def (name) as "name"
it will work alright, but it won't do anything that the Engine wouldn't do on its own, without the script.
prob123
17 years ago
17 years ago
def (name) picks up the name such as guest 153 or prob 123 when they don't give a name. When you have the keyphase for my name is (*) and use the remember key1 as only name. the bot will now remember that my name is Patti. If you have nickname it will remember that my name is Problem. I don't use (mem-nickname) I just use the my name is (*) or I am (allnames) and go with that.
Interzone
17 years ago
17 years ago
ooops, i got it wrong there! the def (name) as "name"; will do the trick just as good as def (name) as "names";
i like the prob's solution the best though, because it requires the least interventions, and it gets everything alright.
i like the prob's solution the best though, because it requires the least interventions, and it gets everything alright.
The Clerk
17 years ago
17 years ago
If I didn't use def (name) as "nickname", I'd never know most chatters' names, and I think people like to hear their names (or their userids). I can still pull a rem (postkey) as only "name" should the circumstance arise. Using def instead of rem makes all the difference here, to newbies. It sets a value only if one doesn't already exist -- so if your bot knew prob123 as Patti, it would remember that rather than writing over it.
The Clerk
17 years ago
17 years ago
Not too important, but the AI Engine seems to strip off the The. Bots always greet me as "Clerk." It's not something I lose sleep over.

» More new posts: Doghead's Cosmic Bar