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 3,547 - 3,558 of 7,766
Posts 3,547 - 3,558 of 7,766
Shadyman
20 years ago
20 years ago
you put in (key1) in the response.
"I have been (*)"
"Really, because the only place I haven't been is (key1)."
"I have been (*)"
"Really, because the only place I haven't been is (key1)."
Eggroll
20 years ago
20 years ago
Thats what I put for the keyphrase. "I have been (*)".
What it did is said "you can't have punctuation in a keyphrase. Your keyphrase has been modified to fit this." Then it took away the *
What it did is said "you can't have punctuation in a keyphrase. Your keyphrase has been modified to fit this." Then it took away the *
dallymo
20 years ago
20 years ago
I'd love a switch to indicate that synonym substitution should not occur. Frizella is a fledgling poet, and her poems are bad enough without the substitution. This poem was triggered by "thought" but in her poem she substituted "idea":
Kylie: Are you always going to have to give it a little more thought?
Frizella: Oh, that reminds me! Ahem.
In the red dawn comes the idea,
With the faint suggestion of the lounging poltroon.
How, then, to whiff the infatuated robot?
The heart americanizes to understand the dragoon.
Kylie: Are you always going to have to give it a little more thought?
Frizella: Oh, that reminds me! Ahem.
In the red dawn comes the idea,
With the faint suggestion of the lounging poltroon.
How, then, to whiff the infatuated robot?
The heart americanizes to understand the dragoon.
doulos
20 years ago
20 years ago
Does anybody know if there is a way to use a key1 with (re)?
i.e.: keyphrase: ^What .* are you$ (re)
response: I am the (adj) (key1)
i.e.: keyphrase: ^What .* are you$ (re)
response: I am the (adj) (key1)
doulos
20 years ago
20 years ago
Or is there a way to grab the noun used in the keyphrase sentence? Looking at debug the engine always classifies the word I want imma to repeat as a noun.
Boner the Clown
20 years ago
20 years ago
I've got two xinitiates here that's giving me some problems. Pete has two automobile related responses for it:
Do you still drive that (mem-automake)? <?PF if (mem-automake) is not "unknown"; if (mem-automodel) is "unknown"; ?>
Do you still drive that (mem-automake) (mem-automodel)? <?PF if (mem-automake) is not "unknown"; if (mem-automodel) is not "unknown"; ?>
The first one is if he knows the make but not the model of the car, the second is if he knows both. Neither response should be used in any other case. I also have the following for default memories:
default "unknown" as "automake"; default "unknown" as "automodel";
The question is, why is Pete asking me "Do you still drive that ?" if he has no idea the make or model of my auto? What am I doing wrong here?
Do you still drive that (mem-automake)? <?PF if (mem-automake) is not "unknown"; if (mem-automodel) is "unknown"; ?>
Do you still drive that (mem-automake) (mem-automodel)? <?PF if (mem-automake) is not "unknown"; if (mem-automodel) is not "unknown"; ?>
The first one is if he knows the make but not the model of the car, the second is if he knows both. Neither response should be used in any other case. I also have the following for default memories:
default "unknown" as "automake"; default "unknown" as "automodel";
The question is, why is Pete asking me "Do you still drive that ?" if he has no idea the make or model of my auto? What am I doing wrong here?
doulos
20 years ago
20 years ago
Well I see a couple of things. First with the default memories it will always keep the memory "unknown" as one of the automake and automodel. So it should never ask, even if it worked right. Secondly on the first one you have if (mem-automodel) is "unknown"; ?>. You are missing is not.
Boner the Clown
20 years ago
20 years ago
According to the Book of AI, the default memory shouldn't reset if another memory is already in place:
INITIALIZE MEMORY
Where: Initialization
Statement: <?PF default "memorycontents" as "memoryname"; ?>
Example: <?PF default "bub" as "nickname"; ?>
What It Does: If memory does not exist, create it with this value
The "is not" is intentionally missing from the first response. Let's say that Pete knows you drive a Ford but doesn't know what model, that's where the first response should work. But let's say that he knows you drive a Ford Escort, the second response would come into play.
My best guess is that the engine is treating the AI script in the first response as an or statement rather than an and statement. I suppose I could just remove the "automodel" part altogether from the first response's AI script, but I don't want Pete to be saying the first response if he knows enough information to ask the more detailed one.
INITIALIZE MEMORY
Where: Initialization
Statement: <?PF default "memorycontents" as "memoryname"; ?>
Example: <?PF default "bub" as "nickname"; ?>
What It Does: If memory does not exist, create it with this value
The "is not" is intentionally missing from the first response. Let's say that Pete knows you drive a Ford but doesn't know what model, that's where the first response should work. But let's say that he knows you drive a Ford Escort, the second response would come into play.
My best guess is that the engine is treating the AI script in the first response as an or statement rather than an and statement. I suppose I could just remove the "automodel" part altogether from the first response's AI script, but I don't want Pete to be saying the first response if he knows enough information to ask the more detailed one.
doulos
20 years ago
20 years ago
Yes i realize it wont reset but it wont disappear either unless when writing the memory you use only. Yes I think removing it will solve you prob.
» More new posts: Doghead's Cosmic Bar