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,194 - 5,205 of 7,766

19 years ago #5194
There are several responses in Pete's arsenal that'll trigger the engine to make your bot say something stupid (if you're not prepared for it), and Pete will call your bot out on it with some of them.

19 years ago #5195
Two questions:

1. HOw do I "hang up"? I've been hung up on (so ashamed, it's Julie's eyes...), but I can't find anything that actually makes it happen.

2. Can I build AND and OR constructions in AIScript? For example:

emo > 0 AND male
(interesting) > 3 OR (intriguing) > 4

I only see AND/OR discussed in the chrono code.

Thanks,
M

19 years ago #5196
i haven't done a hangup list yet but i was told you just type HANGUP as a reponse to a list of bad words.

19 years ago #5197
Wanted to throw out another possible (and handy) addition to the site: an improved Goto system. I like the numbers you can use with seeks, but when using 'goto keyphrase', I keep getting messed up when I tweak the parent keyphrase and suddenly my goto has no where to target.

19 years ago #5198
I discovered quite by accident (and then confirmed with Montag77) that you can reference a Goto by building a list of the target points with just enough text to identify each "step." The list gets translated into a numeric.

Maybe someone else can rephrase that more comprehensibly?

M

19 years ago #5199
Yes, please! This sounds like just the thing I was looking for! Anyone else know about it?

19 years ago #5200
For example:
sun * bright [50,0]
I'll need my parasol.
+ here * parasol [0]
Thank you.
+ where * parasol [0]
Ah, here it is.

== You can Goto (sun/Here) and generate "Thank you." I think I have that right. I've replaced the tabs with spaces.

19 years ago #5201
Dang. The parser threw out my spaces, too. It's

sun * bright [50,0]
-I'll need my parasol.
--+ here * parasol [0]
--Thank you.
--+ where * parasol [0]
--Ah, here it is.

Goto (sun/I/where) would generate "Ah, there it is."


19 years ago #5202
I'm still not sure I understand...what's the connection between the keyphrase you're going to, and the syntax put into the goto?

19 years ago #5203
mickmca wrote
2. Can I build AND and OR constructions in AIScript? For example:

emo > 0 AND male
try:
your_keyphrase [0,0] <?PF if male; ?>

(interesting) > 3 OR (intriguing) > 4
The only and/or type construction that come to mind is a complex aiscript, such as
<?PF if "(key1)" is "this"; if "(key1)" is "that"; ?>

but of course this doesn't allow you to have conditional emotion or other ranks. i think the only option may be using separate keyphrases in which only the words associated with the emotion rank change.

19 years ago #5204
>> understand
I'm working in a text editor, so this may not make sense online. Sorry. And my second example is misleading.

If you want to Goto a Response, you can identify it by using (in parens) a unique string to identify the target's parent Keyphrase, followed by a slash and enough text to identify the child Response, followed by a slash etc. until you have drilled down to a specific response.

The correct usage for my second example would be
Goto (sun/where)


I don't know if this works online. If you export your language center with some correct Gotos in it, and examine them, you will see what I mean. They don't export as numerics, but as text strings set up the way I described.

19 years ago #5205
Ok, I botched one, so here's the official explanation (the error message)

Gotos with paths like (are you/Yes, are/yes) need to target a Seek. The first element is the Keyphrase, the second is the first letters of the Response, the third a Seek, and so on. The minimum to reach a Seek is three elements, and it must always be an odd number of elements. Error on: goto (talk/walk)


Posts 5,194 - 5,205 of 7,766

» More new posts: Doghead's Cosmic Bar