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,692 - 6,704 of 7,766
This has already been shown in BOOK OF AI
<?PF statement; statement; ?>
as you can see I already gave this type of example and it produces an OR statement where if EITHER are true it will give the responce.
I'm trying to make it only give the response if BOTH are true. The AND in my example is not a LITERAL AND.
Also having 2 SEPERATE statements:
<?PF statement; ?><?PF statement; ?>
DOES NOT WORK. it gives me "Bad Format error in " ?> "".
If you know what i'm trying to say please help.
Posts 6,692 - 6,704 of 7,766
prob123
16 years ago
16 years ago
Hello is Considered BLAB (1). you can't do a thing it will always go to xnone. I really wish we could get rid of blab and the canned responses.
marco3b
16 years ago
16 years ago
Yes Prob, but why it consider it blab in Debug mode and work correctly chisung the righg answer when I directly chat with the bot? It is strange...
marco3b
16 years ago
16 years ago
Hallo, I cannot believe that!
Please, read this debug and help me to avoid that horrible answers!
---DEBUG EXTRACT
This Phrase: "I am sick"
Find: I am sick (9) Time: 37.92
(Found)
Rank & Length Bonus: 9
Position Score: 12 (12 / (0+1))
Sentence Score: 0
(Total Rank: 21)
Highest!
Key: ' I am sick ' PostKeySpan: '-1'
Total Time: 37.92
Emotional Analysis:
Favorites?:
Getting Seek Response
Top Seek: I am sick
AIScript in Responses
Total Time Pre-Chrono: 37.93 RESULTS: '7'
Trying: (injury) (random: 4)
AIScript Memory
ComboScript: ""
Response: (injury)
Before (key)s: 37.93
(ssub): you (1)
(sub): you (1)
(submod): you (1)
(sv): am (2)
(v): am sick (2,3)
(vmod): am sick (2,3)
After (key)s: 37.93
KeySubject: ""
Compound Response!
Random Memory Number: 16 of 28
Memory Chance: 21 GossipTopic: MemoryLevel: 3
No Match. Emotional Response.
AIScript in Responses
Total Time Pre-Chrono: 37.96 RESULTS: '1'
Trying: I love you. (random: 0)
AIScript Memory
ComboScript: ""
Response: (injury) I love you.
----
Given aswer:
You: I am sick, i have gastroenteritis
Bot: in hospital for a month! I love you.
But my sentence was as follow!
+I am sick [0]
I'm really sorry for that!
It is impossible to have sense-full answer if the engine change the meaning as it likes!
Any idea?
BAH!
Please, read this debug and help me to avoid that horrible answers!
---DEBUG EXTRACT
This Phrase: "I am sick"
Find: I am sick (9) Time: 37.92
(Found)
Rank & Length Bonus: 9
Position Score: 12 (12 / (0+1))
Sentence Score: 0
(Total Rank: 21)
Highest!
Key: ' I am sick ' PostKeySpan: '-1'
Total Time: 37.92
Emotional Analysis:
Favorites?:
Getting Seek Response
Top Seek: I am sick
AIScript in Responses
Total Time Pre-Chrono: 37.93 RESULTS: '7'
Trying: (injury) (random: 4)
AIScript Memory
ComboScript: ""
Response: (injury)
Before (key)s: 37.93
(ssub): you (1)
(sub): you (1)
(submod): you (1)
(sv): am (2)
(v): am sick (2,3)
(vmod): am sick (2,3)
After (key)s: 37.93
KeySubject: ""
Compound Response!
Random Memory Number: 16 of 28
Memory Chance: 21 GossipTopic: MemoryLevel: 3
No Match. Emotional Response.
AIScript in Responses
Total Time Pre-Chrono: 37.96 RESULTS: '1'
Trying: I love you. (random: 0)
AIScript Memory
ComboScript: ""
Response: (injury) I love you.
----
Given aswer:
You: I am sick, i have gastroenteritis
Bot: in hospital for a month! I love you.
But my sentence was as follow!
+I am sick [0]
I'm really sorry for that!
It is impossible to have sense-full answer if the engine change the meaning as it likes!
Any idea?
BAH!
prob123
16 years ago
16 years ago
It looks like you may have the compound sentence box checked on your settings page, that will add an xnone or emote to any short sentence. It works for some bots, I don't care much for it. Just go to settings and uncheck it.
For the keyphrase "i am sick". Try I am * sick with a rank of 30. That covers
I am sick
I am really sick
I am feeling sick.
For the keyphrase "i am sick". Try I am * sick with a rank of 30. That covers
I am sick
I am really sick
I am feeling sick.
Noble_Gerth
16 years ago
16 years ago
Okay. I don't know if this question has already been answered, so I'm going to ask anyway.
I know that an OR exists in PF scrips. But do AND commands Exists?
For Example OR is written like so:
<?PF if (mem-example1) is "example1"; if (mem-example2) exists; ?>
The above example would result in giving a response if either were true.
is there a script for AND such as this example:
<?PF if (mem-example1) is "example1" AND if
(mem-example2) exists; ?>
This response (in theory) would only display if BOTH were true and not just one.
So if the AND can already be written please help me. I've been through all the FAQ, AI Book, and most of the forums (from the beggining). Thank You.
I know that an OR exists in PF scrips. But do AND commands Exists?
For Example OR is written like so:
<?PF if (mem-example1) is "example1"; if (mem-example2) exists; ?>
The above example would result in giving a response if either were true.
is there a script for AND such as this example:
<?PF if (mem-example1) is "example1" AND if
(mem-example2) exists; ?>
This response (in theory) would only display if BOTH were true and not just one.
So if the AND can already be written please help me. I've been through all the FAQ, AI Book, and most of the forums (from the beggining). Thank You.
prob123
16 years ago
16 years ago
You can have more than one statement. Each ends with a semicolon. You could just try to use two scripts. I am not sure if the "and" works, I have never tried it.
Noble_Gerth
16 years ago
16 years ago
This has already been shown in BOOK OF AI
<?PF statement; statement; ?>
as you can see I already gave this type of example and it produces an OR statement where if EITHER are true it will give the responce.
I'm trying to make it only give the response if BOTH are true. The AND in my example is not a LITERAL AND.
Also having 2 SEPERATE statements:
<?PF statement; ?><?PF statement; ?>
DOES NOT WORK. it gives me "Bad Format error in " ?> "".
If you know what i'm trying to say please help.
Irina
16 years ago
16 years ago
Marco3b:
If your language center really said
+I am sick [0]
I'm really sorry for that!
Then it might be not working because there is no blank space after the "+".
If your language center really said
+I am sick [0]
I'm really sorry for that!
Then it might be not working because there is no blank space after the "+".
trevorm
16 years ago
16 years ago
Noble_Gerth:
Are you sure that two IF statements does an OR? I always thought it did an AND.
I've just been looking at the Book of AI again and can't see it explicitly stated either way. A *chrono* does an OR however it says that multiple "if" statements are "processed from left to right". That makes me think AND.
Also the "cute buns" example wouldn't make much sense if it was OR!
Are you sure that two IF statements does an OR? I always thought it did an AND.
I've just been looking at the Book of AI again and can't see it explicitly stated either way. A *chrono* does an OR however it says that multiple "if" statements are "processed from left to right". That makes me think AND.
Also the "cute buns" example wouldn't make much sense if it was OR!
Noble_Gerth
16 years ago
16 years ago
the "From Left to Right" means they don't process both at the same time, so if the first statement isn't true it will check the second and so on until it finds one that is true and then show the response. Making it an OR statement.
Interzone
16 years ago
16 years ago
marco3b<0>, I've seen that your bot, Tommaso, has a live html link to a (Bible) site integrated in one of his responses... How did you manage it..? When I try to add html code to my bot's script, the AI Engine promptly deletes it... What's the trick..?
» More new posts: Doghead's Cosmic Bar