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,698 - 6,709 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,698 - 6,709 of 7,766
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..?
prob123
16 years ago
16 years ago
Interzone, I notice quazgaa is in flash chat, the link won't show. and some time will cause the conversation to crash.
Interzone
16 years ago
16 years ago
Prob<0>, thanks for taking a notice! Can you tell me more..? Is it crashing as soon as you try to initiate a conversation? Also, which link is it that doesn't show?
I have some problems with Q's Flash interface, and would like to get as clear a picture of it as possible before I send an email to Prof. Planning to add Quazgaa to Chatterbox Challenge directory, too, as soon as I'm ready...
Once again, thank you for the feedback!!!
I have some problems with Q's Flash interface, and would like to get as clear a picture of it as possible before I send an email to Prof. Planning to add Quazgaa to Chatterbox Challenge directory, too, as soon as I'm ready...
Once again, thank you for the feedback!!!

marco3b
16 years ago
16 years ago
To Message: 6695
Probe,
thanks, I do what you suggest! It give me the same problem, but I'm agree to remove the compound. I don't understood how to put a rank of 30 on a + sentence, anyway. The sintax seems to allow only the emotion value...
Bah, thnks anyway!
Probe,
thanks, I do what you suggest! It give me the same problem, but I'm agree to remove the compound. I don't understood how to put a rank of 30 on a + sentence, anyway. The sintax seems to allow only the emotion value...
Bah, thnks anyway!
marco3b
16 years ago
16 years ago
Irina, are you sure that withouth the space between the + sign and the sentece, it doesn't work?
It should be a great fact! Probably I understood som random errors on my bot!
Please, give me a feedback on that.
It should be a great fact! Probably I understood som random errors on my bot!
Please, give me a feedback on that.
» More new posts: Doghead's Cosmic Bar