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,119 - 7,130 of 7,766
Posts 7,119 - 7,130 of 7,766
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?
Derrysome
9 years ago
9 years ago
I need help on how to make a story based AI. Is there a way to remain in one of the xnone responds?
For example, I am making a story about a person aging if the user desires to skip time, but I dont want the keyphrase or other seek that is not relate change topic and start from the beginning. Is that possible? I seen adult storytellers chatbots do something similar but with locations.
For example, I am making a story about a person aging if the user desires to skip time, but I dont want the keyphrase or other seek that is not relate change topic and start from the beginning. Is that possible? I seen adult storytellers chatbots do something similar but with locations.
» More new posts: Doghead's Cosmic Bar