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 7,193 - 7,204 of 8,127
Many questions are answered in the FAQ.


5 years ago #7193
btw how do I make my bot remember age I learned how to make it remember names

5 years ago #7194
when I try to have 2 AI Inscriptions it says failed.
I have the name which is
default (name) as "your-name"
I tried gender last time somebody posted it, it failed even if I add a comma and then space for the 2nd one it still says it failed

5 years ago #7195
Try adding a ; in between each script.

This is how I handle gender on my bot:
In the AI Initialization box add:
default (isfemale) as "no";

This will make it so that the bot will assume the user is male unless otherwise specified.

Then create a keyphrase(s) "I am a (woman|girl|female): with the script: rem "yes" as only "isfemale";

Finally any female gender specific responses should have the script: if (mem-isfemale) is "yes";


Hope that helps.

5 years ago #7196
it accepted it, what about age, and how do you set it to once

5 years ago #7197
I haven't tried doing an age one but I would imagine it would look something like this:

In the initialization script put:

Default (age) as "age";

Then create a keyphrase:

I am (*) years old

Response:

You are (key1) years old

With the script:

Rem (key1) as only "age"; once


I wouldn't recommend using the once command in this instance however, as it's possible the user will mistype the answer and want to change it.

5 years ago #7198
wouldn't the once command reset when a new conversation starts?

5 years ago #7199
It would reset, yes. There's no way around that.

5 years ago #7200
after I make the keyphrase for the age what do I do to make another keyphrase when they ask to change their age again in the same conversation to prevent it from being repeated

5 years ago #7201
Just add another response. One that does not contain any other scripts.

5 years ago #7202
when I add once it doesn't work it says invalid

5 years ago #7203
I just tried your bot. It appears to be working though it's allowing me to change my age immediately which tells me you have 'once' put in the wrong spot.


To make sure your bot is truly remembering the age you can add the keyphrase:

How old am I

With the response

You are (mem-age) years old

5 years ago #7204
I just tried this out on my test bot and it worked fine. So if you follow what I laid out it should work for you as well.

Hope it helped.


Posts 7,193 - 7,204 of 8,127

» More new posts: Doghead's Cosmic Bar