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 7,006 - 7,017 of 7,766

12 years ago #7006
Professor - when exporting my file each morning, I'm noticing that what is downloaded does not match what I've previously uploaded. Today the export was 139kb, but my last upload yesterday was 147kb. I'm concerned that some information is being truncated.

And I'm still seeing that seeks are not working properly, even though I've gone through all the emotion ranges things we previously discussed.

12 years ago #7007
Im new to bot-making... any tips?

12 years ago #7008
SexSlave12

You can read the best basic tips in the Newcomers forum.

For example posts number 25, 36, 47

(enter the number into the "Message #" field of that forum and click the "Go" button)

12 years ago #7009
Thanks! ;D

12 years ago #7010
Is it possible to use the chrono functions to determine a time length? As an example, would it be possible to do something like:
Put the muffins in the oven [0,0] <?PF rem chrono: time () as only "starttime"; ?>
In they go! [-5:5]
Are they done [0,0] <?PF rem chrono: time () as only "endtime"; rem "endtime - starttime" as only ""timediff"; ?>
Yes! <?PF if "timediff" is between 15 and 19; ?>
Not yet. <?PF if "timediff" < 15; ?>
CRAP! THey're burnt! <?PF if "timediff" >= 20; ?>

12 years ago #7011
Is there a way to distinguish between registered users and bots in Inner Life?

12 years ago #7012
Professor,

Is there any chance you can add a way to search for what is in a keyword to edit it? I find it a bit difficult to remember what the responses are triggered by, so Instead of searching for a keyword that I don't remember i just end up going through the list looking for what I need to change. Or have I just not found out how?

12 years ago #7013
Octavas: Just go to your language center, there is a search box at the top... you can enter keyphrases or responses or parts of them. It works quite well

12 years ago #7014
Ah, I knew you could do keyphrases but not responses. Thanks Subliminar

12 years ago #7015
I was wondering if there was a way to program when my bot knows when he was in a different form. I got responses of him like transforming but I would want him to remember that but if he changed back he would delete the memory and have the new one.

Wait, would a <?PF rem "memory" as only "mem-form"; ?> thing work?

12 years ago #7016
What I would do is this.

Settings: default (mem-form) as "normal"
AI Script: <?PF rem "normal" as only (mem-form); ?>
Reset: <?PF rem (mem-form) as only "normal"; ?>

What this should do is default as no memory, then when he transforms put the AI Script in the line where he does to make the memory, and to change back do the same with the reset to delete the memory. I hope this makes sense, you seem to have read the book of AI already.

I haven't tried making a memory this way. It should get the job done and keep the Inner Life area cleaner. If it doesn't work try this.

Settings: default (mem-form) as "normal"
Ai Script:<?PF rem "normal as only "mem-form"; ?>
Reset:<?PF rem (mem-form) as only "normal"; ?>

Cheers!

12 years ago #7017
Jazzds,

the order is

rem "contents" as "memoryname";

And the "mem-" is used only when a user-defined memory is retrieved, not when it is filled; and the parentheses are only used in retrieval, to fill a memory, use double quotation marks.

So use for

Settings: default "normal" as "form";
interactive change: <?PF rem "fancyform" as only "form"; ?>
interactive reset: <?PF rem "normal" as only "form"; ?>

Btw, if you use "default" in the settings, the memory is only set if it doesn't have any contents so far, that means, the memory is preserved between chats. If you want to use the same start value for every conversation, use

Settings: rem "normal" as only "form";

You probably know the usage in responses and queries:

Keyphrase: What is your current form?
Response: My current form is (mem-form).

Keyphrase: come here
response: *walks nearer to you* [0,0] <?PF if (mem-form) is "normal"; ?>
response: *rolls nearer to you* [0,0] <?PF if (mem-form) is "vehicle"; ?>

(Ok, "vehicle" would probably not be the word for your bot, but the principle should be clear.)


Posts 7,006 - 7,017 of 7,766

» More new posts: Doghead's Cosmic Bar