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 5,763 - 5,776 of 7,766
Posts 5,763 - 5,776 of 7,766
Xander v1.2
17 years ago
17 years ago
Right, that's what I meant.
For instance, if I have a seek with "xnomatch" (or even some other keyword, say, "punch"), then "xinsult" shouldn't be kicking in, right? ("I punch you" gets caught by xinsult, by the way.)
For instance, if I have a seek with "xnomatch" (or even some other keyword, say, "punch"), then "xinsult" shouldn't be kicking in, right? ("I punch you" gets caught by xinsult, by the way.)
Corwin
17 years ago
17 years ago
Well it's not desirable, no. But it's the order the preprocessing works in. If you want to see what happens when, try running a few lines of conversation with your bot in debug. You'll see the order everything goes through.
Xander v1.2
17 years ago
17 years ago
I tried that, and I think I've managed to... well, I won't say fix it, but it's running more smoothly now. Thanks for your help.
Xander v1.2
17 years ago
17 years ago
Okay, a new question: are there hidden modifiers that effect emotion? It seems to be the case, as my new combat bot keeps ending up in a fowl mood from getting hit, even though there's no explicit modifier to emotion. (Also, I'm noticing extra
faces in debug mode associated with certain words.)
If that is the case, I am saddened, because as far as I can tell, there is no math functions in the AI script, and I was going to use emotion as a variable.

If that is the case, I am saddened, because as far as I can tell, there is no math functions in the AI script, and I was going to use emotion as a variable.
prob123
17 years ago
17 years ago
The AI engine does adjust emotion on its own. You can override it by putting your own emotional rank in the emotion box, of the keyphrase Remember when you give responses using emotion level, to cover the whole range from -5 to 5 or you will get the dreaded NO VALID RESPONSE error
Xander v1.2
17 years ago
17 years ago
First off, thank you for all your help!
Ah, darn. I was trying to control emotion through AI scripting, since most of my responses (see: Tengu Blade) require script condition checking, and the emotional responses depend on what the bot is saying.
I guess I could work around it. I don't suppose there is any way to store numbers (and use math functions on them) in my bot's memory?
Ah, darn. I was trying to control emotion through AI scripting, since most of my responses (see: Tengu Blade) require script condition checking, and the emotional responses depend on what the bot is saying.
I guess I could work around it. I don't suppose there is any way to store numbers (and use math functions on them) in my bot's memory?
Ulrike
17 years ago
17 years ago
If you have the patience to encode the numbers in words and put in every possible case/condition.
So you could[?PF rem "five" as only "number"; ]
Now suppose that you want to increment by one in some particular case. You'd need two bits of script in the response.[?PF if "number" is "five"; ] and [?PF rem "six" as only "number"; ]
But you'd need a separate response with code to increment by one if "four" was stored in "number". Very tedious. So far as I know, there's no way to make it actually numeric.
So you could
Now suppose that you want to increment by one in some particular case. You'd need two bits of script in the response.
But you'd need a separate response with code to increment by one if "four" was stored in "number". Very tedious. So far as I know, there's no way to make it actually numeric.
Irina
17 years ago
17 years ago
Re: Ulrike 5770:
Yes, that's what I have ended up doing. As long as the numbers are in small ranges it's feasible.
Yes, that's what I have ended up doing. As long as the numbers are in small ranges it's feasible.
mb
17 years ago
17 years ago
Is it possible for you to make your bot only say an xnone response once during a guest chat. Or is it best just to have loads of xnone respinses so thet bot won't repeat.
thanks for your advice in advance.
thanks for your advice in advance.
Eugene Meltzner
17 years ago
17 years ago
You can click the "once" box on xnones, but then it will only say them once to a particular user EVER, not just for that particular chat. This means that you then have less xnones available after those have been used up.
» More new posts: Doghead's Cosmic Bar