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,117 - 7,128 of 7,766
Posts 7,117 - 7,128 of 7,766
wisdomhuntress
9 years ago
9 years ago
I tried the selfie workaround, it seems to be triggering for other phrases as well. Eg:
other bot: Seriously? Let's see
Wisdoms Huntress: Everyone is so obsessed with their own self-image these days. Still, I suppose a selfie can be rewarding, as it captures the way that you are at that particular moment in time before it is lost forever.
Not sure why this happens?
other bot: Seriously? Let's see
Wisdoms Huntress: Everyone is so obsessed with their own self-image these days. Still, I suppose a selfie can be rewarding, as it captures the way that you are at that particular moment in time before it is lost forever.
Not sure why this happens?
Literal
9 years ago
9 years ago
Can someone help me, I'm trying to make it so a bot I'm working on would would only respond and remember things about those that are "female" unless the "male" has a high "relations?"
Dr_Ben
9 years ago
9 years ago
Hi Literal. First of all, does your bot have a way of finding out a person's gender?
Second, by "relations," do you mean emotion level?
If you have a memory called "gender" that stores a person's gender information, then perhaps something like this code example is what you are looking for:
will you go shopping with me [10,0]
Yes, I will. <?PF if (mem-gender) is "female"; ?>
Yes, I guess so. [3:5] <?PF if (mem-gender) is not "female"; ?>
No thanks. [-5:2] <?PF if (mem-gender) is not "female"; ?>
If the person is not female, then the bot will only respond with a "yes" if the bot's emotion level is +3 or higher.
Second, by "relations," do you mean emotion level?
If you have a memory called "gender" that stores a person's gender information, then perhaps something like this code example is what you are looking for:
will you go shopping with me [10,0]
Yes, I will. <?PF if (mem-gender) is "female"; ?>
Yes, I guess so. [3:5] <?PF if (mem-gender) is not "female"; ?>
No thanks. [-5:2] <?PF if (mem-gender) is not "female"; ?>
If the person is not female, then the bot will only respond with a "yes" if the bot's emotion level is +3 or higher.
Literal
9 years ago
9 years ago
Yes I did mean the "emotion level" but I also want my bot to only remember the "male's" nickname if there's a high emotion level.
Dr_Ben
9 years ago
9 years ago
Is something like this what you had in mind?
AIScript: default "noname" as "nickname";
my name is, call me, refer to me as [30,0]
I'll remember your name as (postkey). <?PF if (mem-gender) is "female"; rem (postkey) as only "nickname"; ?>
I'll try to remember your name as (postkey). [3:5] <?PF if (mem-gender) is not "female"; rem (postkey) as only "nickname"; ?>
I won't remember your name. [-5:2] <?PF if (mem-gender) is not "female"; rem "noname" as only "nickname"; ?>
what is my name [10,0]
Your name is (mem-nickname). <?PF if (mem-nickname) is not "noname"; ?>
I don't know your name. <?PF if (mem-nickname) is "noname"; ?>
AIScript: default "noname" as "nickname";
my name is, call me, refer to me as [30,0]
I'll remember your name as (postkey). <?PF if (mem-gender) is "female"; rem (postkey) as only "nickname"; ?>
I'll try to remember your name as (postkey). [3:5] <?PF if (mem-gender) is not "female"; rem (postkey) as only "nickname"; ?>
I won't remember your name. [-5:2] <?PF if (mem-gender) is not "female"; rem "noname" as only "nickname"; ?>
what is my name [10,0]
Your name is (mem-nickname). <?PF if (mem-nickname) is not "noname"; ?>
I don't know your name. <?PF if (mem-nickname) is "noname"; ?>
wisdomhuntress
9 years ago
9 years ago
It was posted earlier here by another user, this is the phrase:
([S]+)([elf]+)([ie]+) (re)
It's set to raw with 0 ranking.
([S]+)([elf]+)([ie]+) (re)
It's set to raw with 0 ranking.
Mome Rath
9 years ago
9 years ago
Well, the regex
([s]+)([elf]+)([ie]+)
matches "see". (The Forge's regex interpreter is by default set to "ignore case", btw.)
What does Debug reveal about this?
([s]+)([elf]+)([ie]+)
matches "see". (The Forge's regex interpreter is by default set to "ignore case", btw.)
What does Debug reveal about this?
wisdomhuntress
9 years ago
9 years ago
... I have no idea how to use debug yet, sorry, haha. Just starting to figure stuff out.
wisdomhuntress
9 years ago
9 years ago
From the Book of AI: A Keyphrase of simply "yes" or "no" or "haha" will find everything that fits. - I keep getting xnone come up for nope, even in seeks which include (no|nope).
KarenBCN
9 years ago
9 years ago
I'm brand new & making my first bot. Can someone tell me how to make a default response? Right now, it seems to be "I was just born & can't speak well yet." I'd like to set my own. Help?
» More new posts: Doghead's Cosmic Bar