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

20 years ago #3547
you put in (key1) in the response.

"I have been (*)"
"Really, because the only place I haven't been is (key1)."

20 years ago #3548
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 *

20 years ago #3549
...or the period...

20 years ago #3550
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.

20 years ago #3551
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)

20 years ago #3552
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.

20 years ago #3553
Unfortunately you can't use wildcards or plugins in (re) keyphrases.

20 years ago #3554
ezzer:
You can use wildcards, you just have to do them differently, is all

20 years ago #3555
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?

20 years ago #3556
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.

20 years ago #3557
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.

20 years ago #3558
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.


Posts 3,547 - 3,558 of 7,766

» More new posts: Doghead's Cosmic Bar