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

9 years ago #7117
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?

9 years ago #7118
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?"

9 years ago #7119
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.

9 years ago #7120
Hi wisdomhuntress. Can you post your keyphrase?

9 years ago #7121
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.

9 years ago #7122
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"; ?>

9 years ago #7123
It was posted earlier here by another user, this is the phrase:

([S]+)([elf]+)([ie]+) (re)

It's set to raw with 0 ranking.

9 years ago #7124
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?

9 years ago #7125
... I have no idea how to use debug yet, sorry, haha. Just starting to figure stuff out.

9 years ago #7126
Thank you for the help Dr_Ben but it doesn't seem to be helping me at all.

9 years ago #7127
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).

9 years ago #7128
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?


Posts 7,117 - 7,128 of 7,766

» More new posts: Doghead's Cosmic Bar