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 6,811 - 6,822 of 7,766

15 years ago #6811
Not to derail the conversation, but I'd just like to say thanks for the assist. I read somewhere on these boards that the way it worked was the way I mentioned in my question. That'll learn me not to take these things as gospel, and do proper tests...

15 years ago #6812
I was just reading OscarTheBuilder's remarks on logical (boolean) AND/OR in aiscript from Sept. 24. That was very helpful. Thanks!

15 years ago #6813
Quick question: Can AIscript add or subtract to/from a memory that has a numerical value (other than emotion)? For example, if (mem-trust) is "3", can it be increased +1 to "4" easily without doing something awkward like this:

goto make trust equal four <?PF if (mem-trust) is "3" ?> ?

Also, >,>=, etc. conditions don't seems to work for regular memories as far as I can tell. Has anyone gotten anything like this to work?

(I'm using "trust" as a example of an extra emotional dimension describing the bot's state or attitude toward a person e.g. admiration,excitement, etc.)

15 years ago #6814
Yes, Irina Khalidar did that on her bots. You might look back through the posts, or email her. She had one for intimacy that worked like that.

15 years ago #6815
Thanks, prob123! I found a discussion of my second question from Nov. 10-13 of 2008. Basically, you can use inequalities to compare strings according to the rules of alphanumeric order. For instance, "7" > "2" and "g" > "b", but "9">"11", and so on. So this will work with numbers up to nine, but then you would run into trouble with higher numbers. However, someone could "count" using the letters a,b,...,z, for example, up to 26.

I've tested the following statement which seems to work:
if (mem-loc) > "0";

I'll keep searching for an answer to my first question.

15 years ago #6816
Another question:

I've put the following response under xinsult, but the bot doesn't hangup.

    I'm finished talking to you. [-5:-5]
        + * [0]
        HANGUP [-5:-4]
Can anyone tell me how to get this to work?

15 years ago #6817
OK. I think it should be

I'm finished talking to you. [-5:-5]
+ xnomatch [0]
HANGUP [-5:-4]
I was confusing xnomatch with xnonsense - noob mistake! I'm still not sure this works, though. I get a message that says something like "Note: the bot no longer wants to talk to you" but no hangup.

15 years ago #6818
Hang up can not have any other info. Just HANGUP. I don't think it works on a xnomatch.

15 years ago #6819
I'm following the hangup example on the wikispaces site:

http://personalityforge.wikispaces.com/HANGUP

I'm not sure if it works, though. Maybe there's something wrong with my implementation?

15 years ago #6820
HANGUP must be the only response. You can't have the bot say, "You are rude. Goodbye. HANGUP" (unless you nest HANGUP as a response to whatever comes after "You are Rude. Goodbye.")

The other culprit may be the rank on the KP.

15 years ago #6821
I added a special key phrase to get the bot to hang up on me (so I won't have to keep insulting her!).

I have tried HANGUP as a regular response, and also as part of a seek as above. I get the same results for each. Some of the time, I get the message "Note: the bot no longer wants to talk to you," and sometimes I get HANGUP as part of a compound response.

I think the latter case is a bug. As for the former case, perhaps the bot isn't able to terminate the conversation unless it is using a pop-up window to chat? In that case perhaps the hangup feature isn't fully implemented?

15 years ago #6822
"I have too many gotos in a row"

How many gotos can you have in a row? Just one?

(Sorry if this is a noobie question. I've been trying to search for an answer to this, but with no luck.)


Posts 6,811 - 6,822 of 7,766

» More new posts: Doghead's Cosmic Bar