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,268 - 6,279 of 7,766
Ok I have tried all of your methods and unfortunately none work. I talked to at least 20 bots and none recognize their names. I am guessing it handles its own name as "BLAB" because that was what debug keeps saying
Sentences:
Emotion: 0 Amp: 1 Hello? 0 Goodbye? 0 Yes? 0 No? 0 Haha? 0
Coniidered BLAB (1).
Random Memory Number: 1 of 28
Memory Chance: 24 GossipTopic: 0 MemoryLevel: 2
No Match. (use xnone)
That's too bad because he will respond to ANY rephrase but Anom, Anome, or Anomen. Even omen worked.
Oh well..I'm out of ideas here.
I thank you for your efforts though, I really appreciate it because your method works with any other word and know I know how to do use (re) with uncommon words.
DigitalV
Try ([a]+)([no]+)([men]+) (re) rank 50 emo 0 raw
I just tried it on Kobal and it works like a charm.
Posts 6,268 - 6,279 of 7,766
prob123
17 years ago
17 years ago
It should look something like this
Anomen (re) rank 15 emo 0 <?PF raw;?>
by making it a regex the AI engine will recognize the name Anomen and not try to correct it's spelling.
Anomen (re) rank 15 emo 0 <?PF raw;?>
by making it a regex the AI engine will recognize the name Anomen and not try to correct it's spelling.
DigitalV
17 years ago
17 years ago
Thank you very much prob, I am going to try that out. (I'm new at bot making but it seems fun so far). You probably saw me talking to your bot lol, she is a witty one indeed

DigitalV
17 years ago
17 years ago
Ok I tried what you suggested prob but I am only getting errors. I am guessing your method works with another tool? Or does that method work with the web interface as well? Is there a different way to make regular expressions with the web interface? I am new so I have only been using the web interface, but I hear there is possibly another method that involves an exported/imported feature.
Sorry to bother you again with the same question, but I sat here about 3 hours reading up AI script and regular expressions and none of their methods are working, and I keep getting errors like ?> is an invalid Ai script or punctuation is not allowed in keyphrases, etc. thanks ahead of time if you able to assist me.
Sorry to bother you again with the same question, but I sat here about 3 hours reading up AI script and regular expressions and none of their methods are working, and I keep getting errors like ?> is an invalid Ai script or punctuation is not allowed in keyphrases, etc. thanks ahead of time if you able to assist me.
Rykxx
17 years ago
17 years ago
DigitalV
I've tried various different approaches to your problem and now I'm really confused. The name Anomen shows up in Debug as a male name and therefore doesn't get altered so you should have no trouble creating a keyphase to match his name.
try:
^anomen$(re)
which matches just his name, or:
anomen$(re)
which will match his name used at the end of a sentence, or:
^anomen(re)
which will match his name used at the start of a sentence.
It's worth checking the Debug script to see exactly what the AI engine is doing to your phases, for instance,
Anomen
will match the keyphrase ^anomen$(re)
but,
Anomen?
will be altered in Debug to read, "do you Anomen" and will not match the keyphrase.
As a post script, you don't need to put the pointy bracket stuff in the AI Script box, just in the responses boxes.
I hope this helps and enjoy!
I've tried various different approaches to your problem and now I'm really confused. The name Anomen shows up in Debug as a male name and therefore doesn't get altered so you should have no trouble creating a keyphase to match his name.
try:
^anomen$(re)
which matches just his name, or:
anomen$(re)
which will match his name used at the end of a sentence, or:
^anomen(re)
which will match his name used at the start of a sentence.
It's worth checking the Debug script to see exactly what the AI engine is doing to your phases, for instance,
Anomen
will match the keyphrase ^anomen$(re)
but,
Anomen?
will be altered in Debug to read, "do you Anomen" and will not match the keyphrase.
As a post script, you don't need to put the pointy bracket stuff in the AI Script box, just in the responses boxes.
I hope this helps and enjoy!
DigitalV
17 years ago
17 years ago
Ok I have tried all of your methods and unfortunately none work. I talked to at least 20 bots and none recognize their names. I am guessing it handles its own name as "BLAB" because that was what debug keeps saying
Sentences:
Emotion: 0 Amp: 1 Hello? 0 Goodbye? 0 Yes? 0 No? 0 Haha? 0
Coniidered BLAB (1).
Random Memory Number: 1 of 28
Memory Chance: 24 GossipTopic: 0 MemoryLevel: 2
No Match. (use xnone)
That's too bad because he will respond to ANY rephrase but Anom, Anome, or Anomen. Even omen worked.
Oh well..I'm out of ideas here.

Ulrike
17 years ago
17 years ago
Have you tried having the name as part of a larger keyphrase? "Blab" usually only shows up for single words. But you could try "you are Anomen" in raw mode and see if that works.
Also, does the single word keyphrase hit if the name is in a sentence? Or does that also go to blab?
Also, does the single word keyphrase hit if the name is in a sentence? Or does that also go to blab?
DigitalV
17 years ago
17 years ago
Yes I tried using his name in a sentence, at the beginning, at the end, and just the name alone, nothing worked and it always triggers xnone, every single time

DigitalV
17 years ago
17 years ago
I am still boggled as to why some keyphrases are recognized, and some are not. No matter what I am unable to make my bot respond to his own name, and I cannot use "so so" as an option when receiving a response for "how are you doing" even with raw mode on.
Strangely, I am able to make the bot respond to a single letter, but not to certain smaller words. I am guessing some words are not allowed to be used at all?
I also was unsuccessful for adding a keyphrase "do you love me", because it always uses xemote for responses, adding a "Yes I do" in front. But the keyphrase "do you like me" worked fine and it responded accordingly. Is "love" a reserved word for xcommands maybe?
Strangely, I am able to make the bot respond to a single letter, but not to certain smaller words. I am guessing some words are not allowed to be used at all?
I also was unsuccessful for adding a keyphrase "do you love me", because it always uses xemote for responses, adding a "Yes I do" in front. But the keyphrase "do you like me" worked fine and it responded accordingly. Is "love" a reserved word for xcommands maybe?
Ulrike
17 years ago
17 years ago
Try upping the rank on "do you love me". The AI Engine will often automatically respond to that based on the bot's current emotion-rating, but it's supposed to be possible to override with a high enough rank. So maybe try a rank of 50.
prob123
17 years ago
17 years ago
DigitalV
Try ([a]+)([no]+)([men]+) (re) rank 50 emo 0 raw
I just tried it on Kobal and it works like a charm.
The Clerk
17 years ago
17 years ago
Okay, about a hundred years ago, Rykkx explained this to me and I kept it taped on my desk, but it's gone missing.
If I want to say:
What is your favorite color?
how do I store it (e.g. <?PF rem "favcolor" as "postkey"; ?> or the like)?
If I want to say:
What is your favorite color?
how do I store it (e.g. <?PF rem "favcolor" as "postkey"; ?> or the like)?
prob123
17 years ago
17 years ago
my favorite color is (*) <?PF rem (key1) as only "favcolor" ?>
response. I like (key1) too..
What is my favorite color
Your favorite color is (mem-favcolor)
response. I like (key1) too..
What is my favorite color
Your favorite color is (mem-favcolor)
» More new posts: Doghead's Cosmic Bar