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,976 - 6,987 of 7,766
Posts 6,976 - 6,987 of 7,766
Daddys Princess
12 years ago
12 years ago
This might be a dumb question, but how can I change the emotion of a word?
Every time this specific word is mentioned to my bot, it answers with xinsult. And this is what I get in debug -
Emotional Meaning: Pos: 0 Amp: 0 Neg 1
Negative: -1 (1+0)
Emotional Charge: -1
Current Emotion: 5
Any way to change this? Thanks.
Every time this specific word is mentioned to my bot, it answers with xinsult. And this is what I get in debug -
Emotional Meaning: Pos: 0 Amp: 0 Neg 1
Negative: -1 (1+0)
Emotional Charge: -1
Current Emotion: 5
Any way to change this? Thanks.
themohawkninja
12 years ago
12 years ago
How can I get the chatbot to remember something, and than immediately use that memory to respond with?
I can't seem to just say "remember (key1) as "x"" and in the responses say "blahblahblah" "if (mem-x) is "y"". When I do that, it doesn't give the "blahblahblah" response until the next user input is sent.
I can't seem to just say "remember (key1) as "x"" and in the responses say "blahblahblah" "if (mem-x) is "y"". When I do that, it doesn't give the "blahblahblah" response until the next user input is sent.
LarsB
12 years ago
12 years ago
Daddys Princess, i believe these are hard coded in the engine and can't be changed by users.
themohawkninja, it can't be done, what you can do is add at least one response that is generic, this response will presumeably be favoured by the engine since it will skip a response that is incomplete. The next time the KP is matched the engine will pick either of the two (or more) responses. You may even have noticed already that the next time your original response was used the engine returned what you entered before.
themohawkninja, it can't be done, what you can do is add at least one response that is generic, this response will presumeably be favoured by the engine since it will skip a response that is incomplete. The next time the KP is matched the engine will pick either of the two (or more) responses. You may even have noticed already that the next time your original response was used the engine returned what you entered before.
Octavas
12 years ago
12 years ago
What sort of AI script could be used to have an x-none response appear less frequently?
Mome Rath
12 years ago
12 years ago
Daddys Princess,
you can use the Emotion number of the keyphrase (e. g. if the engine increases emotion by 1, but you want to reduce it by 1 instead, set the emotional impact to -2, iirc).
themohawkninja,
memories are not set before the response is evaluated. So you have to use (key1) instead of (mem-x) in the response if (mem-x) is set in the keyphrase and/or the response.
Octavas,
this is not done by AI script, but by keyphrases. xnone turns up when and only when none of your other keyphrases (with a total rank above zero) fits to the user input.
Make sure there is at least one keyphrase your user input fits to, and if it is not triggered, adjust its rank by +5 or +10 or so.
you can use the Emotion number of the keyphrase (e. g. if the engine increases emotion by 1, but you want to reduce it by 1 instead, set the emotional impact to -2, iirc).
themohawkninja,
memories are not set before the response is evaluated. So you have to use (key1) instead of (mem-x) in the response if (mem-x) is set in the keyphrase and/or the response.
Octavas,
this is not done by AI script, but by keyphrases. xnone turns up when and only when none of your other keyphrases (with a total rank above zero) fits to the user input.
Make sure there is at least one keyphrase your user input fits to, and if it is not triggered, adjust its rank by +5 or +10 or so.
Octavas
12 years ago
12 years ago
Ha, I'm back again. I can't get my bot to go to seeks that are under x-none. Do I put in a new key phrase and have it goto that, or should it be working.
themohawkninja
12 years ago
12 years ago
When I went to debug my bot, it states that the variable "mem-shirt" does not exist even though "shirt" is initialized as "on", and when you enter the correct phrase to take her shirt off, it is set to "off". Why doesn't the variable exist if the last response had the AI script "remember (shirt) as only "off"?
Octavas
12 years ago
12 years ago
This is how I would do it.
<?PF rem "shirt" as only "off"; ?>
I'm still learning so maybe you need to throw something in the initialization box. But I think the problem is the parenthesis around the word shirt, could be wrong but I'd give this a go and see if it works. Good luck.
<?PF rem "shirt" as only "off"; ?>
I'm still learning so maybe you need to throw something in the initialization box. But I think the problem is the parenthesis around the word shirt, could be wrong but I'd give this a go and see if it works. Good luck.
Davlin
12 years ago
12 years ago
Is there a limit to the number of responses you can have in xnone, or under a particular keyphrase?
I notice there's 40 boxes initially for a new keyphrase/xnone. But, once these boxes are full will I have access to more?
Sorry if this is answered in the book of AI already. I had a look, but didn't see it in there.
I notice there's 40 boxes initially for a new keyphrase/xnone. But, once these boxes are full will I have access to more?
Sorry if this is answered in the book of AI already. I had a look, but didn't see it in there.
LarsB
12 years ago
12 years ago
Davlin, the number of responses are unlimited although they might not show up in the language center, you would have to edit your language center off line by exporting it.
Eugene Meltzner
12 years ago
12 years ago
Is it just me, or do memories essentially never get recorded correctly?
» More new posts: Doghead's Cosmic Bar