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,195 - 5,206 of 7,766
Posts 5,195 - 5,206 of 7,766
MickMcA
19 years ago
19 years ago
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
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
little monster 1
19 years ago
19 years ago
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.
djfroggy
19 years ago
19 years ago
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.
MickMcA
19 years ago
19 years ago
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
Maybe someone else can rephrase that more comprehensibly?
M
djfroggy
19 years ago
19 years ago
Yes, please! This sounds like just the thing I was looking for! Anyone else know about it?
MickMcA
19 years ago
19 years ago
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.
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.
MickMcA
19 years ago
19 years ago
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."
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."
djfroggy
19 years ago
19 years ago
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?
montag77
19 years ago
19 years ago
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.
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.
MickMcA
19 years ago
19 years ago
>> 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.
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.
MickMcA
19 years ago
19 years ago
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)
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)
prob123
19 years ago
19 years ago
Have you tried going to the number of your seek..Goto 597674 (what ever number "Ah, there it is.") would be?
» More new posts: Doghead's Cosmic Bar